WarpX
Classes | Typedefs | Enumerations
FilterFunctors.H File Reference
#include "Particles/Pusher/GetAndSetPosition.H"
#include "Particles/WarpXParticleContainer.H"
#include "Utils/WarpXConst.H"
#include <AMReX_Gpu.H>
#include <AMReX_Parser.H>
#include <AMReX_Random.H>

Go to the source code of this file.

Classes

struct  RandomFilter
 Functor that returns 0 or 1 depending on a random draw per particle. More...
 
struct  UniformFilter
 Functor that returns 1 if stride divide particle_id, 0 otherwise. More...
 
struct  ParserFilter
 Functor that returns 0 or 1 depending on a parser selection. More...
 
struct  GeometryFilter
 Functor that returns 1 if the particle is inside a given axis-aligned region defined by amrex::RealBox, 0 otherwise. More...
 

Typedefs

using SuperParticleType = typename WarpXParticleContainer::SuperParticleType
 

Enumerations

enum class  InputUnits { WarpX , SI }
 Used to keep track of what inputs units a filter function should expect. "WarpX units" means the momentum is "gamma*v" (aka proper velocity) "SI" means the momentum is mass*gamma*v. More...
 

Typedef Documentation

◆ SuperParticleType

Enumeration Type Documentation

◆ InputUnits

enum InputUnits
strong

Used to keep track of what inputs units a filter function should expect. "WarpX units" means the momentum is "gamma*v" (aka proper velocity) "SI" means the momentum is mass*gamma*v.

Enumerator
WarpX 
SI