|
WarpX
|
Filter to select particles that correspond to a z-slice of the corresponding lab-frame. More...
#include <BackTransformParticleFunctor.H>
Public Member Functions | |
| SelectParticles (const WarpXParticleContainer &pc, WarpXParIter &a_pti, amrex::Real current_z_boost, amrex::Real old_z_boost, int a_offset=0) | |
| Constructor of SelectParticles functor. | |
| template<typename SrcData> | |
| AMREX_GPU_HOST_DEVICE int | operator() (const SrcData &src, int i) const noexcept |
| Functor call. This method determines if a given particle should be selected for Lorentz transformation in obtaining the lab-frame data. The particles that with positions that correspond to the specific z-slice in boosted frame are selected. | |
Public Attributes | |
| GetParticlePosition< PIdx > | m_get_position |
| amrex::Real | m_current_z_boost |
| amrex::Real | m_old_z_boost |
| amrex::ParticleReal *AMREX_RESTRICT | zpold = nullptr |
Filter to select particles that correspond to a z-slice of the corresponding lab-frame.
| SelectParticles::SelectParticles | ( | const WarpXParticleContainer & | pc, |
| WarpXParIter & | a_pti, | ||
| amrex::Real | current_z_boost, | ||
| amrex::Real | old_z_boost, | ||
| int | a_offset = 0 ) |
Constructor of SelectParticles functor.
|
inlinenoexcept |
Functor call. This method determines if a given particle should be selected for Lorentz transformation in obtaining the lab-frame data. The particles that with positions that correspond to the specific z-slice in boosted frame are selected.
| SrcData | type of source data |
| [in] | src | SrcData particle tile data |
| [in] | i | particle index |
| amrex::Real SelectParticles::m_current_z_boost |
Z coordinate in boosted frame that corresponds to a give snapshot
| GetParticlePosition<PIdx> SelectParticles::m_get_position |
Object to extract the positions of the macroparticles inside a ParallelFor kernel
| amrex::Real SelectParticles::m_old_z_boost |
Previous Z coordinate in boosted frame that corresponds to a give snapshot
| amrex::ParticleReal* AMREX_RESTRICT SelectParticles::zpold = nullptr |
Particle z coordinate in boosted frame