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.
linear_plane_stress.h
Go to the documentation of this file.
1 // KRATOS ___| | | |
2 // \___ \ __| __| | | __| __| | | __| _` | |
3 // | | | | | ( | | | | ( | |
4 // _____/ \__|_| \__,_|\___|\__|\__,_|_| \__,_|_| MECHANICS
5 //
6 // License: BSD License
7 // license: structural_mechanics_application/license.txt
8 //
9 // Main authors: Riccardo Rossi
10 //
11 
12 #if !defined (KRATOS_LINEAR_PLANE_STRESS_LAW_H_INCLUDED)
13 #define KRATOS_LINEAR_PLANE_STRESS_LAW_H_INCLUDED
14 
15 // System includes
16 
17 // External includes
18 
19 // Project includes
20 #include "custom_constitutive/elastic_isotropic_3d.h"
21 
22 namespace Kratos
23 {
26 
30 
34 
38 
42 
49 class KRATOS_API(FEM_TO_DEM_APPLICATION) LinearPlaneStressFEMDEM
51 {
52 public:
55 
58 
61 
64 
65  // Adding the respective using to avoid overload conflicts
66  using BaseType::Has;
67  using BaseType::GetValue;
68 
70  typedef std::size_t SizeType;
71 
73  static constexpr SizeType Dimension = 2;
74 
76  static constexpr SizeType VoigtSize = 3;
77 
80 
83 
88 
89  ConstitutiveLaw::Pointer Clone() const override;
90 
95 
96 
100  ~LinearPlaneStressFEMDEM() override;
101 
105 
109 
114  void GetLawFeatures(Features& rFeatures) override;
115 
120  {
121  return Dimension;
122  };
123 
127  SizeType GetStrainSize() const override
128  {
129  return VoigtSize;
130  }
131 
135 
139 
143 
147 
154  bool& GetValue(const Variable<bool>& rThisVariable, bool& rValue) override;
155 
157 
158 protected:
159 
162 
166 
170 
174 
180  void CalculateElasticMatrix(Matrix& C, ConstitutiveLaw::Parameters& rValues) override;
181 
188  void CalculatePK2Stress(
189  const Vector& rStrainVector,
190  Vector& rStressVector,
192  ) override;
193 
199  void CalculateCauchyGreenStrain(
201  Vector& rStrainVector
202  ) override;
203 
205 
206 private:
207 
210 
214 
218 
223 
228 
232  friend class Serializer;
233 
234  void save(Serializer& rSerializer) const override
235  {
237  }
238 
239  void load(Serializer& rSerializer) override
240  {
242  }
243 
244 
245 }; // Class LinearPlaneStressFEMDEM
246 } // namespace Kratos.
247 #endif // KRATOS_LINEAR_PLANE_STRESS_LAW_H_INCLUDED defined
Definition: constitutive_law.h:47
Definition: elastic_isotropic_3d.h:54
This class defines a small deformation linear elastic constitutive model for plane stress cases.
Definition: linear_plane_stress.h:51
SizeType WorkingSpaceDimension() override
Definition: linear_plane_stress.h:119
SizeType GetStrainSize() const override
Definition: linear_plane_stress.h:127
ProcessInfo ProcessInfoType
The process info definition.
Definition: linear_plane_stress.h:57
KRATOS_CLASS_POINTER_DEFINITION(LinearPlaneStressFEMDEM)
Counted pointer of LinearPlaneStressFEMDEM.
ElasticIsotropic3DFEMDEM BaseType
The base class ElasticIsotropic3DFEMDEM type definition.
Definition: linear_plane_stress.h:63
ConstitutiveLaw CLBaseType
The base class ConstitutiveLaw type definition.
Definition: linear_plane_stress.h:60
std::size_t SizeType
The size type definition.
Definition: linear_plane_stress.h:70
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
Variable class contains all information needed to store and retrive data from a data container.
Definition: variable.h:63
#define KRATOS_SERIALIZE_SAVE_BASE_CLASS(Serializer, BaseType)
Definition: define.h:812
#define KRATOS_SERIALIZE_LOAD_BASE_CLASS(Serializer, BaseType)
Definition: define.h:815
bool Has(const std::string &ModelerName)
Checks if the modeler is registered.
Definition: modeler_factory.cpp:24
Parameters GetValue(Parameters &rParameters, const std::string &rEntry)
Definition: add_kratos_parameters_to_python.cpp:53
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
int C
Definition: generate_hyper_elastic_simo_taylor_neo_hookean.py:27
def load(f)
Definition: ode_solve.py:307
Definition: constitutive_law.h:137
Definition: constitutive_law.h:189