HomeChemistry & MaterialsReaction-Diffusion Simulator

🧪 Reaction-Diffusion Simulator

Simulate reaction-diffusion systems and watch Turing patterns emerge spontaneously: stripes, spots, spirals, and labyrinthine structures. Explore the mathematics of morphogenesis and biological pattern formation.

Chemistry & Materials2DModerate60 FPS
reaction-diffusion-simulator ↗ Open standalone

The Mathematics of Pattern Formation

🤖 Turing's 1952 Morphogenesis Paper

Alan Turing — best known for his work on computation — published "The Chemical Basis of Morphogenesis" in 1952, proposing that biological patterns form via diffusion-driven instability. Two substances called the activator and inhibitor react and diffuse at different rates. If the inhibitor diffuses much faster than the activator, a spatially homogeneous mixture becomes unstable and spontaneously forms patterns. Turing's prediction was vindicated in the 1990s when the predicted chemical waves were directly observed in the Belousov-Zhabotinsky reaction and in growing zebrafish fins.

💡 The Gray-Scott Equations

This simulator solves the Gray-Scott model — a two-chemical reaction-diffusion system:

∂u/∂t = Du∇²u − uv² + f(1−u)
∂v/∂t = Dv∇²v + uv² − (f+k)v

u is the activator, v the inhibitor. The term uv² is the autocatalytic reaction. f (feed rate) replenishes activator; k (kill rate) removes inhibitor. Du>Dv globally, but specific f-k values determine which patterns emerge.

🌈 Patterns in Nature

  • Animal coats: Leopard spots, jaguar rosettes, zebra stripes, cheetah spots — all modelled by reaction-diffusion with different f-k values
  • Marine biology: Seashell pigmentation patterns (Conus shells), coral branching morphology
  • Developmental biology: Digit spacing in limb development; feather bud positioning in bird embryos
  • Neuroscience: Cortical column formation and ocular dominance stripes
  • Chemistry: Belousov-Zhabotinsky reaction spirals; CIMA reaction (chlorine dioxide-iodine-malonic acid)

📈 Exploring the f-k Phase Diagram

The f-k parameter space contains dozens of distinct pattern regimes. Key regions:

  • Spots (mitosis): f≈0.028, k≈0.053 — spots replicate like cell division
  • Stripes: f≈0.035, k≈0.065 — parallel running stripe patterns
  • Coral: f≈0.055, k≈0.062 — branching dendritic growth
  • Solitons: f≈0.025, k≈0.057 — isolated bullet-like moving spots
  • Labyrinthine: f≈0.04, k≈0.058 — maze-like winding channels

Key Equations & Parameters

SymbolNameMeaningTypical Range
uActivatorChemical that promotes own production and v's0 → 1
vInhibitorChemical that suppresses u, diffuses faster0 → 1
DuActivator diffusivityHow fast u spreads spatially0.2 (fixed)
DvInhibitor diffusivityHow fast v spreads (must be < Du)0.1 (fixed)
fFeed rateRate at which u is supplied to the system0.010–0.080
kKill rateRate at which v is removed from the system0.030–0.070
uv²Autocatalytic termu is consumed and v doubles — key non-linearity
∇²uLaplacianSpatial second derivative — measures local concentration curvature

Curriculum Links

LevelSubjectTopic
GCSE BiologyCell TransportDiffusion; concentration gradients; osmosis
A-Level BiologyGenetics & DevelopmentMorphogenesis; gene expression; developmental signals
A-Level Maths / FurtherDifferential EquationsPDEs; Laplacian; reaction kinetics; numerical methods
IB HL BiologyGenetics (Topic 3)Developmental biology; pattern formation; embryology
AP BiologyCell CommunicationChemical signalling; morphogen gradients; developmental regulation
UniversityMathematical BiologyTuring instability; pattern selection; weakly nonlinear analysis

🔒 Unlock Premium Features

Unlock HD PNG export, side-by-side parameter comparison, custom Du/Dv control, save favourite f-k combinations, and all 32 simulations with MySimulator Premium.

⚙ Under the hood

This simulation explores the principles of reaction-diffusion systems and Turing patterns. Users can adjust parameters to observe how these patterns emerge from simple chemical reactions.

Reaction-DiffusionTuring PatternsChemical Reactions

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)