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_plastic_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_LINEAR_ELASTIC_PLASTIC_PLANE_STRAIN_2D_LAW_H_INCLUDED)
11 #define KRATOS_LINEAR_ELASTIC_PLASTIC_PLANE_STRAIN_2D_LAW_H_INCLUDED
12 
13 // System includes
14 
15 // External includes
16 
17 // Project includes
18 #include "custom_constitutive/linear_elastic_plastic_3D_law.hpp"
19 
20 
21 
22 namespace Kratos
23 {
24 
25 
26 class KRATOS_API(SOLID_MECHANICS_APPLICATION) LinearElasticPlasticPlaneStrain2DLaw : public LinearElasticPlastic3DLaw
27 {
28 public:
34  typedef std::size_t SizeType;
35 
36  typedef FlowRule::Pointer FlowRulePointer;
37  typedef YieldCriterion::Pointer YieldCriterionPointer;
38  typedef HardeningLaw::Pointer HardeningLawPointer;
39  typedef Properties::Pointer PropertiesPointer;
40 
46 
55 
56 
58 
63 
64 
69  //LinearElasticPlasticPlaneStrain2DLaw& operator=(const LinearElasticPlasticPlaneStrain2DLaw& rOther);
70 
75  ConstitutiveLaw::Pointer Clone() const override;
76 
81 
94  {
95  return 2;
96  };
97 
101  SizeType GetStrainSize() const override
102  {
103  return 3;
104  };
105 
110  void GetLawFeatures(Features& rFeatures) override;
111 
118  //String Info() const override;
122  //void PrintInfo(std::ostream& rOStream) const override;
126  //void PrintData(std::ostream& rOStream) const override;
127 
128 protected:
129 
141 
147  void CalculateGreenLagrangeStrain( const Matrix & rRightCauchyGreen,
148  Vector& rStrainVector ) override;
149 
150 
156  void CalculateAlmansiStrain( const Matrix & rLeftCauchyGreen,
157  Vector& rStrainVector ) override;
158 
168  void CalculateLinearElasticMatrix( Matrix& rLinearElasticMatrix,
169  const double& YoungModulus,
170  const double& PoissonCoefficient ) override;
171 
173 
174 private:
175 
178 
179 
183 
184 
188 
189 
193 
194 
199 
200 
204  friend class Serializer;
205 
206  void save(Serializer& rSerializer) const override
207  {
209  }
210 
211  void load(Serializer& rSerializer) override
212  {
214  }
215 
216 
217 
218 }; // Class LinearElasticPlasticPlaneStrain2DLaw
219 } // namespace Kratos.
220 #endif // KRATOS_LINEAR_ELASTIC_PLASTIC_PLANE_STRAIN_2D_LAW_H_INCLUDED defined
Definition: constitutive_law.h:47
std::size_t SizeType
Definition: constitutive_law.h:82
YieldCriterion::Pointer YieldCriterionPointer
Definition: hyperelastic_plastic_3D_law.hpp:62
FlowRule::Pointer FlowRulePointer
Definition: hyperelastic_plastic_3D_law.hpp:61
HardeningLaw::Pointer HardeningLawPointer
Definition: hyperelastic_plastic_3D_law.hpp:63
Definition: linear_elastic_plastic_3D_law.hpp:27
Definition: linear_elastic_plastic_plane_strain_2D_law.hpp:27
HardeningLaw::Pointer HardeningLawPointer
Definition: linear_elastic_plastic_plane_strain_2D_law.hpp:38
ProcessInfo ProcessInfoType
Definition: linear_elastic_plastic_plane_strain_2D_law.hpp:32
SizeType GetStrainSize() const override
Definition: linear_elastic_plastic_plane_strain_2D_law.hpp:101
FlowRule::Pointer FlowRulePointer
Definition: linear_elastic_plastic_plane_strain_2D_law.hpp:36
SizeType WorkingSpaceDimension() override
Definition: linear_elastic_plastic_plane_strain_2D_law.hpp:93
std::size_t SizeType
Definition: linear_elastic_plastic_plane_strain_2D_law.hpp:34
ConstitutiveLaw BaseType
Definition: linear_elastic_plastic_plane_strain_2D_law.hpp:33
KRATOS_CLASS_POINTER_DEFINITION(LinearElasticPlasticPlaneStrain2DLaw)
YieldCriterion::Pointer YieldCriterionPointer
Definition: linear_elastic_plastic_plane_strain_2D_law.hpp:37
Properties::Pointer PropertiesPointer
Definition: linear_elastic_plastic_plane_strain_2D_law.hpp:39
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