Shallow water equations



The shallow-water equations (SWE) are a set of hyperbolic partial differential equations (or parabolic if viscous shear is considered) that describe the flow below a pressure surface in a fluid (sometimes, but not necessarily, a free surface). The shallow-water equations in unidirectional form are also called (de) Saint-Venant equations, after Adhémar Jean Claude Barré de Saint-Venant (see the related section below).

The equations are derived from depth-integrating the Navier–Stokes equations, in the case where the horizontal length scale is much greater than the vertical length scale. Under this condition, conservation of mass implies that the vertical velocity scale of the fluid is small compared to the horizontal velocity scale. It can be shown from the momentum equation that vertical pressure gradients are nearly hydrostatic, and that horizontal pressure gradients are due to the displacement of the pressure surface, implying that the horizontal velocity field is constant throughout the depth of the fluid. Vertically integrating allows the vertical velocity to be removed from the equations. The shallow-water equations are thus derived.

While a vertical velocity term is not present in the shallow-water equations, note that this velocity is not necessarily zero. This is an important distinction because, for example, the vertical velocity cannot be zero when the floor changes depth, and thus if it were zero only flat floors would be usable with the shallow-water equations. Once a solution (i.e. the horizontal velocities and free surface displacement) has been found, the vertical velocity can be recovered via the continuity equation.

Situations in fluid dynamics where the horizontal length scale is much greater than the vertical length scale are common, so the shallow-water equations are widely applicable. They are used with Coriolis forces in atmospheric and oceanic modeling, as a simplification of the primitive equations of atmospheric flow.

Shallow-water equation models have only one vertical level, so they cannot directly encompass any factor that varies with height. However, in cases where the mean state is sufficiently simple, the vertical variations can be separated from the horizontal and several sets of shallow-water equations can describe the state.

Conservative form
The shallow-water equations are derived from equations of conservation of mass and conservation of linear momentum (the Navier–Stokes equations), which hold even when the assumptions of shallow-water break down, such as across a hydraulic jump. In the case of a horizontal bed, with negligible Coriolis forces, frictional and viscous forces, the shallow-water equations are: $$\begin{align} \frac{\partial (\rho \eta) }{\partial t} &+ \frac{\partial (\rho \eta u)}{\partial x} + \frac{\partial (\rho \eta v)}{\partial y} = 0,\\[3pt] \frac{\partial (\rho \eta u)}{\partial t} &+ \frac{\partial}{\partial x}\left( \rho \eta u^2 + \frac{1}{2}\rho g \eta^2 \right) + \frac{\partial (\rho \eta u v)}{\partial y} = 0,\\[3pt] \frac{\partial (\rho \eta v)}{\partial t} &+ \frac{\partial}{\partial y}\left(\rho \eta v^2 + \frac{1}{2}\rho g \eta ^2\right) + \frac{\partial (\rho \eta uv)}{\partial x} = 0. \end{align}$$

Here &eta; is the total fluid column height (instantaneous fluid depth as a function of x, y and t), and the 2D vector (u,v) is the fluid's horizontal flow velocity, averaged across the vertical column. Further g is acceleration due to gravity and ρ is the fluid density. The first equation is derived from mass conservation, the second two from momentum conservation.

Non-conservative form
Expanding the derivatives in the above using the product rule, the non-conservative form of the shallow-water equations is obtained. Since velocities are not subject to a fundamental conservation equation, the non-conservative forms do not hold across a shock or hydraulic jump. Also included are the appropriate terms for Coriolis, frictional and viscous forces, to obtain (for constant fluid density): $$\begin{align} \frac{\partial h}{\partial t} &+ \frac{\partial}{\partial x} \Bigl( (H+h) u \Bigr) + \frac{\partial}{\partial y} \Bigl( (H+h) v \Bigr) = 0,\\[3pt] \frac{\partial u}{\partial t} &+ u\frac{\partial u}{\partial x} + v\frac{\partial u}{\partial y} - f v = -g \frac{\partial h}{\partial x} - k u + \nu \left( \frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2} \right),\\[3pt] \frac{\partial v}{\partial t} &+ u\frac{\partial v}{\partial x} + v\frac{\partial v}{\partial y} + f u = -g \frac{\partial h}{\partial y} - k v + \nu \left( \frac{\partial^2 v}{\partial x^2} + \frac{\partial^2 v}{\partial y^2} \right), \end{align}$$

where

It is often the case that the terms quadratic in u and v, which represent the effect of bulk advection, are small compared to the other terms. This is called geostrophic balance, and is equivalent to saying that the Rossby number is small. Assuming also that the wave height is very small compared to the mean height (h ≪ H), we have (without lateral viscous forces): $$\begin{align} \frac{\partial h}{\partial t} &+ H \left( \frac{\partial u}{\partial x} + \frac{\partial v}{\partial y} \right) = 0,\\[3pt] \frac{\partial u}{\partial t} &- f v = -g \frac{\partial h}{\partial x} - k u,\\[3pt] \frac{\partial v}{\partial t} &+ f u = -g \frac{\partial h}{\partial y} - k v. \end{align}$$

One-dimensional Saint-Venant equations
The one-dimensional (1-D) Saint-Venant equations were derived by Adhémar Jean Claude Barré de Saint-Venant, and are commonly used to model transient open-channel flow and surface runoff. They can be viewed as a contraction of the two-dimensional (2-D) shallow-water equations, which are also known as the two-dimensional Saint-Venant equations. The 1-D Saint-Venant equations contain to a certain extent the main characteristics of the channel cross-sectional shape.

The 1-D equations are used extensively in computer models such as TUFLOW, Mascaret (EDF), SIC (Irstea), HEC-RAS, SWMM5, ISIS, InfoWorks, Flood Modeller, SOBEK 1DFlow, MIKE 11, and MIKE SHE because they are significantly easier to solve than the full shallow-water equations. Common applications of the 1-D Saint-Venant equations include flood routing along rivers (including evaluation of measures to reduce the risks of flooding), dam break analysis, storm pulses in an open channel, as well as storm runoff in overland flow.

Equations
The system of partial differential equations which describe the 1-D incompressible flow in an open channel of arbitrary cross section – as derived and posed by Saint-Venant in his 1871 paper (equations 19 & 20) – is:

and

where x is the space coordinate along the channel axis, t denotes time, A(x,t) is the cross-sectional area of the flow at location x, u(x,t) is the flow velocity, ζ(x,t) is the free surface elevation and τ(x,t) is the wall shear stress along the wetted perimeter P(x,t) of the cross section at x. Further ρ is the (constant) fluid density and g is the gravitational acceleration.

Closure of the hyperbolic system of equations ($ν$)–($$) is obtained from the geometry of cross sections – by providing a functional relationship between the cross-sectional area A and the surface elevation ζ at each position x. For example, for a rectangular cross section, with constant channel width B and channel bed elevation zb, the cross sectional area is: $η(x, y, t) = H(x, y) + h(x, y, t)$. The instantaneous water depth is $H(x, y) = D + b(x,y)$, with zb(x) the bed level (i.e. elevation of the lowest point in the bed above datum, see the cross-section figure). For non-moving channel walls the cross-sectional area A in equation ($$) can be written as: $$A(x,t) = \int_0^{h(x,t)} b(x,h')\, dh', $$ with b(x,h) the effective width of the channel cross section at location x when the fluid depth is h – so $A = B (ζ − z_{b}) = B h$ for rectangular channels.

The wall shear stress τ is dependent on the flow velocity u, they can be related by using e.g. the Darcy–Weisbach equation, Manning formula or Chézy formula.

Further, equation ($$) is the continuity equation, expressing conservation of water volume for this incompressible homogeneous fluid. Equation ($$) is the momentum equation, giving the balance between forces and momentum change rates.

The bed slope S(x), friction slope Sf(x, t) and hydraulic radius R(x, t) are defined as: $$S = - \frac{\mathrm{d} z_\mathrm{b}}{\mathrm{d} x},$$ $$S_\mathrm{f} = \frac{\tau}{\rho g R}$$ and $$R = \frac{A}{P}.$$

Consequently, the momentum equation ($$) can be written as:

Conservation of momentum
The momentum equation ($$) can also be cast in the so-called conservation form, through some algebraic manipulations on the Saint-Venant equations, ($$) and ($$). In terms of the discharge $h(x,t) = ζ(x,t) − z_{b}(x)$:

where A, I1 and I2 are functions of the channel geometry, described in the terms of the channel width B(σ,x). Here σ is the height above the lowest point in the cross section at location x, see the cross-section figure. So σ is the height above the bed level zb(x) (of the lowest point in the cross section): $$\begin{align} A(\sigma,x) &= \int_0^\sigma B(\sigma', x)\; \mathrm{d}\sigma', \\ I_1(\sigma,x) &= \int_0^\sigma ( \sigma - \sigma' )\, B(\sigma^\prime,x)\; \mathrm{d}\sigma' \qquad \text{and} \\ I_2(\sigma,x) &= \int_0^\sigma ( \sigma - \sigma' )\, \frac{\partial B(\sigma', x)}{\partial x}\; \mathrm{d}\sigma'. \end{align}$$

Above – in the momentum equation ($$) in conservation form – A, I1 and I2 are evaluated at $b(x, h) = B(x)$. The term g I1 describes the hydrostatic force in a certain cross section. And, for a non-prismatic channel, g I2 gives the effects of geometry variations along the channel axis x.

In applications, depending on the problem at hand, there often is a preference for using either the momentum equation in non-conservation form, ($$) or ($$), or the conservation form ($$). For instance in case of the description of hydraulic jumps, the conservation form is preferred since the momentum flux is continuous across the jump.

Characteristics
The Saint-Venant equations ($$)–($$) can be analysed using the method of characteristics. The two celerities dx/dt on the characteristic curves are: $$\frac{\mathrm{d}x}{\mathrm{d}t} = u \pm c,$$ with $$c = \sqrt{ \frac{gA}{B} }.$$

The Froude number u determines whether the flow is subcritical (Fr < 1) or supercritical (Fr > 1).

For a rectangular and prismatic channel of constant width B, i.e. with $Q = Au$ and $σ = h(x,t)$, the Riemann invariants are: $$r_+ = u + 2\sqrt{gh}$$ and $$r_- = u - 2\sqrt{gh},$$ so the equations in characteristic form are: $$\begin{align} &\frac{\mathrm{d}}{\mathrm{d}t} \left( u + 2 \sqrt{gh} \right) = g \left( S - S_f \right) &&\text{along} \quad \frac{\mathrm{d}x}{\mathrm{d}t} = u + \sqrt{gh} \quad \text{and} \\ &\frac{\mathrm{d}}{\mathrm{d}t} \left( u - 2 \sqrt{gh} \right) = g \left( S - S_f \right) &&\text{along} \quad \frac{\mathrm{d}x}{\mathrm{d}t} = u - \sqrt{gh}. \end{align}$$

The Riemann invariants and method of characteristics for a prismatic channel of arbitrary cross-section are described by Didenkulova & Pelinovsky (2011).

The characteristics and Riemann invariants provide important information on the behavior of the flow, as well as that they may be used in the process of obtaining (analytical or numerical) solutions.

Hamiltonian structure for frictionless flow
In case there is no friction and the channel has a rectangular prismatic cross section, the Saint-Venant equations have a Hamiltonian structure. The Hamiltonian $P = (x_{P},t_{P})$ is equal to the energy of the free-surface flow: $$ H = \rho \int \left( \frac12 A u^2 + \frac12 g B \zeta^2 \right) \mathrm{d}x, $$ with constant $A = B h$ the channel width and $c = √gh$ the constant fluid density. Hamilton's equations then are: $$\begin{align} &\rho B \frac{\partial \zeta}{\partial t} + \frac{\partial}{\partial x} \left( \frac{\partial H}{\partial u} \right) = \rho \left( B \frac{\partial\zeta}{\partial t} + \frac{\partial(Au)}{\partial x} \right) = \rho \left( \frac{\partial A}{\partial t} + \frac{\partial (Au)}{\partial x} \right) = 0, \\ &\rho B \frac{\partial u}{\partial t} + \frac{\partial}{\partial x} \left( \frac{\partial H}{\partial \zeta} \right) = \rho B \left( \frac{\partial u}{\partial t} + u \frac{\partial u}{\partial x} + g \frac{\partial \zeta}{\partial x} \right) = 0, \end{align}$$ since $H$.

Dynamic wave
The dynamic wave is the full one-dimensional Saint-Venant equation. It is numerically challenging to solve, but is valid for all channel flow scenarios. The dynamic wave is used for modeling transient storms in modeling programs including Mascaret (EDF), SIC (Irstea), HEC-RAS, InfoWorks_ICM, MIKE 11, Wash 123d and SWMM5.

In the order of increasing simplifications, by removing some terms of the full 1D Saint-Venant equations (aka Dynamic wave equation), we get the also classical Diffusive wave equation and Kinematic wave equation.

Diffusive wave
For the diffusive wave it is assumed that the inertial terms are less than the gravity, friction, and pressure terms. The diffusive wave can therefore be more accurately described as a non-inertia wave, and is written as: $$g \frac{\partial h}{\partial x} + g (S_f - S) = 0. $$

The diffusive wave is valid when the inertial acceleration is much smaller than all other forms of acceleration, or in other words when there is primarily subcritical flow, with low Froude values. Models that use the diffusive wave assumption include MIKE SHE and LISFLOOD-FP. In the SIC (Irstea) software this options is also available, since the 2 inertia terms (or any of them) can be removed in option from the interface.

Kinematic wave
For the kinematic wave it is assumed that the flow is uniform, and that the friction slope is approximately equal to the slope of the channel. This simplifies the full Saint-Venant equation to the kinematic wave: $$S_f - S = 0. $$

The kinematic wave is valid when the change in wave height over distance and velocity over distance and time is negligible relative to the bed slope, e.g. for shallow flows over steep slopes. The kinematic wave is used in HEC-HMS.

Derivation from Navier–Stokes equations
The 1-D Saint-Venant momentum equation can be derived from the Navier–Stokes equations that describe fluid motion. The x-component of the Navier–Stokes equations – when expressed in Cartesian coordinates in the x-direction – can be written as: $$ \frac{\partial u}{\partial t} + u \frac{\partial u}{\partial x} + v \frac{\partial u}{\partial y}+ w \frac{\partial u}{\partial z}= -\frac{\partial p}{\partial x} \frac{1}{\rho} + \nu \left(\frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2} + \frac{\partial^2 u}{\partial z^2}\right)+ f_x,$$

where u is the velocity in the x-direction, v is the velocity in the y-direction, w is the velocity in the z-direction, t is time, p is the pressure, ρ is the density of water, ν is the kinematic viscosity, and fx is the body force in the x-direction.


 * 1) If it is assumed that friction is taken into account as a body force, then $$\nu$$ can be assumed as zero so: $$ \nu \left(\frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2} + \frac{\partial^2 u}{\partial z^2}\right)= 0. $$
 * 2) Assuming one-dimensional flow in the x-direction it follows that: $$v\frac{\partial u}{\partial y}+ w \frac{\partial u}{\partial z} = 0$$
 * 3) Assuming also that the pressure distribution is approximately hydrostatic it follows that: $$ p = \rho g h$$ or in differential form: $$\partial p = \rho g (\partial h).$$ And when these assumptions are applied to the x-component of the Navier–Stokes equations: $$ -\frac{\partial p}{\partial x} \frac{1}{\rho} = -\frac{1}{\rho}\frac{\rho g \left(\partial h \right)}{\partial x} = -g \frac{\partial h}{\partial x}.$$
 * 4) There are 2 body forces acting on the channel fluid, namely, gravity and friction: $$ f_x =f_{x,g} + f_{x,f} $$ where fx,g is the body force due to gravity and fx,f is the body force due to friction.
 * 5) fx,g can be calculated using basic physics and trigonometry: $$F_{g} = \sin(\theta) gM$$where Fg is the force of gravity in the x-direction, θ is the angle, and M is the mass. [[File:Block on Inclined Plane with Direction of Gravity, Angle, and Location of Opposite, Adjacent, and Hypotenuse.png|400px|thumb|right|Figure 1: Diagram of block moving down an inclined plane.]] The expression for sin θ can be simplified using trigonometry as: $$ \sin\theta = \frac{\text{opp}}{\text{hyp}}. $$ For small θ (reasonable for almost all streams) it can be assumed that: $$\sin\theta = \tan\theta = \frac{\text{opp}}{\text{adj}} = S$$ and given that fx represents a force per unit mass, the expression becomes: $$f_{x,g} = gS.$$
 * 6) Assuming the energy grade line is not the same as the channel slope, and for a reach of consistent slope there is a consistent friction loss, it follows that: $$f_{x,f} = S_f g.$$
 * 7) All of these assumptions combined arrives at the 1-dimensional Saint-Venant equation in the x-direction: $$\frac{\partial u}{\partial t} + u \frac{\partial u}{\partial x} + g \frac{\partial h}{\partial x} + g (S_f - S) = 0, $$ $$(a)\quad \ \ (b)\quad \ \ \ (c) \qquad \ \ \ (d) \quad (e)\ $$ where (a) is the local acceleration term, (b) is the convective acceleration term, (c) is the pressure gradient term, (d) is the friction term, and (e) is the gravity term.

The local acceleration (a) can also be thought of as the "unsteady term" as this describes some change in velocity over time. The convective acceleration (b) is an acceleration caused by some change in velocity over position, for example the speeding up or slowing down of a fluid entering a constriction or an opening, respectively. Both these terms make up the inertia terms of the 1-dimensional Saint-Venant equation.
 * Terms

The pressure gradient term (c) describes how pressure changes with position, and since the pressure is assumed hydrostatic, this is the change in head over position. The friction term (d) accounts for losses in energy due to friction, while the gravity term (e) is the acceleration due to bed slope.

Wave modelling by shallow-water equations
Shallow-water equations can be used to model Rossby and Kelvin waves in the atmosphere, rivers, lakes and oceans as well as gravity waves in a smaller domain (e.g. surface waves in a bath). In order for shallow-water equations to be valid, the wavelength of the phenomenon they are supposed to model has to be much larger than the depth of the basin where the phenomenon takes place. Somewhat smaller wavelengths can be handled by extending the shallow-water equations using the Boussinesq approximation to incorporate dispersion effects. Shallow-water equations are especially suitable to model tides which have very large length scales (over hundred of kilometers). For tidal motion, even a very deep ocean may be considered as shallow as its depth will always be much smaller than the tidal wavelength.



Turbulence modelling using non-linear shallow-water equations


Shallow-water equations, in its non-linear form, is an obvious candidate for modelling turbulence in the atmosphere and oceans, i.e. geophysical turbulence. An advantage of this, over Quasi-geostrophic equations, is that it allows solutions like gravity waves, while also conserving energy and potential vorticity. However, there are also some disadvantages as far as geophysical applications are concerned - it has a non-quadratic expression for total energy and a tendency for waves to become shock waves. Some alternate models have been proposed which prevent shock formation. One alternative is to modify the "pressure term" in the momentum equation, but it results in a complicated expression for kinetic energy. Another option is to modify the non-linear terms in all equations, which gives a quadratic expression for kinetic energy, avoids shock formation, but conserves only linearized potential vorticity.