10 ParallelFor(xbx, [=] AMREX_GPU_DEVICE(
int i,
int j,
int k) noexcept
13 const Real*
dx = geomdata.CellSize();
19 x_vel_pert(i, j, k) =
V_0 * std::sin(
x) * std::cos(
y) * std::cos(
z);
23 ParallelFor(ybx, [=] AMREX_GPU_DEVICE(
int i,
int j,
int k) noexcept
26 const Real*
dx = geomdata.CellSize();
32 y_vel_pert(i, j, k) = -
V_0 * std::cos(
x) * std::sin(
y) * std::cos(
z);
const bool use_z_phys
Definition: ERF_InitCustomPertVels_TaylorGreenVortex.H:4
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);})
ParmParse pp_for_pert_vels("prob")
Real V_0
Definition: ERF_InitCustomPertVels_TaylorGreenVortex.H:7
const Real dx
Definition: ERF_InitCustomPert_ABL.H:44
const GpuArray< Real, AMREX_SPACEDIM > prob_lo
Definition: ERF_InitCustomPert_CloudChamber.H:33
constexpr amrex::Real one
Definition: ERF_NumericalConstants.H:37
constexpr amrex::Real zero
Definition: ERF_NumericalConstants.H:36
constexpr amrex::Real myhalf
Definition: ERF_NumericalConstants.H:41
amrex::Real Real
Definition: ERF_ShocInterface.H:19
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real z_yface(int i, int j, int k, amrex::Array4< amrex::Real const > const &z_nd) noexcept
Height of the centre of y-face (i,j,k)
Definition: ERF_ProbHeights.H:30
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real z_xface(int i, int j, int k, amrex::Array4< amrex::Real const > const &z_nd) noexcept
Height of the centre of x-face (i,j,k)
Definition: ERF_ProbHeights.H:21