Governing equations

FLUME solves the shallow-water equations for the depth \(h\) and the discharges \(hu\) and \(hv\) over a fixed bed of elevation \(z_b\):

\[\begin{split}\frac{\partial h}{\partial t} + \frac{\partial (hu)}{\partial x} + \frac{\partial (hv)}{\partial y} &= R , \\ \frac{\partial (hu)}{\partial t} + \frac{\partial}{\partial x}\left(hu^2 + \tfrac{1}{2} g h^2\right) + \frac{\partial (huv)}{\partial y} &= -g h \frac{\partial z_b}{\partial x} + S_{f,x} , \\ \frac{\partial (hv)}{\partial t} + \frac{\partial (huv)}{\partial x} + \frac{\partial}{\partial y}\left(hv^2 + \tfrac{1}{2} g h^2\right) &= -g h \frac{\partial z_b}{\partial y} + S_{f,y} .\end{split}\]
4 Symbols

Symbol

Unit

Meaning

\(h\)

m

Water depth; zero in a dry cell.

\(hu\), \(hv\)

m2/s

Discharge per unit width in x and y.

\(u\), \(v\)

m/s

Depth-averaged velocity.

\(z_b\)

m

Bed elevation.

\(g\)

m/s2

Acceleration of gravity (flume.gravity).

\(R\)

m/s

Rain rate (Rain).

\(\mathbf{S}_f\)

m2/s2

Manning friction (Manning friction).

State

The three conserved quantities and the bed are held at the cell centres of one level of cells in the horizontal plane, as AMReX MultiFab objects on one BoxArray. The boxes are one cell thick.

Vertical datum

The bed elevation and the water-surface elevation \(\eta\) are heights above one vertical datum. The inputs give the bed and the initial surface as elevations; the depth is never an input. Afterwards

\[\eta = z_b + h ,\]

and \(\eta = z_b\) in a dry cell. The scheme uses only differences of elevations, so a large datum offset costs no digits in double precision (Single precision and large coordinates).