Lake Regime Shift: Nutrient Loading & Hysteresis (2D)
Interactive 2D shallow-lake model: drag nutrient loading up and down and watch the ecosystem flip between a clear, vegetated state and a turbid, algae-choked state — with hysteresis, so recovery needs far less loading than the collapse did.
A shallow lake is one of ecology's clearest examples of an ecosystem with two alternative stable states. This 2D simulator runs the same Carpenter–Ludwig–Brock phosphorus model as the 3D version in real time — a single differential equation combining external nutrient loading, natural flushing, and a sigmoid sediment-recycling feedback — and renders the result as a top-down canvas lake whose water colour, algae bloom density and underwater vegetation respond to the live phosphorus level. Drag the loading slider up and the lake stays clear far longer than intuition suggests, then flips abruptly to a turbid, algae-choked state once a tipping point is crossed; drag it back down and the lake stubbornly stays turbid until loading falls well below where the collapse happened. A live phase-plane plot traces this S-shaped equilibrium curve and the hysteresis loop as you (or the auto-ramp) move through it, and the panel reports the measured forward and backward tipping points so you can confirm they differ.
A live 3D shallow-lake model where raising external nutrient loading flips the ecosystem abruptly from a clear, vegetated state to a turbid algae bloom — and lowering it back doesn't reverse the flip at the same point, tracing a real hysteresis loop.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install