|
| ImpactXParticleContainer (amrex::AmrCore *amr_core) |
| Construct a new particle container. More...
|
|
virtual | ~ImpactXParticleContainer ()=default |
| Destruct a particle container. More...
|
|
void | AddNParticles (int lev, amrex::Vector< amrex::ParticleReal > const &x, amrex::Vector< amrex::ParticleReal > const &y, amrex::Vector< amrex::ParticleReal > const &t, amrex::Vector< amrex::ParticleReal > const &px, amrex::Vector< amrex::ParticleReal > const &py, amrex::Vector< amrex::ParticleReal > const &pt, amrex::ParticleReal const &qm, amrex::ParticleReal const &bchchg) |
|
void | SetRefParticle (RefPart const refpart) |
|
RefPart & | GetRefParticle () |
|
RefPart const & | GetRefParticle () const |
|
void | SetRefParticleEdge () |
|
int | GetParticleShape () const |
|
void | SetParticleShape () |
|
void | SetParticleShape (int const order) |
|
std::tuple< amrex::ParticleReal, amrex::ParticleReal, amrex::ParticleReal, amrex::ParticleReal, amrex::ParticleReal, amrex::ParticleReal > | MinAndMaxPositions () |
|
std::tuple< amrex::ParticleReal, amrex::ParticleReal, amrex::ParticleReal, amrex::ParticleReal, amrex::ParticleReal, amrex::ParticleReal > | MeanAndStdPositions () |
|
void | DepositCharge (std::unordered_map< int, amrex::MultiFab > &rho, amrex::Vector< amrex::IntVect > const &ref_ratio) |
|
Public Member Functions inherited from amrex::ParticleContainer_impl< class, T_NArrayReal, T_NArrayInt, Allocator, class > |
| ParticleContainer_impl () |
|
| ParticleContainer_impl (ParGDBBase *gdb) |
|
| ParticleContainer_impl (const Geometry &geom, const DistributionMapping &dmap, const BoxArray &ba) |
|
| ParticleContainer_impl (const Vector< Geometry > &geom, const Vector< DistributionMapping > &dmap, const Vector< BoxArray > &ba, const Vector< int > &rr) |
|
| ParticleContainer_impl (const Vector< Geometry > &geom, const Vector< DistributionMapping > &dmap, const Vector< BoxArray > &ba, const Vector< IntVect > &rr) |
|
| ~ParticleContainer_impl () override=default |
|
| ParticleContainer_impl (const ParticleContainer_impl &)=delete |
|
ParticleContainer_impl & | operator= (const ParticleContainer_impl &)=delete |
|
| ParticleContainer_impl (ParticleContainer_impl &&) noexcept=default |
|
ParticleContainer_impl & | operator= (ParticleContainer_impl &&) noexcept=default |
|
void | Define (ParGDBBase *gdb) |
|
void | Define (const Geometry &geom, const DistributionMapping &dmap, const BoxArray &ba) |
|
void | Define (const Vector< Geometry > &geom, const Vector< DistributionMapping > &dmap, const Vector< BoxArray > &ba, const Vector< int > &rr) |
|
void | Define (const Vector< Geometry > &geom, const Vector< DistributionMapping > &dmap, const Vector< BoxArray > &ba, const Vector< IntVect > &rr) |
|
int | numLocalTilesAtLevel (int lev) const |
|
void | reserveData () override |
|
void | resizeData () override |
|
void | InitFromAsciiFile (const std::string &file, int extradata, const IntVect *Nrep=nullptr) |
|
void | InitFromBinaryFile (const std::string &file, int extradata) |
|
void | InitFromBinaryMetaFile (const std::string &file, int extradata) |
|
void | InitRandom (Long icount, ULong iseed, const ParticleInitData &pdata, bool serialize=false, RealBox bx=RealBox()) |
|
void | InitRandomPerBox (Long icount, ULong iseed, const ParticleInitData &pdata) |
|
void | InitOnePerCell (Real x_off, Real y_off, Real z_off, const ParticleInitData &pdata) |
|
void | InitNRandomPerCell (int n_per_cell, const ParticleInitData &pdata) |
|
void | Increment (MultiFab &mf, int level) |
|
Long | IncrementWithTotal (MultiFab &mf, int level, bool local=false) |
|
void | Redistribute (int lev_min=0, int lev_max=-1, int nGrow=0, int local=0, bool remove_negative=true) |
|
void | ReorderParticles (int lev, const MFIter &mfi, const index_type *permutations) |
|
void | SortParticlesForDeposition (IntVect idx_type) |
|
void | SortParticlesByCell () |
|
void | SortParticlesByBin (IntVect bin_size) |
|
bool | OK (int lev_min=0, int lev_max=-1, int nGrow=0) const |
|
std::array< Long, 3 > | ByteSpread () const |
|
std::array< Long, 3 > | PrintCapacity () const |
|
void | ShrinkToFit () |
|
Long | NumberOfParticlesAtLevel (int level, bool only_valid=true, bool only_local=false) const |
|
Vector< Long > | NumberOfParticlesInGrid (int level, bool only_valid=true, bool only_local=false) const |
|
Long | TotalNumberOfParticles (bool only_valid=true, bool only_local=false) const |
|
void | RemoveParticlesAtLevel (int level) |
|
void | RemoveParticlesNotAtFinestLevel () |
|
void | CreateVirtualParticles (int level, AoS &virts) const |
|
void | CreateGhostParticles (int level, int ngrow, AoS &ghosts) const |
|
void | AddParticlesAtLevel (AoS &particles, int level, int nGrow=0) |
|
void | CreateVirtualParticles (int level, ParticleTileType &virts) const |
|
void | CreateGhostParticles (int level, int ngrow, ParticleTileType &ghosts) const |
|
void | AddParticlesAtLevel (ParticleTileType &particles, int level, int nGrow=0) |
|
void | clearParticles () |
|
void | copyParticles (const PCType &other, bool local=false) |
|
void | addParticles (const PCType &other, bool local=false) |
|
void | copyParticles (const PCType &other, F &&f, bool local=false) |
|
void | addParticles (const PCType &other, F &&f, bool local=false) |
|
void | WriteParticleRealData (void *data, size_t size, std::ostream &os) const |
|
void | ReadParticleRealData (void *data, size_t size, std::istream &is) |
|
void | Checkpoint (const std::string &dir, const std::string &name, const Vector< std::string > &real_comp_names=Vector< std::string >(), const Vector< std::string > &int_comp_names=Vector< std::string >()) const |
|
void | Checkpoint (const std::string &dir, const std::string &name, bool is_checkpoint, const Vector< std::string > &real_comp_names=Vector< std::string >(), const Vector< std::string > &int_comp_names=Vector< std::string >()) const |
|
void | WriteBinaryParticleData (const std::string &dir, const std::string &name, const Vector< int > &write_real_comp, const Vector< int > &write_int_comp, const Vector< std::string > &real_comp_names, const Vector< std::string > &int_comp_names, F &&f, bool is_checkpoint=false) const |
|
void | CheckpointPre () |
|
void | CheckpointPost () |
|
void | Restart (const std::string &dir, const std::string &file) |
|
void | Restart (const std::string &dir, const std::string &file, bool is_checkpoint) |
|
void | WritePlotFile (const std::string &dir, const std::string &name) const |
|
void | WritePlotFile (const std::string &dir, const std::string &name, F &&f) const |
|
void | WritePlotFile (const std::string &dir, const std::string &name, const Vector< std::string > &real_comp_names, const Vector< std::string > &int_comp_names) const |
|
void | WritePlotFile (const std::string &dir, const std::string &name, const Vector< std::string > &real_comp_names, const Vector< std::string > &int_comp_names, F &&f) const |
|
void | WritePlotFile (const std::string &dir, const std::string &name, const Vector< std::string > &real_comp_names) const |
|
void | WritePlotFile (const std::string &dir, const std::string &name, const Vector< std::string > &real_comp_names, F &&f) const |
|
void | WritePlotFile (const std::string &dir, const std::string &name, const Vector< int > &write_real_comp, const Vector< int > &write_int_comp) const |
|
void | WritePlotFile (const std::string &dir, const std::string &name, const Vector< int > &write_real_comp, const Vector< int > &write_int_comp, F &&f) const |
|
void | WritePlotFile (const std::string &dir, const std::string &name, const Vector< int > &write_real_comp, const Vector< int > &write_int_comp, const Vector< std::string > &real_comp_names, const Vector< std::string > &int_comp_names) const |
|
void | WritePlotFile (const std::string &dir, const std::string &name, const Vector< int > &write_real_comp, const Vector< int > &write_int_comp, const Vector< std::string > &real_comp_names, const Vector< std::string > &int_comp_names, F &&f) const |
|
void | WritePlotFilePre () |
|
void | WritePlotFilePost () |
|
void | WriteAsciiFile (const std::string &file) |
|
const Vector< ParticleLevel > & | GetParticles () const |
|
Vector< ParticleLevel > & | GetParticles () |
|
const ParticleLevel & | GetParticles (int lev) const |
|
ParticleLevel & | GetParticles (int lev) |
|
const ParticleTileType & | ParticlesAt (int lev, int grid, int tile) const |
|
ParticleTileType & | ParticlesAt (int lev, int grid, int tile) |
|
const ParticleTileType & | ParticlesAt (int lev, const Iterator &iter) const |
|
ParticleTileType & | ParticlesAt (int lev, const Iterator &iter) |
|
ParticleTileType & | DefineAndReturnParticleTile (int lev, int grid, int tile) |
|
ParticleTileType & | DefineAndReturnParticleTile (int lev, const Iterator &iter) |
|
void | AssignDensity (int rho_index, Vector< std::unique_ptr< MultiFab > > &mf_to_be_filled, int lev_min, int ncomp, int finest_level, int ngrow=2) const |
|
void | Interpolate (Vector< std::unique_ptr< MultiFab > > &mesh_data, int lev_min, int lev_max) |
|
void | InterpolateSingleLevel (MultiFab &mesh_data, int lev) |
|
void | AssignCellDensitySingleLevel (int rho_index, MultiFab &mf, int level, int ncomp=1, int particle_lvl_offset=0) const |
|
IntVect | Index (const P &p, int lev) const |
|
ParticleLocData | Reset (ParticleType &prt, bool update, bool verbose=true, ParticleLocData pld=ParticleLocData()) const |
|
bool | PeriodicShift (P &p) const |
|
void | SetLevelDirectoriesCreated (bool tf) |
|
bool | GetLevelDirectoriesCreated () const |
|
void | SetUsePrePost (bool tf) const |
|
bool | GetUsePrePost () const |
|
int | GetMaxNextIDPrePost () const |
|
Long | GetNParticlesPrePost () const |
|
void | SetUseUnlink (bool tf) const |
|
bool | GetUseUnlink () const |
|
void | RedistributeCPU (int lev_min=0, int lev_max=-1, int nGrow=0, int local=0, bool remove_negative=true) |
|
void | RedistributeGPU (int lev_min=0, int lev_max=-1, int nGrow=0, int local=0, bool remove_negative=true) |
|
Long | superParticleSize () const |
|
void | AddRealComp (T communicate=true) |
|
void | AddIntComp (T communicate=true) |
|
int | NumRuntimeRealComps () const |
|
int | NumRuntimeIntComps () const |
|
int | NumRealComps () const |
|
int | NumIntComps () const |
|
void | ResizeRuntimeRealComp (int new_size, bool communicate) |
|
void | ResizeRuntimeIntComp (int new_size, bool communicate) |
|
ContainerLike< NewAllocator > | make_alike () const |
|
void | WriteParticles (int level, std::ofstream &ofs, int fnum, Vector< int > &which, Vector< int > &count, Vector< Long > &where, const Vector< int > &write_real_comp, const Vector< int > &write_int_comp, const Vector< std::map< std::pair< int, int >, IntVector >> &particle_io_flags, bool is_checkpoint) const |
|
IntVect | Index (const P &p, int lev) const |
|
bool | Where (const P &p, ParticleLocData &pld, int lev_min, int lev_max, int nGrow, int local_grid) const |
|
bool | EnforcePeriodicWhere (P &p, ParticleLocData &pld, int lev_min, int lev_max, int local_grid) const |
|
bool | PeriodicShift (P &p) const |
|
void | locateParticle (P &p, ParticleLocData &pld, int lev_min, int lev_max, int nGrow, int local_grid) const |
|
void | copyParticles (const PCType &other, bool local) |
|
void | addParticles (const PCType &other, bool local) |
|
void | copyParticles (const PCType &other, F &&f, bool local) |
|
void | addParticles (const PCType &other, F &&f, bool local) |
|
void | ReorderParticles (int lev, const MFIter &mfi, const index_type *permutations) |
|
void | WritePlotFile (const std::string &dir, const std::string &name, F &&f) const |
|
void | WritePlotFile (const std::string &dir, const std::string &name, const Vector< std::string > &real_comp_names, const Vector< std::string > &int_comp_names, F &&f) const |
|
void | WritePlotFile (const std::string &dir, const std::string &name, const Vector< std::string > &real_comp_names, F &&f) const |
|
void | WritePlotFile (const std::string &dir, const std::string &name, const Vector< int > &write_real_comp, const Vector< int > &write_int_comp, F &&f) const |
|
void | WritePlotFile (const std::string &dir, const std::string &name, const Vector< int > &write_real_comp, const Vector< int > &write_int_comp, const Vector< std::string > &real_comp_names, const Vector< std::string > &int_comp_names, F &&f) const |
|
void | WriteBinaryParticleData (const std::string &dir, const std::string &name, const Vector< int > &write_real_comp, const Vector< int > &write_int_comp, const Vector< std::string > &real_comp_names, const Vector< std::string > &int_comp_names, F &&f, bool is_checkpoint) const |
|
void | ReadParticles (int cnt, int grd, int lev, std::ifstream &ifs, int finest_level_in_file, bool convert_ids) |
|
Public Member Functions inherited from amrex::ParticleContainerBase |
| ParticleContainerBase ()=default |
|
| ParticleContainerBase (ParGDBBase *gdb) |
|
| ParticleContainerBase (const Geometry &geom, const DistributionMapping &dmap, const BoxArray &ba) |
|
| ParticleContainerBase (const Vector< Geometry > &geom, const Vector< DistributionMapping > &dmap, const Vector< BoxArray > &ba, const Vector< int > &rr) |
|
| ParticleContainerBase (const Vector< Geometry > &geom, const Vector< DistributionMapping > &dmap, const Vector< BoxArray > &ba, const Vector< IntVect > &rr) |
|
virtual | ~ParticleContainerBase ()=default |
|
| ParticleContainerBase (const ParticleContainerBase &)=delete |
|
ParticleContainerBase & | operator= (const ParticleContainerBase &)=delete |
|
| ParticleContainerBase (ParticleContainerBase &&)=default |
|
ParticleContainerBase & | operator= (ParticleContainerBase &&)=default |
|
void | Define (ParGDBBase *gdb) |
|
void | Define (const Geometry &geom, const DistributionMapping &dmap, const BoxArray &ba) |
|
void | Define (const Vector< Geometry > &geom, const Vector< DistributionMapping > &dmap, const Vector< BoxArray > &ba, const Vector< int > &rr) |
|
void | Define (const Vector< Geometry > &geom, const Vector< DistributionMapping > &dmap, const Vector< BoxArray > &ba, const Vector< IntVect > &rr) |
|
bool | isDefined () const |
|
void | RedefineDummyMF (int lev) |
|
MFIter | MakeMFIter (int lev, const MFItInfo &info) const |
|
MFIter | MakeMFIter (int lev) const |
|
MFIter | MakeMFIter (int lev, bool tile) const |
|
void | SetParGDB (const Geometry &geom, const DistributionMapping &dmap, const BoxArray &ba) |
|
void | SetParGDB (const Vector< Geometry > &geom, const Vector< DistributionMapping > &dmap, const Vector< BoxArray > &ba, const Vector< IntVect > &rr) |
|
void | SetParGDB (const Vector< Geometry > &geom, const Vector< DistributionMapping > &dmap, const Vector< BoxArray > &ba, const Vector< int > &rr) |
|
void | SetParticleBoxArray (int lev, BoxArray new_ba) |
|
void | SetParticleDistributionMap (int lev, DistributionMapping new_dmap) |
|
void | SetParticleGeometry (int lev, Geometry new_geom) |
|
const BoxArray & | ParticleBoxArray (int lev) const |
|
const DistributionMapping & | ParticleDistributionMap (int lev) const |
|
const Geometry & | Geom (int lev) const |
|
const Geometry & | ParticleGeom (int lev) const |
|
int | finestLevel () const |
|
int | maxLevel () const |
|
int | numLevels () const |
|
const ParGDBBase * | GetParGDB () const |
|
ParGDBBase * | GetParGDB () |
|
int | Verbose () const |
|
void | SetVerbose (int verbose) |
|
const ParticleBufferMap & | BufferMap () const |
|
Vector< int > | NeighborProcs (int ngrow) const |
|
bool | OnSameGrids (int level, const MF &mf) const |
|