const auto dx
Definition: ERF_InitCustomPertVels_ParticleTests.H:15
const int khi
Definition: ERF_InitCustomPert_ParticleTests.H:11
Real z_c
Definition: ERF_InitCustomPert_ParticleTests.H:3
Real x_r
Definition: ERF_InitCustomPert_ParticleTests.H:4
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+0.5) *dx[0];const Real z=z_cc(i, j, k);const Real Tbar_hse=p_hse(i, j, k)/(R_d *r_hse(i, j, k));Real L=std::sqrt(std::pow((x - x_c)/x_r, 2)+std::pow((z - z_c)/z_r, 2));if(L<=1.0) { Real dT=T_pert *(std::cos(PI *L)+1.0)/2.0;Real theta_perturbed=(Tbar_hse+dT) *std::pow(p_0/p_hse(i, j, k), R_d/C_p);state_pert(i, j, k, Rho_comp)=getRhoThetagivenP(p_hse(i, j, k))/theta_perturbed - r_hse(i, j, k);} })
Real x_c
Definition: ERF_InitCustomPert_ParticleTests.H:2
Real z_r
Definition: ERF_InitCustomPert_ParticleTests.H:5
AMREX_ALWAYS_ASSERT(bx.length()[2]==khi+1)
Real T_pert
Definition: ERF_InitCustomPert_ParticleTests.H:6
Real C_p
Definition: ERF_InitCustomPert_ParticleTests.H:9