LiquidBridgeBagheriInteraction.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 LiquidBridgeBagheriInteraction_H
6 #define LiquidBridgeBagheriInteraction_H
7 
9 #include "Math/Vector.h"
10 
11 class BaseParticle;
12 
14 
15 class BaseInteractable;
16 
22 {
23 public:
28 
33 
34  //used for mpi
36 
41 
46 
50  void computeAdhesionForce();
51 
55  void read(std::istream& is) override;
56 
60  void write(std::ostream& os) const override;
61 
66  Mdouble getElasticEnergy() const override;
67 
72 
76  std::string getBaseName() const;
77 
78  bool getWasInContact() const;
79 
80  void setWasInContact(bool wasInContact);
81 
82 private:
88 };
89 
90 #endif
float * p
Definition: Tutorial_Map_using.cpp:9
Defines the basic properties that a interactable object can have.
Definition: BaseInteractable.h:34
Stores information about interactions between two interactable objects; often particles but could be ...
Definition: BaseInteraction.h:39
Definition: BaseParticle.h:33
Defines the liquid bridge Bagheri interaction between two particles or walls.
Definition: LiquidBridgeBagheriInteraction.h:22
~LiquidBridgeBagheriInteraction() override
Destructor.
Definition: LiquidBridgeBagheriInteraction.cc:52
LiquidBridgeBagheriInteraction()
Definition: LiquidBridgeBagheriInteraction.cc:28
bool getWasInContact() const
Definition: LiquidBridgeBagheriInteraction.cc:180
void write(std::ostream &os) const override
Interaction print function, which accepts an std::ostream as input.
Definition: LiquidBridgeBagheriInteraction.cc:62
void setWasInContact(bool wasInContact)
Definition: LiquidBridgeBagheriInteraction.cc:185
void read(std::istream &is) override
Interaction read function, which accepts an std::istream as input.
Definition: LiquidBridgeBagheriInteraction.cc:70
bool wasInContact_
A history parameter to store if the particles were in contact or not. Useful to compute adhesive forc...
Definition: LiquidBridgeBagheriInteraction.h:87
LiquidBridgeBagheriSpecies SpeciesType
An alias name for LiquidBridgeBagheriSpecies data type.
Definition: LiquidBridgeBagheriInteraction.h:27
std::string getBaseName() const
Returns the name of the interaction, see Interaction.h.
Definition: LiquidBridgeBagheriInteraction.cc:175
const LiquidBridgeBagheriSpecies * getSpecies() const
Returns a pointer to the adhesive force species LiquidBridgeBagheriSpecies.
Definition: LiquidBridgeBagheriInteraction.cc:167
void computeAdhesionForce()
Computes the adhesive forces for liquid bridge Bagheri type of interaction.
Definition: LiquidBridgeBagheriInteraction.cc:80
Mdouble getElasticEnergy() const override
Returns the amount of Elastic energy involved in an interaction. Basically used in case you want to w...
Definition: LiquidBridgeBagheriInteraction.cc:158
LiquidBridgeBagheriSpecies contains the parameters used to describe a short-range force caused by liq...
Definition: LiquidBridgeBagheriSpecies.h:17
#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