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.
large_strain_umat_model.hpp
Go to the documentation of this file.
1 //
2 // Project Name: KratosUmatApplication $
3 // Created by: $Author: LMonforte $
4 // Last modified by: $Co-Author: $
5 // Date: $Date: October 2017 $
6 // Revision: $Revision: 0.0 $
7 //
8 //
9 
10 #if !defined(KRATOS_LARGE_STRAIN_UMAT_MODEL_H_INCLUDED )
11 #define KRATOS_LARGE_STRAIN_UMAT_MODEL_H_INCLUDED
12 
13 // System includes
14 #include <string>
15 #include <iostream>
16 
17 // External includes
18 
19 // Project includes
21 
22 namespace Kratos
23 {
26 
29 
33 
37 
41 
45 
47 
49  class KRATOS_API(UMAT_APPLICATION) LargeStrainUmatModel : public SmallStrainUmatModel
50  {
51  public:
52 
56 
57 
60 
64 
67 
70 
72  virtual ConstitutiveModel::Pointer Clone() const override;
73 
76 
78  virtual ~LargeStrainUmatModel();
79 
80 
84 
85 
89 
90 
94 
95 
99 
100 
104 
106  virtual std::string Info() const override
107  {
108  std::stringstream buffer;
109  buffer << "LargeStrainUmatModel";
110  return buffer.str();
111  }
112 
114  virtual void PrintInfo(std::ostream& rOStream) const override
115  {
116  rOStream << "LargeStrainUmatModel";
117  }
118 
120  virtual void PrintData(std::ostream& rOStream) const override
121  {
122  rOStream << "LargeStrainUmatModel Data";
123  }
124 
125 
129 
130 
132 
133  protected:
136 
137 
141 
145 
146 
150 
151 
152  /*
153  Create strain_n and incremental strain
154  ( for large strains should be overrided )
155  */
156 
157  virtual void CreateStrainsVectors( UmatDataType & rVariables, double* & rpStrain, double* & rpIncrementalStrain) override;
158 
159  /*
160  Create stress_n
161  ( for large strains should be overrided )
162  */
163  virtual void CreateStressAtInitialState( UmatDataType & rVariables, double* & rpStressVector) override;
164 
165  /*
166  Add more constitutive terms to the matrix
167  */
168  Matrix& CalculateExtraMatrix(const MatrixType& rStressMatrix, Matrix& rExtraMatrix);
169 
170 
171  /*
172  Set the constitutiveMatrixToThe appropiate size
173  */
174 
175  virtual void SetConstitutiveMatrix( Matrix & rC, const Matrix & rCBig, const MatrixType& rStressMatrix) override;
176 
180 
181 
185 
186 
190 
191 
193 
194  private:
195 
198 
199 
203 
204 
208 
209 
213 
214 
218 
219 
223  friend class Serializer;
224 
225  virtual void save(Serializer& rSerializer) const override
226  {
228  }
229 
230  virtual void load(Serializer& rSerializer) override
231  {
233  }
234 
238 
239 
243 
245 
246  }; // Class LargeStrainUmatModel
247 
249 
252 
253 
257 
259 
261 
262 } // namespace Kratos.
263 
264 #endif // KRATOS_LARGE_STRAIN_UMAT_MODEL_H_INCLUDED defined
265 
266 
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
Short class definition.
Definition: large_strain_umat_model.hpp:50
virtual void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: large_strain_umat_model.hpp:120
virtual std::string Info() const override
Turn back information as a string.
Definition: large_strain_umat_model.hpp:106
virtual void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: large_strain_umat_model.hpp:114
SmallStrainUmatModel::UmatModelData UmatDataType
Definition: large_strain_umat_model.hpp:55
KRATOS_CLASS_POINTER_DEFINITION(LargeStrainUmatModel)
Pointer definition of LargeStrainUmatModel.
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
Short class definition.
Definition: small_strain_umat_model.hpp:51
#define KRATOS_SERIALIZE_SAVE_BASE_CLASS(Serializer, BaseType)
Definition: define.h:812
#define KRATOS_SERIALIZE_LOAD_BASE_CLASS(Serializer, BaseType)
Definition: define.h:815
Matrix MatrixType
Definition: geometrical_transformation_utilities.h:55
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
def load(f)
Definition: ode_solve.py:307
Definition: small_strain_umat_model.hpp:55