Go to the source code of this file.
|
| ParmParse | pp ("prob") |
| |
| pp | query ("p_inf", p_inf) |
| |
| pp | query ("T_inf", T_inf) |
| |
| pp | query ("M_inf", M_inf) |
| |
| pp | query ("alpha", alpha) |
| |
| pp | query ("gamma", gamma) |
| |
| pp | query ("beta", beta) |
| |
| pp | query ("sigma", sigma) |
| |
| pp | query ("R", R) |
| |
| pp | query ("xc", xc_frac) |
| |
| pp | query ("yc", yc_frac) |
| |
| | ParallelFor (bx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { const Real *dx=geomdata.CellSize();const Real x=(i+myhalf) *dx[0];const Real y=(j+myhalf) *dx[1];const Real Omg=erf_vortex_Gaussian(x, y, xc, yc, R, beta, sigma);const Real deltaT=-(gamma - one)/(two *sigma *sigma) *Omg *Omg;const Real rho_norm=std::pow(one+deltaT, inv_gm1);const Real T=(one+deltaT) *T_inf;const Real p=std::pow(rho_norm, Gamma)/Gamma *rho_0 *a_inf *a_inf;const Real rho_theta=rho_0 *rho_norm *(T *std::pow(p_0/p, rdOcp));state_pert(i, j, k, RhoTheta_comp)=rho_theta - getRhoThetagivenP(p_hse(i, j, k));const Real r2d_xy=std::sqrt((x-xc) *(x-xc)+(y-yc) *(y-yc));state_pert(i, j, k, RhoScalar_comp)=fourth *(one+std::cos(PI *std::min(r2d_xy, R)/R));}) |
| |
◆ ParallelFor()
| ParallelFor |
( |
bx |
, |
|
|
[=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { const Real *dx=geomdata.CellSize();const Real x=(i+myhalf) *dx[0];const Real y=(j+myhalf) *dx[1];const Real Omg=erf_vortex_Gaussian(x, y, xc, yc, R, beta, sigma);const Real deltaT=-(gamma - one)/(two *sigma *sigma) *Omg *Omg;const Real rho_norm=std::pow(one+deltaT, inv_gm1);const Real T=(one+deltaT) *T_inf;const Real p=std::pow(rho_norm, Gamma)/Gamma *rho_0 *a_inf *a_inf;const Real rho_theta=rho_0 *rho_norm *(T *std::pow(p_0/p, rdOcp));state_pert(i, j, k, RhoTheta_comp)=rho_theta - getRhoThetagivenP(p_hse(i, j, k));const Real r2d_xy=std::sqrt((x-xc) *(x-xc)+(y-yc) *(y-yc));state_pert(i, j, k, RhoScalar_comp)=fourth *(one+std::cos(PI *std::min(r2d_xy, R)/R));} |
|
|
) |
| |
◆ pp()
◆ query() [1/10]
◆ query() [2/10]
◆ query() [3/10]
◆ query() [4/10]
◆ query() [5/10]
◆ query() [6/10]
◆ query() [7/10]
◆ query() [8/10]
◆ query() [9/10]
◆ query() [10/10]
◆ a_inf
◆ alpha
◆ beta
◆ gamma
◆ inv_gm1
◆ M_inf
◆ p_inf
◆ prob_hi
◆ prob_lo
◆ rdOcp
◆ rho_0
◆ sigma
◆ T_inf
◆ xc
◆ xc_frac
◆ yc
◆ yc_frac