|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
The restriction of a structure model's momentum source onto the coarser levels. More...
#include <AMReX_BoxArray.H>#include <AMReX_DistributionMapping.H>#include <AMReX_Geometry.H>#include <AMReX_IntVect.H>#include <AMReX_MultiFab.H>#include <AMReX_Vector.H>#include <array>

Go to the source code of this file.
Namespaces | |
| erf_structure | |
Functions | |
| void | erf_structure::restrict_face_sources (std::array< amrex::MultiFab, AMREX_SPACEDIM > &src, int L, int lev, const amrex::Vector< amrex::BoxArray > &grids, const amrex::Vector< amrex::DistributionMapping > &dmap, const amrex::Vector< amrex::Geometry > &geom, const amrex::Vector< amrex::IntVect > &ref_ratio, const amrex::Vector< const amrex::MultiFab * > &detJ) |
| Restrict face-centered momentum sources from level L down to level lev < L. More... | |
| void | erf_structure::scale_by_face_jacobian (amrex::MultiFab &mf, int dir, const amrex::MultiFab &detJ, const amrex::Geometry &geom, bool divide) |
| Multiply (divide = false) or divide (divide = true) the valid faces normal to dir by the face Jacobian J_f described above. More... | |
| std::array< amrex::Real, AMREX_SPACEDIM > | erf_structure::face_source_force (const std::array< amrex::MultiFab, AMREX_SPACEDIM > &src, const amrex::Geometry &geom, const amrex::MultiFab *detJ) |
| The force [N] a face source puts on the air, per direction: the sum over the faces of the source times J_f dx dy dz, each face counted once. More... | |
The restriction of a structure model's momentum source onto the coarser levels.
ERF::make_structure_coarse_sources calls it at the start of each step of a level below the model's level (erf.coupling_type = TwoWay). The restriction keeps the force the source puts on the air, the integral of the source over the faces' control volumes, on uniform, stretched and terrain-following meshes.