26 #ifndef SPHINTERACTION_H
27 #define SPHINTERACTION_H
76 void read(std::istream& is)
override;
81 void write(std::ostream& os)
const override;
Defines the basic properties that a interactable object can have.
Definition: BaseInteractable.h:55
Stores information about interactions between two interactable objects; often particles but could be ...
Definition: BaseInteraction.h:60
Enables the use of SPH particles within MercuryDPM.
Definition: SPHInteraction.h:40
Mdouble getElasticEnergyAtEquilibrium(Mdouble adhesiveForce) const override
Definition: SPHInteraction.cc:153
Mdouble getElasticEnergy() const override
Returns the amount of energy stored in the spring due to head on collision.
Definition: SPHInteraction.cc:135
std::string getBaseName() const
Returns the type/name of interaction (linear visco-elastic interaction).
Definition: SPHInteraction.cc:97
void write(std::ostream &os) const override
Interaction write function, which accepts an std::ostream as input.
Definition: SPHInteraction.cc:80
SPHInteraction()
Definition: SPHInteraction.cc:50
void read(std::istream &is) override
Interaction read function, which accepts an std::istream as input.
Definition: SPHInteraction.cc:89
const SPHNormalSpecies * getSpecies() const
Returns a const pointer of type LinearViscoelasticNormalSpecies*.
Definition: SPHInteraction.cc:146
void computeNormalForce()
Creates a copy of an object of this class. (Deep copy)
Definition: SPHInteraction.cc:105
void copyHistoryInteraction()
SPHNormalSpecies SpeciesType
An alias for SPHNormalSpecies.
Definition: SPHInteraction.h:45
~SPHInteraction() override
Destructor.
Definition: SPHInteraction.cc:69
SPHNormalSpecies contains the parameters used to describe a SPH model.
Definition: SPHNormalSpecies.h:39
double P
Uniform pressure.
Definition: TwenteMeshGluing.cpp:73