Home▸Articles▸Chemistry & Materials

2D Reaction-Diffusion: Patterns in Chemistry and Biology

The Gray-Scott model demonstrates how simple chemical reactions can lead to complex spatial patterns.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

What is Reaction-Diffusion?

Reaction-diffusion systems describe how two or more substances interact and diffuse through space. These interactions can lead to the formation of complex spatial patterns due to the interplay between reaction kinetics and diffusion rates.

The Gray-Scott model, specifically, simulates a system where two chemical species A and B react and diffuse in a medium, leading to the emergence of various stable or transient patterns.

How Does It Work?

In the Gray-Scott model, the reaction between substances A and B is governed by the equations: ΔA = f * (1 - A) * B - k * A + DΦ^2A, where ΔA represents the change in concentration of substance A over time, f is the feed rate, k is the kill rate, and DΦ^2A is the Laplacian diffusion term.

The diffusion terms are calculated using a 9-point stencil approximation on a discrete grid, reflecting how substances spread out from high to low concentrations.

live demo · related simulation● LIVE

Why Does It Matter?

Understanding reaction-diffusion systems helps in modeling various natural phenomena such as the formation of patterns in animal coats, skin pigmentation, and even the growth of bacterial colonies.

These models are also crucial for applications like chemical engineering, where they can predict the behavior of complex mixtures under different conditions.

Real-World Examples

The Gray-Scott model has been used to explain the patterns observed in the skin pigmentation of animals. For instance, it can simulate how stripes and spots form on a tiger or zebra.

In biology, reaction-diffusion systems are also relevant for understanding the development of organs during embryogenesis.

Frequently asked questions

What does the feed rate (f) control in the Gray-Scott model?

The feed rate (f) controls how much substance B is continuously supplied to the system, which can significantly influence the pattern formation.

How do changes in the kill rate (k) affect the patterns generated by the Gray-Scott model?

Increasing the kill rate (k) leads to a faster consumption of substance B, which can change the stability and complexity of the resulting patterns.

Why is the 9-point stencil important in simulating reaction-diffusion systems?

The 9-point stencil provides a more accurate approximation of diffusion on a discrete grid compared to simpler methods, allowing for finer details in pattern formation.

Can reaction-diffusion models be used outside of chemistry and biology?

Yes, these models have applications in fields such as ecology, where they can simulate the spread of invasive species or the distribution of nutrients in a habitat.

Try it live

Everything above runs in your browser — open 2D Reaction-Diffusion (Gray-Scott) and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open 2D Reaction-Diffusion (Gray-Scott) simulation

What did you find?

Add reproduction steps (optional)