10 #ifndef IMPACTX_TO_FIXED_S_H
11 #define IMPACTX_TO_FIXED_S_H
24 namespace transformation
53 amrex::ParticleReal & px,
54 amrex::ParticleReal & py,
55 amrex::ParticleReal & pz)
const
57 using namespace amrex::literals;
60 amrex::ParticleReal
const x = p.pos(
RealAoS::x);
61 amrex::ParticleReal
const y = p.pos(
RealAoS::y);
62 amrex::ParticleReal
const z = p.pos(
RealAoS::z);
65 amrex::ParticleReal
const argd = 1.0_prt +
pow(
m_pzd, 2);
67 amrex::ParticleReal
const ptdf = argd > 0.0_prt ? -
sqrt(argd) : -1.0_prt;
76 amrex::ParticleReal
const arg = 1.0_prt +
pow(
m_pzd + pz, 2) +
pow(px, 2) +
pow(py, 2);
78 amrex::ParticleReal
const ptf =
arg > 0.0_prt ? -
sqrt(
arg) : -1.0_prt;
#define AMREX_ASSERT_WITH_MESSAGE(EX, MSG)
#define AMREX_FORCE_INLINE
#define AMREX_GPU_HOST_DEVICE
T_ParticleType ParticleType
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE T arg(const GpuComplex< T > &a_z) noexcept
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE GpuComplex< T > pow(const GpuComplex< T > &a_z, const T &a_y) noexcept
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE GpuComplex< T > sqrt(const GpuComplex< T > &a_z) noexcept
Definition: ImpactX.cpp:33
@ x
position in x [m] (at fixed s OR fixed t)
Definition: ImpactXParticleContainer.H:42
@ y
position in y [m] (at fixed s OR fixed t)
Definition: ImpactXParticleContainer.H:43
@ t
c * time-of-flight [m] (at fixed s)
Definition: ImpactXParticleContainer.H:44
@ z
position in z [m] (at fixed t)
Definition: ImpactXParticleContainer.H:50