26 #ifndef BondInteraction_h
27 #define BondInteraction_h
29 #include "../BaseInteraction.h"
67 void read(std::istream& is);
72 void write(std::ostream& os)
const;
BondedSpecies contains the parameters used to describe a linear irreversible short-range force...
const BondedSpecies * getSpecies() const
A dynamic_cast of BaseSpecies type pointer to a pointer of type BondedSpecies.
void write(std::ostream &os) const
Interaction print function, which accepts an std::ostream as input.
BondedInteraction(BaseInteractable *P, BaseInteractable *I, Mdouble timeStamp)
Constructor.
Mdouble getElasticEnergy() const
Returns the elastic energy stored in the adhesive spring.
virtual ~BondedInteraction()
Destructor.
void read(std::istream &is)
Interaction read function, which accepts an std::istream as input.
Stores information about interactions between two interactable objects; often particles but could be ...
std::string getBaseName() const
Returns the name of the interaction, see Interaction.h.
void computeAdhesionForce()
Computes the Adhesive force.
Defines the basic properties that a interactable object can have.
bool bonded_
A history parameter to store if the particles were in contact or not. Useful to compute adhesive forc...
BondedSpecies SpeciesType
An alias name for BondedSpecies data type.