Mdouble getMassFromRadius(const Mdouble radius)
virtual void computeMass(BaseParticle *p) const
Compute Particle mass function, which required a reference to the Species vector. It computes the Par...
std::string getBaseName() const
Used in Species::getName to obtain a unique name for each Species.
virtual BaseSpecies * copyMixed() const =0
Creates a new MixedSpecies with the same force properties as the Species from which it is called...
void setDensity(Mdouble density)
Allows the density to be changed.
void write(std::ostream &os) const
Writes the species properties to an output stream.
void read(std::istream &is)
Reads the species properties from an input stream.
Mdouble density_
The particle mass density.
Mdouble getDensity() const
Allows the density to be accessed.
BaseInteraction InteractionType
virtual ~ParticleSpecies()
The default destructor.
virtual ParticleSpecies * copy() const =0
Creates a deep copy of the object from which it is called.