ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_TI_utils.H File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

auto make_pi_stage
 
auto apply_bcs
 
auto update_terrain_stage
 
auto update_terrain_substep
 

Variable Documentation

◆ apply_bcs

auto apply_bcs

This routine is called after the scalars are updated for each RK stage

Referenced by ERF::advance_dycore().

◆ make_pi_stage

auto make_pi_stage
Initial value:
= [&](const MultiFab& cons_state)
{
BL_PROFILE("make_pi_stage()");
for (MFIter mfi(cons_state,TilingIfNotGPU()); mfi.isValid(); ++mfi)
{
const Box& gbx1 = mfi.growntilebox(1);
const Array4<const Real>& cons_arr = cons_state.const_array(mfi);
const Array4< Real>& pi_stage_arr = pi_stage.array(mfi);
const Real rdOcp = solverChoice.rdOcp;
const bool l_use_moisture = (solverChoice.moisture_type != MoistureType::None);
amrex::ParallelFor(gbx1, [=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept
{
auto qv_for_p = (l_use_moisture) ? cons_arr(i,j,k,RhoQ1_comp)/cons_arr(i,j,k,Rho_comp) : zero;
pi_stage_arr(i,j,k) = getExnergivenRTh(cons_arr(i,j,k,RhoTheta_comp), rdOcp, qv_for_p);
});
}
}
constexpr amrex::Real zero
Definition: ERF_Constants.H:6
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real getExnergivenRTh(const amrex::Real rhotheta, const amrex::Real rdOcp, const amrex::Real qv=amrex::Real(0))
Definition: ERF_EOS.H:156
#define Rho_comp
Definition: ERF_IndexDefines.H:36
#define RhoTheta_comp
Definition: ERF_IndexDefines.H:37
#define RhoQ1_comp
Definition: ERF_IndexDefines.H:42
const Real rdOcp
Definition: ERF_InitCustomPert_Bomex.H:16
ParallelFor(grown_box, [=] AMREX_GPU_DEVICE(int i, int j, int k) { qrcuten_arr(i, j, k)=Real(0);qscuten_arr(i, j, k)=Real(0);qicuten_arr(i, j, k)=Real(0);})
amrex::Real Real
Definition: ERF_ShocInterface.H:19

Define the Exner pressure at this RK stage

Referenced by ERF::advance_dycore().

◆ update_terrain_stage

auto update_terrain_stage

◆ update_terrain_substep

auto update_terrain_substep