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

#include <ToFixedT.H>

Public Types

using PType = ImpactXParticleContainer::ParticleType
 

Public Member Functions

 ToFixedT (amrex::ParticleReal const ptd)
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void operator() (PType &p, amrex::ParticleReal &px, amrex::ParticleReal &py, amrex::ParticleReal &pt) const
 

Private Attributes

amrex::ParticleReal m_ptd
 Design value of pt/mc2 = -gamma. More...
 

Member Typedef Documentation

◆ PType

Constructor & Destructor Documentation

◆ ToFixedT()

impactx::transformation::ToFixedT::ToFixedT ( amrex::ParticleReal const  ptd)
inline

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

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

Parameters
ptdDesign value of pt/mc2 = -gamma.

Member Function Documentation

◆ operator()()

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

This is a s-to-t map, so that a variable of this type can be used like a s-to-t 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]ptparticle momentum in t (in), in z (out)

Member Data Documentation

◆ m_ptd

amrex::ParticleReal impactx::transformation::ToFixedT::m_ptd
private

Design value of pt/mc2 = -gamma.


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