FLUME is a two-dimensional shallow-water flood solver for the Energy Research and Forecasting (ERF) atmospheric code, built on AMReX. It is planned as a fine 2D surface grid that shares the horizontal decomposition of the atmosphere and is advanced inside ERF's time loop, the way the fire front is in FLARE. Rainfall-driven flooding comes first. River inflow and coastal surge come later.
The expansion of the name is a draft.
The executable, flume, reads an inputs file, builds the grid, the bed and
the initial state, and advances the shallow-water equations with a
first-order or second-order finite-volume scheme (HLLC fluxes with
hydrostatic reconstruction), writing plotfiles.
| Area | Available |
|---|---|
| Scheme | First and second order; wetting and drying; absolute datum. |
| Sides | Walls, outflow over a whole side or over segments, periodic. |
| Bed | Plane, bowl or raster; building footprints from a raster. |
| Friction | Manning, one coefficient or a raster map. |
| Rain | Constant, hyetograph, gridded (ESRI ASCII series), moving cell. |
It is verified against a lake at rest, the wet and dry dam-break solutions, Thacker's solutions in a bowl, a smooth wave (rate of convergence), uniform flow with friction and the kinematic wave of rain on a plane.
- Full shallow-water equations, finite volume, HLLC flux with hydrostatic reconstruction; wetting and drying; first and second order.
- Bed and free surface on an absolute vertical datum.
- Manning friction, infiltration (Green-Ampt, curve number), storm-drain inlets.
- Rain as a constant, a hyetograph, a gridded time-varying field, or the surface precipitation of ERF's microphysics.
- Terrain, roughness and building footprints from rasters.
- A water-balance log, flood outputs (maximum depth, speed, arrival time), checkpoint and restart.
Not yet available: infiltration, storm-drain inlets, the coupling to ERF, the water-balance log, the flood outputs, and checkpoint and restart.
| Path | Contents |
|---|---|
Source |
FLUME's sources. |
Tests |
Test decks, the test runner and the check scripts. |
Docs/sphinx_doc |
The documentation (Sphinx): user guide, theory, verification. |
.github/workflows |
Continuous integration: builds and tests, style, documentation. |
Submodules/ERF |
ERF, pinned to the tagged release 26.11. AMReX comes through ERF. |
FLUME uses ERF the way GALE and FLARE do: ERF is a submodule, FLUME holds only its own files, and every change FLUME needs in ERF goes to ERF as a pull request.
FLUME needs CMake 3.25 or newer, a C++20 compiler and, for the tests, Python 3. MPI is optional and on by default. Two submodules are needed: ERF, and the AMReX that ERF pins.
git clone https://github.com/erf-model/FLUME.git
cd FLUME
git submodule update --init Submodules/ERF
git -C Submodules/ERF submodule update --init --depth 1 Submodules/AMReX
cmake -S . -B build-rel -DCMAKE_BUILD_TYPE=Release
cmake --build build-rel -j 8
ctest --test-dir build-rel --output-on-failureThe stand-alone build compiles no ERF code. The CMake options, the inputs, the
tests and how to move the ERF submodule are in Docs/sphinx_doc:
python -m pip install -r Docs/sphinx_doc/requirements.txt
sphinx-build -W --keep-going -b html Docs/sphinx_doc Docs/sphinx_doc/_build/htmlFLUME is released under ERF's license. LICENSE.md and copyright.txt are the
same files as in ERF, GALE and FLARE.