🌱

Ecology & Conservation Biology

Food webs, population cycles, epidemic spread and evolutionary pressure — the dynamics of life modelled from individual agents to whole ecosystems.

8 simulations Agent-Based · ODE Lotka–Volterra · SEIR · Genetic

Category Simulations

Open a simulation — it runs right in your browser

🌿
New★★☆ Moderate
Trophic Cascade — Food Web & Population Dynamics
3-level Lotka–Volterra ODE model: plants → herbivores → carnivores. Remove the apex predator with one click and watch herbivore populations explode while plant biomass collapses — the hallmark trophic cascade.
Lotka–VolterraFood WebODE
🐺
Popular ★★☆ Moderate
Prey–Predator (Lotka–Volterra)
Classic coupled ODE simulation of oscillating rabbit and fox populations. Adjust birth rates, predation efficiency and carrying capacity to explore stability and collapse.
ODE Lotka–Volterra Population Dynamics
🐇
★☆☆ Beginner New
Fox & Rabbits — Grid World
Agent-based ecosystem on a 2D grid: rabbits graze grass, foxes hunt rabbits, both reproduce and age. Emergent boom-and-bust cycles without any global equations.
Agent-Based Canvas 2D Emergence
🦠
★★☆ Moderate Popular
Disease Spread — SEIR
SEIR compartmental model with agent-based spread on a 2D map. Adjust R₀, vaccine rollout speed and social-distancing to see epidemic curves in real time.
SEIR Agent-Based Epidemiology
📈
★☆☆ Beginner
SIR Epidemic Model
Classic Susceptible–Infected–Recovered ODE model. Charts show epidemic flattening as you tune transmission rate β, recovery γ and initial immune fraction.
ODE SIR Chart.js
🐜
★★☆ Moderate
Ant Colony — Pheromone Trails
Thousands of ants find shortest paths to food using pheromone stigmergy. Emergent foraging behaviour from three simple rules: wander, follow scent, deposit trail.
Agent-Based Pheromones Swarm Intelligence
🦋
★☆☆ Beginner
Butterflies & Flowers
Pollinators seeking flowers, resting and flying on a windy meadow. Simple agent rules produce realistic-looking foraging patterns and flower visit frequencies.
Three.js Pollination Agent-Based
🌿
★★☆ Moderate
L-Systems — Procedural Plants
Lindenmayer grammars grow branching plant structures: ferns, trees, algae, seaweed. Edit production rules live and watch the morphology evolve in 2D and 3D.
L-Systems Turtle Graphics Morphogenesis
🧬
★★★ Advanced
Genetic Algorithm
Evolution in action: a population of solutions competing to solve the Travelling Salesman Problem. Selection, crossover and mutation improve fitness generation by generation.
Genetic Algorithm Evolution TSP
🌿
New ★★☆ Moderate
Food Web Simulator
Six-species ecosystem driven by extended Lotka-Volterra equations. Toggle plants, herbivores and carnivores on/off. Watch trophic cascades, competitive exclusion and predator collapse unfold.
Lotka-Volterra Predator-Prey Trophic Cascade
🐺
New ★★☆ Moderate
Wolf–Sheep Predation
Agent-based predator-prey simulation on a 50×50 grid. Wolves hunt sheep, sheep graze grass. Watch population cycles, boom-and-bust dynamics and spatial pattern formation emerge in real time.
Agent-Based Predator-Prey Grid

Learning Resources

Articles and tutorials about the algorithms in this category

About Ecology & Ecosystem Simulations

Predator-prey dynamics, food webs, and population ecology — modelled

Ecology and ecosystem simulations model the interactions between organisms and their environment. Lotka–Volterra predator-prey simulations show the coupled oscillations of rabbit and fox populations, producing the characteristic population cycles observed in lynx-hare historical records. Agent-based ecosystem models place herbivores and carnivores on a shared landscape with finite food resources, generating emergent territory, migration, and extinction dynamics.

Food-web simulations model energy flow through trophic levels, demonstrating the ten-percent-rule energy loss at each step and the consequences of removing keystone species. Dispersal and competition models show how niche partitioning and habitat fragmentation affect biodiversity. These are the same computational approaches used in conservation biology, fisheries management, and the modelling of coral reef decline under climate change.

Ecological simulations connect individual behaviour to population and ecosystem dynamics. The same mathematics that models fox-rabbit cycles in a meadow also describes lynx-hare oscillations in the Canadian boreal forest, boom-bust cycles in insect pest populations, and the dynamics of marine fisheries under harvesting pressure. Understanding these models is essential for wildlife conservation, sustainable resource management, and climate change impact assessment.

Key Concepts

Topics and algorithms you'll explore in this category

Lotka-VolterraPrey-predator population oscillation equations
Carrying CapacityMaximum sustainable population for a habitat
Food WebTrophic level energy transfer efficiency
SuccessionPrimary and secondary ecological succession stages
Biodiversity IndexShannon entropy as a measure of species diversity
Habitat FragmentationEdge effects and island biogeography theory

Frequently Asked Questions

Common questions about this simulation category

Why do predator and prey populations oscillate?
The Lotka-Volterra equations produce periodic oscillations: prey grow exponentially when predators are rare, predators increase as food becomes abundant, prey decline under predation pressure, and predators decline as food becomes scarce — completing the cycle. Real populations also show this pattern but with added stochasticity.
What is the carrying capacity simulation?
Carrying capacity K appears in the logistic growth equation: dN/dt = rN(1 − N/K). As population N approaches K, growth rate slows to zero. The simulation shows how environmental carrying capacity determines population equilibrium and how disturbances cause recovery trajectories.
How does disease spread relate to ecology?
The SIR (Susceptible-Infected-Recovered) model from epidemiology is mathematically identical to predator-prey dynamics. 'Infection' spreads like a predator consuming prey (susceptible individuals). The basic reproduction number R₀ = β/γ determines whether an outbreak grows or declines.

Other Categories