26 #ifndef PARTICLE_HANDLER_H
27 #define PARTICLE_HANDLER_H
BaseParticle * getLargestParticle() const
Gets a pointer to the largest BaseParticle (by interactionRadius) in this ParticleHandler.
void checkExtremaOnDelete(BaseParticle *P)
Checks if the extrema of this ParticleHandler needs updating when a particle is deleted.
void checkExtrema(BaseParticle *P)
Checks if the extrema of this ParticleHandler needs updating.
BaseParticle * getLowestVelocityComponentParticle(const int i) const
std::vector< CSpecies > * species_
BaseParticle * getLightestParticle() const
Gets a pointer to the lightest BaseParticle (by mass) in this ParticleHandler.
void readObject(std::istream &is)
Reads BaseParticle into the ParticleHandler from restart data.
BaseParticle * smallestParticle_
A pointer to the smallest BaseParticle (by interactionRadius) in this ParticleHandler.
void clear()
Empties the whole ParticleHandler by removing all BaseParticle.
BaseParticle * getSmallestParticle() const
Gets a pointer to the smallest BaseParticle (by interactionRadius) in this ParticleHandler.
void setSpecies(std::vector< CSpecies > *)
virtual void addObject(BaseParticle *P)
Adds a BaseParticle to the ParticleHandler.
ParticleHandler()
Default constructor, it simply creates an empty ParticleHandler.
BaseParticle * largestParticle_
A pointer to the largest BaseParticle (by interactionRadius) in this ParticleHandler.
~ParticleHandler()
Destructor, it simply destructs the ParticleHandler and all BaseParticle it contains.
BaseParticle * getHighestVelocityComponentParticle(const int i) const
Container to store all Object.
Container to store all BaseParticle.
CSpecies & getSpecies(const int i)
BaseParticle * getHighestPositionComponentParticle(const int i) const
Stores properties of the particles and the contact models such as the elastic modulus.
BaseParticle * getLowestPositionComponentParticle(const int i) const
ParticleHandler operator=(const ParticleHandler &rhs)
Assignment operator.
BaseParticle * getFastestParticle() const
Gets a pointer to the fastests BaseParticle in this ParticleHandler.