A simulation of the BTW sandpile model.
Frame: 0
Jump to Frame:
Frame Rate:

Instructions:
Pause the simulation with ||. Change the simulation speed by hitting the 1x, 2x, 5x, 10x, or 100x buttons. Use the text box to enter a frame number to jump to (large numbers, e.g. >1,000,000 may take a while to compute). Try 30,000! The simulation is paused after a jump, so hit 1x to resume.

Details:
This is a simulation of the Bak-Tang-Weisenfeld (BTW) model. Conceived of as a model for sand near the angle of repose, each cell in the grid is coloured by how many grains of sand are at that location. Sand is added to the middle cell of the simulation. When there's more than four grains in a cell, that cell ``topples'', spilling its contents to its nearest neighbours. This can trigger those neighbours to topple, and so on, creating a cascading avalanche. These avalanches are scale-free, with a fractal dimension less than two.

This makes the BTW model one of the simplest examples of self-organized criticality, because the appearance of this scale-free behaviour is robust against many changes to the model details. Self-organization like this is postulated to explain the robust appearance of (scale-free) complexity in systems as diverse as earthquakes, wildfires, stock markets, etc.