Filter to select particles that correspond to a z-slice of the corresponding lab-frame.
More...
#include <BackTransformParticleFunctor.H>
|
| | 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.
|
| |
Filter to select particles that correspond to a z-slice of the corresponding lab-frame.
◆ SelectParticles()
Constructor of SelectParticles functor.
- Parameters
-
| [in] | pc | WarpX particle container |
| [in] | a_pti | WarpX particle iterator |
| [in] | current_z_boost | current z-position of the slice in boosted frame |
| [in] | old_z_boost | previous z-position of the slice in boosted frame |
| [in] | a_offset | index offset for particles to be selected |
◆ operator()()
template<typename SrcData>
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.
- Template Parameters
-
| SrcData | type of source data |
- Parameters
-
| [in] | src | SrcData particle tile data |
| [in] | i | particle index |
- Returns
- 1 if particles is selected for transformation, else 0
◆ m_current_z_boost
| amrex::Real SelectParticles::m_current_z_boost |
Z coordinate in boosted frame that corresponds to a give snapshot
◆ m_get_position
Object to extract the positions of the macroparticles inside a ParallelFor kernel
◆ m_old_z_boost
| amrex::Real SelectParticles::m_old_z_boost |
Previous Z coordinate in boosted frame that corresponds to a give snapshot
◆ zpold
Particle z coordinate in boosted frame
The documentation for this struct was generated from the following files: