37 ParallelFor(
xbx, [=] AMREX_GPU_DEVICE(
int i,
int j,
int k) noexcept {
38 const auto *
const prob_hi = geomdata.ProbHi();
39 const auto *
const dx = geomdata.CellSize();
44 ParallelFor(
ybx, [=] AMREX_GPU_DEVICE(
int i,
int j,
int k) noexcept {
45 const auto *
const prob_hi = geomdata.ProbHi();
46 const auto *
const dx = geomdata.CellSize();
51 ParallelFor(
zbx, [=] AMREX_GPU_DEVICE(
int i,
int j,
int k) noexcept {
52 z_vel_pert(i, j, k) =
W_0;
constexpr amrex::Real myhalf
Definition: ERF_Constants.H:11
Real U_0
Definition: ERF_InitCustomPertVels_CouettePoiseuille.H:1
Real V_0
Definition: ERF_InitCustomPertVels_CouettePoiseuille.H:2
int prob_type
Definition: ERF_InitCustomPertVels_CouettePoiseuille.H:11
Real W_0
Definition: ERF_InitCustomPertVels_CouettePoiseuille.H:3
const Real dx
Definition: ERF_InitCustomPert_ABL.H:23
const amrex::Real * prob_hi
Definition: ERF_InitCustomPert_DataAssimilation_ISV.H:17
ParallelFor(bx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { const Real *dx=geomdata.CellSize();const Real x=(i+0.5) *dx[0];const Real y=(j+0.5) *dx[1];const Real Omg=erf_vortex_Gaussian(x, y, xc, yc, R, beta, sigma);const Real deltaT=-(gamma - 1.0)/(2.0 *sigma *sigma) *Omg *Omg;const Real rho_norm=std::pow(1.0+deltaT, inv_gm1);const Real T=(1.0+deltaT) *T_inf;const Real p=std::pow(rho_norm, Gamma)/Gamma *rho_0 *a_inf *a_inf;const Real rho_theta=rho_0 *rho_norm *(T *std::pow(p_0/p, rdOcp));state_pert(i, j, k, RhoTheta_comp)=rho_theta - getRhoThetagivenP(p_hse(i, j, k));const Real r2d_xy=std::sqrt((x-xc) *(x-xc)+(y-yc) *(y-yc));state_pert(i, j, k, RhoScalar_comp)=0.25 *(1.0+std::cos(PI *std::min(r2d_xy, R)/R));})
const Box zbx
Definition: ERF_SetupDiff.H:9
const Box xbx
Definition: ERF_SetupDiff.H:7
const Box ybx
Definition: ERF_SetupDiff.H:8
amrex::Real Real
Definition: ERF_ShocInterface.H:19