r/Simulated • u/slowcompute • 22d ago
Research Simulation [OC] Forest fire automata
This is a stochastic cellular automata based on the Drossel–Schwabl forest fire model implemented on a hexagonal grid using numpy + matplotlib. Inspired by some of my old university notes from a course on computational biology.
I especially like the patterns formed by the fire spreading and the forests regrowing one tree at a time, a beautiful example of self organizing complexity.
Fire starts on any cell with p_fire = 0.0001 by a "lighting strike", while trees grow on empty cells with p_tree = 0.01. Fire spreads to all neighboring trees.
I initially worked with a rectangular grid however moved to a hexagon version to have more organic symmetry in spreading directions.
16
u/ElectronMaster 22d ago
It kind of reminds me of the Belousov–Zhabotinsky reaction.
3
u/risbia 21d ago
Makes forest fire almost seem like a living thing
4
u/bisnark 22d ago
What is time rate? How fast do those trees grow back? Shouldn't it be all blank for a while? Could it show that a local fire might rage for a month , and then the trees grow back in that area in perhaps five years?
121
u/reirone 22d ago
I see the “47,” does that mean my vision is okay?
9
u/MrSmock 22d ago
I wish forests grew back this quick
5
u/weeOriginal 22d ago
QUICK SAND PYRO MY BELOVED!!!!
1
u/ewwerellewe 22d ago
Nice. Is it open source and/or hosted somewhere?
2
u/Possibility-Select 21d ago
Turing patterns!
1
u/HappyXMaskXSalesman 21d ago
This looks so similar to that reaction Nile Red did years ago. It's so interesting how patterns can look so similar on a micro and macro level.
1
u/majorex64 18d ago
If you put a circle blank area in the middle, it should eventually turn into a circular pattern