River Simulator
Let it rain on a sand mountain, watch a river carve its own bed, then try to stop it with rocks and dams.
A bare sand mountain
Let it rain and a river digs its own bed down to the sea. Then get in its way.
Weather plan
Click a day to change it, drag to paint severalYour attempts
Nothing stands in the river's way yet. Drop a boulder or draw a dam.
The river's diary
Nothing has happened yet.
How the model works
Every cell of the 200 by 200 grid holds sand and water. One step does the following; a thousand steps make a day.
- Rain puts a thin film of water on every cell, a little more on the mountain. Sun and seepage take some of it away.
- Water moves to lower neighbours through virtual pipes: the steeper the water surface, the faster. The bed slows it down.
- Fast water on a slope can carry sand. Below its capacity it digs, above it the load settles.
- The load travels with the current, so sand dug out of the mountain ends up as a delta in the sea.
- Banks steeper than sand can stand slide down. Wet sand stands less steep, so undercut banks collapse.
- Boulders never erode. Dam soil erodes four times slower than sand, until water runs over the crest.
Things to try
- Drop a boulder right into the young channel and watch the water split around it.
- Draw a dam across the whole valley before the storm on day 26.
- Paint days 3 to 5 as storm days in the plan and watch the flood carve the bed.
- Pick the lake basin and see the river fill the bowl before it spills over the lip.
- Turn the table low over the water and follow the delta growing into the sea.
The scale, honestly: the units are not metres and a day is not 24 hours. Rain and erosion are sped up enormously so a river can form, be dammed and break the dam within 30 days. How the water behaves is the model's physics; the clock is not.
About this tool
Real flowing water
The water follows the virtual-pipe model of Mei, Decaudin and Hu (2007): every cell trades water with its four neighbours, driven by the height of the water surface. Nothing is scripted, the channels form by themselves.
Why one river wins
A deeper channel gathers more water, more water flows faster, and faster water digs deeper. This loop turns a sheet of rain into rills and the rills into one river.
The same river as the video
This is the simulation the PixelCursor video was filmed with, step for step. The same seed and the same actions always give the same river, which is how the replay works.
Learn more
- Mei, Decaudin, Hu 2007: Fast Hydraulic Erosion Simulation and Visualization on GPUdoi.org(opens in a new tab)
- Erosionen.wikipedia.org(opens in a new tab)
- USGS: the flood from the Teton Dam failure, 1976doi.org(opens in a new tab)
- NASA Earth Observatory: the Kosi leaves its bed, 2008science.nasa.gov(opens in a new tab)
Keyboard
- Space
- Let time run or pause it
- RDEH
- Boulder, dam, eraser, view
- V
- Change the view
- []
- Turn the table
- +-
- Zoom in and out
- N
- A new terrain
- ↑↓←→↵
- Move the mark and use the tool (stage focused)