 |
revision: v0.14
|
Go to the documentation of this file.
26 #ifndef ParticleSpecies_H
27 #define ParticleSpecies_H
66 void read(std::istream& is)
override;
69 void write(std::ostream& os)
const override;
Mdouble getSmallestParticleMass() const
Computes mass of the lightest particle (by mass) belonging to this species. This computation calls ge...
Definition: ParticleSpecies.cc:201
ParticleSpecies * copy() const override=0
Creates a deep copy of the object from which it is called.
virtual void read(std::istream &is)=0
Definition: BaseObject.cc:81
unsigned int getParticleDimensions() const
Returns the particle dimensionality.
Definition: DPMBase.cc:1458
const Mdouble pi
Definition: ExtendedMath.h:45
Definition: BaseAdhesiveForce.h:31
SpeciesHandler * getHandler() const
Returns the pointer to the handler to which this species belongs.
Definition: BaseSpecies.cc:99
void write(std::ostream &os) const override
Writes the species properties to an output stream.
Definition: ParticleSpecies.cc:76
Logger< MERCURY_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
const BaseSpecies * getMixedSpecies(const ParticleSpecies *s) const
Definition: ParticleSpecies.cc:237
Mdouble getVolumeFromRadius(Mdouble radius) const
Definition: ParticleSpecies.cc:134
std::enable_if<!std::is_pointer< typename U::MixedSpeciesType >::value, typename U::MixedSpeciesType * >::type getMixedObject(const U *S, const U *T)
Definition: SpeciesHandler.h:74
unsigned int getSize() const
Gets the size of the particleHandler (including mpi and periodic particles)
Definition: BaseHandler.h:655
Definition: BaseNormalForce.h:31
Definition: ParticleSpecies.h:37
Defines the basic properties that a interactable object can have.
Definition: BaseInteractable.h:55
Mdouble getDensity() const
Allows density_ to be accessed.
Definition: ParticleSpecies.cc:117
void write(std::ostream &os) const override
Sets the boolean constantRestitution_.
Definition: BaseSpecies.cc:131
Mdouble getMassFromRadius(Mdouble radius) const
Definition: ParticleSpecies.cc:122
Stores information about interactions between two interactable objects; often particles but could be ...
Definition: BaseInteraction.h:60
double Mdouble
Definition: GeneralDefine.h:34
BaseSpecies is the class from which all other species are derived.
Definition: BaseSpecies.h:50
~ParticleSpecies()
The default destructor.
Definition: ParticleSpecies.cc:66
virtual void write(std::ostream &os) const =0
A purely virtual function which has an implementation which writes the name and the object id_ to the...
Definition: BaseObject.cc:91
Container to store all ParticleSpecies.
Definition: SpeciesHandler.h:37
BaseInteraction InteractionType
Definition: ParticleSpecies.h:39
ParticleSpecies()
The default constructor.
Definition: ParticleSpecies.cc:36
virtual void computeMass(const ParticleSpecies &s)
Computes the particle's (inverse) mass and inertia.
Definition: BaseParticle.cc:862
LL< Log::ERROR > ERROR
Error log level.
Definition: Logger.cc:53
Mdouble maxInteractionDistance_
Definition: ParticleSpecies.h:145
virtual BaseSpecies * copyMixed() const =0
Creates a new MixedSpecies with the same force properties as the Species from which it is called....
const std::function< double(double)> & getTemperatureDependentDensity() const
Definition: ParticleSpecies.cc:171
void setHandler(SpeciesHandler *handler)
Sets the pointer to the handler to which this species belongs.
Definition: BaseSpecies.cc:91
Mdouble getMaxInteractionDistance() const
returns the largest separation distance at which adhesive short-range forces can occur.
Definition: ParticleSpecies.h:113
unsigned int getIndex() const
Returns the index of the object in the handler.
Definition: BaseObject.h:118
const std::complex< Mdouble > i
Definition: ExtendedMath.h:51
void setTemperatureDependentDensity(const std::function< double(double)> &temperatureDependentDensity)
Definition: ParticleSpecies.cc:176
void read(std::istream &is) override
Definition: BaseSpecies.cc:140
DPMBase * getDPMBase()
Gets the problem that is solved using this handler.
Definition: BaseHandler.h:725
BaseSpecies MixedSpeciesType
Definition: ParticleSpecies.h:40
Definition: BaseParticle.h:54
std::function< double(double temperature)> temperatureDependentDensity_
Definition: ParticleSpecies.h:140
Definition: BaseFrictionForce.h:31
void setMaxInteractionDistance(Mdouble interactionDistance=0)
Sets maxInteractionDistance_.
Definition: ParticleSpecies.cc:220
ParticleHandler particleHandler
An object of the class ParticleHandler, contains the pointers to all the particles created.
Definition: DPMBase.h:1395
Mdouble getLargestInverseParticleMassLocal() const
Computes inverse mass of the lightest particle (by mass) belonging to this species....
Definition: ParticleSpecies.cc:187
void setDensity(Mdouble density)
Definition: ParticleSpecies.cc:107
void read(std::istream &is) override
Reads the species properties from an input stream.
Definition: ParticleSpecies.cc:88
std::string getBaseName() const
Used in Species::getName to obtain a unique name for each Species.
Definition: ParticleSpecies.cc:99
void computeAllMasses(unsigned int indSpecies)
Computes the mass for all BaseParticle of the given species in this ParticleHandler.
Definition: ParticleHandler.cc:1205
void computeMass(BaseParticle *p) const
Compute Particle mass function, which required a reference to the Species vector. It computes the Par...
Definition: ParticleSpecies.cc:166
static MPIContainer & Instance()
fetch the instance to be used for communication
Definition: MpiContainer.h:134
Mdouble density_
The mass density.
Definition: ParticleSpecies.h:134