8 Real
H = phys_zhi(geomdata, lev);
13 ParallelFor(bx, [=] AMREX_GPU_DEVICE(
int i,
int j,
int k) noexcept
15 const auto prob_lo = geomdata.ProbLo();
16 const auto dx = geomdata.CellSize();
20 Real z_base =
Ampl * std::sin(
kp *
x);
23 Real fac = std::cosh(
kp * (
z -
H) ) / std::sinh(
kp *
H);
25 Real p_total = p_hse(i,j,k) + p_prime;
GpuArray< Real, AMREX_SPACEDIM > dx
Definition: ERF_ActuatorSpreading.cpp:131
constexpr amrex::Real CONST_GRAV
Definition: ERF_Constants.H:72
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
ParallelFor(bx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { const auto prob_lo=geomdata.ProbLo();const auto dx=geomdata.CellSize();const Real x=prob_lo[0]+(i+myhalf) *dx[0];Real z=z_cc(i, j, k);Real z_base=Ampl *std::sin(kp *x);z -=z_base;Real fac=std::cosh(kp *(z - H))/std::sinh(kp *H);Real p_prime=-(Ampl *omega *omega/kp) *fac *std::sin(kp *x) *r_hse(i, j, k);Real p_total=p_hse(i, j, k)+p_prime;state_pert(i, j, k, RhoTheta_comp)=getRhoThetagivenP(p_total) - getRhoThetagivenP(p_hse(i, j, k));state_pert(i, j, k, RhoScalar_comp)=zero;})
Real Ampl
Definition: ERF_InitCustomPert_MovingTerrain.H:4
Real g
Definition: ERF_InitCustomPert_MovingTerrain.H:10
AMREX_ALWAYS_ASSERT_WITH_MESSAGE(wavelength > zero, "prob.wavelength must be > 0")
Real H
Definition: ERF_InitCustomPert_MovingTerrain.H:8
Real wavelength
Definition: ERF_InitCustomPert_MovingTerrain.H:5
Real omega
Definition: ERF_InitCustomPert_MovingTerrain.H:11
Real kp
Definition: ERF_InitCustomPert_MovingTerrain.H:9
constexpr amrex::Real two
Definition: ERF_NumericalConstants.H:38
constexpr amrex::Real zero
Definition: ERF_NumericalConstants.H:36
constexpr amrex::Real myhalf
Definition: ERF_NumericalConstants.H:41
constexpr amrex::Real PI
Definition: ERF_NumericalConstants.H:46