Introduction
The Gray-Scott system is a reaction-diffusion system.
This means that it models a process that consists of a reaction and diffusion.
In the case of the Gray-Scott model that reaction is a chemical reaction between two substances and , both of which diffuse over time.
During the reaction gets used up, while is produced. The densities of the substances and are represented in the simulation.
The system is characterised by two parameters: is the rate at which is replenished, and controls the rate at which is removed from the system.
Varying these parameters leads to a wide range of interesting patterns, some of which look quite familiar.
Overview
The Gray-Scott system models the chemical reaction
This reaction consumes and produces . Therefore, the amount of both substances needs to be controlled to maintain the reaction.
This is done by adding at the "feed rate" and removing at the "kill rate" .
The removal of can also be described by another chemical reaction:
For this reaction is an inert product, meaning it doesn't react and therefore does not contribute to our observations [1].
In this case the Parameter controls the rate of the second reaction.
Both substances diffuse over time at the diffusion rates and .
In this simulation is double .
This is simply to ensure that patterns can actually form, as they also depend on the diffusion rates.
You can control the feed rate and the kill rate .
Most possible combinations of the two will not lead to any patterns, which is why we have given you a number of presets that lead to interesting results.
Simply choose one of these presets and observe what happens.
Of course, you can also experiment yourself by using the sliders for and .
To the top
Theory
The Gray-Scott system is defined by two equations that describe the behaviour of two reacting substances:
The variables in these equations and are the concentrations of the two reacting substances and .
On the left-hand side of each equation is the time derivative of one of these concentrations, describing the rate at which it changes.
The right-hand sides of the equations both contain three separate terms . The first describes the reaction between the two substances.
Since one and two react, the corresponding term includes to the power of one and to the power of two: .
As gets consumed by the reaction, the term has a negative sign in the first equation. In the second equation it has a positive sign, as is produced in the reaction.
The second term of the first equation describes the rate at which is replenished externally.
This is necessary, as would otherwise simply be used up. The feed rate is given by the parameter .
is multiplied by to ensure that is replenished at a rate dependent on the current concentration, which never exceeds .
does not need to be replenished, since it is produced in the reaction. Instead, it needs to be removed in order maintain the reaction.
The rate of removal, the "kill rate", is controlled by the parameter .
To remove faster than is added, is added to and multiplied by , since the removal of is also supposed to be dependent on its concentration.
The last term in both equations describes the diffusion of and , respectively.
Phase diagram of the Gray-Scott system.[1]
As you can see in the simulation above, there is a variety of patterns that can form for different values for and .
However, most possible combinations of values for those parameters lead to rather boring results:
For combinations of and on one side of a certain threshold the screen is completely white, indicating that it is completely filled with substance .
There is no substance left to react with, and so the system is in equilibrium.
The system will always return to this state.
For combinations of and on the other side of this threshold the screen completely fills with black.
All of the added substance reacts immediately, so the area is almost completely filled with substance .
In this case the system is also in equilibrium, and will always return to this state.
The region of interest of the simulation is close to this threshold.
The system changes from one stable state to the other.
The system potentially has three fixed points: a trivial fixed point at and , and two non-trivial fixed points .
Which ones of these actually exists depends on the parameters and .
The trivial fixed point always exists, since the reaction cannot take place without .
The two non-trivial fixed points exist beyond a bifurcation line at (the solid line in the figure).
One of these is always a saddle, meaning it is stable in one direction and unstable in the other.
The other one changes its stability at the dotted line. [2]
These changes in number and stability of fixed points are what creates the patterns.
To the top
Example Pictures
Some snapshots of the patterns after they filled the whole simulation-frame.
Flower-pattern: =0.055 ; =0.062
Mazes-pattern: =0.029 ; =0.057
Mitosis-pattern: =0.028 ; =0.062
Solitons-pattern: =0.03 ; =0.06