26 #ifndef SPHNormalSpecies_H
27 #define SPHNormalSpecies_H
54 void read(std::istream& is);
57 void write(std::ostream& os)
const;
#define MERCURYDPM_DEPRECATED
Definition: GeneralDefine.h:37
Definition: BaseNormalForce.h:32
Definition: BaseParticle.h:54
Enables the use of SPH particles within MercuryDPM.
Definition: SPHInteraction.h:40
SPHNormalSpecies contains the parameters used to describe a SPH model.
Definition: SPHNormalSpecies.h:39
Mdouble getMaximumVelocity(Mdouble radius, Mdouble mass) const
Calculates the maximum velocity allowed for a collision of two copies of P (for higher velocities par...
Definition: SPHNormalSpecies.cc:176
~SPHNormalSpecies()
The default destructor.
Definition: SPHNormalSpecies.cc:58
Mdouble getStiffness() const
Allows the spring constant to be accessed.
Definition: SPHNormalSpecies.cc:105
std::string getBaseName() const
Used in Species::getName to obtain a unique name for each Species.
Definition: SPHNormalSpecies.cc:87
Mdouble dissipation_
(normal) viscosity
Definition: SPHNormalSpecies.h:117
SPHInteraction InteractionType
The correct Interaction type for this FrictionForceSpecies.
Definition: SPHNormalSpecies.h:42
void setDissipation(Mdouble dissipation)
Allows the normal dissipation to be changed.
Definition: SPHNormalSpecies.cc:118
void read(std::istream &is)
Reads the species properties from an input stream.
Definition: SPHNormalSpecies.cc:77
void setCollisionTimeAndRestitutionCoefficient(Mdouble tc, Mdouble eps, BaseParticle *p)
Sets k, disp such that it matches a given tc and eps for a collision of two copies of particle p.
Definition: SPHNormalSpecies.cc:211
void setStiffness(Mdouble new_k)
Allows the spring constant to be changed.
Definition: SPHNormalSpecies.cc:93
void setStiffnessAndRestitutionCoefficient(Mdouble k_, Mdouble eps, Mdouble mass)
Sets k, disp such that it matches a given tc and eps for a collision of two copies of P.
Definition: SPHNormalSpecies.cc:187
SPHNormalSpecies()
The default constructor.
Definition: SPHNormalSpecies.cc:35
Mdouble stiffness_
(normal) spring constant
Definition: SPHNormalSpecies.h:116
Mdouble getRestitutionCoefficient(Mdouble mass) const
Calculates restitution coefficient for two copies of given disp, k, mass.
Definition: SPHNormalSpecies.cc:170
Mdouble getDissipation() const
Allows the normal dissipation to be accessed.
Definition: SPHNormalSpecies.cc:132
Mdouble getCollisionTime(Mdouble mass) const
Calculates collision time for two copies of a particle of given disp, k, mass.
Definition: SPHNormalSpecies.cc:139
void write(std::ostream &os) const
Writes the species properties to an output stream.
Definition: SPHNormalSpecies.cc:68
MERCURYDPM_DEPRECATED void setStiffnessAndDissipation(helpers::KAndDisp new_)
Allows the spring and dissipation constants to be changed simultaneously.
Definition: SPHNormalSpecies.cc:111
void mix(SPHNormalSpecies *SBase, SPHNormalSpecies *TBase)
creates default values for mixed species
Definition: SPHNormalSpecies.cc:262
void setRestitutionCoefficient(double eps, Mdouble mass)
Sets disp to obtain a restitution coefficient eps for a collision of two particles of mass m.
Definition: SPHNormalSpecies.cc:199
return type specifically for fuctions returning k and disp at once
Definition: FormulaHelpers.h:38