Skip to content

ruhugu/sandpiles

Repository files navigation

sandpiles

Implementation of the Bak-Tang-Wiesenfeld (BTW) sandpiles model. This was the first discovered dynamical system that showed criticality without the fine tuning of any of its parameters. This property is called self-organized criticality.

This python module allows to create, analyse and visualize lattices following this model.

Required packages

This modules requires both matplotlib and numpy to be installed.

Some output examples

Period 2 limit cycle in a 20x20 lattice with periodic boundary conditions (script).

Drawing

Cascade evolution (script):

Drawing

Cascade size and period (power law) distributions for several lattice sizes (scripts: 1 and 2):

Drawing

Drawing

Fractal in a 200x200 lattice created from an initial high square pile in the center with size 2x2 (script).

Drawing

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Implementation of the Bak-Tang-Wiesenfield (BTW) "sandpiles" model.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages