Spatial Parameter Sweep: Turing Patterns

Persistent Identifier

Use this permanent link to cite or share this Morpheus model:


This model shows the pattern formation abilities of Turing’s linear activator-inhibitor model (Miyazawa et al., 2010). It shows how to vary parameters as a function of space.

Spots and stripes appear under various conditions in linear Turing model.
Spots and stripes appear under various conditions in linear Turing model.


Instead of fixed parameters defined as Constants, this model uses Functions for two parameters. The parameters $C$ (activator production) and $A$ (rate of auto-activation) are defined as Function of space and varied over the $x$- and $y$-axes respectively. This requires the definition of a SpaceSymbol that can be used in expressions.

The results show the appearance of white spots (left), black spots (right) and labyrinthine patterns (middle).


S. Miyazawa, M. Okamoto, S. Kondo: Blending of animal colour patterns by hybridization. Nat. Commun. 1 (6): 66, 2010.


Get this model via:

  • Morpheus-Link or
  • Morpheus GUI: ExamplesPDETuringPatterns.xml or
  •  Download: TuringPatterns.xml
  • XML Preview

    <MorpheusModel version="3">
    Miyazawa, Okamoto and Kondo, Blending of animal colour patterns by hybridization, Nature Communications, 2010</Details>
            <Field symbol="u" value="4.1+rand_uni(0,1)">
                <Diffusion rate="1"/>
            <Field symbol="v" value="4.84+rand_uni(0,1)">
                <Diffusion rate="20"/>
            <System solver="runge-kutta" time-step="0.25" name="Miyazawa">
                <Function symbol="A">
                    <Expression>0.07 + ((0.07 * l.y)/ s.y)</Expression>
                <Constant symbol="B" value="0.08"/>
                <Function symbol="C">
                    <Expression>-0.1 + ((0.5 * l.x)/ s.x)</Expression>
                <Constant symbol="D" value="0.03"/>
                <Constant symbol="E" value="0.10"/>
                <Constant symbol="F" value="0.12"/>
                <Constant symbol="G" value="0.06"/>
                <Constant symbol="R" value="20.0"/>
                <Constant symbol="synU_max" value="0.23"/>
                <Constant symbol="synV_max" value="0.50"/>
                <Function symbol="s_u">
                    <Expression>max( 0, min( synU_max, A()*u-B*v+C()))</Expression>
                <Function symbol="s_v">
                    <Expression>max( 0, min( synV_max, E*u - F))</Expression>
                <DiffEqn symbol-ref="u">
                    <Expression>R*(s_u() - D*u)</Expression>
                <DiffEqn symbol-ref="v">
                    <Expression>R*(s_v() - G*v)</Expression>
            <Lattice class="square">
                <Size symbol="s" value="512 512 0"/>
                <NodeLength value="1"/>
                    <Condition boundary="x" type="noflux"/>
                    <Condition boundary="y" type="noflux"/>
            <SpaceSymbol symbol="l"/>
            <StartTime value="0"/>
            <StopTime value="30"/>
            <SaveInterval value="0"/>
            <RandomSeed value="1"/>
            <TimeSymbol symbol="time"/>
            <Gnuplotter time-step="2" decorate="false">
                <Terminal persist="true" name="png"/>
                    <Field symbol-ref="u">
                            <Color value="1" color="black"/>
                            <Color value="0.0" color="white"/>
            <Logger time-step="0.0">
                    <Symbol symbol-ref="u"/>
                    <TextOutput file-format="csv"/>
                    <Slice value="s.x/2" axis="x"/>
                    <Plot title="slice at half of x extension" time-step="-1">
                        <Style style="lines" line-width="3.0"/>
                        <Terminal terminal="png"/>
                            <Symbol symbol-ref="l.y"/>
                            <Symbol symbol-ref="u"/>
                            <Symbol symbol-ref="v"/>
            <Logger time-step="2">
                    <Symbol symbol-ref="u"/>
                    <TextOutput file-format="csv"/>
                    <SurfacePlot time-step="2">
                            <Symbol symbol-ref="u"/>
                        <Terminal terminal="png"/>


    Files associated with this model: