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_elastic_plane_strain_K0_law.h
Go to the documentation of this file.
1 // KRATOS___
2 // // ) )
3 // // ___ ___
4 // // ____ //___) ) // ) )
5 // // / / // // / /
6 // ((____/ / ((____ ((___/ / MECHANICS
7 //
8 // License: geo_mechanics_application/license.txt
9 //
10 // Main authors: Vahid Galavi
11 //
12 
13 #pragma once
14 
15 // Project includes
16 #include "linear_elastic_law.h"
18 
19 namespace Kratos
20 {
23 
27 
31 
35 
39 
47 class KRATOS_API(GEO_MECHANICS_APPLICATION) LinearPlaneStrainK0Law
48  : public GeoLinearElasticLaw
49 {
50 public:
53 
55 
57  using SizeType = std::size_t;
58 
60  static constexpr SizeType Dimension = N_DIM_2D;
61 
63  // for the time being
64  static constexpr SizeType VoigtSize = VOIGT_SIZE_2D_PLANE_STRAIN;
65 
68 
71 
75  ConstitutiveLaw::Pointer Clone() const override;
76 
80 
84 
89  void GetLawFeatures(Features& rFeatures) override;
90 
96  {
97  return Dimension;
98  };
99 
104  SizeType GetStrainSize() const override
105  {
106  return VoigtSize;
107  }
108 
112 
116 
120 
124 
131  bool& GetValue(const Variable<bool>& rThisVariable, bool& rValue) override;
132  using BaseType::GetValue;
133 
135 
136 protected:
137 
140 
144 
148 
152 
158  void CalculateElasticMatrix(Matrix& C, ConstitutiveLaw::Parameters& rValues) override;
159 
166  void CalculatePK2Stress(const Vector& rStrainVector,
167  Vector& rStressVector,
168  ConstitutiveLaw::Parameters& rValues) override;
169 
175  void CalculateCauchyGreenStrain(ConstitutiveLaw::Parameters& rValues, Vector& rStrainVector) override;
176 
178 
179 private:
180 
183 
187 
191 
196 
201 
205  friend class Serializer;
206 
207  void save(Serializer& rSerializer) const override
208  {
210  }
211 
212  void load(Serializer& rSerializer) override
213  {
214  KRATOS_SERIALIZE_LOAD_BASE_CLASS(rSerializer, BaseType)
215  }
216 }; // Class LinearPlaneStrainK0Law
217 
218 }
std::size_t SizeType
Definition: constitutive_law.h:82
Definition: linear_elastic_law.h:21
This class defines a small deformation linear elastic constitutive model for plane strain cases.
Definition: linear_elastic_plane_strain_K0_law.h:49
SizeType GetStrainSize() const override
Voigt tensor size:
Definition: linear_elastic_plane_strain_K0_law.h:104
KRATOS_CLASS_POINTER_DEFINITION(LinearPlaneStrainK0Law)
Counted pointer of LinearPlaneStrainK0Law.
SizeType WorkingSpaceDimension() override
Dimension of the law:
Definition: linear_elastic_plane_strain_K0_law.h:95
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
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
constexpr SizeType VOIGT_SIZE_2D_PLANE_STRAIN
Definition: geo_mechanics_application_constants.h:43
constexpr SizeType N_DIM_2D
Definition: geo_mechanics_application_constants.h:26
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