ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_InitCustomPert_FlowInABox.H
Go to the documentation of this file.
1  ParmParse pp_prob("prob");
2  Real T_0_Pert_Mag = zero; pp_prob.query("T_0_Pert_Mag", T_0_Pert_Mag);
3 
4  // Add temperature perturbations
5  ParallelForRNG(bx, [=] AMREX_GPU_DEVICE(int i, int j, int k, const amrex::RandomEngine& engine) noexcept
6  {
7  Real rand_double = amrex::Random(engine); // Between zero and one
8  state_pert(i, j, k, RhoTheta_comp) = (rand_double*two - one)*T_0_Pert_Mag;
9  state_pert(i, j, k, RhoTheta_comp) *= r_hse(i,j,k);
10  });
constexpr amrex::Real two
Definition: ERF_Constants.H:8
constexpr amrex::Real one
Definition: ERF_Constants.H:7
constexpr amrex::Real zero
Definition: ERF_Constants.H:6
#define RhoTheta_comp
Definition: ERF_IndexDefines.H:37
state_pert(i, j, k, RhoTheta_comp)
ParallelForRNG(bx, [=] AMREX_GPU_DEVICE(int i, int j, int k, const amrex::RandomEngine &engine) noexcept { Real rand_double=amrex::Random(engine);state_pert(i, j, k, RhoTheta_comp)=(rand_double *two - one) *T_0_Pert_Mag;state_pert(i, j, k, RhoTheta_comp) *=r_hse(i, j, k);})
Real T_0_Pert_Mag
Definition: ERF_InitCustomPert_FlowInABox.H:2
ParmParse pp_prob("prob")
amrex::Real Real
Definition: ERF_ShocInterface.H:19