WarpX
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
ParticleBoundaryBuffer Class Reference

#include <ParticleBoundaryBuffer.H>

Public Member Functions

 ParticleBoundaryBuffer ()
 
int numSpecies () const
 
const std::vector< std::string > & getSpeciesNames () const
 
void gatherParticles (MultiParticleContainer &mypc, const amrex::Vector< const amrex::MultiFab *> &distance_to_eb)
 
void clearParticles ()
 
void printNumParticles () const
 
int getNumParticlesInContainer (const std::string species_name, int boundary)
 
ParticleBuffer::BufferType< amrex::PinnedArenaAllocator > & getParticleBuffer (const std::string species_name, int boundary)
 

Static Public Member Functions

static constexpr int numBoundaries ()
 

Private Attributes

std::vector< std::vector< ParticleBuffer::BufferType< amrex::PinnedArenaAllocator > > > m_particle_containers
 
std::vector< std::vector< int > > m_do_boundary_buffer
 
std::vector< std::string > m_species_names
 

Detailed Description

This stores particles that have left / been absorbed by domain and embedded boundaries.

Constructor & Destructor Documentation

◆ ParticleBoundaryBuffer()

ParticleBoundaryBuffer::ParticleBoundaryBuffer ( )

Member Function Documentation

◆ clearParticles()

void ParticleBoundaryBuffer::clearParticles ( )

◆ gatherParticles()

void ParticleBoundaryBuffer::gatherParticles ( MultiParticleContainer mypc,
const amrex::Vector< const amrex::MultiFab *> &  distance_to_eb 
)

◆ getNumParticlesInContainer()

int ParticleBoundaryBuffer::getNumParticlesInContainer ( const std::string  species_name,
int  boundary 
)

◆ getParticleBuffer()

ParticleBuffer::BufferType< amrex::PinnedArenaAllocator > & ParticleBoundaryBuffer::getParticleBuffer ( const std::string  species_name,
int  boundary 
)

◆ getSpeciesNames()

const std::vector<std::string>& ParticleBoundaryBuffer::getSpeciesNames ( ) const
inline

◆ numBoundaries()

static constexpr int ParticleBoundaryBuffer::numBoundaries ( )
inlinestatic

◆ numSpecies()

int ParticleBoundaryBuffer::numSpecies ( ) const
inline

◆ printNumParticles()

void ParticleBoundaryBuffer::printNumParticles ( ) const

Member Data Documentation

◆ m_do_boundary_buffer

std::vector<std::vector<int> > ParticleBoundaryBuffer::m_do_boundary_buffer
private

◆ m_particle_containers

std::vector<std::vector<ParticleBuffer::BufferType<amrex::PinnedArenaAllocator> > > ParticleBoundaryBuffer::m_particle_containers
private

◆ m_species_names

std::vector<std::string> ParticleBoundaryBuffer::m_species_names
mutableprivate

The documentation for this class was generated from the following files: