Frequently Asked Questions
What is the Abelian Sandpile model?
The Abelian Sandpile model (BTW model) is a cellular automaton introduced by Bak, Tang, and Wiesenfeld in 1987. Grains are added to a grid; when any cell accumulates 4 or more grains it topples, distributing one grain to each of its four neighbours. This process repeats until the configuration is stable (every cell has fewer than 4 grains).
What is self-organised criticality (SOC)?
Self-organised criticality is a property of dynamical systems that automatically evolve toward a critical state — a boundary between order and chaos — without any external tuning of parameters. At criticality, disturbances (avalanches) of all sizes occur with frequencies following a power law: P(s) ~ s−τ.
Why is this called an "Abelian" sandpile?
The model is called Abelian because the final stable configuration is independent of the order in which topplings are performed. Whether you process unstable cells left-to-right or in any other sequence, you always reach the same result. This commutative (Abelian) property makes the model mathematically tractable and analytically beautiful.
What does the toppling rule look like mathematically?
For a cell at (i,j) with height h[i][j] ≥ 4: h[i][j] −= 4; h[i±1][j] += 1; h[i][j±1] += 1. Grains that topple off the boundary are lost (open boundary conditions). This rule is applied repeatedly until every cell has h < 4, marking the end of one avalanche.
What is a power law, and why does it matter here?
A power law P(s) ∝ s−τ means large events are rare but not impossibly so — there is no characteristic scale. In the 2D sandpile, avalanche sizes follow a power law with exponent τ ≈ 1.2. This scale-free behaviour is the fingerprint of criticality and appears in nature: earthquakes (Gutenberg-Richter law), solar flares, and neural cascades.
How does the simulation colour-code the grid?
Cells are coloured by their grain height: 0 grains → near-black; 1 grain → dark blue-grey (#37474f); 2 grains → steel blue (#546e7a); 3 grains → bright teal (#78909c). Cells that topple flash brightly, making the propagating avalanche visually striking against the background.
What real-world phenomena exhibit self-organised criticality?
SOC has been proposed for earthquakes (Gutenberg-Richter law), forest fires, neuronal avalanches in the brain, stock market fluctuations, solar flare intensities, and biological evolution (punctuated equilibrium). The sandpile is the canonical toy model illustrating these universal features without fine-tuning any parameter.
What happens at the edges of the grid?
The grid uses open (dissipative) boundary conditions. When an edge cell topples, grains that would leave the grid are destroyed. This dissipation is essential: it allows the system to reach a steady state where the average grain addition rate equals the average grain loss rate, sustaining the critical condition indefinitely.
How large can avalanches get?
In the critical state, avalanche sizes range from a single toppling (1 cell) up to O(N²) — essentially the entire grid. Large avalanches are rare but inevitable. The power-law distribution means there is no typical size: doubling the threshold for "large" reduces frequency by a constant factor (the hallmark of scale invariance).
Can I interact with the sandpile simulation?
Yes! Click or tap anywhere on the canvas to add grains at that location and trigger a localised avalanche. Use the left panel to change grid size (resets the simulation), drop rate, and simulation speed. The right panel shows the live avalanche-size histogram; watch it approach a straight line on the log-log plot as the critical state develops.