Sandbox to test lava flow model on a flat surface
Lava flow models attempt to simulate the flow of lava away from a vent where lava issues from the ground. One common hazards question is: how much area will be covered by a lava flow of a given volume? The answer depends on the assumptions about how lava spreads out when it erupts from a volcanic vent.
This sketch depicts a lava flow from a vent on a perfectly flat surface. Assume each circle represents a 100 x 100 m area (the space between the circles makes it easier to see how the code works). Watch how the lava spreads by pressing any key to erupt a bit of new lava from the vent.
Pretty cool, eh? Code by C. Connor