43 #ifdef DEBUG_CONSTRUCTOR
44 std::cout<<
"BondedInteraction::BondedInteraction() finished"<<std::endl;
56 #ifdef DEBUG_CONSTRUCTOR
57 std::cout<<
"BondedInteraction::BondedInteraction(const BondedInteraction &p finished"<<std::endl;
65 #ifdef DEBUG_DESTRUCTOR
66 std::cout<<
"BondedInteraction::~BondedInteraction() finished"<<std::endl;
Mdouble getBondDissipation() const
Allows the spring constant to be accessed.
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 ...
Mdouble getNormalRelativeVelocity() const
Returns a double which is the norm (length) of the relative velocity vector.
const BaseSpecies * getBaseSpecies() const
Return a constant point to BaseSpecies of the interaction.
const Vec3D & getNormal() const
Gets the normal vector between the two interacting objects.
Mdouble getOverlap() const
Returns a Mdouble with the current overlap between the two interacting objects.
void addForce(Vec3D force)
add an force increment to the total force.
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.
Mdouble getBondForceMax() const
Allows the spring constant to be accessed.
bool bonded_
A history parameter to store if the particles were in contact or not. Useful to compute adhesive forc...