8 Real
T_0 = amrex::Real(300.0);
pp.query(
"T_0",
T_0);
12 ParallelFor(bx, [=] AMREX_GPU_DEVICE(
int i,
int j,
int k) noexcept
15 const Real*
prob_lo = geomdata.ProbLo();
16 const Real*
dx = geomdata.CellSize();
24 + (
one / amrex::Real(16.0)) * (std::cos(2 *
x) + std::cos(2 *
y)) * (std::cos(2 *
z) + 2));
GpuArray< Real, AMREX_SPACEDIM > dx
Definition: ERF_ActuatorSpreading.cpp:131
constexpr amrex::Real Gamma
Definition: ERF_Constants.H:70
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real getRhoThetagivenP(const amrex::Real p, const amrex::Real qv=amrex::Real(0))
Definition: ERF_EOS.H:172
#define RhoScalar_comp
Definition: ERF_IndexDefines.H:65
#define RhoTheta_comp
Definition: ERF_IndexDefines.H:62
const GpuArray< Real, AMREX_SPACEDIM > prob_lo
Definition: ERF_InitCustomPert_CloudChamber.H:34
const bool use_z_phys
Definition: ERF_InitCustomPert_TaylorGreenVortex.H:4
Real M_0
Definition: ERF_InitCustomPert_TaylorGreenVortex.H:9
Real rho_0
Definition: ERF_InitCustomPert_TaylorGreenVortex.H:7
ParallelFor(bx, [=] 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+myhalf) *dx[1];const Real z=use_z_phys ? z_cc(i, j, k) :prob_lo[2]+(k+myhalf) *dx[2];const Real p=rho_0 *V_0 *V_0 *(one/(Gamma *M_0 *M_0)+(one/amrex::Real(16.0)) *(std::cos(2 *x)+std::cos(2 *y)) *(std::cos(2 *z)+2));state_pert(i, j, k, RhoTheta_comp)=getRhoThetagivenP(p) - getRhoThetagivenP(p_hse(i, j, k));state_pert(i, j, k, RhoScalar_comp)=one *rho_0;})
Real T_0
Definition: ERF_InitCustomPert_TaylorGreenVortex.H:8
Real V_0
Definition: ERF_InitCustomPert_TaylorGreenVortex.H:10
constexpr amrex::Real one
Definition: ERF_NumericalConstants.H:37
constexpr amrex::Real myhalf
Definition: ERF_NumericalConstants.H:41
@ p
Definition: ERF_WSM6.H:303