Problemcore
Shallow water equations
Also called Saint-Venant equations.
Hyperbolic equations for the depth and depth-averaged velocity of a thin fluid layer under gravity, used for rivers, tsunamis and atmospheres.
- Model
- Real RAM
The shallow water equations describe a layer of water, or any fluid, that is thin compared with the length of its waves, by two fields on a flat grid: the depth and the velocity averaged over the depth. Here is the water depth, not a mesh size; the mesh size is . Gravity drives the flow, and waves move at the speed relative to the water. Graphics programs use the same picture as a height field: height field water evolves a grid of water heights with a linearized wave equation that is cheap and stable. The accurate method adds the nonlinear equations in conservation form, solved with a finite volume scheme that conserves the water volume and the momentum exactly, so that bores, hydraulic jumps, dam breaks and wet and dry fronts move at the correct speed. Mathematically the equations are a two component hyperbolic conservation law, the same system as the isentropic Euler equations with .
In plain words
Think of a river or a flood seen from above. At each point you keep only two numbers: how deep the water is and how fast it flows. Water is never created or lost, so the depth at a place changes only when water flows in or out. The flow speeds up where the water surface slopes down, because gravity pushes the water downhill.
Small waves travel at a speed that grows with the depth, so waves are faster in deep water. A wave that is high enough catches up with the water in front of it and steepens into a bore: a moving step in the water surface, like a breaking front.
Definition
One space dimension. With depth , velocity , discharge , gravity and bottom height ,
With a flat bottom the right side is zero and the system is a conservation law with .
Two space dimensions. With velocity ,
Assumptions. The pressure is hydrostatic, the horizontal velocity does not depend on the height inside the layer, and the wavelength is long compared with the depth. Friction, viscosity and the Coriolis force are left out, but they can be added as source terms.
Characteristic structure. For the eigenvalues of are , with eigenvectors . The system is strictly hyperbolic for , and both fields are genuinely nonlinear. The Riemann invariants are and . The ratio is the Froude number: the flow is subcritical below 1 and supercritical above 1 (LeVeque 2002, Sections 13.1 and 13.3).
The computational problem. Given , , initial data and , boundary conditions and a final time , compute the entropy solution. Its jumps (bores) satisfy the Rankine-Hugoniot conditions, and the total energy decreases across them. The depth must stay nonnegative, and states with (dry land) must be allowed.
Variants
- Flat or variable bottom. With not constant the system is a balance law. The steady state of a lake at rest, and constant, has a flux gradient that balances the source exactly. A scheme that keeps this state exactly is called well balanced.
- Linearized shallow water. About a state with depth and , small perturbations satisfy , , so : the wave equation with speed . This is the model behind height field water. It has no bores and no wet and dry fronts.
- Rotating shallow water. The Coriolis terms and are added to the right sides of the and equations. It is a standard model of the atmosphere and the ocean.
- Multilayer and dispersive models. Several layers of different density, and Boussinesq or Serre-Green-Naghdi equations, which add dispersion for shorter waves.
- Friction. Manning or Chezy friction terms for rivers and floods.
Examples
Dam break over a wet bed. , , , . The middle state solves
where the left side is the rarefaction branch and the right side is the shock branch of the wave relations. The solution is , . Hand check: , so from the left; and from the right. The waves are a left rarefaction from to , and a right bore with speed (LeVeque 2002, Sections 13.2 and 13.9). The bore loses energy: per unit time, with the energy flux . This is computed from the five digit values above.
Dam break over a dry bed (Ritter 1892). for and for , at rest. The solution is a single rarefaction:
With and : the back of the wave moves left at speed 1, the wet and dry front moves right at speed 2, and at the dam site the depth is and the velocity is . At , and . Check: at every point, the value of the Riemann invariant in the still water. The front moves twice as fast as small waves in the still water, which a linear height field model cannot show.
A lake at rest. , , . The exact solution does not change. A scheme that discretizes and in different ways produces flow from nothing. A well balanced scheme, for example with the hydrostatic reconstruction of Audusse et al. (2004), keeps it exactly.
Known algorithms
- Godunov type finite volume methods. The Godunov method with an exact Riemann solver for shallow water (one scalar equation for ), or with the Roe solver, HLL or the Rusanov flux. High order versions use MUSCL or WENO reconstruction.
- Well balanced schemes. Well balanced schemes such as the hydrostatic reconstruction keep the lake at rest exactly with a variable bottom.
- Positivity and wet and dry fronts. Positivity preserving limiters and HLL type fluxes keep at fronts.
- Central schemes. The Kurganov-Tadmor scheme and its well balanced versions need only the wave speeds.
- Discontinuous Galerkin methods. Discontinuous Galerkin methods are used for coastal and tsunami models on unstructured meshes.
- Adaptive meshes. Adaptive mesh refinement follows tsunami fronts across an ocean basin.
- Graphics. Height field water solves the linearized equations implicitly for real time animation. Semi-Lagrangian advection, also common in graphics, is stable for large steps, but it is not conservative in general, so the volume can drift.
Bounds
- Cost of an explicit scheme. On cells one step costs operations. The time step obeys the CFL condition with , so deep water forces small steps: for m and m/s^2, m/s.
- Riemann problem (theorem). For every pair of states with the Riemann problem has a unique solution of shocks and rarefactions. A dry region forms in the middle exactly when . This follows from the two rarefaction branches and , which cannot meet at any under that condition (LeVeque 2002, Sections 13.8 to 13.10).
- Energy (theorem). For smooth solutions the energy is conserved. Across a bore it decreases. This is the entropy condition of the system.
- Accuracy. Near bores and fronts the error of any shock capturing scheme is at best first order; this is the usual measurement in the literature, not a proved rate for the system.
Reductions
- To the isentropic Euler equations. With and , the shallow water system is isentropic gas dynamics with . Riemann solvers carry over.
- To the wave equation. Linearization about rest gives , the model of height field water.
- From the incompressible Navier-Stokes equations. Depth averaging of the free surface Navier-Stokes equations under the long wave assumption gives the shallow water equations.
- To Riemann problems. A Godunov type scheme reduces each step to one Riemann problem per cell face.
Applications
- Rivers, floods and dam break studies, with friction and real bottom data.
- Tsunami propagation across ocean basins and run up on coasts.
- Storm surges and tides.
- The atmosphere and the ocean as a rotating fluid layer, a standard test system for climate model dynamical cores.
- Water surfaces in games and films: height field water and the fluid simulation for animation pipeline use the linear or the full equations.
References
- Randall J. LeVeque, Finite Volume Methods for Hyperbolic Problems, Cambridge University Press, 2002, Section 13.1 (the shallow water equations), Section 13.2 (the dam break problem), Section 13.3 (characteristic structure), Section 13.7 (Hugoniot loci), Section 13.8 (rarefaction waves), Section 13.9 (solving the dam break problem), Section 13.10 (the general Riemann solver), Chapter 17 (source terms and balance laws)
- Eleuterio F. Toro, Riemann Solvers and Numerical Methods for Fluid Dynamics, third edition, Springer, 2009, Section 1.6.9 (the shallow water equations)
- E. Audusse, F. Bouchut, M.-O. Bristeau, R. Klein and B. Perthame, A fast and stable well-balanced scheme with hydrostatic reconstruction for shallow water flows, SIAM Journal on Scientific Computing 25(6) (2004) 2050-2065, the hydrostatic reconstruction, preservation of the lake at rest and of nonnegative depth
- A. Ritter, Die Fortpflanzung der Wasserwellen, Zeitschrift des Vereines Deutscher Ingenieure 36(33) (1892) 947-954, the dam break solution over a dry bed
- A. J. C. Barré de Saint-Venant, Théorie du mouvement non permanent des eaux, avec application aux crues des rivières et à l'introduction des marées dans leurs lits, Comptes Rendus de l'Académie des Sciences 73 (1871), the one dimensional equations for unsteady open channel flow
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag FKDZS0 Edit this page History Report an error Markdown