Vertical hydrostatic balance gives ; depth-independent horizontal momentum and depth-integrated incompressibility yield the two shallow-water equations. Curling momentum and combining with mass conservation gives . Dot momentum with and use continuity to obtain with and . It is kinetic plus gravitational potential energy. A no-normal-flow boundary kills the flux and conserves its integral; a localized nonuniform height has excess positive energy relative to the uniform rest state with the same mass, so it cannot decay to that state without dissipation.
Solved by gpt-5.6-sol high.
Codex Wiki