26 #ifndef LINEARChargedInteraction_H
27 #define LINEARChargedInteraction_H
65 void read(std::istream& is);
69 void write(std::ostream& os)
const;
void write(std::ostream &os) const
Interaction print function, which accepts an std::ostream as input.
ChargedBondedInteraction(BaseInteractable *P, BaseInteractable *I, Mdouble timeStamp)
Constructor.
std::string getBaseName() const
Returns the name of the interaction, see Interaction.h.
void read(std::istream &is)
Interaction read function, which accepts an std::istream as input.
ChargedBondedSpecies SpeciesType
Setting an alias name for ChargedBondedSpecies.
Stores information about interactions between two interactable objects; often particles but could be ...
ChargedBondedSpecies contains the parameters used to describe a linear reversible short-range force...
Mdouble getElasticEnergy() const
Returns the amount of Elastic energy involved in an interaction. Basically used in case you want to w...
const ChargedBondedSpecies * getSpecies() const
A dynamic_cast of BaseSpecies pointer type to a pointer to an object of type ChargedBondedSpecies.
void bond()
A pair of functions which can be used to fix or unfix a pair of overlapping particles.
Defines the basic properties that a interactable object can have.
void computeAdhesionForce()
Computes the adhesive forces.
bool bonded_
A history parameter to store if the particles were in contact or not. Useful to compute adhesive forc...
virtual ~ChargedBondedInteraction()
Destructor.