WarpX
|
Functor that returns 0 or 1 depending on a parser selection. More...
#include <FilterFunctors.H>
Public Member Functions | |
ParserFilter (bool a_is_active, amrex::ParserExecutor< 7 > const &a_filter_parser, const amrex::ParticleReal a_mass, const amrex::Real time) | |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool | operator() (const SuperParticleType &p, const amrex::RandomEngine &) const noexcept |
return 1 if the particle is selected by the parser More... | |
Public Attributes | |
amrex::ParserExecutor< 7 > const | m_function_partparser |
amrex::ParticleReal | m_mass |
amrex::Real | m_t |
InputUnits | m_units {InputUnits::WarpX} |
Private Attributes | |
const bool | m_is_active |
Functor that returns 0 or 1 depending on a parser selection.
|
inline |
constructor
a_is_active | whether the test is active |
a_filter_parser | parser taking t, x, y, z, ux, uy, and uz, and returning a boolean for selected particle |
a_mass | mass of the particle species |
time | simulation time on the coarsest level |
|
inlinenoexcept |
return 1 if the particle is selected by the parser
p | one particle |
amrex::ParserExecutor<7> const ParserFilter::m_function_partparser |
Parser function with 7 input variables, t,x,y,z,ux,uy,uz
|
private |
Whether this diagnostics is activated. Select all particles if false
amrex::ParticleReal ParserFilter::m_mass |
Mass of particle species
amrex::Real ParserFilter::m_t |
Store physical time on the coarsest level.
InputUnits ParserFilter::m_units {InputUnits::WarpX} |
keep track of momentum units particles will come in with