26 #ifndef LINEARVISCOELASTICINTERACTION_H
27 #define LINEARVISCOELASTICINTERACTION_H
67 void read(std::istream& is);
71 void write(std::ostream& os)
const;
void write(std::ostream &os) const
Interaction write function, which accepts an std::ostream as input.
LinearViscoelasticNormalSpecies SpeciesType
An alias for LinearViscoelasticNormalSpecies.
virtual ~LinearViscoelasticInteraction()
Destructor.
void computeNormalForce()
Creates a copy of an object of this class. (Deep copy)
Mdouble getElasticEnergyAtEquilibrium(Mdouble adhesiveForce) const
Stores information about interactions between two interactable objects; often particles but could be ...
Enables one to compute normal forces in case of a linear visco-elastic interaction.
LinearViscoelasticInteraction(BaseInteractable *P, BaseInteractable *I, Mdouble timeStamp)
Constructor.
LinearViscoelasticNormalSpecies contains the parameters used to describe a linear elastic-dissipative...
const LinearViscoelasticNormalSpecies * getSpecies() const
Returns a const pointer of type LinearViscoelasticNormalSpecies*.
std::string getBaseName() const
Returns the type/name of interaction (linear visco-elastic interaction).
Defines the basic properties that a interactable object can have.
Mdouble getElasticEnergy() const
Returns the amount of energy stored in the spring due to head on collision.
void read(std::istream &is)
Interaction read function, which accepts an std::istream as input.