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.
hyper_elastic_isotropic_q_incomp_isoch_neo_hook_3d.h
Go to the documentation of this file.
1 // KRATOS ___ _ _ _ _ _ __ _
2 // / __\___ _ __ ___| |_(_) |_ _ _| |_(_)_ _____ / / __ ___ _____ /_\ _ __ _ __
3 // / / / _ \| '_ \/ __| __| | __| | | | __| \ \ / / _ \/ / / _` \ \ /\ / / __| //_\\| '_ \| '_ |
4 // / /__| (_) | | | \__ \ |_| | |_| |_| | |_| |\ V / __/ /__| (_| |\ V V /\__ \/ _ \ |_) | |_) |
5 // \____/\___/|_| |_|___/\__|_|\__|\__,_|\__|_| \_/ \___\____/\__,_| \_/\_/ |___/\_/ \_/ .__/| .__/
6 // |_| |_|
7 //
8 // License: BSD License
9 // license: structural_mechanics_application/license.txt
10 //
11 // Main authors: Alejandro Cornejo
12 //
13 
14 #pragma once
15 
16 // System includes
17 
18 // External includes
19 
20 // Project includes
22 
23 namespace Kratos
24 {
27 
31 
35 
39 
43 
51 class KRATOS_API(CONSTITUTIVE_LAWS_APPLICATION) HyperElasticIsotropicQuasiIncompressibleIshochoricNeoHookean3D
53 {
54 public:
55 
58 
61 
64 
66  typedef std::size_t SizeType;
67 
69  typedef std::size_t IndexType;
70 
72  static constexpr SizeType Dimension = 3;
73 
75  static constexpr SizeType VoigtSize = 6;
76 
79 
82 
87 
92 
97 
101 
105 
109  ConstitutiveLaw::Pointer Clone() const override;
110 
115  void GetLawFeatures(Features& rFeatures) override;
116 
121  {
122  return Dimension;
123  };
124 
128  SizeType GetStrainSize() const override
129  {
130  return VoigtSize;
131  };
132 
138  {
139  return StrainMeasure_GreenLagrange;
140  }
141 
147  {
148  return StressMeasure_PK2;
149  }
150 
156  void CalculateMaterialResponsePK1(ConstitutiveLaw::Parameters &rValues) override;
157 
163  void CalculateMaterialResponsePK2(ConstitutiveLaw::Parameters &rValues) override;
164 
170  void CalculateMaterialResponseKirchhoff(ConstitutiveLaw::Parameters &rValues) override;
171 
177  void CalculateMaterialResponseCauchy(ConstitutiveLaw::Parameters &rValues) override;
178 
183  void InitializeMaterialResponsePK1(ConstitutiveLaw::Parameters &rValues) override;
184 
189  void InitializeMaterialResponsePK2(ConstitutiveLaw::Parameters &rValues) override;
190 
195  void InitializeMaterialResponseKirchhoff(ConstitutiveLaw::Parameters &rValues) override;
196 
201  void InitializeMaterialResponseCauchy(ConstitutiveLaw::Parameters &rValues) override;
202 
208  void FinalizeMaterialResponsePK1(ConstitutiveLaw::Parameters &rValues) override;
209 
215  void FinalizeMaterialResponsePK2(ConstitutiveLaw::Parameters &rValues) override;
216 
222  void FinalizeMaterialResponseKirchhoff(ConstitutiveLaw::Parameters &rValues) override;
223 
229  void FinalizeMaterialResponseCauchy(ConstitutiveLaw::Parameters &rValues) override;
230 
235  {
236  return false;
237  }
238 
243  {
244  return false;
245  }
246 
256  int Check(
257  const Properties& rMaterialProperties,
258  const GeometryType& rElementGeometry,
259  const ProcessInfo& rCurrentProcessInfo
260  ) const override;
261 
262 protected:
263 
266 
270 
274 
278 
280 
281 private:
282 
285 
289 
293 
305  void CalculateStressAndConstitutiveMatrixPK2(
306  const Matrix& rC,
307  const double Pressure,
308  const double C1,
309  Vector& rStress,
310  Matrix &rTangentTensor,
311  const Flags& rFlags);
312 
317 
322 
326  friend class Serializer;
327 
328  void save(Serializer& rSerializer) const override
329  {
331  }
332 
333  void load(Serializer& rSerializer) override
334  {
336  }
337 
338 
339 }; // Class HyperElasticIsotropicQuasiIncompressibleIshochoricNeoHookean3D
340 } // namespace Kratos.
Definition: constitutive_law.h:47
StrainMeasure
Definition: constitutive_law.h:52
StressMeasure
Definition: constitutive_law.h:69
Definition: flags.h:58
Geometry base class.
Definition: geometry.h:71
This law defines an hyperelastic material according to the NeoHookean formulation for 3D cases.
Definition: hyper_elastic_isotropic_neo_hookean_3d.h:53
This law defines an hyperelastic material according to the NeoHookean formulation for 3D cases assumi...
Definition: hyper_elastic_isotropic_q_incomp_isoch_neo_hook_3d.h:53
HyperElasticIsotropicNeoHookean3D BaseType
The definition of the CL base class.
Definition: hyper_elastic_isotropic_q_incomp_isoch_neo_hook_3d.h:63
bool RequiresInitializeMaterialResponse() override
If the CL requires to initialize the material response, called by the element in InitializeSolutionSt...
Definition: hyper_elastic_isotropic_q_incomp_isoch_neo_hook_3d.h:234
std::size_t SizeType
The definition of the size type.
Definition: hyper_elastic_isotropic_q_incomp_isoch_neo_hook_3d.h:66
std::size_t IndexType
The definition of the index type.
Definition: hyper_elastic_isotropic_q_incomp_isoch_neo_hook_3d.h:69
bool RequiresFinalizeMaterialResponse() override
If the CL requires to initialize the material response, called by the element in InitializeSolutionSt...
Definition: hyper_elastic_isotropic_q_incomp_isoch_neo_hook_3d.h:242
ProcessInfo ProcessInfoType
The definition of the process info.
Definition: hyper_elastic_isotropic_q_incomp_isoch_neo_hook_3d.h:60
StrainMeasure GetStrainMeasure() override
Returns the expected strain measure of this constitutive law (by default Green-Lagrange)
Definition: hyper_elastic_isotropic_q_incomp_isoch_neo_hook_3d.h:137
KRATOS_CLASS_POINTER_DEFINITION(HyperElasticIsotropicQuasiIncompressibleIshochoricNeoHookean3D)
Pointer definition of HyperElasticIsotropicNeoHookean3D.
SizeType WorkingSpaceDimension() override
Dimension of the law:
Definition: hyper_elastic_isotropic_q_incomp_isoch_neo_hook_3d.h:120
StressMeasure GetStressMeasure() override
Returns the stress measure of this constitutive law (by default 2st Piola-Kirchhoff stress in voigt n...
Definition: hyper_elastic_isotropic_q_incomp_isoch_neo_hook_3d.h:146
SizeType GetStrainSize() const override
Voigt tensor size:
Definition: hyper_elastic_isotropic_q_incomp_isoch_neo_hook_3d.h:128
ProcessInfo holds the current value of different solution parameters.
Definition: process_info.h:59
Properties encapsulates data shared by different Elements or Conditions. It can store any type of dat...
Definition: properties.h:69
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: constitutive_law.h:137
Definition: constitutive_law.h:189