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

Go to the source code of this file.

Functions

ParmParse pp_for_pert_vels ("prob")
 
pp_for_pert_vels query ("V_0", V_0)
 
 ParallelFor (xbx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { const Real *prob_lo=geomdata.ProbLo();const Real *dx=geomdata.CellSize();const Real x=prob_lo[0]+(i+zero) *dx[0];const Real y=prob_lo[1]+(j+myhalf) *dx[1];const Real z=use_z_phys ? erf_prob_heights::z_xface(i, j, k, z_nd) :prob_lo[2]+(k+myhalf) *dx[2];x_vel_pert(i, j, k)=V_0 *std::sin(x) *std::cos(y) *std::cos(z);})
 
 ParallelFor (ybx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { const Real *prob_lo=geomdata.ProbLo();const Real *dx=geomdata.CellSize();const Real x=prob_lo[0]+(i+myhalf) *dx[0];const Real y=prob_lo[1]+(j+zero) *dx[1];const Real z=use_z_phys ? erf_prob_heights::z_yface(i, j, k, z_nd) :prob_lo[2]+(k+myhalf) *dx[2];y_vel_pert(i, j, k)=- V_0 *std::cos(x) *std::sin(y) *std::cos(z);})
 

Variables

const bool use_z_phys = use_physical_z()
 
Real V_0 = one
 

Function Documentation

◆ ParallelFor() [1/2]

ParallelFor ( xbx  ,
[=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { const Real *prob_lo=geomdata.ProbLo();const Real *dx=geomdata.CellSize();const Real x=prob_lo[0]+(i+zero) *dx[0];const Real y=prob_lo[1]+(j+myhalf) *dx[1];const Real z=use_z_phys ? erf_prob_heights::z_xface(i, j, k, z_nd) :prob_lo[2]+(k+myhalf) *dx[2];x_vel_pert(i, j, k)=V_0 *std::sin(x) *std::cos(y) *std::cos(z);}   
)
Here is the call graph for this function:

◆ ParallelFor() [2/2]

ParallelFor ( ybx  ,
[=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { const Real *prob_lo=geomdata.ProbLo();const Real *dx=geomdata.CellSize();const Real x=prob_lo[0]+(i+myhalf) *dx[0];const Real y=prob_lo[1]+(j+zero) *dx[1];const Real z=use_z_phys ? erf_prob_heights::z_yface(i, j, k, z_nd) :prob_lo[2]+(k+myhalf) *dx[2];y_vel_pert(i, j, k)=- V_0 *std::cos(x) *std::sin(y) *std::cos(z);}   
)
Here is the call graph for this function:

◆ pp_for_pert_vels()

ParmParse pp_for_pert_vels ( "prob"  )

◆ query()

pp_for_pert_vels query ( "V_0"  ,
V_0   
)

Variable Documentation

◆ use_z_phys

const bool use_z_phys = use_physical_z()

Referenced by ParallelFor().

◆ V_0

Real V_0 = one

Referenced by ParallelFor().