|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|


Go to the source code of this file.
Functions | |
| template<typename InterpType_H , typename InterpType_V > | |
| void | BuildScalarAdvectionFluxesWithPolicy (const amrex::Box &bx, const amrex::Array4< const amrex::Real > &scalar, const int scalar_comp, const amrex::GpuArray< const amrex::Array4< amrex::Real >, AMREX_SPACEDIM > &flx_arr, const int flux_comp, const amrex::Array4< const amrex::Real > &avg_xmom, const amrex::Array4< const amrex::Real > &avg_ymom, const amrex::Array4< const amrex::Real > &avg_zmom, const amrex::Real horiz_upw_frac, const amrex::Real vert_upw_frac) |
| void | BuildScalarAdvectionFluxesCentered2 (const amrex::Box &bx, const amrex::Array4< const amrex::Real > &scalar, const int scalar_comp, const amrex::GpuArray< const amrex::Array4< amrex::Real >, AMREX_SPACEDIM > &flx_arr, const int flux_comp, const amrex::Array4< const amrex::Real > &avg_xmom, const amrex::Array4< const amrex::Real > &avg_ymom, const amrex::Array4< const amrex::Real > &avg_zmom) |
| template<typename InterpType_H > | |
| void | BuildScalarAdvectionFluxesVert (const amrex::Box &bx, const amrex::Array4< const amrex::Real > &scalar, const int scalar_comp, const amrex::GpuArray< const amrex::Array4< amrex::Real >, AMREX_SPACEDIM > &flx_arr, const int flux_comp, const amrex::Array4< const amrex::Real > &avg_xmom, const amrex::Array4< const amrex::Real > &avg_ymom, const amrex::Array4< const amrex::Real > &avg_zmom, const amrex::Real horiz_upw_frac, const amrex::Real vert_upw_frac, const AdvType vert_adv_type) |
| void | BuildScalarAdvectionFluxes (const amrex::Box &bx, const amrex::Array4< const amrex::Real > &scalar, const int scalar_comp, const amrex::GpuArray< const amrex::Array4< amrex::Real >, AMREX_SPACEDIM > &flx_arr, const int flux_comp, const amrex::Array4< const amrex::Real > &avg_xmom, const amrex::Array4< const amrex::Real > &avg_ymom, const amrex::Array4< const amrex::Real > &avg_zmom, const AdvType horiz_adv_type, const AdvType vert_adv_type, const amrex::Real horiz_upw_frac, const amrex::Real vert_upw_frac) |
| void | ApplyScalarAdvectionFluxDivergence (const amrex::Box &bx, const amrex::GpuArray< const amrex::Array4< amrex::Real >, AMREX_SPACEDIM > &flx_arr, const int flux_comp, const amrex::Array4< amrex::Real > &rhs, const int rhs_comp, const amrex::Array4< const amrex::Real > &detJ, const amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > &cellSizeInv, const amrex::Array4< const amrex::Real > &mf_mx, const amrex::Array4< const amrex::Real > &mf_my) |
|
inline |
Apply the mapped divergence of component-selected scalar face fluxes.
| [in] | bx | cell-centered box over which the tendency is computed |
| [in] | flx_arr | face-flux views |
| [in] | flux_comp | component of the supplied face-flux views to read |
| [out] | rhs | supplied tendency view |
| [in] | rhs_comp | component of the supplied tendency view to write |
| [in] | detJ | metric Jacobian |
| [in] | cellSizeInv | inverse grid spacing |
| [in] | mf_mx | x map factor at cell centers |
| [in] | mf_my | y map factor at cell centers |
Referenced by AdvectionSrcForScalars().


|
inline |
Build scalar face fluxes using ERF's compile-time interpolation policies. WENO schemes intentionally use the same policy horizontally and vertically, matching the existing native scalar-advection dispatch.
| [in] | bx | cell-centered box over which scalar fluxes are computed |
| [in] | scalar | supplied cell-centered scalar view |
| [in] | scalar_comp | component of the supplied scalar view to reconstruct |
| [out] | flx_arr | face-flux views |
| [in] | flux_comp | component of the supplied face-flux views to write |
| [in] | avg_xmom | x-component of time-averaged mass flux |
| [in] | avg_ymom | y-component of time-averaged mass flux |
| [in] | avg_zmom | z-component of time-averaged mass flux |
| [in] | horiz_adv_type | horizontal advection scheme |
| [in] | vert_adv_type | vertical advection scheme |
| [in] | horiz_upw_frac | horizontal upwind blending fraction |
| [in] | vert_upw_frac | vertical upwind blending fraction |
Referenced by AdvectionSrcForScalars().


|
inline |
Build centered-second-order scalar face fluxes without a reconstruction temporary.
| [in] | bx | cell-centered box over which scalar fluxes are computed |
| [in] | scalar | supplied cell-centered scalar view |
| [in] | scalar_comp | component of the supplied scalar view to reconstruct |
| [out] | flx_arr | face-flux views |
| [in] | flux_comp | component of the supplied face-flux views to write |
| [in] | avg_xmom | x-component of time-averaged mass flux |
| [in] | avg_ymom | y-component of time-averaged mass flux |
| [in] | avg_zmom | z-component of time-averaged mass flux |
Referenced by BuildScalarAdvectionFluxes().


|
inline |
Dispatch scalar face-flux construction for a selected vertical scheme.
| InterpType_H | horizontal interpolation type |
| [in] | bx | cell-centered box over which scalar fluxes are computed |
| [in] | scalar | supplied scalar view |
| [in] | scalar_comp | component of the supplied scalar view to reconstruct |
| [out] | flx_arr | face-flux views |
| [in] | flux_comp | component of the supplied face-flux views to write |
| [in] | avg_xmom | x-component of time-averaged mass flux |
| [in] | avg_ymom | y-component of time-averaged mass flux |
| [in] | avg_zmom | z-component of time-averaged mass flux |
| [in] | horiz_upw_frac | horizontal upwind blending fraction |
| [in] | vert_upw_frac | vertical upwind blending fraction |
| [in] | vert_adv_type | vertical advection scheme |
|
inline |
Build scalar face fluxes with a selected pair of interpolation policies.
| InterpType_H | horizontal interpolation type |
| InterpType_V | vertical interpolation type |
| [in] | bx | cell-centered box over which scalar fluxes are computed |
| [in] | scalar | supplied cell-centered scalar view |
| [in] | scalar_comp | component of the supplied scalar view to reconstruct |
| [out] | flx_arr | face-flux views |
| [in] | flux_comp | component of the supplied face-flux views to write |
| [in] | avg_xmom | x-component of time-averaged mass flux |
| [in] | avg_ymom | y-component of time-averaged mass flux |
| [in] | avg_zmom | z-component of time-averaged mass flux |
| [in] | horiz_upw_frac | horizontal upwind blending fraction |
| [in] | vert_upw_frac | vertical upwind blending fraction |
