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.
von_mises_umat_small_strain_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_VON_MISES_SMALL_STRAIN_UMAT_MODEL_H_INCLUDED )
11 #define KRATOS_VON_MISES_SMALL_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) VonMisesSmallStrainUmatModel : public SmallStrainUmatModel
50  {
51 
52 
53  public:
54 
57 
60 
64 
67 
70 
72  virtual ConstitutiveModel::Pointer Clone() const override;
73 
76 
79 
80 
84 
85 
89 
90 
94 
95 
99 
101  virtual std::string Info() const override
102  {
103  std::stringstream buffer;
104  buffer << "VonMisesSmallStrainUmatModel";
105  return buffer.str();
106  }
107 
109  virtual void PrintInfo(std::ostream& rOStream) const override
110  {
111  rOStream << "VonMisesSmallStrainUmatModel";
112  }
113 
115  virtual void PrintData(std::ostream& rOStream) const override
116  {
117  rOStream << "VonMisesSmallStrainUmatModel Data";
118  }
119 
120 
124 
125 
127 
128  protected:
131 
132 
136 
137 
141 
142 
146 
147  /*
148  Get the dimension of StateVariables
149  */
150 
151  virtual unsigned int GetNumberOfStateVariables() override {
152  return 13;
153  };
154 
155 
156  /*
157  Create the vector with constitutive parameters value
158  */
159  virtual void CreateConstitutiveParametersVector(double* & pVector, int & rNumberParameters, const Properties & rMaterialProperties) override {
160  rNumberParameters = 3;
161  pVector = new double[rNumberParameters];
162  pVector[0] = rMaterialProperties[YOUNG_MODULUS]; // young
163  pVector[1] = rMaterialProperties[POISSON_RATIO]; // poisson
164  pVector[2] = rMaterialProperties[YIELD_STRESS]; // yield
165  };
166 
167  /*
168  Number of the constitutive equation in the fortran wrapper
169  */
170  virtual int GetConstitutiveEquationNumber() override
171  {
172  return 0;
173  }
177 
178 
182 
183 
187 
188 
190 
191  private:
192 
195 
196 
200 
201 
205 
206 
210 
211 
215 
216 
220  friend class Serializer;
221 
222  virtual void save(Serializer& rSerializer) const override
223  {
225  }
226 
227  virtual void load(Serializer& rSerializer) override
228  {
230  }
231 
235 
236 
240 
242 
243  }; // Class VonMisesSmallStrainUmatModel
244 
246 
249 
250 
254 
256 
258 
259 } // namespace Kratos.
260 
261 #endif // KRATOS_VON_MISES_SMALL_STRAIN_UMAT_MODEL_H_INCLUDED defined
262 
263 
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
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
Short class definition.
Definition: small_strain_umat_model.hpp:51
Short class definition.
Definition: von_mises_umat_small_strain_model.hpp:50
virtual void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: von_mises_umat_small_strain_model.hpp:109
virtual std::string Info() const override
Turn back information as a string.
Definition: von_mises_umat_small_strain_model.hpp:101
virtual unsigned int GetNumberOfStateVariables() override
Definition: von_mises_umat_small_strain_model.hpp:151
virtual void CreateConstitutiveParametersVector(double *&pVector, int &rNumberParameters, const Properties &rMaterialProperties) override
Definition: von_mises_umat_small_strain_model.hpp:159
virtual void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: von_mises_umat_small_strain_model.hpp:115
virtual int GetConstitutiveEquationNumber() override
Definition: von_mises_umat_small_strain_model.hpp:170
KRATOS_CLASS_POINTER_DEFINITION(VonMisesSmallStrainUmatModel)
Pointer definition of VonMisesSmallStrainUmatModel.
#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