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.
hyperelastic_U_P_plane_strain_2D_law.hpp
Go to the documentation of this file.
1 //
2 // Project Name: KratosSolidMechanicsApplication $
3 // Created by: $Author: JMCarbonell $
4 // Last modified by: $Co-Author: $
5 // Date: $Date: July 2015 $
6 // Revision: $Revision: 0.0 $
7 //
8 //
9 
10 #if !defined (KRATOS_HYPERELASTIC_U_P_PLANE_STRAIN_2D_LAW_H_INCLUDED)
11 #define KRATOS_HYPERELASTIC_U_P_PLANE_STRAIN_2D_LAW_H_INCLUDED
12 
13 // System includes
14 
15 // External includes
16 
17 // Project includes
19 
20 
21 namespace Kratos
22 {
33 class KRATOS_API(SOLID_MECHANICS_APPLICATION) HyperElasticUPPlaneStrain2DLaw : public HyperElasticUP3DLaw
34 {
35 public:
41  typedef std::size_t SizeType;
47 
56 
61  ConstitutiveLaw::Pointer Clone() const override;
62 
67 
68 
73  //HyperElasticUPPlaneStrain2DLaw& operator=(const HyperElasticUPPlaneStrain2DLaw& rOther);
74 
75 
80 
93  {
94  return 2;
95  };
96 
100  SizeType GetStrainSize() const override
101  {
102  return 3;
103  };
104 
109  void GetLawFeatures(Features& rFeatures) override;
110 
117  //String Info() const override;
121  //void PrintInfo(std::ostream& rOStream) const override;
125  //void PrintData(std::ostream& rOStream) const override;
126 
127 protected:
128 
140 
141 
147  void CalculateGreenLagrangeStrain( const Matrix & rRightCauchyGreen,
148  Vector& rStrainVector ) override;
149 
150 
156  void CalculateAlmansiStrain( const Matrix & rLeftCauchyGreen,
157  Vector& rStrainVector ) override;
158 
159 
160 
161 
169  void CalculateIsochoricConstitutiveMatrix (const MaterialResponseVariables& rElasticVariables,
170  const Matrix & rIsoStressMatrix,
171  Matrix& rConstitutiveMatrix) override;
172 
173 
174 
181  void CalculateVolumetricConstitutiveMatrix (const MaterialResponseVariables& rElasticVariables,
182  Matrix& rConstitutiveMatrix) override;
183 
184 
185 private:
186 
192 
193 
197 
198 
202 
207 
208 
212  friend class Serializer;
213 
214  void save(Serializer& rSerializer) const override
215  {
217  }
218 
219  void load(Serializer& rSerializer) override
220  {
222  }
223 
224 
225 
226 }; // Class HyperElasticUPPlaneStrain2DLaw
227 } // namespace Kratos.
228 #endif // KRATOS_HYPERELASTIC_U_P_PLANE_STRAIN_2D_LAW_H_INCLUDED defined
Definition: constitutive_law.h:47
std::size_t SizeType
Definition: constitutive_law.h:82
Definition: hyperelastic_UP_3D_law.hpp:39
Definition: hyperelastic_U_P_plane_strain_2D_law.hpp:34
std::size_t SizeType
Definition: hyperelastic_U_P_plane_strain_2D_law.hpp:41
ProcessInfo ProcessInfoType
Definition: hyperelastic_U_P_plane_strain_2D_law.hpp:39
ConstitutiveLaw BaseType
Definition: hyperelastic_U_P_plane_strain_2D_law.hpp:40
SizeType GetStrainSize() const override
Definition: hyperelastic_U_P_plane_strain_2D_law.hpp:100
SizeType WorkingSpaceDimension() override
Definition: hyperelastic_U_P_plane_strain_2D_law.hpp:92
KRATOS_CLASS_POINTER_DEFINITION(HyperElasticUPPlaneStrain2DLaw)
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
#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