Go to the source code of this file.
|
| ParmParse | pp ("prob") |
| |
| pp | query ("rho_0", rho_0) |
| |
| pp | query ("T_0", T_0) |
| |
| pp | query ("M_0", M_0) |
| |
| pp | query ("V_0", V_0) |
| |
| | 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;}) |
| |
◆ ParallelFor()
| 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;} |
|
|
) |
| |
◆ pp()
◆ query() [1/4]
◆ query() [2/4]
◆ query() [3/4]
◆ query() [4/4]
◆ M_0
◆ rho_0
◆ T_0
| Real T_0 = amrex::Real(300.0) |
◆ use_z_phys
| const bool use_z_phys = use_physical_z() |
◆ V_0