10 #ifndef IMPACTX_NONLINEARLENS_H 11 #define IMPACTX_NONLINEARLENS_H 25 static constexpr
auto name =
"NonlinearLens";
39 amrex::ParticleReal
const cnll )
55 PType& AMREX_RESTRICT p,
56 amrex::ParticleReal & AMREX_RESTRICT px,
57 amrex::ParticleReal & AMREX_RESTRICT py,
58 amrex::ParticleReal & AMREX_RESTRICT pt,
59 [[maybe_unused]]
RefPart const refpart)
const {
61 using namespace amrex::literals;
67 amrex::ParticleReal
const x = p.pos(0);
68 amrex::ParticleReal
const y = p.pos(1);
69 amrex::ParticleReal
const t = p.pos(2);
76 amrex::ParticleReal pxout = px;
77 amrex::ParticleReal pyout = py;
78 amrex::ParticleReal ptout = pt;
91 Complex carcsin = im1*zeta + croot;
100 amrex::ParticleReal dpx = kick*dF.m_real;
101 amrex::ParticleReal dpy = -kick*dF.m_imag;
126 [[maybe_unused]]
RefPart & AMREX_RESTRICT refpart)
const {
146 amrex::ParticleReal
ds ()
const 148 using namespace amrex::literals;
159 #endif // IMPACTX_NONLINEARLENS_H
static constexpr auto name
Definition: NonlinearLens.H:25
Definition: ImpactX.cpp:31
NonlinearLens(amrex::ParticleReal const knll, amrex::ParticleReal const cnll)
Definition: NonlinearLens.H:38
amrex::ParticleReal m_cnll
integrated strength of the nonlinear lens (m)
Definition: NonlinearLens.H:154
Definition: NonlinearLens.H:23
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ParticleReal ds() const
Definition: NonlinearLens.H:146
#define AMREX_FORCE_INLINE
#define AMREX_GPU_HOST_DEVICE
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE int nslice() const
Definition: NonlinearLens.H:136
Particle< NStructReal, NStructInt > ParticleType
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE GpuComplex< T > log(const GpuComplex< T > &a_z) noexcept
Definition: ReferenceParticle.H:28
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 void operator()(PType &AMREX_RESTRICT p, amrex::ParticleReal &AMREX_RESTRICT px, amrex::ParticleReal &AMREX_RESTRICT py, amrex::ParticleReal &AMREX_RESTRICT pt, [[maybe_unused]] RefPart const refpart) const
Definition: NonlinearLens.H:54
amrex::ParticleReal m_knll
Definition: NonlinearLens.H:153
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE GpuComplex< T > sqrt(const GpuComplex< T > &a_z) noexcept