26 #ifndef ParticleSpecies_H
27 #define ParticleSpecies_H
66 void read(std::istream& is)
override;
69 void write(std::ostream& os)
const override;
double Mdouble
Definition: GeneralDefine.h:34
Definition: BaseAdhesiveForce.h:31
Definition: BaseFrictionForce.h:31
Defines the basic properties that a interactable object can have.
Definition: BaseInteractable.h:55
Stores information about interactions between two interactable objects; often particles but could be ...
Definition: BaseInteraction.h:60
Definition: BaseNormalForce.h:32
Definition: BaseParticle.h:54
BaseSpecies is the class from which all other species are derived.
Definition: BaseSpecies.h:50
Definition: ParticleSpecies.h:37
Mdouble maxInteractionDistance_
Definition: ParticleSpecies.h:147
BaseInteraction InteractionType
Definition: ParticleSpecies.h:39
std::function< double(double temperature)> temperatureDependentDensity_
Definition: ParticleSpecies.h:142
Mdouble getLargestInverseParticleMassLocal() const
Computes inverse mass of the lightest particle (by mass) belonging to this species....
Definition: ParticleSpecies.cc:188
void setDensity(Mdouble density)
Definition: ParticleSpecies.cc:108
~ParticleSpecies()
The default destructor.
Definition: ParticleSpecies.cc:67
virtual BaseSpecies * copyMixed() const =0
Creates a new MixedSpecies with the same force properties as the Species from which it is called....
BaseSpecies MixedSpeciesType
Definition: ParticleSpecies.h:40
Mdouble getSmallestParticleMass() const
Computes mass of the lightest particle (by mass) belonging to this species. This computation calls ge...
Definition: ParticleSpecies.cc:202
virtual void actionsAfterTimeStep(BaseParticle *particle) const
Definition: ParticleSpecies.h:123
std::string getBaseName() const
Used in Species::getName to obtain a unique name for each Species.
Definition: ParticleSpecies.cc:100
void setMaxInteractionDistance(Mdouble interactionDistance=0)
Sets maxInteractionDistance_.
Definition: ParticleSpecies.cc:221
Mdouble getMassFromRadius(Mdouble radius) const
Definition: ParticleSpecies.cc:123
const BaseSpecies * getMixedSpecies(const ParticleSpecies *s) const
Definition: ParticleSpecies.cc:238
ParticleSpecies * copy() const override=0
Creates a deep copy of the object from which it is called.
Mdouble density_
The mass density.
Definition: ParticleSpecies.h:136
ParticleSpecies()
The default constructor.
Definition: ParticleSpecies.cc:37
void computeMass(BaseParticle *p) const
Compute Particle mass function, which required a reference to the Species vector. It computes the Par...
Definition: ParticleSpecies.cc:167
void write(std::ostream &os) const override
Writes the species properties to an output stream.
Definition: ParticleSpecies.cc:77
Mdouble getDensity() const
Allows density_ to be accessed.
Definition: ParticleSpecies.cc:118
Mdouble getVolumeFromRadius(Mdouble radius) const
Definition: ParticleSpecies.cc:135
void setTemperatureDependentDensity(const std::function< double(double)> &temperatureDependentDensity)
Definition: ParticleSpecies.cc:177
void read(std::istream &is) override
Reads the species properties from an input stream.
Definition: ParticleSpecies.cc:89
Mdouble getMaxInteractionDistance() const
returns the largest separation distance at which adhesive short-range forces can occur.
Definition: ParticleSpecies.h:113
const std::function< double(double)> & getTemperatureDependentDensity() const
Definition: ParticleSpecies.cc:172
Container to store all ParticleSpecies.
Definition: SpeciesHandler.h:37