This page simulates 2D shallow-water waves on a regular grid.
h
State is (h, u, v) with explicit finite differences, gravity, and damping. Boundaries are reflective with extra damping near the edges for stability.
(h, u, v)
Click in the canvas to inject a local disturbance.