|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
#include <AMReX_Array.H>#include <AMReX_Box.H>#include <AMReX_Geometry.H>#include <AMReX_REAL.H>

Go to the source code of this file.
Functions | |
| amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > | LengthScaleCellSize (const amrex::Geometry &geom) |
| amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > | LengthScaleInvCellSize (const amrex::Geometry &geom) |
|
inline |
Cell sizes for formulas that use a lateral cell size as a length scale rather than to divide a difference: LES filter widths, scale-aware parameterizations, drag rates and per-area densities.
On a domain with one cell in y and more than one in x (an x-z run), dy is arbitrary, so dx is used in its place; likewise dy replaces dx on a domain with one cell in x. The formula then keeps its 3-D form, as if the unresolved direction had the spacing of the resolved one. A single column (one cell in both) keeps the dx and dy of the inputs as its nominal column size.
The level's own domain decides: a lateral direction with one cell is not refined (amr.ref_ratio_vect = r 1 r), so it has one cell on every level, and the spacing copied is that of the level.
| [in] | geom | geometry of the level |
Referenced by ShocDriver::advance(), ComputeDiffusivityMRF(), ImmersedForcingBuildings_Scalar(), ImmersedForcingBuildings_Xmom(), ImmersedForcingBuildings_Ymom(), ImmersedForcingBuildings_Zmom(), ImmersedForcingTerrain_HorizMom_FractionStress(), ImmersedForcingTerrain_Scalar(), ImmersedForcingTerrain_Scalar_FractionStress(), ImmersedForcingTerrain_Xmom(), ImmersedForcingTerrain_Ymom(), ImmersedForcingTerrain_Zmom(), ERF::make_if_projection_sigma(), MOSTAverage::make_MOSTAverage_at_level(), EWP::source_terms_cellcentered(), Fitch::source_terms_cellcentered(), GeneralAD::source_terms_cellcentered(), SimpleAD::source_terms_cellcentered(), MassSource::update_geometry(), and SolverChoice::use_building_immersed_forcing().

|
inline |
Inverse of LengthScaleCellSize.
| [in] | geom | geometry of the level |
Referenced by ComputeTurbulentViscosityLES(), and ComputeTurbulentViscosityLES_EB().
