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.
small_strain_3D_law.hpp
Go to the documentation of this file.
1 //
2 // Project Name: KratosConstitutiveModelsApplication $
3 // Created by: $Author: JMCarbonell $
4 // Last modified by: $Co-Author: $
5 // Date: $Date: April 2017 $
6 // Revision: $Revision: 0.0 $
7 //
8 //
9 
10 #if !defined (KRATOS_SMALL_STRAIN_3D_LAW_H_INCLUDED)
11 #define KRATOS_SMALL_STRAIN_3D_LAW_H_INCLUDED
12 
13 // System includes
14 
15 // External includes
16 
17 // Project includes
20 
21 namespace Kratos
22 {
32  class KRATOS_API(CONSTITUTIVE_MODELS_APPLICATION) SmallStrain3DLaw : public Constitutive3DLaw
33  {
34  public:
35 
38 
39  typedef ConstitutiveModel ModelType; //small_strain model
40  typedef ModelType::Pointer ModelTypePointer;
41 
44 
48 
51 
54 
56  SmallStrain3DLaw (const SmallStrain3DLaw& rOther);
57 
59  ConstitutiveLaw::Pointer Clone() const override;
60 
63 
65  ~SmallStrain3DLaw() override;
66 
70 
71 
75 
79  void InitializeMaterial(const Properties& rProperties,
80  const GeometryType& rElementGeometry,
81  const Vector& rShapeFunctionsValues ) override;
82 
89  void CalculateMaterialResponseKirchhoff (Parameters & rValues) override;
90 
91 
96  void GetLawFeatures(Features& rFeatures) override;
97 
98 
103  void GetModelFeatures(Features& rFeatures);
104 
108 
113  void SetValue(const Variable<Vector>& rThisVariable,
114  const Vector& rValue,
115  const ProcessInfo& rCurrentProcessInfo) override;
116 
120 
124 
126  std::string Info() const override
127  {
128  std::stringstream buffer;
129  buffer << "SmallStrain3DLaw";
130  return buffer.str();
131  }
132 
134  void PrintInfo(std::ostream& rOStream) const override
135  {
136  rOStream << "SmallStrain3DLaw";
137  }
138 
140  void PrintData(std::ostream& rOStream) const override
141  {
142  rOStream << "SmallStrain3DLaw Data";
143  }
144 
145 
149 
150 
152 
153 
154  protected:
155 
158 
162 
163  //constitutive model
165 
166 
170 
175 
183  void CalculateMaterialResponseKirchhoff (Parameters & rValues, ModelDataType& rModelValues) override;
184 
188  void InitializeModelData(Parameters& rValues, ModelDataType& rModelValues) override;
189 
190 
194  void FinalizeModelData(Parameters& rValues, ModelDataType& rModelValues) override;
195 
201  virtual void CalculateStressVector(ModelDataType& rModelValues, Vector& rStressVector);
202 
203 
209  virtual void CalculateConstitutiveMatrix(ModelDataType& rModelValues, Matrix& rConstitutiveMatrix);
210 
211 
218  virtual void CalculateStressVectorAndConstitutiveMatrix(ModelDataType& rModelValues, Vector& rStressVector, Matrix& rConstitutiveMatrix);
219 
226  virtual void CalculateStress(const Vector &rStrainVector,
227  const Matrix &rConstitutiveMatrix,
228  Vector& rStressVector);
229 
230 
240  virtual void CalculateConstitutiveMatrix(Matrix& rConstitutiveMatrix,
241  const Properties& rProperties);
242 
243 
245 
246  private:
247 
250 
254 
258 
262 
266 
270  friend class Serializer;
271 
272  void save(Serializer& rSerializer) const override
273  {
275  }
276 
277  void load(Serializer& rSerializer) override
278  {
280  }
281 
285 
286 
290 
292  }; // Class SmallStrain3DLaw
293 
295 
298 
299 
303 
305 
307 
308 } // namespace Kratos.
309 #endif // KRATOS_SMALL_STRAIN_3D_LAW_H_INCLUDED defined
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
Definition: constitutive_3D_law.hpp:30
Short class definition.
Definition: constitutive_model.hpp:52
Geometry base class.
Definition: geometry.h:71
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
Definition: small_strain_3D_law.hpp:33
KRATOS_CLASS_POINTER_DEFINITION(SmallStrain3DLaw)
Pointer definition of SmallStrain3DLaw.
ConstitutiveModel ModelType
Definition: small_strain_3D_law.hpp:39
ModelTypePointer mpModel
Definition: small_strain_3D_law.hpp:164
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: small_strain_3D_law.hpp:140
std::string Info() const override
Turn back information as a string.
Definition: small_strain_3D_law.hpp:126
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: small_strain_3D_law.hpp:134
ModelType::Pointer ModelTypePointer
Definition: small_strain_3D_law.hpp:40
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
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
def SetValue(entity, variable, value)
Definition: coupling_interface_data.py:256
def load(f)
Definition: ode_solve.py:307
Definition: constitutive_law.h:137
Definition: constitutive_law.h:189
Definition: constitutive_model_data.hpp:383