Skip to content

brtholomy/sand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sand

Go implementation of the original sandpile experiment showing Self-Organized Criticality (SOC).

To run the simulation with a grid of 50x50 and 1M iterations:

go run sand.go --size 50 --iters 1_000_000 --chart

chart

End result of a 500 width pile after 100k iterations:

go run sand.go -s 500 -i 100_000 --pixel

pile

End result of a 200 width pile after 4M iterations with height of 12:

go run sand.go -x 12 -s 200 -i 4_000_000 --pixel

pile

see all options:

go run sand.go --help

About

self-organized criticality in the sandpile

Topics

Resources

Stars

Watchers

Forks

Languages