Inputs
All of FLUME’s keys are in the flume namespace. Every key has a range
check that stops the run with a message naming the key; no value is clamped.
An unknown key in the flume namespace stops the run at start-up. Lengths
are in metres, times in seconds, elevations on one vertical datum
(Vertical datum).
Grid
Key |
Type |
Default |
Meaning and allowed values |
|---|---|---|---|
|
2 integers |
required |
Cells in x and y. Each from 1 to 230. |
|
2 reals |
|
Lower corner of the domain. Finite. |
|
2 reals |
required |
Upper corner. Finite and greater than |
|
2 integers |
|
Periodic in x and in y. Each 0 or 1. |
|
integer |
|
Largest box edge, in cells. From 1 to 2147483647. |
In each direction the corners must be at most one eighth of the largest floating-point number in magnitude, and the cell size must be a normal number of at least machine epsilon times the larger corner (Single precision and large coordinates).
Time loop and scheme
Key |
Type |
Default |
Meaning and allowed values |
|---|---|---|---|
|
real |
none |
Time at which the run stops. Finite, at least 0. Held in double precision in every build. |
|
integer |
none |
Largest number of steps. From 0 to 2147483647. |
|
real |
|
CFL number (Time step). Greater than 0 and at most 1; at
most 0.5 with |
|
integer |
|
Order of the scheme in space and time, 1 or 2 (Discretization). Order 2 costs about twice the work per step. |
|
real |
|
Acceleration of gravity, m/s2. Finite, greater than 0. |
|
real |
|
Depth at or below which water counts as dry (Wetting and drying). Finite, at least 0. In single precision raise it for beds above about 10 m, where the bed is rounded to more than the default. |
Output
Key |
Type |
Default |
Meaning and allowed values |
|---|---|---|---|
|
string |
|
Plotfile name prefix. Not empty. |
|
integer |
|
Steps between plotfiles, from 0 to 2147483647. The first and the last state are always written. |
Boundaries
A side of a direction that is not periodic is a wall, except where a segment gives it another type (Boundary conditions).
Key |
Type |
Default |
Meaning and allowed values |
|---|---|---|---|
|
strings |
none |
Names of the segments, each once; letters, digits and |
|
string |
required |
|
|
string |
required |
|
|
2 reals |
whole side |
From and to along the side. Finite, ordered, inside the domain. The segment takes the boundary cells whose centre is at the first value or above and below the second: at least one, and no cell in two segments. |
Bed and buildings
Key |
Type |
Default |
Meaning and allowed values |
|---|---|---|---|
|
string |
none |
ESRI ASCII grid of the bed elevation (Raster files),
interpolated bilinearly. Not with any other |
|
string |
none |
ESRI ASCII grid of building heights above the bed, or a mask with
|
|
real |
none |
Height given to every building cell of a mask. Finite, greater than
0. Needs |
|
real |
|
Bed elevation at the lower corner of the domain. Finite. |
|
2 reals |
|
Slope of the plane bed in x and y (rise over run). Finite. |
|
integer |
|
|
|
real |
|
Depth of a paraboloid bowl at the centre of the domain; negative for
a mound. Finite. Needs |
|
real |
none |
Radius at which the bowl crosses the plane. Finite, greater than 0.
Needs a |
|
real |
|
Amplitude of a fixed pseudo-random roughness of the bed. Finite, at least 0. For tests. |
Friction
Key |
Type |
Default |
Meaning and allowed values |
|---|---|---|---|
|
real |
|
Manning coefficient, s/m1/3, the same in every cell. Finite,
at least 0; |
|
string |
none |
ESRI ASCII grid of the coefficient; each cell takes the raster cell
that holds its centre. Values at least 0. Not with
|
Rain
Key |
Type |
Default |
Meaning and allowed values |
|---|---|---|---|
|
string |
|
|
|
real |
required with |
Rain rate, mm/h. Finite, at least 0. Only with |
|
string |
required with |
Hyetograph file (Hyetograph files) or index of rain grids
(Gridded rain index files). Only with |
|
string |
|
|
|
real |
required with |
Rate at the centre of the cell, mm/h. Finite, at least 0. |
|
real |
required with |
Standard deviation of the Gaussian, m. Finite, above 0. |
|
2 reals |
required with |
Centre at \(t = 0\), m, in the coordinates of |
|
2 reals |
|
Velocity of the centre, m/s. Both finite. A step over which the
centre moves more than 2500 |
Each flume.rain.cell.* key is allowed only with moving_cell;
flume.rain.file and flume.rain.interpolation are not allowed with
it.
Infiltration
The models are in Infiltration. Each soil parameter is one value
for every cell or an ESRI ASCII grid (_file; each cell takes the raster
cell that holds its centre, and every cell of the domain must take a value in
the range), not both. A parameter is required with its model and allowed
only with it. Building cells (flume.buildings.file) infiltrate nothing.
Key |
Type |
Default |
Meaning and allowed values |
|---|---|---|---|
|
string |
|
|
|
real or string |
required with |
Saturated hydraulic conductivity \(K_s\), mm/h. Finite, at least 0; 0 is impervious. |
|
real or string |
required with |
Suction head at the wetting front \(\psi_s\), mm. Finite, at least 0. |
|
real or string |
required with |
Initial moisture deficit \(\theta_d\), the porosity less the initial moisture content (a fraction). Finite, from 0 to 1. |
|
real or string |
required with |
Runoff curve number \(CN\). Finite, above 0 and at most 100;
100 is impervious. It must match |
|
real |
|
Initial abstraction ratio \(\lambda = I_a / S\). Finite, at least
0 and below 1. Only with |
Initial state
Without flume.init.surface_elevation the domain starts dry
(Initial state).
Key |
Type |
Default |
Meaning and allowed values |
|---|---|---|---|
|
real |
none |
Elevation of the initial level surface. Finite. Cells whose bed is at or above it start dry. |
|
2 reals |
|
Initial velocity where there is water, m/s. Finite. Needs
|
|
real |
none |
Coordinate of a dam along |
|
real |
none |
Surface elevation in the cells whose centre is at or above the dam position. Finite. Required with a dam. |
|
2 reals |
|
Velocity on the high side of the dam, m/s. Finite. Needs a dam. |
|
|
|
Direction the dam position is measured along. Needs a dam. |
|
2 reals |
|
Slope of the initial surface about the centre of the domain. Finite. Not with a dam. For tests. |
|
real |
|
Curvature of the initial surface about the centre, 1/m. Finite. Not with a dam. For tests. |
|
real |
|
Amplitude of one sine wave of the depth, with the velocity of a simple wave. Finite. Needs a periodic direction along the wave; not with a dam, a surface slope or a curvature. For tests. |
|
|
|
Direction the wave varies along. Needs a wave. |
Checks
A key given the wrong number of values stops the run.
A value of the wrong type, or a key with no value, is stopped by AMReX’s parser; its message may not name the key. The parser accepts expressions:
1e3is a valid integer.A key in another namespace that nothing reads stops the run when it ends, after the output is written (
amrex.abort_on_unused_inputs, which FLUME turns on;= 0turns it off).The bed and the initial state must be finite in every cell.
Before every step and every plotfile the depth must be finite and not negative.
The time step must be finite, above zero and large enough to change the time.
A dry domain with
flume.max_stepalone and no rain ahead stops with a message asking forflume.stop_time(Dry domain).
The integer keys have no joint limit on the number of boxes: a very large
flume.n_cell with a small flume.max_grid_size can ask for more boxes
than memory holds.