Skip to main content
Sandbox Physics

Shallow-Water Waves & Dam Break

Does a dam-break flood front move at the speed of small water waves? No. Small-wave speed depends on local depth, while a dam-break front is nonlinear. For an instantaneous release onto a flat dry bed, before boundaries matter, the ideal front moves at twice the reservoir’s initial small-wave speed. A gradual gate or bed ridge needs its own solution.

Open a gate, launch a pulse, hold a still lake over a ridge or look at a hydraulic jump. Scrub through the finite-volume solution, compare it with the exact dam-break reference and refine the mesh. The water in the flume plus what has flowed out through the ends should stay constant.

Interactive modelShallow-Water Waves & Dam Break
Open channel width100 %100\,\mathrm{\%}
Gate impulse on the water0 N s0\,\mathrm{N\,s}
Exact-reference flood-front speed4.17 m/s4.17\,\mathrm{m/s}
Initial deep-side small-wave speed4.43 m/s4.43\,\mathrm{m/s}
Initial receiving-side small-wave speed2.21 m/s2.21\,\mathrm{m/s}
Solution time2 s2\,\mathrm{s}
Gauge depth0.832 m0.832\,\mathrm{m}
Depth-mean velocity1.4 m/s1.4\,\mathrm{m/s}
Discharge per width1.16 m2/s1.16\,\mathrm{m^2/s}
Local long-wave speed2.86 m/s2.86\,\mathrm{m/s}
Gauge Froude number0.4890.489
Stored water volume600 m3600\,\mathrm{m^3}
Net exported volume0 m30\,\mathrm{m^3}
Maximum Courant number0.40.4
Cell width0.5 m0.5\,\mathrm{m}
Solver steps5454
Mean depth error against exact solution0.0178 m0.0178\,\mathrm{m}
Volume integrated from raw scan600 m3600\,\mathrm{m^3}
Recorded stations160160
Numerical balance bound1×10−11 m31\times10^{-11}\,\mathrm{m^3}
Model stateNumerical solution\text{Numerical solution}

Waves, wetting fronts and conservative numerics

BackgroundRemoving a gate sends a rarefaction into deep water and a shock into a wet bed, or a moving front onto a dry bed.

Why it mattersA numerical wave can conserve water while smearing the front. Compare its depth error with an exact reference and repeat at a finer grid.

Focus question
Does the flood on screen obey the conservation laws?
One-sentence intuition
Use the exact flat-bed reference for instantaneous opening, before waves reach the ends. Saved simulated scans retain their own acquisition time while the replay moves.

Core mathematical model

Conservation of depth and momentum

ht+(hu)x=0(hu)t+(hu2+gh22)x=−ghbx\begin{aligned}h_t+(hu)_x&=0\\(hu)_t+\left(hu^2+\frac{gh^2}{2}\right)_x&=-ghb_x\end{aligned}

The flow is hydrostatic and depth-averaged in a channel of constant width. The bed enters as a source term in the momentum equation.

Local speeds of small waves

λ±=u±gh\lambda_\pm=u\pm\sqrt{gh}

A flood shock does not in general travel like a small long wave. The front over a dry bed moves at yet another speed.

Froude number

Fr=∣u∣gh\mathrm{Fr}=\frac{|u|}{\sqrt{gh}}

In subcritical flow, signals can travel both upstream and downstream. Supercritical flow carries both families of signals downstream. A dry cell has no Froude number.

Volume conservation with flow through the ends

V=W∑ihiΔxV(t)+∫0tW(qR−qL) ds=V(0)\begin{aligned}V&=W\sum_i h_i\Delta x\\V(t)+\int_0^t W(q_R-q_L)\,ds&=V(0)\end{aligned}

Water leaving through the ends can change the volume in the flume without breaking conservation. Scanning the raw cell depths gives a separate estimate of the integral.

Adaptive step and grid error

CFL=ΔtΔxmax⁡i(∣ui∣+ghi)≤0.4Eh=1N∑i∣hi−hexact(xi,t)∣\begin{aligned}\mathrm{CFL}&=\frac{\Delta t}{\Delta x}\max_i\left(|u_i|+\sqrt{gh_i}\right)\leq0.4\\E_h&=\frac1N\sum_i|h_i-h_{\mathrm{exact}}(x_i,t)|\end{aligned}

The first-order scheme smears shocks out. The mean depth error is available only for a flat-bed dam break, before the waves reach the ends.

Stationary hydraulic jump

qL=qR=qq2hL+ghL22=q2hR+ghR22\begin{aligned}q_L&=q_R=q\\\frac{q^2}{h_L}+\frac{gh_L^2}{2}&=\frac{q^2}{h_R}+\frac{gh_R^2}{2}\end{aligned}

The preset balances the mass and momentum fluxes across a depth increase that satisfies the entropy condition. The numerical solution smears the jump over several cells.

An opening protocol changes the boundary

a(t)=clip⁡((t−td)/Tg,0,1)Fh=aFhopenFm±=aFmopen,±+(1−a)Fmwall,±\begin{aligned}a(t)&=\operatorname{clip}((t-t_d)/T_g,0,1)\\F_h&=aF_h^{\mathrm{open}}\\F_m^\pm&=aF_m^{\mathrm{open},\pm}\\&\quad+(1-a)F_m^{\mathrm{wall},\pm}\end{aligned}

The opening is a fraction of full-height channel width. A positive duration gives a linear width ramp; zero duration is an instantaneous release after the selected delay. Open and closed strips share one mass flux, while separate wall reactions act on each side. This is a one-dimensional area-weighted boundary model, not a resolved raised sluice or lateral jet. Exact dam references are withheld for gradual opening.

Common difficulties

A reference curve is not a measurement

Typical misconceptionThe reference curve on screen is a measured result.

Better mental modelOnly the sensor channels you record count as observations, and changing the setup clears them. The perturbations are deterministic, so they give no statistical certification.

Run the experiment

  1. 01

    Release the gate

    Compare the wet-bed and dry-bed dam presets, and move the time slider.

    What to observe: The rarefaction, the shock and the dry front all come from the same balance laws.
  2. 02

    Refine and compare

    Open Geometry and acquisition, then double the cell count at the same initial state and time.

    What to observe: The exact reference is unchanged; the depth-difference plot shows how numerical smearing changes.
  3. 03

    Test a still lake

    Select Lake over a ridge, then change the ridge height.

    What to observe: The well-balanced hydrostatic reconstruction keeps this lake at rest, with no false currents.
  4. 04

    Check the volume balance

    Compare reflecting and transmissive ends, and acquire every cell.

    What to observe: The volume in the flume plus the net outflow stays constant. The raw heights integrate into a separate volume estimate that carries its own sensor perturbations.
Something broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy