43 #ifdef DEBUG_CONSTRUCTOR
44 std::cout<<
"IrreversibleAdhesiveInteraction::IrreversibleAdhesiveInteraction() finished"<<std::endl;
56 #ifdef DEBUG_CONSTRUCTOR
57 std::cout<<
"IrreversibleAdhesiveInteraction::IrreversibleAdhesiveInteraction(const IrreversibleAdhesiveInteraction &p finished"<<std::endl;
65 #ifdef DEBUG_DESTRUCTOR
66 std::cout<<
"IrreversibleAdhesiveInteraction::~IrreversibleAdhesiveInteraction() finished"<<std::endl;
112 return "IrreversibleAdhesive";
void read(std::istream &is)
Interaction read function, which accepts an std::istream as input.
Mdouble getAdhesionForceMax() const
Allows the spring constant to be accessed.
void write(std::ostream &os) const
Interaction print function, which accepts an std::ostream as input.
T square(T val)
squares a number
Stores information about interactions between two interactable objects; often particles but could be ...
void computeAdhesionForce()
Computes the Adhesive force.
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.
IrreversibleAdhesiveSpecies contains the parameters used to describe a linear irreversible short-rang...
const IrreversibleAdhesiveSpecies * getSpecies() const
A dynamic_cast of BaseSpecies type pointer to a pointer of type IrreversibleAdhesiveSpecies.
IrreversibleAdhesiveInteraction(BaseInteractable *P, BaseInteractable *I, Mdouble timeStamp)
Constructor.
Defines the basic properties that a interactable object can have.
Mdouble getElasticEnergy() const
Returns the elastic energy stored in the adhesive spring.
bool wasInContact_
A history parameter to store if the particles were in contact or not. Useful to compute adhesive forc...
Mdouble getAdhesionStiffness() const
Allows the spring constant to be accessed.
virtual ~IrreversibleAdhesiveInteraction()
Destructor.