4 const GpuArray<Real, AMREX_SPACEDIM>
prob_lo = {
5 geomdata.ProbLo(0), geomdata.ProbLo(1), geomdata.ProbLo(2)};
6 const GpuArray<Real, AMREX_SPACEDIM>
prob_hi = {
7 geomdata.ProbHi(0), geomdata.ProbHi(1), geomdata.ProbHi(2)};
8 const GpuArray<Real, AMREX_SPACEDIM>
dx = {
9 geomdata.CellSize(0), geomdata.CellSize(1), geomdata.CellSize(2)};
14 const int nx = geomdata.Domain().length(0);
15 const int ny = geomdata.Domain().length(1);
22 ParallelFor(xbx, [=] AMREX_GPU_DEVICE(
int i,
int j,
int k) noexcept
31 ParallelFor(ybx, [=] AMREX_GPU_DEVICE(
int i,
int j,
int k) noexcept
40 ParallelFor(zbx, [=] AMREX_GPU_DEVICE(
int i,
int j,
int k) noexcept
const GpuArray< Real, AMREX_SPACEDIM > dx
Definition: ERF_InitCustomPertVels_CloudChamber.H:8
const Real lz
Definition: ERF_InitCustomPertVels_CloudChamber.H:12
const Real lx
Definition: ERF_InitCustomPertVels_CloudChamber.H:10
ParmParse pp_prob("prob")
const int nx
Definition: ERF_InitCustomPertVels_CloudChamber.H:14
Real U_0
Definition: ERF_InitCustomPertVels_CloudChamber.H:2
const int ny
Definition: ERF_InitCustomPertVels_CloudChamber.H:15
const GpuArray< Real, AMREX_SPACEDIM > prob_lo
Definition: ERF_InitCustomPertVels_CloudChamber.H:4
const GpuArray< Real, AMREX_SPACEDIM > prob_hi
Definition: ERF_InitCustomPertVels_CloudChamber.H:6
const Real v_scale
Definition: ERF_InitCustomPertVels_CloudChamber.H:16
const auto length
Definition: ERF_InitCustomPertVels_CloudChamber.H:13
ParallelFor(xbx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept { const Real x=prob_lo[0]+Real(i) *dx[0];const Real y=prob_lo[1]+(Real(j)+myhalf) *dx[1];const Real z=prob_lo[2]+(Real(k)+myhalf) *dx[2];x_vel_pert(i, j, k)=erf_cloud_chamber::initial_u_velocity_perturbation(x, y, z, prob_lo, length, U_0, nx, ny);})
const Real ly
Definition: ERF_InitCustomPertVels_CloudChamber.H:11
constexpr amrex::Real zero
Definition: ERF_NumericalConstants.H:29
constexpr amrex::Real myhalf
Definition: ERF_NumericalConstants.H:34
amrex::Real Real
Definition: ERF_ShocInterface.H:19
AMREX_FORCE_INLINE AMREX_GPU_HOST_DEVICE amrex::Real initial_u_velocity_perturbation(amrex::Real x, amrex::Real y, amrex::Real z, const amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > &lo, const amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > &length, amrex::Real U_0, int nx, int ny) noexcept
Evaluate the x-face component of the Cloud Chamber initial velocity.
Definition: ERF_CloudChamber.H:229
AMREX_FORCE_INLINE AMREX_GPU_HOST_DEVICE amrex::Real staggered_velocity_v_scale(amrex::Real lx, amrex::Real ly, amrex::Real dx, amrex::Real dy, int nx, int ny) noexcept
Discrete derivative ratio for the staggered initial velocity field.
Definition: ERF_CloudChamber.H:211
AMREX_FORCE_INLINE AMREX_GPU_HOST_DEVICE amrex::Real initial_w_velocity_perturbation() noexcept
The Cloud Chamber initial vertical velocity perturbation.
Definition: ERF_CloudChamber.H:270
AMREX_FORCE_INLINE AMREX_GPU_HOST_DEVICE amrex::Real initial_v_velocity_perturbation(amrex::Real x, amrex::Real y, amrex::Real z, const amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > &lo, const amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > &length, amrex::Real U_0, amrex::Real v_scale, int nx, int ny) noexcept
Evaluate the y-face component of the Cloud Chamber initial velocity.
Definition: ERF_CloudChamber.H:249