41 static constexpr auto type =
"PRot";
56 amrex::ParticleReal phi_in,
57 amrex::ParticleReal phi_out,
58 std::optional<std::string>
name = std::nullopt
67 using BeamOptic::operator();
78 using namespace amrex::literals;
107 template<
typename T_Real=amrex::ParticleReal,
typename T_IdCpu=u
int64_t>
120 using namespace amrex::literals;
132 T_Real
const pz = sqrt(
161 using Thin::operator();
164 using LinearTransport::operator();
175 throw std::runtime_error(std::string(
type) +
": Envelope tracking is not yet implemented!");
#define AMREX_FORCE_INLINE
#define AMREX_GPU_HOST_DEVICE
T_ParticleType ParticleType
static constexpr amrex::Real pi
__host__ __device__ std::pair< double, double > sincos(double x)
constexpr T powi(T x) 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:31
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ParticleReal beta() const
Definition ReferenceParticle.H:94
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:185
static constexpr amrex::ParticleReal degree2rad
Definition PRot.H:44
amrex::ParticleReal m_phi_in
Definition PRot.H:179
static constexpr auto type
Definition PRot.H:41
amrex::ParticleReal m_cos_phi_in
Definition PRot.H:185
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:109
AMREX_GPU_HOST AMREX_FORCE_INLINE Map6x6 transport_map(RefPart const &AMREX_RESTRICT refpart) const
Definition PRot.H:173
amrex::ParticleReal m_inv_beta
RF wavenumber in 1/m.
Definition PRot.H:185
amrex::ParticleReal m_sin_phi_in
Definition PRot.H:185
amrex::ParticleReal m_phi_out
normalized (max) RF voltage drop.
Definition PRot.H:180
ImpactXParticleContainer::ParticleType PType
Definition PRot.H:42
amrex::ParticleReal m_sin_theta
Definition PRot.H:185
void compute_constants(RefPart const &refpart)
Definition PRot.H:76
Definition beamoptic.H:219
Definition lineartransport.H:29
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