10 #ifndef IMPACTX_TO_FIXED_T_H
11 #define IMPACTX_TO_FIXED_T_H
51 amrex::ParticleReal & px,
52 amrex::ParticleReal & py,
53 amrex::ParticleReal & pt)
const
55 using namespace amrex::literals;
58 amrex::ParticleReal
const x = p.pos(
RealAoS::x);
59 amrex::ParticleReal
const y = p.pos(
RealAoS::y);
63 constexpr amrex::ParticleReal tol = 1.0e-8_prt;
66 amrex::ParticleReal
const argd = -1.0_prt +
pow(
m_ptd, 2);
68 amrex::ParticleReal
const pzdf = argd > 0.0_prt ?
sqrt(argd) : tol;
77 amrex::ParticleReal
const arg = -1.0_prt +
pow(
m_ptd+pt, 2) -
pow(px, 2) -
pow(py, 2);
79 amrex::ParticleReal
const pzf =
arg > 0.0_prt ?
sqrt(
arg) : tol;
#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
@ t
fixed t as the independent variable
@ x
position in x [m] (at fixed s OR fixed t)
Definition: ImpactXParticleContainer.H:49
@ y
position in y [m] (at fixed s OR fixed t)
Definition: ImpactXParticleContainer.H:50
@ t
c * time-of-flight [m] (at fixed s)
Definition: ImpactXParticleContainer.H:51
@ z
position in z [m] (at fixed t)
Definition: ImpactXParticleContainer.H:57