Skip to content
erf-modelPublic

About

FLUME: FLood and Urban inundation ModulE, a 2D shallow-water flood solver for ERF

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

FLUME: FLood and Urban inundation ModulE

FLUME is a two-dimensional shallow-water flood solver for the Energy Research and Forecasting (ERF) atmospheric code, built on AMReX. It runs stand-alone, or inside ERF 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, with rain from ERF's microphysics. Rainfall-driven flooding comes first. River inflow and a coastal surge model (wind and air pressure, uniform or from grids, or the wind from ERF) are available.

Documentation of the FLUME theory and implementation is available here.

The expansion of the name is a draft.

Status

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; over segments: outflow, zero gradient, inflow, a water
level, normal depth or a rating curve; periodic.
Bed Plane, bowl or raster; building footprints from a raster;
inside ERF, ERF's terrain.
Friction Manning, one coefficient or a raster map.
Rain Constant, hyetograph, gridded (ESRI ASCII series), moving cell;
inside ERF, the surface precipitation of ERF's microphysics.
Surge Wind stress and air pressure: uniform (constant, table) or grids;
inside ERF, the wind of ERF's lowest cell, brought to 10 m, and
ERF's surface pressure, brought to FLUME's datum.
Losses Infiltration (Green-Ampt, curve number); interception;
evaporation; storm-drain inlets; burn severity factors on the
soil, friction and canopy.
Structures Sewer network (SWMM); pumps, culverts, weirs (with breach),
bridges; sub-grid channels; inflows inside the domain.
Output Plotfiles, flood maps, water-balance log, gauges, asset levels,
checkpoints.

Tests/ERFStorm is a coupled example: a convective cell from ERF's microphysics over an urban catchment, with the replay of its rain and the same storm as a hyetograph (Docs/sphinx_doc/CoupledExample.rst). Tests/ERFStormTown takes that storm's rain to a town of 100 buildings: ERF's immersed forcing for the wind on 10 m cells, FLUME's flood on 2.5 m cells (Docs/sphinx_doc/TownExample.rst). Tests/Gowanus runs FLUME alone on a real place: 1 km of Gowanus, Brooklyn, with lidar terrain and the city's building footprints, under a simplified rain (Docs/sphinx_doc/GowanusExample.rst). Its data are downloaded, so it has no CTest. Tests/Brooklyn compares FLUME with FloodNet street-flood sensors in the validation basin of Annis, Badas and Mascaro (2026): three measured storms, with and without stormwater inlets (Docs/sphinx_doc/BrooklynExample.rst). Its data are downloaded too.

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.

Planned scope

  • 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 (weir and orifice, or approach flow; one by one or from a list file).
  • 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.
  • Sub-grid channels for rivers narrower than a cell (Neal, Schumann and Bates 2012).
  • A water-balance log, flood outputs (maximum depth, speed, arrival time), checkpoint and restart.

FLUME itself reads ESRI ASCII grids. tools/prepare_rasters.py writes them from GeoTIFF, any other raster GDAL reads, or CF NetCDF files.

Layout

Path Contents
Source FLUME's sources.
Tests Test decks, the test runner and the check scripts.
Docs/sphinx_doc The documentation (Sphinx): user guide, examples, theory, V&V.
.github/workflows Continuous integration: builds and tests, style, documentation.
tools Python tools that prepare inputs, run scenarios and export maps.
Submodules/ERF ERF, pinned to a commit after tag 26.11. AMReX comes through ERF.
Submodules/SWMM EPA SWMM, for the sewer network (FLUME_WITH_SWMM).

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.

Building and testing

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-failure

The stand-alone build compiles no ERF code; -DFLUME_WITH_ERF=ON also builds ERF from the submodule, on the same AMReX. 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/html

License

FLUME is released under ERF's license. LICENSE.md and copyright.txt are the same files as in ERF, GALE and FLARE.

About

FLUME: FLood and Urban inundation ModulE, a 2D shallow-water flood solver for ERF

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages