IrreversibleAdhesiveInteraction.h
Go to the documentation of this file.
1 // This file is part of the MercuryDPM project (https://www.mercurydpm.org).
2 // Copyright (c), The MercuryDPM Developers Team. All rights reserved.
3 // License: BSD 3-Clause License; see the LICENSE file in the root directory.
4 
5 #ifndef LINEARIRREVERSIBLEADHESIVEINTERACTION_H
6 #define LINEARIRREVERSIBLEADHESIVEINTERACTION_H
7 
9 #include "Math/Vector.h"
10 
11 class BaseParticle;
12 
14 
15 class BaseInteractable;
16 
21 {
22 public:
27 
32 
33  //used for mpi
35 
40 
45 
49  void computeAdhesionForce();
50 
54  void read(std::istream& is) override;
55 
59  void write(std::ostream& os) const override;
60 
65 
69  std::string getBaseName() const;
70 
74  Mdouble getElasticEnergy() const override;
75 
76  bool getWasInContact() const;
77 
78  void setWasInContact(bool wasInContact);
79 
80 private:
86 };
87 
88 #endif
float * p
Definition: Tutorial_Map_using.cpp:9
Defines the basic properties that a interactable object can have.
Definition: BaseInteractable.h:34
Definition: BaseParticle.h:33
Definition: IrreversibleAdhesiveInteraction.h:21
Mdouble getElasticEnergy() const override
Returns the elastic energy stored in the adhesive spring.
Definition: IrreversibleAdhesiveInteraction.cc:116
void computeAdhesionForce()
Computes the Adhesive force.
Definition: IrreversibleAdhesiveInteraction.cc:80
bool getWasInContact() const
Definition: IrreversibleAdhesiveInteraction.cc:128
void read(std::istream &is) override
Interaction read function, which accepts an std::istream as input.
Definition: IrreversibleAdhesiveInteraction.cc:71
void write(std::ostream &os) const override
Interaction print function, which accepts an std::ostream as input.
Definition: IrreversibleAdhesiveInteraction.cc:63
bool wasInContact_
A history parameter to store if the particles were in contact or not. Useful to compute adhesive forc...
Definition: IrreversibleAdhesiveInteraction.h:85
IrreversibleAdhesiveInteraction()
Definition: IrreversibleAdhesiveInteraction.cc:28
IrreversibleAdhesiveSpecies SpeciesType
An alias name for IrreversibleAdhesiveSpecies data type.
Definition: IrreversibleAdhesiveInteraction.h:26
~IrreversibleAdhesiveInteraction() override
Destructor.
Definition: IrreversibleAdhesiveInteraction.cc:53
std::string getBaseName() const
Returns the name of the interaction, see Interaction.h.
Definition: IrreversibleAdhesiveInteraction.cc:106
const IrreversibleAdhesiveSpecies * getSpecies() const
Returns a pointer to the adhesive force species IrreversibleAdhesiveSpecies.
Definition: IrreversibleAdhesiveInteraction.cc:97
void setWasInContact(bool wasInContact)
Definition: IrreversibleAdhesiveInteraction.cc:133
IrreversibleAdhesiveSpecies contains the parameters used to describe a linear irreversible short-rang...
Definition: IrreversibleAdhesiveSpecies.h:18
Definition: ReversibleAdhesiveInteraction.h:22
#define I
Definition: main.h:127
double P
Uniform pressure.
Definition: TwenteMeshGluing.cpp:77
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286