Shallow Water Equation
Shallow Water Equation
Shallow Water Equation
Contents
1
Basics
1.1
1.2
1.3
Validity
Numerical solution
2.1
Standard methods
2.2
2.3
2.4
2.5
Temporal discretization
Model application
3.1
Grid generation
3.2
Model tests
3.3
Validation
3.4
Areas of application
10
Control questions
11
4.1
11
4.2
11
www.fluvial.ch
1 Basics
1.1 Equations and Variables
h = water depth [L]
Variables
h q r
0
t x y
Continuityequation
q q 2 gh 2 h
xx
t x h
2
Momentumequations
r qr h
xy
t x h
y
Constants
qr h
z b bx
xy gh
x
by
r 2 gh 2 h
yy gh b
and zb = bottom elevation [L], bi= bottom shear stress [M L-1 T-2], = density of fluid
by v u 2 v 2
bx u u 2 v 2
c 2f
c 2f
with (u,v) = x- and y-components of flow velocity and cf = friction coefficient (e.g.
from Manning-Strickler-Formula)
Turbulent shear Influence of turbulent shear stress is important, if velocity gradients are large
stresses
Inflow bound.
Ouflow bound.
Subcritical
supercritical
Table 2 Number of required boundary conditions for the 2D-Shallow water equations
Setting meaningful boundary conditions is done in analogy to the 1D case. At an inflow boundary the
flow rate Q should be given as inflow hydrograph together with the direction of the inflow. For an
outflow boundary the following quantities could be used:
(1) Water table elevation (possibly hydrograph)
(2) Water level-flow relationship (if known)
(3) Slope of water surface or energy slope
Suggestion: A comparison with a physical model can simplify the choice of boundary conditions.
Boundaries which can be realized in a physical model will as a rule also lead to reasonable results in a
numerical model.
1.3 Validity
The shallow water equations are based on the assumption that over the flow depth the pressure distribution is hydrostatic. This is the case for long and shallow waves (i.e. waves with a wave length much
larger than water depth), in which the vertical acceleration of fluid elements during the wave passage
stays small. When short or high waves pass, these conditions are violated. In linear wave theory one
distinguishes between long waves (shallow water) and short waves (deep water), which are different
with respect to the movement of water particles (Table below and lecture notes chapter 7).
Region
Shallow water
Transition
Wave length
L/h > 20
Wave celerity
c gh
Particle path
linear
gL
2h
tanh
2
L
elliptical
Deep water
L/h < 2
c
gL
2
circular
Table 3 Comparison of different linear waves with L = wave length and h = water depth (from Liggett J. A. 1994. Fluid
Mechanics. McGraw-Hill Int. Editions)
During the passage of high waves, significant vertical accelerations can occur, leading to deviation
from the hydrostatic pressure conditions, an essential precondition of the usage of the shallow water
waves. For situations which do not deviate too much from hydrostatic conditions, the classical shallow water equations can be generalized. The Boussinesq-Equations named after the French researcher Boussinesq (1842-1929) contain additional terms which take into account the curvature of
the water surface. They correct the erroneous observation that high waves compared to shallow ones
are slower and subject to larger diffusion.
Under steady state flow the condition of hydrostatic pressure distribution may be violated at discontinuities of the water surface (hydraulic jump, pressure surge) or the channel bottom (steps). The solution of shallow water equations leads to local differences from observations. In such cases there are
also extensions to the shallow water equations, which as a rule lead to new additional equations.
The 2D approach must fail in applications where 3D effects (e.g. secondary flows) become essential.
This happens for strong curvatures of the channel or where the internal turbulent shear stresses influence the flow field considerably. The exact limit up to which a 2D model is still applicable also depends on the accuracy requirements. There are models, which do not average over depth but rather
use the vertical velocity term resulting from the continuity equation. Such 3D shallow water equations
are used for example in the simulation of lakes (e.g. circulation due to wind stress) or in coastal flows.
2 Numerical solution
2.1 Standard methods
The following methods are applied in solving the 2D-shallow water equations: Finite-DifferenceMethod (FDM), Finite-Element-Method (FEM) and Finite-Volume-Method (FVM). Besides the FEM
the following two methods have found a larger fan community:
Staggered Grid Method (SGM)
1980)
Kontrollvolumen fr
y-Impulsgleichung
Unbekannte
Dreiecksnetz
Kontrollvolumen fr
Kontinuittsgleichung
Kontrollvolumen fr
x-Impulsgleichung
Zellenmittelpunkt
Table 4 Comparison of two standard methods for the solution of the shallow water equations
The staggered grid method has been used since the 60s, above all in coastal flows. A weak point is the
instability for supercritical flows.
The cell-centered FVM is stable for both sub- and supercritical flow regimes. Therefore this method
is the favorite method applied today for inland flows.
u f
0
t x
(1)
with u = vector of unknowns and f = flux vector. A discrete formulation of the cell-centered FVM
with centrally averaged fluxes reads
ui
1
1
x i f i f i 1 f i 1 f i 0
t
2
2
(2)
The accuracy of the discrete formulation can be determined by local Taylor expansion of the fluxes
around point i:
f i 1 f i x
f i x 2 2 f i x 3 3 f i
......
x
2 x 2
6 x 3
(3)
x+
i-1
i+1
xi
menclature
Insertion of expression (3) into (2) and division by xi leads to the differential equation belonging to
discrete equation (2)
u i x x f i
x 2 x 2 2 f i x 3 x 3 3 f i
......
t
2xi
x
4xi
x 2
12xi
x 3
inkonsistent
O ( x )
O x 2
(4)
x x
1.
2 x i
ui
1
x i f i 1 f i 1 0
t
2
(5)
i.e. the flux at point i disappears. A determination of fluxes from the arithmetic average of neighboring values has the consequence that ui becomes independent of fi,. In the results this shows in a numerical solution which is not smooth but has wiggles (compare figure below).
i-1
i+1
i
i+2
Figure 2: Wiggles in the discrete solution when using centrally averaged fluxes
These can be suppressed by so called upwind-methods which introduce an additional numerical diffusion into the scheme. The flux at cell boundary i+ is then
f i 1 / 2
1
f l f r u r u l
2
(6)
where the indices l and r indicate the values to the left and to the right of the cell boundary considered. To determine the factor there are a number of different suggestions, which differ in computational effort and physical motivation (see lecture script chapter 6).
With the obvious choice l = i and r = i+1 for the indices one obtains a scheme of first order accuracy.
For applications, where numerical diffusion is undesirable (e.g. in the simulation of short waves) the
accuracy of the methods can be increased. To do so, the flux terms are determined from the neighboring node values by extrapolation of variables. In order to guarantee a smooth behavior of the solution,
even if there are discontinuities, the flux terms must be limited by so called limiter functions. At the
location of a discontinuity (front) the accuracy is reduced by the limiter to first order.
Explicit methods compute the variables of the next time step exclusively from already known
values of the variable at the previous time step. The category of explicit methods also contains the
so called multiple step methods (e.g. predictor-corrector method). Explicit methods are in general
easily programmed but have the restriction that they must fulfill a stability criterion (compare below).
Implicit methods use in addition the values of hitherto unknown values of the variables at the new
time. The solution in point i therefore also depends from the still unknown solution at the
neighboring points of point i. This requires solving of an equations system (as opposed to a single
equation in the explicit method) and due to non-linear terms eventually an iterative procedure.
Implicit methods involve much more effort in programming. At the same time they allow to
choose larger time steps.
Explicit methods gain in importance due to the progress in computer performance. They have to fulfill
the Courant-Friedrich-Levy (CFL) condition. This CFL-number is a measure for the progress of a
disturbance over a time step t related to the grid distance x.
CFL
t
t
u c
x
x
(9)
with u = flow velocity and c = wave velocity. An explicit method is only stable for small CFLnumbers (usually CFL<1.0). Equation (9) thus leads to an equation for the maximum permissible time
step length at fixed grid size x (provided the largest is chosen). In 2D the condition is analogous.
3 Model application
3.1 Grid generation
In the practical application of 2D models, the grid generation is a decisive step. Often it decides upon
success or failure of a model, both with respect to the quality of the results as well as the time consumption for the user.
Application of the FVM requires smooth grids. That means neighboring cells should have similar
dimensions. When using triangles, the appearance of acute-angled triangles (i.e. triangles with one
angle larger 90) should be avoided. Digital terrain models on the basis of TINs (Triangulated Irregular Networks), which are the basis for the spatial discretization in 2D, often contain such triangles.
That means the triangulated DTM is usually not directly utilizable as discretization grid.
A
free
tool
for
the
construction
of
quality
grids
is
the
program
Triangle
(http://www.cs.cmu.edu/~quake/triangle.html ).
3.3 Validation
Calibration: Adjustment of model parameters (e.g. friction coefficients), until results reproduce measurement data sufficiently well.
Inverse Modeling: Automatic calibration of model parameters by adjustment of parameters to reproduce the observed quantities (e.g. Levenberg-Marquardt-Algorithm)
Validation: Calculation of observed quantities, which have not been used in calibration (and without
further change of parameters), and discussion of the differences (including critical discussion of the
quality of the measured quantities).
10
11
4 Control questions
4.1 Concerning the shallow water equations
(1) Which are the unknowns in the shallow water equations?
(2) Which quantities have to be found by empirical formulae?
(3) Give number and types of boundary conditions for inflow and outflow boundaries.
(4) Which assumptions limit the applicability of the shallow water equations?
(5) What is the difference between shallow and deep water waves?
(6) Give typical fields of application for the shallow water equations.