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_large_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_LARGE_STRAIN_UMAT_MODEL_H_INCLUDED )
11 #define KRATOS_VON_MISES_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) VonMisesLargeStrainUmatModel : public LargeStrainUmatModel
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 << "VonMisesLargeStrainUmatModel";
105  return buffer.str();
106  }
107 
109  virtual void PrintInfo(std::ostream& rOStream) const override
110  {
111  rOStream << "VonMisesLargeStrainUmatModel";
112  }
113 
115  virtual void PrintData(std::ostream& rOStream) const override
116  {
117  rOStream << "VonMisesLargeStrainUmatModel 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  if ( pVector[2] < 1e-7)
166  pVector[2] = 10e+7;
167  };
168 
169  /*
170  Number of the constitutive equation in the fortran wrapper
171  */
172  virtual int GetConstitutiveEquationNumber() override
173  {
174  return 0;
175  }
179 
180 
184 
185 
189 
190 
192 
193  private:
194 
197 
198 
202 
203 
207 
208 
212 
213 
217 
218 
222  friend class Serializer;
223 
224  virtual void save(Serializer& rSerializer) const override
225  {
227  }
228 
229  virtual void load(Serializer& rSerializer) override
230  {
232  }
233 
237 
238 
242 
244 
245  }; // Class VonMisesLargeStrainUmatModel
246 
248 
251 
252 
256 
258 
260 
261 } // namespace Kratos.
262 
263 #endif // KRATOS_VON_MISES_LARGE_STRAIN_UMAT_MODEL_H_INCLUDED defined
264 
265 
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
Short class definition.
Definition: large_strain_umat_model.hpp:50
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: von_mises_umat_large_strain_model.hpp:50
KRATOS_CLASS_POINTER_DEFINITION(VonMisesLargeStrainUmatModel)
Pointer definition of VonMisesLargeStrainUmatModel.
virtual std::string Info() const override
Turn back information as a string.
Definition: von_mises_umat_large_strain_model.hpp:101
virtual unsigned int GetNumberOfStateVariables() override
Definition: von_mises_umat_large_strain_model.hpp:151
virtual void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: von_mises_umat_large_strain_model.hpp:115
virtual void CreateConstitutiveParametersVector(double *&pVector, int &rNumberParameters, const Properties &rMaterialProperties) override
Definition: von_mises_umat_large_strain_model.hpp:159
virtual int GetConstitutiveEquationNumber() override
Definition: von_mises_umat_large_strain_model.hpp:172
virtual void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: von_mises_umat_large_strain_model.hpp:109
#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
e
Definition: run_cpp_mpi_tests.py:31