|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
Functions | |
| std::map< int, Vector< Box > > | make_cf_zface_patches (const BoxArray &fba, const Box &fdom) |
| void | clamp_outside_domain (MultiFab &mf, const Box &cdom, bool per_x, bool per_y) |
| void | copy_slabs_into (MultiFab &dst, const MultiFab &slabs, const Vector< int > &slab_box) |
| void | scale_by_column_mapfac (MultiFab &f, const MultiFab &mx, const MultiFab &my, const Periodicity &per, bool divide) |
| MultiFab | weighted_mass_flux (const MultiFab &m, const MultiFab &area, const MultiFab &mf) |
| MultiFab | weighted_zflux (const MultiFab &w, const MultiFab &mx, const MultiFab &my) |
| void | fill_cf_momentum (ERFFillPatcher &patcher, MultiFab &mom, const MultiFab &area, const MultiFab &mapfac, bool mass_flux, double time_d, const Vector< BCRec > &bcs) |
The mass flux a (rho u) / m of a horizontal momentum component, on the faces of its valid region and the ghost faces that the momentum, the area and the map factor all hold.
| m | Face momenta, (rho u) or (rho v) |
| area | Face areas, ax or ay |
| mf | Map factor on those faces, m_uy or m_vx |
Fill the coarse/fine faces of one horizontal momentum component. Where cf_interp_mass_flux holds, the fill gives the mass flux, which is multiplied by the fine map factor and divided by the fine area on the faces it set; all other faces keep their values exactly.
| void erf_detail_CoarseFineFaces::clamp_outside_domain | ( | MultiFab & | mf, |
| const Box & | cdom, | ||
| bool | per_x, | ||
| bool | per_y | ||
| ) |
Outside a non-periodic side of the domain, repeat the nearest value inside it. The coarse planes extend past the domain as valid cells, so the coarse patch the interpolation copies from them sees finite, one-sided data there.
Referenced by ERF::cf_zface_coarse_at(), and ERF::cf_zface_coarse_data().


| void erf_detail_CoarseFineFaces::copy_slabs_into | ( | MultiFab & | dst, |
| const MultiFab & | slabs, | ||
| const Vector< int > & | slab_box | ||
| ) |
Copy fine slabs (one per coarse/fine face of a box, with the boxes' distribution) into the level's face array: slab s goes into box slab_box[s].
Referenced by ERF::set_cf_zghost_projection().


| void erf_detail_CoarseFineFaces::fill_cf_momentum | ( | ERFFillPatcher & | patcher, |
| MultiFab & | mom, | ||
| const MultiFab & | area, | ||
| const MultiFab & | mapfac, | ||
| bool | mass_flux, | ||
| double | time_d, | ||
| const Vector< BCRec > & | bcs | ||
| ) |
Referenced by ERF::FillSetHorizontalMomentaCF().


| std::map<int, Vector<Box> > erf_detail_CoarseFineFaces::make_cf_zface_patches | ( | const BoxArray & | fba, |
| const Box & | fdom | ||
| ) |
The coarse/fine w-faces of every box of a level: its bottom (top) face where the cells just below (above) it are inside the domain and not in another box of the level.
Referenced by ERF::cf_zface_layout().

| void erf_detail_CoarseFineFaces::scale_by_column_mapfac | ( | MultiFab & | f, |
| const MultiFab & | mx, | ||
| const MultiFab & | my, | ||
| const Periodicity & | per, | ||
| bool | divide | ||
| ) |
Multiply (or divide, with divide = true) the w-face data f, one plane of faces per box, by m_x m_y of the column each face caps (the cell map factors at its (i,j)). The vertical flux the advection and the projection balance is az Omega / (m_x m_y), so this converts between Omega and that flux. mx and my are the level's map factors, their ghost cells included.
Referenced by ERF::cf_zface_coarse_data().


| MultiFab erf_detail_CoarseFineFaces::weighted_mass_flux | ( | const MultiFab & | m, |
| const MultiFab & | area, | ||
| const MultiFab & | mf | ||
| ) |
Referenced by ERF::average_down_mass_flux(), ERF::cf_anelastic_stage_registration(), and ERF::RegisterCoarseMomentumCF().


| MultiFab erf_detail_CoarseFineFaces::weighted_zflux | ( | const MultiFab & | w, |
| const MultiFab & | mx, | ||
| const MultiFab & | my | ||
| ) |
The vertical mass flux (rho w) / (m_x m_y) of a flat mesh, on the faces of its valid region and the ghost faces that the momentum and the map factors all hold.
| w | w-face momenta, (rho w) |
| mx | Map factor m_x |
| my | Map factor m_y |
Referenced by ERF::average_down_mass_flux(), and ERF::RegisterCoarseZMomentumCF().

