10#ifndef IMPACTX_KICKER_H
11#define IMPACTX_KICKER_H
42 static constexpr auto type =
"Kicker";
63 amrex::ParticleReal xkick,
64 amrex::ParticleReal ykick,
66 amrex::ParticleReal
dx = 0,
67 amrex::ParticleReal
dy = 0,
68 amrex::ParticleReal rotation_degree = 0,
69 std::optional<std::string>
name = std::nullopt
78 using BeamOptic::operator();
89 using namespace amrex::literals;
91 Alignment::compute_constants(refpart);
111 template<
typename T_Real=amrex::ParticleReal,
typename T_IdCpu=u
int64_t>
124 using namespace amrex::literals;
130 T_Real
const xout = x;
131 T_Real
const yout = y;
132 T_Real
const tout =
t;
163 using Thin::operator();
166 using LinearTransport::operator();
#define AMREX_FORCE_INLINE
#define AMREX_GPU_HOST_DEVICE
T_ParticleType ParticleType
@ 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 rigidity_Tm() const
Definition ReferenceParticle.H:203
Kicker(amrex::ParticleReal xkick, amrex::ParticleReal ykick, UnitSystem unit, amrex::ParticleReal dx=0, amrex::ParticleReal dy=0, amrex::ParticleReal rotation_degree=0, std::optional< std::string > name=std::nullopt)
Definition Kicker.H:62
void compute_constants(RefPart const &refpart)
Definition Kicker.H:87
AMREX_GPU_HOST AMREX_FORCE_INLINE Map6x6 transport_map(RefPart const &AMREX_RESTRICT refpart) const
Definition Kicker.H:175
UnitSystem
Definition Kicker.H:46
@ Tm
in units of the magnetic rigidity of the reference particle
Definition Kicker.H:48
@ dimensionless
Definition Kicker.H:47
ImpactXParticleContainer::ParticleType PType
Definition Kicker.H:43
amrex::ParticleReal m_xkick
Definition Kicker.H:183
UnitSystem m_unit
vertical kick strength
Definition Kicker.H:185
amrex::ParticleReal m_ykick
horizontal kick strength
Definition Kicker.H:184
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 Kicker.H:113
static constexpr auto type
Definition Kicker.H:42
amrex::ParticleReal m_p_scale
Kicks are for 0 dimensionless, or for 1 in T-m.".
Definition Kicker.H:190
Definition alignment.H:27
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void shift_out(T_Real &AMREX_RESTRICT x, T_Real &AMREX_RESTRICT y, T_Real &AMREX_RESTRICT px, T_Real &AMREX_RESTRICT py) const
Definition alignment.H:109
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ParticleReal dy() const
Definition alignment.H:146
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ParticleReal dx() const
Definition alignment.H:136
Alignment(amrex::ParticleReal dx, amrex::ParticleReal dy, amrex::ParticleReal rotation_degree)
Definition alignment.H:36
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void shift_in(T_Real &AMREX_RESTRICT x, T_Real &AMREX_RESTRICT y, T_Real &AMREX_RESTRICT px, T_Real &AMREX_RESTRICT py) const
Definition alignment.H:78
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