Shallow water equations (source code)

= Shallow water equations
{wiki}

The <shallow water equations> describe a free-surface <fluid> layer whose depth is small compared with its horizontal variation scale. The leading approximation is <hydrostatic pressure>, with a depth-averaged horizontal <velocity> $\mathbf u$. For a fixed bed elevation $b$, <water depth> $h$ and uniform <gravitational acceleration> $g$, an inviscid nonrotating model is
$$
\partial_t h+\nabla\cdot(h\mathbf u)=0,\qquad
\partial_t\mathbf u+(\mathbf u\cdot\nabla)\mathbf u=-g\nabla(h+b),
$$
where the <gradient> is horizontal. The first equation conserves water <volume (thermodynamics)>; the second relates acceleration to the free-surface slope. Additional physical effects require additional terms or a different approximation.

Linearizing about still water of uniform depth $h_0$ gives long-wave <speed> $\sqrt{gh_0}$. A tank experiment can therefore compare the travel times of small disturbances at different depths. The approximation predicts faster propagation in deeper water, but requires a <wavelength> large compared with the depth; it does not apply indiscriminately to every short ripple.