ImpactX
Public Types | Public Member Functions | Private Attributes | List of all members
impactx::transformation::ToFixedS Struct Reference

#include <ToFixedS.H>

Public Types

using PType = ImpactXParticleContainer::ParticleType
 

Public Member Functions

 ToFixedS (amrex::ParticleReal const pzd)
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void operator() (PType &p, amrex::ParticleReal &px, amrex::ParticleReal &py, amrex::ParticleReal &pz) const
 

Private Attributes

amrex::ParticleReal m_pzd
 Design value of pz/mc = beta*gamma. More...
 

Member Typedef Documentation

◆ PType

Constructor & Destructor Documentation

◆ ToFixedS()

impactx::transformation::ToFixedS::ToFixedS ( amrex::ParticleReal const  pzd)
inline

Transformation of particles from fixed time t to fixed location s.

At fixed s, each particle is represented by phase space coordinates (x,y,t,px,py,pt).

Parameters
pzdDesign value of pz/mc = beta*gamma.

Member Function Documentation

◆ operator()()

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void impactx::transformation::ToFixedS::operator() ( PType p,
amrex::ParticleReal &  px,
amrex::ParticleReal &  py,
amrex::ParticleReal &  pz 
) const
inline

This is a t-to-s map, so that a variable of this type can be used like a t-to-s function.

Parameters
[in,out]pParticle AoS data for positions and cpu/id
[in,out]pxparticle momentum in x
[in,out]pyparticle momentum in y
[in,out]pzparticle momentum in z (in), in t (out)

Member Data Documentation

◆ m_pzd

amrex::ParticleReal impactx::transformation::ToFixedS::m_pzd
private

Design value of pz/mc = beta*gamma.


The documentation for this struct was generated from the following file: