41 static constexpr auto type =
"PRot";
58 std::optional<std::string>
name = std::nullopt
70 using BeamOptic::operator();
110 template<
typename T_Real=amrex::ParticleReal,
typename T_IdCpu=u
int64_t>
135 T_Real
const pz =
sqrt(
164 using Thin::operator();
167 using LinearTransport::operator();
219 R(1,1) = cos_phi_in / cos_phi_out;
220 R(2,2) = cos_phi_out / cos_phi_in;
221 R(2,6) = -sin_theta / (beta * cos_phi_in);
222 R(5,1) = +sin_theta / (beta * cos_phi_out);
#define AMREX_FORCE_INLINE
#define AMREX_GPU_HOST_DEVICE
#define IMPACTX_PUSH_EXTERN_TEMPLATE(ElementType)
Definition PushAll.H:78
T_ParticleType ParticleType
amrex_particle_real ParticleReal
__host__ __device__ std::pair< double, double > sincos(double x)
constexpr T powi(T x) noexcept
__host__ __device__ GpuComplex< T > sqrt(const GpuComplex< T > &a_z) noexcept
@ t
fixed t as the independent variable
Definition ImpactXParticleContainer.H:38
amrex::SmallMatrix< amrex::ParticleReal, 6, 6, amrex::Order::F, 1 > Map6x6
Definition CovarianceMatrix.H:20
static constexpr __host__ __device__ SmallMatrix< T, NRows, NCols, ORDER, StartIndex > Identity() noexcept
Definition ReferenceParticle.H:33
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ParticleReal beta() const
Definition ReferenceParticle.H:152
PRot(amrex::ParticleReal phi_in, amrex::ParticleReal phi_out, std::optional< std::string > name=std::nullopt)
Definition PRot.H:55
amrex::ParticleReal m_cos_theta
Definition PRot.H:233
static constexpr amrex::ParticleReal degree2rad
Definition PRot.H:44
amrex::ParticleReal m_phi_in
Definition PRot.H:227
static constexpr auto type
Definition PRot.H:41
amrex::ParticleReal m_cos_phi_in
Definition PRot.H:233
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void operator()(T_Real &AMREX_RESTRICT x, T_Real &AMREX_RESTRICT y, T_Real &AMREX_RESTRICT t, T_Real &AMREX_RESTRICT px, T_Real &AMREX_RESTRICT py, T_Real &AMREX_RESTRICT pt, T_IdCpu &AMREX_RESTRICT idcpu, RefPart const &AMREX_RESTRICT refpart) const
Definition PRot.H:112
AMREX_GPU_HOST AMREX_FORCE_INLINE Map6x6 transport_map(RefPart const &AMREX_RESTRICT refpart) const
Definition PRot.H:203
amrex::ParticleReal m_inv_beta
RF wavenumber in 1/m.
Definition PRot.H:233
void reverse()
Definition PRot.H:67
amrex::ParticleReal m_sin_phi_in
Definition PRot.H:233
amrex::ParticleReal m_phi_out
normalized (max) RF voltage drop.
Definition PRot.H:228
ImpactXParticleContainer::ParticleType PType
Definition PRot.H:42
amrex::ParticleReal m_sin_theta
Definition PRot.H:233
void compute_constants(RefPart const &refpart)
Definition PRot.H:79
Definition beamoptic.H:436
Definition lineartransport.H:50
AMREX_GPU_HOST Named(std::optional< std::string > name)
Definition named.H:57
AMREX_FORCE_INLINE std::string name() const
Definition named.H:122
Definition nofinalize.H:22