Skip to content

ashwyan/landscape-erosion-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

landscape-erosion-simulation

Landscape Evolution & Erosion Simulation

Project Overview

This project is a numerical simulation that models how terrain changes over thousands of years. It uses physics-based rules to show how mountains erode, how sediment moves, and how islands eventually merge or disappear as ocean levels change.

The simulation uses two main forces:

  1. Hydraulic Erosion: Water flowing downhill and carving out paths.
  2. Soil Diffusion: The natural "smoothing" of the earth over time.

How it Works (Like I'm Five)

Imagine you build a big, pointy sandcastle. If you pour water on it, the water carries the sand away and makes the castle look smoother and flatter. My code is a robot that does the math to show exactly how that happens to a whole island or mountain range over a very long time!

Repository Contents

  • landscape_evolution_simulation.ipynb: The main interface where you set the parameters (like how fast the water flows) and run the simulation.
  • landscapeWithOcean.py: The "engine" of the project. This file contains the complex math for tracking water flow, finding pools, and calculating ocean levels.

Requirements

To run this simulation, you will need:

  • Python 3
  • NumPy (for calculations)
  • Matplotlib (for 3D plotting and animations)
  • FFmpeg (optional, for saving the simulation as a video)

Usage

  1. Clone this repository.
  2. Open the Jupyter Notebook.
  3. Run the cells to see the landscape evolve from a sharp mountain range into a weathered island system.

About

A numerical simulation modeling landscape evolution, erosion, and ocean level interaction over time using Python and NumPy.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors