Go to the source code of this file.
|
| ParmParse | pp_for_pert_vels ("prob") |
| |
| pp_for_pert_vels | query ("V_0", V_0) |
| |
| | ParallelFor (xbx, [=] 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+0.0) *dx[0];const Real y=prob_lo[1]+(j+0.5) *dx[1];const Real z=prob_lo[2]+(k+0.5) *dx[2];x_vel_pert(i, j, k)=V_0 *sin(x) *cos(y) *cos(z);}) |
| |
| | ParallelFor (ybx, [=] 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+0.5) *dx[0];const Real y=prob_lo[1]+(j+0.0) *dx[1];const Real z=prob_lo[2]+(k+0.5) *dx[2];y_vel_pert(i, j, k)=- V_0 *cos(x) *sin(y) *cos(z);}) |
| |
◆ ParallelFor() [1/2]
| ParallelFor |
( |
xbx |
, |
|
|
[=] 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+0.0) *dx[0];const Real y=prob_lo[1]+(j+0.5) *dx[1];const Real z=prob_lo[2]+(k+0.5) *dx[2];x_vel_pert(i, j, k)=V_0 *sin(x) *cos(y) *cos(z);} |
|
|
) |
| |
◆ ParallelFor() [2/2]
| ParallelFor |
( |
ybx |
, |
|
|
[=] 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+0.5) *dx[0];const Real y=prob_lo[1]+(j+0.0) *dx[1];const Real z=prob_lo[2]+(k+0.5) *dx[2];y_vel_pert(i, j, k)=- V_0 *cos(x) *sin(y) *cos(z);} |
|
|
) |
| |
◆ pp_for_pert_vels()
| ParmParse pp_for_pert_vels |
( |
"prob" |
| ) |
|
◆ query()
◆ V_0