26 #ifndef HERTZIANVISCOELASTICINTERACTION_H
27 #define HERTZIANVISCOELASTICINTERACTION_H
70 void read(std::istream& is);
74 void write(std::ostream& os)
const;
const HertzianViscoelasticNormalSpecies * getSpecies() const
Returns a const pointer of type HerztianViscoelasticNormalSpecies (dynamic-cast). ...
std::string getBaseName() const
Returns the name of the interaction.
Computes normal forces for a Herztian visco-elastic interaction.
virtual ~HertzianViscoelasticInteraction()
Destructor.
Stores information about interactions between two interactable objects; often particles but could be ...
HertzianViscoelasticInteraction(BaseInteractable *P, BaseInteractable *I, Mdouble timeStamp)
Constructor.
HertzianViscoelasticInteraction(const BaseInteraction &p)
void computeNormalForce()
Computes the amount of normal force due to an Herztian visco-elastic interaction. ...
HertzianViscoelasticNormalSpecies SpeciesType
An alias for HertzianViscoelasticNormalSpecies.
void read(std::istream &is)
Interaction read function, which accepts an std::istream as input.
Mdouble getElasticEnergyAtEquilibrium(Mdouble adhesiveForce) const
void write(std::ostream &os) const
Interaction write function, which accepts an std::ostream as input.
Defines the basic properties that a interactable object can have.
HertzianViscoelasticNormalSpecies contains the parameters used to describe a Hertzian normal force (T...
Mdouble getElasticEnergy() const
Computes and returns the amount of elastic energy stored in the spring.