Low grain count Near-critical cell Avalanche size histogram (log-log)

Sandpile Avalanches: Self-Organized Criticality (2D)

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.