Home▸Everyday Physics▸Sandpile Avalanches: Self-Organized Criticality (2D)

🏜️ Sandpile Avalanches: Self-Organized Criticality (2D)

2D Bak-Tang-Wiesenfeld sandpile automaton: grains pile up until local slopes exceed a critical threshold and topple into neighbors, sometimes cascading into large avalanches. A live log-log histogram tracks the power-law-ish avalanche-size distribution that defines self-organized criticality.

Everyday Physics2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-sand-collapse-simulator ↗ Open standalone

This 2D companion isolates the collapse mechanic behind the 3D sand pile — not a pouring animation, but the real Bak–Tang–Wiesenfeld cellular automaton that produces self-organized criticality. Grains accumulate cell by cell on a grid; once a cell's local count exceeds an adjustable critical threshold it topples into its neighbors, and that can cascade into avalanches of wildly different sizes. A live log-log histogram of avalanche sizes, a running power-law slope estimate, and controls for the toppling threshold, grid size, perturbation strength and background drop rate make the statistics of avalanche/collapse dynamics directly explorable instead of merely watched.

⚙ Under the hood

2D Bak-Tang-Wiesenfeld sandpile automaton with an adjustable critical threshold, live avalanche-size histogram and running power-law slope estimate, driven by background grain drops and click-triggered perturbations.

sandpile modelself-organized criticalitycellular automatonavalanche dynamicspower lawgranular collapse

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

What did you find?

Add reproduction steps (optional)