For the code in this thread you need an existing heightmap. Then the code simulates thermal erosion on this heightmap. Thermal erosion simulates material braking loose and sliding down slopes to pile up at the bottom.