Source terms
A source term changes the state in a cell without a flux between cells. Each
source is a class with a name and one step of \(\Delta t\)
(Source/FLUME_Source.H). The active sources are printed at start-up and
act once per step, after all the explicit stages, in this order: rain,
infiltration, then Manning friction. They act on a dry domain too.
The bed-slope term is not one of these sources: it is part of each explicit stage (Hydrostatic reconstruction).
Rain
Rain is the same in every cell, with a rate \(r(t)\) given by a table of times \(t_0 < \dots < t_N\) and rates \(r_0, \dots, r_N \ge 0\).
|
Rate |
|---|---|
|
\(r(t) = r_0\) ( |
|
\(r_k\) from \(t_k\) to \(t_{k+1}\)
( |
|
Linear in time between the entries. |
Before \(t_0\) the rate is \(r_0\); from \(t_N\) on it is \(r_N\).
Step. The step from \(t^n\) to \(t^{n+1}\) adds to every depth the integral of the rate,
evaluated in closed form from the table. The discharges are not changed: rain brings no horizontal momentum. Rain falls on every cell, wet or dry.
Properties.
The depth added over a run is \(I(T) - I(0)\) to round-off, whatever the steps: a change of rate inside a step is integrated exactly.
Each cell keeps the part of the rain that the addition rounded away and adds it with the next step (a compensated sum). In single precision the rain of one step can be below the rounding of the depth; the sum keeps it. A negative carry (rain rounded up) waits while the cell holds less than it, so rain never takes the depth below 0, also in a cell that another source (infiltration) has just emptied.
Rain is first order in time at both orders of the scheme.
The solver asks a forcing provider (Source/FLUME_Forcing.H) for the depth
of rain over an interval and for the largest rate over an interval
(Rain). Rain that varies in space comes from two further
providers (Rain that varies in space).
Rain that varies in space
Both providers give each cell the integral of the rate over the cell and the step, divided by the cell area. The compensated sum and the step bound are those of Rain.
Gridded rain (gridded). Entry \(k\) of the index file is a time
\(T_k\) and a grid of rates \(g_{k,m}\) (m/s) on cells \(A_m\).
On a solver cell \(\Omega_{ij}\) of area \(|\Omega_{ij}|\),
where \(W_k(t)\) is the integral up to \(t\) of the weight of entry
\(k\) in the rate: 1 from \(T_k\) to \(T_{k+1}\) (step), or
the hat function that is 1 at \(T_k\) and 0 at \(T_{k\pm1}\)
(linear); the first weight is 1 before \(T_0\) and the last after
\(T_N\).
Cell edges are formed in grid units by one formula, so neighbouring cells share each edge to the last bit and the rain on the domain is the integral of the grid over it, to round-off.
An edge within 16 epsilons of a whole grid unit is set to it, so a grid cell beyond it is not read through a sliver of round-off.
The weights are differences of \(W_k\), so the weights of all steps add up to those of the run: the volume delivered is the integral of the input, whatever the steps.
The step bound is the largest mapped rate of the grids an interval uses.
Moving cell (moving_cell). With peak rate \(P\), standard
deviation \(\sigma\), centre \(\mathbf{c}_0\) at \(t = 0\) and
velocity \(\mathbf{v}\),
The mean over a cell \([x_a, x_b] \times [y_a, y_b]\) at one time is exact:
Each difference is formed from \(\mathrm{erfc}\) on the side away from the centre, so a cell far from the centre keeps its digits.
In time: the 4-point Gauss-Legendre rule on \(n = \max(1, \lceil 4|\mathbf{v}|\,\Delta t/\sigma \rceil)\) sub-intervals, so the centre moves at most \(\sigma/4\) in each. A cell at rest is exact with one.
A cell of peak 0 adds nothing and is not integrated. A step that needs more than \(10^4\) sub-intervals stops the run.
Centre positions are formed in double precision relative to
flume.prob_lo. The step bound is \(P\).
Infiltration
Infiltration takes water from the surface into the soil
(flume.infiltration.type). Each step a loss model gives a depth
\(\Delta F\) for each cell, which the cell loses, never more than the
water \(W\) it holds after the rain of the step. The water that leaves
takes its share of the discharge: \(\mathbf{q}\) is scaled by
\((h - \Delta F)/h\), so the velocity does not change, and a cell left at
or below \(h_{\mathrm{dry}}\) holds no discharge. The cumulative loss
\(F\) of each cell is written to the plotfiles as infiltrated_depth.
It adds the depth actually removed, \(h - h_{\mathrm{new}}\) as stored
(the subtraction rounds), in a compensated sum like the rain’s, so the depth
plus \(F\) of each cell stays the water it got, to a few epsilons over
any number of steps. So the water balances: water on the surface plus \(F\), summed over
the cells, is the initial water plus the rain, less what leaves through the
sides. Building cells and cells with \(K_s = 0\) or \(CN = 100\)
infiltrate nothing.
Green-Ampt (green_ampt), as in Rossman and Huber (2016, section
4.4). With the saturated hydraulic conductivity \(K_s\), the suction
head at the wetting front \(\psi_s\), the initial moisture deficit
\(\theta_d\) and \(M = \psi_s \theta_d\), the infiltration rate of a
saturated surface is
With \(i = W/\Delta t\), the rate at which water is available in the step:
\(i \le K_s\): the cell loses \(W\).
Otherwise the surface is saturated once \(F\) reaches
\[F_s = \frac{K_s M}{i - K_s}\](their eq. 4-29). Below \(F_s\) the cell loses \(W\) if \(F + W < F_s\). Else \(F\) rises to \(F_s\) at the rate \(i\), after \(t_s = (F_s - F)/i\), and follows the integrated equation for the rest of the step (eq. 4-32):
\[K_s \tau = (F_2 - F_1) - M \ln\frac{F_2 + M}{F_1 + M} ,\]with \(\tau = \Delta t - t_s\) (or \(\Delta t\) when already saturated), \(F_1\) the cumulative loss at the start of \(\tau\) and \(F_2\) at its end.
Why the integrated equation. It is exact for any \(\tau\), so the ponded infiltration does not depend on the step. \(F_2\) is found by Newton’s method from the upper bound \(F_1 + K_s\tau + \sqrt{2 M K_s \tau}\), in double precision, with a series for \(u - \ln(1 + u)\) when \(u = (F_2 - F_1)/(F_1 + M)\) is small. When the surface is saturated the rate is at most \(i\), so the loss is at most \(W\).
Representative parameters by soil class are in Rossman and Huber (2016, Table 4-7, after Rawls et al., 1983). Ponded water at \(t = 0\) is taken as rain of rate \(h/\Delta t\) in the first step; the surface then saturates when \(F\) reaches \(F_s \approx K_s M \Delta t / h\), after \(K_s M \Delta t^2 / h^2\), instead of at once. Exact ponding reaches the same \(F_s\) after half that time, so \(F\) lags by about \(K_s M \Delta t^2 / (2h^2)\): \(3.7 \times 10^{-6}\) s in the test of Infiltration.
Curve number (curve_number), the NRCS runoff curve number used as a
loss on the rain (NRCS, 2004; Woodward et al., 2003). With \(P\) the rain
fallen on the cell since the start, the potential retention \(S\) and
the initial abstraction \(I_a = \lambda S\),
and the cumulative loss is \(L(P) = P - Q\), computed as \(I_a + (P - I_a) S / (P - I_a + S)\) above \(I_a\). \(P\) is a compensated sum, like the rain’s, so a run of many small steps keeps it in single precision. Each step the cell loses \(L(P_{n+1}) - L(P_n)\), which is at most the rain of the step (\(dL/dP \le 1\)). Water that runs onto a cell from its neighbours is not infiltrated: the loss depends on the cell’s own rain only.
Which CN. The handbook tables of curve numbers assume
\(\lambda = 0.2\). FLUME does not convert: the curve number given must
match flume.infiltration.cn.ia_ratio. For \(\lambda = 0.05\),
Woodward et al. (2003, eqs. 8 and 9) relate the retentions (in inches) and
the curve numbers by
For example \(CN_{0.2} = 75\) gives \(CN_{0.05} = 65.31\) (their Table 4).
Limitations.
One storm: the soil does not recover between storms (Rossman and Huber, 2016, section 4.4.2, not modelled). There a saturated soil takes \(75/\sqrt{K_s}\) hours (\(K_s\) in in/h) to recover fully: 106 h for \(K_s = 12.7\) mm/h, much longer than a flood of a few hours.
Green-Ampt leaves out the depth of the ponded water from the head that drives infiltration (Rossman and Huber, 2016, eq. 4-27, assume it small next to \(\psi_s\)). Under deep ponding the loss is then low.
The curve number does not infiltrate run-on water, and it has no rate: a cell’s loss follows its rain, whatever the soil under ponded water.
Infiltration is first order in time at both orders of the scheme, like the other sources.
Manning friction
With the Manning coefficient \(n\) (flume.friction.manning or
flume.friction.manning_file) and the discharge
\(\mathbf{q} = (hu, hv)\):
In uniform flow down a slope \(S\) it balances gravity, which gives Manning’s normal discharge \(q_n = h^{5/3} S^{1/2} / n\).
Implicit update. With \(\mathbf{q}^*\) and \(h\) from the explicit terms, the friction step is backward Euler in the discharge at fixed depth:
Since \(0 < r \le 1\), friction never reverses the flow and sets no limit on the time step. For uniform flow on a plane the steady state of the update is Manning’s balance for any \(\Delta t\). A cell at or below \(h_{\mathrm{dry}}\) is not touched.
At second order friction acts once, on the mean of the two explicit stages:
with \(L\) the explicit terms and \(F\) the friction step.
Limitations.
Friction is first order in time at both orders.
At first order the bed-slope term drives uniform flow on a plane with \(g S (h - S \Delta x / 2)\) instead of \(g h S\) (Delestre et al., 2012). The steady discharge is low by the fraction \(1 - \sqrt{1 - S \Delta x / (2 h)} \approx S \Delta x / (4 h)\).
A film thinner than the drop of the bed over one cell (\(S \Delta x > h\)) is driven with a fraction \(h / (2 S \Delta x)\) of \(g h S\) at first order. The second-order reconstruction is exact on a plane.
In a stiff film at second order the second stage starts from a discharge that friction has not damped; the outflow limit keeps the depth non-negative.