ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_InitCustomPert_AnelasticWallDiffusion.H File Reference

Go to the source code of this file.

Functions

ParmParse pp_prob ("prob")
 
pp_prob query ("axis", axis)
 
pp_prob query ("theta_lo", theta_lo)
 
pp_prob query ("theta_hi", theta_hi)
 
 ParallelFor (bx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { const int index=(axis==0) ? i :((axis==1) ? j :k);const Real coordinate=problo_axis+(static_cast< Real >(index)+Real(0.5)) *dx_axis;const Real theta=theta_lo+(theta_hi - theta_lo) *(coordinate - problo_axis)/length;const Real rho=state(i, j, k, Rho_comp);state_pert(i, j, k, RhoTheta_comp)=rho *theta - state(i, j, k, RhoTheta_comp);})
 

Variables

int axis = 0
 
Real theta_lo = 300.0
 
Real theta_hi = 301.0
 
const Real problo_axis = geomdata.ProbLo(axis)
 
const Real dx_axis = geomdata.CellSize(axis)
 
const Real length = geomdata.ProbHi(axis) - geomdata.ProbLo(axis)
 

Function Documentation

◆ ParallelFor()

ParallelFor ( bx  ,
[=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { const int index=(axis==0) ? i :((axis==1) ? j :k);const Real coordinate=problo_axis+(static_cast< Real >(index)+Real(0.5)) *dx_axis;const Real theta=theta_lo+(theta_hi - theta_lo) *(coordinate - problo_axis)/length;const Real rho=state(i, j, k, Rho_comp);state_pert(i, j, k, RhoTheta_comp)=rho *theta - state(i, j, k, RhoTheta_comp);}   
)
Here is the call graph for this function:

◆ pp_prob()

◆ query() [1/3]

pp_prob query ( "axis"  ,
axis   
)

◆ query() [2/3]

pp_prob query ( "theta_hi"  ,
theta_hi   
)

◆ query() [3/3]

pp_prob query ( "theta_lo"  ,
theta_lo   
)

Variable Documentation

◆ axis

int axis = 0

Referenced by ParallelFor().

◆ dx_axis

const Real dx_axis = geomdata.CellSize(axis)

Referenced by ParallelFor().

◆ length

◆ problo_axis

const Real problo_axis = geomdata.ProbLo(axis)

Referenced by ParallelFor().

◆ theta_hi

Real theta_hi = 301.0

◆ theta_lo

Real theta_lo = 300.0