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_henky_1d.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: Klaus B. Sautter
12 //
13 
14 #pragma once
15 
16 // System includes
17 
18 // External includes
19 
20 // Project includes
22 
23 namespace Kratos
24 {
25 
35 class KRATOS_API(CONSTITUTIVE_LAWS_APPLICATION) HyperElasticIsotropicHenky1D : public ConstitutiveLaw
36 {
37 public:
43  typedef std::size_t SizeType;
49 
58 
59  ConstitutiveLaw::Pointer Clone() const override;
60 
65 
66 
70  ~HyperElasticIsotropicHenky1D() override;
71 
84  void GetLawFeatures(Features& rFeatures) override;
85 
89  SizeType GetStrainSize() const override
90  {
91  return 1;
92  }
93 
103  int Check(
104  const Properties& rMaterialProperties,
105  const GeometryType& rElementGeometry,
106  const ProcessInfo& rCurrentProcessInfo
107  ) const override;
108 
110  array_1d<double, 3 > & rValue) override;
111 
112  double& CalculateValue(ConstitutiveLaw::Parameters& rParameterValues,
113  const Variable<double>& rThisVariable,double& rValue) override;
114 
115  Vector& CalculateValue(ConstitutiveLaw::Parameters& rParameterValues,
116  const Variable<Vector>& rThisVariable,
117  Vector& rValue) override;
118 
119  array_1d<double, 3 > & CalculateValue(ConstitutiveLaw::Parameters& rParameterValues,
120  const Variable<array_1d<double, 3 > >& rVariable,
121  array_1d<double, 3 > & rValue) override;
122 
123  void CalculateMaterialResponsePK2(Parameters& rValues) override;
124 
125 
126  void FinalizeMaterialResponsePK2(Parameters& rValues) override
127  {
128  // plasticity law needs this function, so it is called in the truss element
129  };
130 
131  //this functions calculates the current stress based on an element given (set)
132  //strain
133  double CalculateStressElastic(ConstitutiveLaw::Parameters& rParameterValues) const;
134 
135 protected:
136 
139 
143 
147 
152 
153 private:
154 
157 
164 
169 
170 
175 
179  friend class Serializer;
180 
181  void save(Serializer& rSerializer) const override
182  {
184  }
185 
186  void load(Serializer& rSerializer) override
187  {
189  }
190 
191 
192 }; // Class HyperElasticIsotropicHenky1D
193 } // namespace Kratos.
Definition: constitutive_law.h:47
std::size_t SizeType
Definition: constitutive_law.h:82
Geometry base class.
Definition: geometry.h:71
std::size_t SizeType
Definition: hyper_elastic_isotropic_henky_1d.h:43
void FinalizeMaterialResponsePK2(Parameters &rValues) override
Definition: hyper_elastic_isotropic_henky_1d.h:126
ConstitutiveLaw BaseType
Definition: hyper_elastic_isotropic_henky_1d.h:42
SizeType GetStrainSize() const override
Definition: hyper_elastic_isotropic_henky_1d.h:89
ProcessInfo ProcessInfoType
Definition: hyper_elastic_isotropic_henky_1d.h:41
KRATOS_CLASS_POINTER_DEFINITION(HyperElasticIsotropicHenky1D)
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
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
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
This constitutive law represents the hyper-elastic henky 1D law.
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
def load(f)
Definition: ode_solve.py:307
Definition: constitutive_law.h:137
Definition: constitutive_law.h:189