LinearPlasticViscoelasticInteraction.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 LINEARPLASTICVISCOELASTICINTERACTION_H
6 #define LINEARPLASTICVISCOELASTICINTERACTION_H
7 
9 
11 
12 class BaseInteractable;
13 
19 {
20 public:
25 
30 
31  //used for mpi
33 
38 
46  //BaseInteraction* copy() const;
47 
51  void computeNormalForce();
52 
56  void read(std::istream& is) override;
57 
61  void write(std::ostream& os) const override;
62 
66  virtual std::string getBaseName() const;
67 
71  Mdouble getElasticEnergy() const override;
72 
77 
81  Mdouble getMaxOverlap() const;
82 
86  void setMaxOverlap(Mdouble maxOverlap);
87 
92 
93 private:
94 
95  //set in integrate, used in compute force
97 };
98 
99 #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
Computes normal forces in case of a linear plastic visco-elastic interaction.
Definition: LinearPlasticViscoelasticInteraction.h:19
virtual std::string getBaseName() const
Returns the name of the interaction.
Definition: LinearPlasticViscoelasticInteraction.cc:86
void write(std::ostream &os) const override
Interaction write function, which accepts an std::ostream as input.
Definition: LinearPlasticViscoelasticInteraction.cc:65
void setMaxOverlap(Mdouble maxOverlap)
Definition: LinearPlasticViscoelasticInteraction.cc:191
LinearPlasticViscoelasticInteraction()
Definition: LinearPlasticViscoelasticInteraction.cc:29
LinearPlasticViscoelasticNormalSpecies SpeciesType
An alias for the species (needed for e.g. ThermalSpecies)
Definition: LinearPlasticViscoelasticInteraction.h:24
void read(std::istream &is) override
Interaction read function, which accepts an std::istream as input.
Definition: LinearPlasticViscoelasticInteraction.cc:75
Mdouble getElasticEnergy() const override
Computes and returns the amount of elastic energy stored in the spring.
Definition: LinearPlasticViscoelasticInteraction.cc:163
~LinearPlasticViscoelasticInteraction() override
Destructor.
Definition: LinearPlasticViscoelasticInteraction.cc:54
void computeNormalForce()
Creates a copy of an object of this class. (Deep copy)
Definition: LinearPlasticViscoelasticInteraction.cc:94
const LinearPlasticViscoelasticNormalSpecies * getSpecies() const
Definition: LinearPlasticViscoelasticInteraction.cc:174
Mdouble getMaxOverlap() const
Definition: LinearPlasticViscoelasticInteraction.cc:183
Mdouble maxOverlap_
Definition: LinearPlasticViscoelasticInteraction.h:96
Mdouble getUnloadingStiffness() const
Definition: LinearPlasticViscoelasticInteraction.cc:199
LinearPlasticViscoelasticNormalSpecies contains the parameters used to describe a plastic-cohesive no...
Definition: LinearPlasticViscoelasticNormalSpecies.h:20
#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