|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
Flood grid data structure, construction and the maps between the flood grid and the atmospheric columns. More...
#include <ERF_SurfaceGrid.H>#include <AMReX_BoxArray.H>#include <AMReX_DistributionMapping.H>#include <AMReX_Geometry.H>#include <AMReX_MultiFab.H>

Go to the source code of this file.
Classes | |
| struct | FloodGrid |
| 2D horizontal flood grid More... | |
Functions | |
| const SurfaceCouplingNames & | flood_coupling_names () |
| The flood coupling's names: erf.flood.<key>, "[FLOOD]", "flood grid". More... | |
| FloodGrid | create_flood_grid (const amrex::BoxArray &ba_atm, const amrex::DistributionMapping &dm_atm, const amrex::Geometry &geom_atm, int C) |
| Construct a refined 2D flood grid over one atmospheric level's boxes. More... | |
| bool | flood_same_columns (const amrex::BoxArray &a, const amrex::BoxArray &b) |
| surface_same_columns: box n of a and box n of b cover the same columns. More... | |
| bool | flood_pairs_with_atm (const amrex::MultiFab &flood_mf, const amrex::MultiFab &atm_mf, const FloodGrid &fg) |
| void | flood_fill_boundary (amrex::MultiFab &mf, const amrex::Geometry &geom) |
| void | fill_flood_from_atm_k0 (amrex::MultiFab &flood_mf, const amrex::MultiFab &atm_k0, const FloodGrid &fg, int fcomp=0, int acomp=0) |
| void | coarsen_flood_to_atm (amrex::MultiFab &atm_out, const amrex::MultiFab &flood, const FloodGrid &fg) |
Flood grid data structure, construction and the maps between the flood grid and the atmospheric columns.
A 2D grid on the horizontal plane, refined by grid_ratio relative to one atmospheric AMR level (erf.flood.anchor_level, the finest level by default). The flood grid covers that level's boxes, keeps their x-y decomposition and their MPI owners, and its index space starts at zero at the lower corner of the region they cover. It is the surface grid of the surface-coupling layer (ERF_SurfaceGrid.H) under the flood coupling's name, as the fire grid is; the functions below call that layer with the flood coupling's names.
|
inline |
Average a flood-grid field over each atmospheric column (the C x C flood cells under it) into the k = 0 slabs of the flood grid's level (surface_coarsen_to_atm). Box n of the output is the k = 0 slab of atmospheric box n.
Referenced by FloodCoupler::fill_plot_var().


| FloodGrid create_flood_grid | ( | const amrex::BoxArray & | ba_atm, |
| const amrex::DistributionMapping & | dm_atm, | ||
| const amrex::Geometry & | geom_atm, | ||
| int | C | ||
| ) |
Construct a refined 2D flood grid over one atmospheric level's boxes.
| [in] | ba_atm | BoxArray of the atmospheric level |
| [in] | dm_atm | DistributionMapping of the atmospheric level |
| [in] | geom_atm | Geometry of the atmospheric level |
| [in] | C | Refinement factor (erf.flood.grid_ratio, >= 1) |
|
inline |
Copy component acomp of a k = 0 atmospheric field into component fcomp of a flood-grid field (surface_fill_from_atm_k0): every flood cell takes the value of the atmospheric column it lies in. A per-area quantity (precipitation in kg/m2) keeps its column total.

|
inline |
The flood coupling's names: erf.flood.<key>, "[FLOOD]", "flood grid".
Referenced by coarsen_flood_to_atm(), create_flood_grid(), fill_flood_from_atm_k0(), flood_anchor_level(), flood_fill_boundary(), FloodCouplingParams::read(), register_flood_engine(), verify_flood_precip_source(), and verify_flood_prerequisites().

|
inline |
surface_fill_boundary: exchange the ghost cells of a cell-centred flood-grid MultiFab and fill the ones outside a non-periodic face.

|
inline |
surface_pairs_with_atm: box n of the flood grid refines the columns of atmospheric box n for every n, with the same owners.

|
inline |
surface_same_columns: box n of a and box n of b cover the same columns.
Referenced by FloodCoupler::fill_plot_var().

