EmptyAdhesiveInteraction.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 EMPTYADHESIVEINTERACTION_H
6 #define EMPTYADHESIVEINTERACTION_H
7 
9 #include "Math/Vector.h"
10 
11 class BaseParticle;
12 
14 
15 class BaseInteractable;
16 
24 {
25 public:
30 
35 
36  //used for mpi
38 
43 
47  ~EmptyAdhesiveInteraction() override;
48 
52  void computeAdhesionForce();
53 
55 
59  void read(std::istream& is) override;
60 
64  void write(std::ostream& os) const override;
65 
70  Mdouble getElasticEnergy() const override;
71 
75  const EmptyAdhesiveSpecies* getSpecies() const;
76 
80  std::string getBaseName() const;
81 };
82 
83 #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
In case one doesn't want to have an adhesive (short range non contact) interaction between the intera...
Definition: EmptyAdhesiveInteraction.h:24
~EmptyAdhesiveInteraction() override
Destructor.
Definition: EmptyAdhesiveInteraction.cc:47
std::string getBaseName() const
Returns the name of the interaction, see Interaction.h.
Definition: EmptyAdhesiveInteraction.cc:95
void read(std::istream &is) override
Interaction read function, which accepts an std::istream as input.
Definition: EmptyAdhesiveInteraction.cc:63
void computeAdhesionForce()
Computes nothing as it is an Empty Adhesive interaction.
Definition: EmptyAdhesiveInteraction.cc:69
EmptyAdhesiveInteraction()
Definition: EmptyAdhesiveInteraction.cc:25
const EmptyAdhesiveSpecies * getSpecies() const
Returns a pointer to the adhesive force species EmptyAdhesiveSpecies.
Definition: EmptyAdhesiveInteraction.cc:86
EmptyAdhesiveSpecies SpeciesType
An alias name for EmptyAdhesiveSpecies data type.
Definition: EmptyAdhesiveInteraction.h:29
void write(std::ostream &os) const override
Interaction print function, which accepts an std::ostream as input.
Definition: EmptyAdhesiveInteraction.cc:57
void computeAdhesionInteraction()
Definition: EmptyAdhesiveInteraction.cc:72
Mdouble getElasticEnergy() const override
Returns the amount of Elastic energy involved in an interaction. Basically used in case you want to w...
Definition: EmptyAdhesiveInteraction.cc:78
EmptyAdhesiveSpecies is used to create a force law without a short-range adhesive force.
Definition: EmptyAdhesiveSpecies.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