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+0.0) *dx[0];const Real y=prob_lo[1]+(j+0.5) *dx[1];const Real z=prob_lo[2]+(k+0.5) *dx[2];x_vel_pert(i, j, k)=V_0 *sin(x) *cos(y) *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+0.5) *dx[0];const Real y=prob_lo[1]+(j+0.0) *dx[1];const Real z=prob_lo[2]+(k+0.5) *dx[2];y_vel_pert(i, j, k)=- V_0 *cos(x) *sin(y) *cos(z);})
 

Variables

Real V_0 = 1.0
 

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+0.0) *dx[0];const Real y=prob_lo[1]+(j+0.5) *dx[1];const Real z=prob_lo[2]+(k+0.5) *dx[2];x_vel_pert(i, j, k)=V_0 *sin(x) *cos(y) *cos(z);}   
)

◆ 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+0.5) *dx[0];const Real y=prob_lo[1]+(j+0.0) *dx[1];const Real z=prob_lo[2]+(k+0.5) *dx[2];y_vel_pert(i, j, k)=- V_0 *cos(x) *sin(y) *cos(z);}   
)

◆ pp_for_pert_vels()

ParmParse pp_for_pert_vels ( "prob"  )

◆ query()

pp_for_pert_vels query ( "V_0"  ,
V_0   
)

Variable Documentation

◆ V_0

Real V_0 = 1.0

Referenced by ParallelFor().