KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
cam_clay_hardening_rule.hpp
Go to the documentation of this file.
1 //
2 // Project Name: KratosConstitutiveModelsApplication $
3 // Created by: $Author: LMonforte $
4 // Last modified by: $Co-Author: $
5 // Date: $Date: April 2017 $
6 // Revision: $Revision: 0.0 $
7 //
8 //
9 
10 #if !defined(KRATOS_CAM_CLAY_HARDENING_RULE_H_INCLUDED )
11 #define KRATOS_CAM_CLAY_HARDENING_RULE_H_INCLUDED
12 
13 // System includes
14 
15 // External includes
16 
17 // Project includes
19 
20 namespace Kratos
21 {
24 
27 
31 
35 
39 
43 
45 
47  class KRATOS_API(CONSTITUTIVE_MODELS_APPLICATION) CamClayHardeningRule : public HardeningRule
48  {
49  protected:
50 
51  constexpr static std::size_t VarSize = 5;
52 
53  public:
54 
57 
60 
64 
67 
70 
73 
75  HardeningRule::Pointer Clone() const override;
76 
78  ~CamClayHardeningRule() override;
79 
83 
84 
88 
89 
94  virtual double& CalculateHardening(const PlasticDataType& rVariables, double& rHardening);
95 
100  virtual double& CalculateDeltaHardening(const PlasticDataType& rVariables, double& rDeltaHardening);
101 
102 
106 
107 
111 
112 
116 
118  std::string Info() const override
119  {
120  std::stringstream buffer;
121  buffer << "CamClayHardeningRule" ;
122  return buffer.str();
123  }
124 
126  void PrintInfo(std::ostream& rOStream) const override
127  {
128  rOStream << "CamClayHardeningRule";
129  }
130 
132  void PrintData(std::ostream& rOStream) const override
133  {
134  rOStream << "CamClayHardeningRule Data";
135  }
136 
137 
141 
142 
144 
145  protected:
148 
152 
156 
160 
164 
168 
172 
174 
175  private:
178 
182 
186 
190 
193 
197 
201  friend class Serializer;
202 
203 
204  void save(Serializer& rSerializer) const override
205  {
207  }
208 
209  void load(Serializer& rSerializer) override
210  {
212  }
213 
217 
218 
222 
223 
225 
226  }; // Class CamClayHardeningRule
227 
229 
232 
233 
237 
238 
240 
242 
243 } // namespace Kratos.
244 
245 #endif // KRATOS_CAM_CLAY_HARDENING_RULE_H_INCLUDED defined
246 
247 
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
Short class definition.
Definition: cam_clay_hardening_rule.hpp:48
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: cam_clay_hardening_rule.hpp:126
std::string Info() const override
Turn back information as a string.
Definition: cam_clay_hardening_rule.hpp:118
InternalVariables< VarSize > InternalVariablesType
Definition: cam_clay_hardening_rule.hpp:55
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: cam_clay_hardening_rule.hpp:132
KRATOS_CLASS_POINTER_DEFINITION(CamClayHardeningRule)
Pointer definition of CamClayHardeningRule.
PlasticModelData< VarSize > PlasticDataType
Definition: cam_clay_hardening_rule.hpp:56
Short class definition.
Definition: hardening_rule.hpp:55
virtual double & CalculateDeltaHardening(const PlasticDataType &rVariables, double &rDeltaHardening)
Definition: hardening_rule.hpp:213
virtual double & CalculateHardening(const PlasticDataType &rVariables, double &rHardening)
Definition: hardening_rule.hpp:197
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
#define KRATOS_SERIALIZE_SAVE_BASE_CLASS(Serializer, BaseType)
Definition: define.h:812
#define KRATOS_SERIALIZE_LOAD_BASE_CLASS(Serializer, BaseType)
Definition: define.h:815
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
def load(f)
Definition: ode_solve.py:307
Definition: hardening_rule.hpp:74
Definition: hardening_rule.hpp:104