# Nonlinear Shallow Water Waves

Nonlinear PDE's Course
Current Topic Nonlinear Shallow Water Waves
Next Topic Introduction to KdV
Previous Topic Traffic Waves

## Introduction

We assume that water is incompressible, viscous effects are negligible and that the typical wave lengths are much larger than the water depth. This allows us to assume Shallow Depth. We assume that the problem has not variation in either the $\displaystyle{ y }$ or $\displaystyle{ z }$ direction. The fluid is governed by two parameters, $\displaystyle{ u(x,t) }$, the velocity of the water, and $\displaystyle{ h(x,t) }$ the water depth (note that this is not the still water depth since the problem is nonlinear).

The theory we present here is discussed in Stoker 1957, Billingham and King 2000 and Johnson 1997.

## Equations of Motion

The equation for the conservation of mass can derived by considering a a region $\displaystyle{ [x,x+\Delta x] }$ Conservation of mass then implies that

$\displaystyle{ \partial_t \int_x^{x + \Delta x} \rho h(s,t) \mathrm{d}s = \rho h(x,t)u(x,t) - \rho h(x+\Delta x,t)u(x+\Delta x,t) }$

If we take the limit as $\displaystyle{ \Delta x \to 0 }$ we obtain

$\displaystyle{ \partial_t h(x ,t) + \partial_x (h(x ,t)u(x ,t)) = 0 }$

A second equation comes from conservation of momentum. In integral form this is

$\displaystyle{ \partial_t \int_{x}^{x + \Delta x} \rho h u \mathrm{d}x = \left. \rho u^2 h \right|_{x}^{x + \Delta x} + \int_0^{h(x)} P(x,z,t) \mathrm{d}z - \int_0^{h(x + \Delta x)} P(x+\Delta x,z,t) \mathrm{d}z }$

where $\displaystyle{ \rho \, }$ denotes density, and the pressure $\displaystyle{ P \, }$ is given by

$\displaystyle{ P = \rho g \left(h - z\right) }$

(i.e. we have hydrostatic equilibrium). This then gives us

$\displaystyle{ \partial_t \int_{x}^{x + \Delta x} \rho h u \mathrm{d}x = -\left. \rho u^2 h \right|_{x}^{x + \Delta x} + \frac{1}{2}\rho g {h(x)}^2 - \frac{1}{2}\rho g {h(x + \Delta x)}^2 }$

If we then take the limit as $\displaystyle{ \Delta x \to 0 }$ we obtain

$\displaystyle{ \partial_t \left( h u \right) + \partial_x \left(u^2 h + \frac{1}{2} gh^2\right) =0 }$

We can simplify this using the equation derived from conservation of mass to to obtain

$\displaystyle{ \partial_t u + u \partial_x u + g \partial_x h = 0 }$

The equations

$\displaystyle{ \partial_t h + u \partial_x h + h \partial_x u = 0 }$

and

$\displaystyle{ \partial_t u + u \partial_x u + g \partial_x h = 0 }$

are called the nonlinear shallow water equations. They determine the horizontal water velocity and the local water depth.

We can rewrite them in terms of the local wave speed $\displaystyle{ c(x, t) = \sqrt{gh(x, t)} }$ as follows:

$\displaystyle{ 2\partial_t c + 2u\partial_x c + c\partial_x u = 0 }$

$\displaystyle{ \partial_t u + u\partial_x u + 2c \partial_x c = 0 }$

These equation are almost identical to those of compressible gas dynamics. Much of our understanding of the equations for water have been found by researchers studying compressible gas dynamics.

## Linearized Equations

We can linearize these equations by assuming that $\displaystyle{ u }$ is small and that $\displaystyle{ h=h_0 + \zeta }$ where $\displaystyle{ h_0 }$ is the average water depth and $\displaystyle{ \zeta }$ is also assumed small. This gives us

$\displaystyle{ \partial_t \zeta + h_0\partial_x u = 0 }$

and

$\displaystyle{ \partial_t u + g \partial_x \zeta = 0 }$

These linear shallow water equations which can be derived from the linear equations for water of finite depth and taking the limit of small depth (see Shallow Depth).

## Characteristics

The equations possess characteristics. Adding and subtracting the two equations above we obtain

$\displaystyle{ \frac{\partial (u \pm 2c)}{\partial t}+ (u \pm c)\frac{\partial (u \pm 2c)}{\partial x} = 0 }$

This means that on the $\displaystyle{ \;C_+ }$ characteristic, given by

$\displaystyle{ \frac{\mathrm{d} X_+}{\mathrm{d} t} = u + c = u + \sqrt{gh} }$

the $\displaystyle{ \;C_+ }$ invariant

$\displaystyle{ R_+ = u + 2c = u + 2\sqrt{gh} }$

is a constant, and on the $\displaystyle{ \;C_- }$ characteristic, given by

$\displaystyle{ \frac{\mathrm{d} X_-}{\mathrm{d} t} = u - c = u - \sqrt{gh} }$

the $\displaystyle{ \;C_- }$ invariant

$\displaystyle{ R_- = u - 2c = u - 2\sqrt{gh} }$

is a constant.

The functions $\displaystyle{ R_{\pm} (u ,c) = u \pm 2c }$, are called the Riemannian invariants.

## Simple Waves

The problem as formulated can be solved by advancing the solution along the characteristics, but this will in general be quite difficult analytically. However, there is a special class of problems, called Simple Waves in which the solution only changes on one characteristic. They are best illustrated through some examples. Note that the characteristic can meet forming a shock, which is called a bore or a hydraulic jump when it occurs on the surface of the water.

### The dam break problem

Assume the water occupies the region $\displaystyle{ {x \lt 0 ; 0 \lt z \lt h_0 } }$ initially held back by a dam at $\displaystyle{ x = 0 }$. At $\displaystyle{ t = 0 }$, the dam is removed (breaks). What is the height of the water $\displaystyle{ h(x,t) \, }$ for $\displaystyle{ t \gt 0? \, }$ The initial condition is therefore

$\displaystyle{ h(x,0) = \begin{cases} h_0, & x \lt 0 \\ 0, & x \gt 0 \end{cases} }$

$\displaystyle{ u(x ,0) = 0. \, }$

On the characteristic that originates at $\displaystyle{ t = 0 }$ for $\displaystyle{ x \lt 0 }$,

$\displaystyle{ R_\pm = u \pm 2\sqrt{gh} = \pm 2\sqrt{gh_0} = \pm 2c_0 }$

where $\displaystyle{ c_0 = \sqrt{gh_0} }$ is the initial (linear) wave speed.

Therefore, if a $\displaystyle{ C_+ }$ and a $\displaystyle{ C_- }$ characteristic from this region intersect, then

$\displaystyle{ u + 2\sqrt{gh} = 2c_0 , \;\mathrm{and}\; u - 2\sqrt{gh} = -2c_0 }$

and hence, $\displaystyle{ u = 0 }$ and $\displaystyle{ h = h_0 }$. Moreover,

$\displaystyle{ \frac{\mathrm{d} X_\pm}{\mathrm{d} t} = u \pm \sqrt{gh} = \pm c_0 }$

so these characteristics are straight lines in the region $\displaystyle{ \big\{x \lt -c_0 t \big\} }$ (the undisturbed region).

The $\displaystyle{ \;C_+ }$ characteristic leave the region a$\displaystyle{ \big\{x \lt -c_0 t \big\} }$ and enter $\displaystyle{ \big\{x \gt -c_0 t \big\} }$. For now we will assume that these characteristics fill the domain (and show that this is true shortly). For $\displaystyle{ \big\{x \gt -c_0 t \big\} }$, the $\displaystyle{ C_- }$ characteristics are given by

$\displaystyle{ \frac{\mathrm{d} X_-}{\mathrm{d} t} = u - \sqrt{gh} }$

and on each of the $\displaystyle{ C_- }$ characteristics $\displaystyle{ R_- = u - 2\sqrt{gh} }$ is constant. However, since this region is filled with $\displaystyle{ C_+ }$ characteristics where $\displaystyle{ R_+ = u + 2\sqrt{gh} = 2c_0 }$, $\displaystyle{ u }$ and $\displaystyle{ h }$ must be constant on each $\displaystyle{ C_- }$ characteristic. This also means that the $\displaystyle{ C_- }$ characteristics must be straight lines.

Since the fluid occupies $\displaystyle{ \big\{x \lt 0 \big\} }$ at $\displaystyle{ t = 0 }$, these $\displaystyle{ C_- }$ characteristics must start at the origin, with

$\displaystyle{ X_-(t) = \left(u - \sqrt{gh}\right)t }$

which in turn implies that

$\displaystyle{ u - \sqrt{gh} = \frac{x}{t} }$

We also have $\displaystyle{ R_+ = u + 2\sqrt{gh} = 2c_0 }$ from the $\displaystyle{ C_+ }$ characteristics. We can solve these equations at each point in $\displaystyle{ \big\{x \gt -c_0 t \big\} }$. Solving for $\displaystyle{ u }$ and $\displaystyle{ h }$ gives

$\displaystyle{ h(x, t) = \begin{cases} \frac{h_0}{9}\left(2 - \frac{x}{c_0 t}\right)^2, \quad -c_0 t \lt x\lt 2 c_0 t,\\ h_0,\quad x \lt -c_0 t, \end{cases} }$

$\displaystyle{ u(x, t) = \begin{cases} \frac{2}{3} \left (c_0 + \frac{x}{t} \right ), \quad -c_0 t \lt x\lt 2 c_0 t,\\ 0,\quad x \lt -c_0 t. \end{cases} }$

Where we have assumed that, since $\displaystyle{ h = 0 }$ for $\displaystyle{ x = 2c_0 t, }$ the $\displaystyle{ C_+ }$ characteristic only exist in the region $\displaystyle{ \big\{x \lt 2c_0 t \big\} }$, We will verify this by explicitly calculating them.

It remains to determine the $\displaystyle{ C_+ }$ characteristic, which originated in $\displaystyle{ \big\{x \lt 0 \big\} }$, and show they will fill the domain $\displaystyle{ \big\{x \lt 2c_0 t \big\} }$. For $\displaystyle{ \big\{x \lt -c_0 t \big\} }$, the $\displaystyle{ \;C_+ }$ characteristics are straight lines with slope $\displaystyle{ c_0 }$ and are given by

$\displaystyle{ X_+ (t) = -x_0 + c_0 t, \quad \left(x_0 \gt 0,\;\; t \lt \frac{x_0}{2c_0}\right) }$

When $\displaystyle{ t = \frac{x_0}{2c_0},\;\;\ X_{+} (t) = -c_0 t }$ so that for

$\displaystyle{ t \gt \frac{x_0}{2c_0}, \quad \frac{\mathrm{d} X_{+} (t)}{\mathrm{d} t} = u + \sqrt{gh} }$

and substituting the solution we found for $\displaystyle{ h }$ and $\displaystyle{ u }$

$\displaystyle{ \frac{\mathrm{d}X_{+} (t)}{\mathrm{d} t} = \frac{4}{3}c_0 + \frac{X_{+} (t)}{3t} }$

Solving this ODE subject to $\displaystyle{ X_+ \left(\frac{x_0}{2c_0}\right) = -\frac{x_0}{2} }$ gives

$\displaystyle{ X_+ (t) = 2c_0 t - 3\left(\frac{x_0}{2}\right)^{2/3}(c_0 t)^{1/3},\;\; }$

the equation for a characteristic curve. The curves indeed fill the domain $\displaystyle{ \big\{x \lt 2c_0 t \big\} }$ and all satisfy $\displaystyle{ \big\{X_+ (t) \lt 2c_0 t \big\} }$. To summarize, the $\displaystyle{ C^{+} }$ characteristics are given by

$\displaystyle{ X_+ (t) = \begin{cases} 2c_0 t - 3\left(\frac{x_0}{2}\right)^{2/3}(c_0 t)^{1/3},\quad t\gt x_0/2 c_0\\ -x_0 + c_0 t, \quad 0\ \lt t \lt x_0/2 c_0 \end{cases} }$

Characteristics Surface elevation Characteristics for the dam break problem, blue for $\displaystyle{ C_{+} }$ and red for $\displaystyle{ C_{-} }$. The solid red lines show the curves $\displaystyle{ x=-c_0 t }$ and $\displaystyle{ x=2c_0 t }$ (note we have assumed here that $\displaystyle{ c_0 =1 }$ Evolution of the fluid surface $\displaystyle{ h(x,t) }$ for the Dam Break problem

## Shocks

For a unique solution two exist there must be a single $\displaystyle{ C_+ }$ and $\displaystyle{ C_- }$ characteristic through each point. When two characteristics of the same kind meet we have a shock forming.

### Accelerating Piston

We now consider the problem of water initially at rest occupying the half space $\displaystyle{ x\gt 0 }$ which is initially at rest. At $\displaystyle{ t=0 }$ the piston at $\displaystyle{ x=0 }$ begins to move to the right with constant acceleration $\displaystyle{ a }$ so that the position of the piston is given by $\displaystyle{ \frac{1}{2}at^2 }$.

We assume that the $\displaystyle{ C_- }$ characteristics which originate in the water at $\displaystyle{ t=0 }$ fill the fluid. On these characteristics

$\displaystyle{ R_- = u - 2 c = -2c_0 \, }$

and this condition must hold throughout the fluid. On the $\displaystyle{ C_+ }$ characteristics we know that $\displaystyle{ R_+ = u + 2 c }$ must be a constant and hence on the $\displaystyle{ C_+ }$ characteristics $\displaystyle{ u }$ and $\displaystyle{ c }$ must be constant and hence the $\displaystyle{ C_+ }$ characteristics must be straight lines. Note that this does not mean that the $\displaystyle{ C_+ }$ characteristics have the same slope and there is no requirement that the $\displaystyle{ C_- }$ characteristics are straight lines.

The $\displaystyle{ C_+ }$ characteristic originate from the fluid or from the front of the piston. We consider those which originate from the piston. The $\displaystyle{ C_+ }$ characteristic which originates from the piston at $\displaystyle{ t=t_0 }$ must satisfy

$\displaystyle{ u+2c = a t_0 + 2c_{\text{plate}} \, }$

where $\displaystyle{ a t_0 }$ is the velocity of the piston at time $\displaystyle{ t=t_0 }$ and $\displaystyle{ c_{\text{plate}} }$ is the speed (related to height) at the plate. We know that $\displaystyle{ R_- = u - 2 c =-2c_0 }$ through out the fluid, so that if we solve this at the plate (where $\displaystyle{ u=at_0 }$ and $\displaystyle{ c=c_{\text{plate}} }$) then we get

$\displaystyle{ c_{\text{plate}} = at_0/2 + c_0\, }$

On the $\displaystyle{ C_+ }$ characteristics $\displaystyle{ u }$ and $\displaystyle{ c }$ are constant and therefore

$\displaystyle{ \frac{\mathrm{d}X_+}{\mathrm{d}t} = u+c = at_0 + \left( \frac{1}{2}at_0 + c_0 \right) }$

Hence

$\displaystyle{ X_+(t,t_0) = \left( \frac{3}{2} a t_0 + c_0 \right) t - c_0 t_0 -a t_0^2 }$

using the condition $\displaystyle{ X_+(t_0,t_0) = \frac{1}{2} a t_0^2 }$ (the initial value which comes from the position of the piston at $\displaystyle{ t=t_0 }$). The slope of these lines increases and eventually meet to form a shock. We find this point of intersection by considering neighboring characteristics and determining when they first intersect.

$\displaystyle{ X_+(t,t_0 + \Delta t) = X_+(t,t_0) + \Delta t \frac{\partial X_+}{\partial t_0} (t,t_0) = X_+(t,t_0) }$

It follows that neighbouring characteristics will meet when

$\displaystyle{ \frac{\partial X_+}{\partial t_0} (t,t_0) = 0 }$

which implies that

$\displaystyle{ t = \frac{2c_0}{3a} + \frac{4}{3}t_0 }$

The first time that a shock forms is the minimum value of this equation. For this piston example, this occurs when $\displaystyle{ t_0 = 0 }$ and the value of $\displaystyle{ t }$ is $\displaystyle{ t = 2c_0/(3a) }$. At this point a shock is formed and we can no longer find a unique solution by following the characteristics.

Characteristics Surface elevation $\displaystyle{ C_{+} }$ characteristics for the accelerating piston, red undisturbed, blue from the piston and the green line shows the transition. Evolution of the fluid surface $\displaystyle{ h(x,t) }$ for the accelerating piston.

### Piston Moving with Constant Velocity

This example is also known as the Moving Wall Problem, and is connected to Shallow Water Bores.

We consider the case of a piston, with positive constant velocity $\displaystyle{ V }$ (which is initially at $\displaystyle{ x=0 }$), advancing into a semi-infinite expanse of fluid that is initially at rest with depth $\displaystyle{ h_0 }$.

The $\displaystyle{ C_+ }$ characteristics which originate in the fluid at $\displaystyle{ t=0 }$ have slope

$\displaystyle{ \frac{\mathrm{d} X_+}{\mathrm{d}t} = \sqrt{gh_0} }$

and the $\displaystyle{ C_+ }$ characteristic which originate at the piston at $\displaystyle{ t=0 }$ must satisfy

$\displaystyle{ \frac{\mathrm{d} X_+}{\mathrm{d}t} = \sqrt{gh_0} + \frac{3}{2} V }$

so that these two characteristics will intersect at $\displaystyle{ t=0 }$. Therefore a shock forms immediately and we can track this by determining the speed of the shock

### Speed of the shock

We need the conservation equations in integral form to determine the speed of the shock. Conservation of mass, written as an integral is

$\displaystyle{ \partial_t \int_{x_1}^{x_2} \rho h \mathrm{d}x + \left. \rho u h \right|_{x_2}^{x_1} =0 }$

If the shock is located at $\displaystyle{ s(t) }$ which we assume is located between $\displaystyle{ x_1 }$ and $\displaystyle{ x_2 }$, then

$\displaystyle{ \partial_t \int_{x_1}^{x_2} h \mathrm{d}x = \partial_t \left( \int_{x_1}^{s(t)} + \int_{s(t)}^{x_2} \right) h \mathrm{d}x = \left( \int_{x_1}^{s(t)} + \int_{s(t)}^{x_2} \right) \partial_t h \mathrm{d}x + h^{+} \partial_t s(t) - h^{-}\partial_t s(t), }$

where $\displaystyle{ h^+ }$ is the height on the right (positive) side of the jump and $\displaystyle{ h^- }$ is the height on the left (negative) side. If we take the limit as $\displaystyle{ x_1\to x_2 }$ we then obtain the following identity

$\displaystyle{ h^{+}\partial_t s(t) - h^{-}\partial_t s(t) - u^{+} h^{+} + u^{-} h^{-} = 0 }$

where $\displaystyle{ u^+ }$ is the height on the right (positive) side of the jump and $\displaystyle{ u^- }$ is the height on the left (negative) side.

We now need to consider the equation for conservation of momentum. In integral form this is

$\displaystyle{ \partial_t \int_{x_1}^{x_2} \rho h u \mathrm{d}x = \left. \rho u^2 h \right|_{x_1}^{x_2} + \int_0^{h(x_1)} P(x_1,z,t) \mathrm{d}z - \int_0^{h(x_2)} P(x_2,z,t) \mathrm{d}z }$

where the pressure $\displaystyle{ P }$ is given by

$\displaystyle{ P = \rho g \left(h - z\right) }$

(i.e. we have hydrostatic equilibrium). We can apply a similar argument as before to obtain

$\displaystyle{ h^{+}u^{+}\partial_t s(t) - h^{-}u^{-}\partial_t s(t) = \left(u^{+}\right)^2 h^{+} - \left(u^{-}\right)^2 h^{-} + \frac{1}{2} g \left(h^{+}\right)^2 - \frac{1}{2} g \left(h^{-}\right)^2 }$

### Hydraulic Jump

For a hydraulic jump, $\displaystyle{ \dot{s}(t) = 0 }$, which means that we must solve

$\displaystyle{ u^{+} h^{+} - u^{-} h^{-} = 0 \, }$

$\displaystyle{ \left(u^{+}\right)^2 h^{+} - \left(u^{-}\right)^2 h^{-} + \frac{1}{2} g \left(h^{+}\right)^2 - \frac{1}{2} g \left(h^{-}\right)^2 =0 }$

If we introduce the variables

$\displaystyle{ H = \frac{h^{+}}{h^{-}} }$

and

$\displaystyle{ \mathrm{Fr} = \frac{u^{-}}{\sqrt{gh^{-}}} }$

where $\displaystyle{ \mathrm{Fr} }$ is the Froude number which is equivalent to the Mach number for gas dynamics. Then we obtain

$\displaystyle{ H^2 -1 = 2 \mathrm{Fr}^2 \left(1 - \frac{1}{H}\right) }$

This expression has the roots

$\displaystyle{ H=1, \quad H=\frac{1}{2}\left(-1\pm\sqrt{1 + 8 \mathrm{Fr}^2}\right) }$

The only physically meaningful solution is the root which satisfies $\displaystyle{ H\gt 1 }$. This is only true providing $\displaystyle{ \mathrm{Fr} \gt 1 }$, which means that we can only obtain a hydraulic jump if the flow is supercritical.

Below is a video of a hydraulic jump. You can clearly see the point where the flow is changing from supercritical to subcritical (look for the small turbulent region in the channel)

### Shallow Water Bore

We now consider a bore, in which the shock wave advances into still water. We denote the fluid speed by $\displaystyle{ V = u^{-} }$. We denote the height on the wall side by $\displaystyle{ h_1 }$ and the height on the other side must be $\displaystyle{ h_0 }$, i.e. $\displaystyle{ h^{+} = h_0 }$, $\displaystyle{ h^{-} = h_1 }$, $\displaystyle{ u^{+} = 0 }$. This means that

$\displaystyle{ h_{0}\partial_t s(t) - h_{1}\partial_t s(t) + V h_{1}= 0 }$

and

$\displaystyle{ - h_{1}V\partial_t s(t) = - \left(V\right)^2 h_{1} + \frac{1}{2} g \left(h_{0}\right)^2 - \frac{1}{2} g \left(h_{1}\right)^2 }$

which can be solved to obtain the shock speed and the height of the moving fluid.

Below is a video of surfing on the Severn bore, do not believe everything they say. You might also want to check out the Pororoca a tidal bore on the Amazon.