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.
newtonian_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: March 2018 $
6 // Revision: $Revision: 0.0 $
7 //
8 //
9 
10 #if !defined (KRATOS_NEWTONIAN_FLUID_3D_LAW_H_INCLUDED)
11 #define KRATOS_NEWTONIAN_FLUID_3D_LAW_H_INCLUDED
12 
13 // System includes
14 
15 // External includes
16 
17 // Project includes
20 
21 namespace Kratos
22 {
29  class KRATOS_API(CONSTITUTIVE_MODELS_APPLICATION) NewtonianFluid3DLaw : public ConstitutiveLaw
30  {
31  public:
32 
35 
38 
42 
45 
48 
50  ConstitutiveLaw::Pointer Clone() const override;
51 
54 
56  ~NewtonianFluid3DLaw() override;
57 
61 
62 
66 
70  void InitializeMaterial(const Properties& rProperties,
71  const GeometryType& rElementGeometry,
72  const Vector& rShapeFunctionsValues ) override;
73 
80  void CalculateMaterialResponseCauchy (Parameters & rValues) override;
81 
88  void FinalizeMaterialResponseCauchy(Parameters & rValues) override;
89 
90 
92  SizeType WorkingSpaceDimension() override { return 3; }
93 
95  SizeType GetStrainSize() const override { return 6; }
96 
97 
102  void GetLawFeatures(Features& rFeatures) override;
103 
104 
114  int Check(const Properties& rProperties, const GeometryType& rElementGeometry, const ProcessInfo& rCurrentProcessInfo) const override;
115 
119 
123 
127 
129  std::string Info() const override
130  {
131  std::stringstream buffer;
132  buffer << "NewtonianFluid3DLaw";
133  return buffer.str();
134  }
135 
137  void PrintInfo(std::ostream& rOStream) const override
138  {
139  rOStream << "NewtonianFluid3DLaw";
140  }
141 
143  void PrintData(std::ostream& rOStream) const override
144  {
145  rOStream << "NewtonianFluid3DLaw Data";
146  }
147 
148 
152 
153 
155 
156 
157  protected:
158 
161 
165 
169 
174 
175 
182  virtual void CalculateStress(Vector& rStressVector,
183  const Vector &rStrainVector,
184  const Properties& rProperties);
185 
192  virtual void CalculateConstitutiveMatrix(Matrix& rConstitutiveMatrix,
193  const Properties& rProperties);
194 
195 
197 
198  private:
199 
202 
206 
210 
214 
218 
222  friend class Serializer;
223 
224  void save(Serializer& rSerializer) const override
225  {
227  }
228 
229  void load(Serializer& rSerializer) override
230  {
232  }
233 
237 
238 
242 
244  }; // Class NewtonianFluid3DLaw
245 
247 
250 
251 
255 
257 
259 
260 } // namespace Kratos.
261 #endif // KRATOS_NEWTONIAN_FLUID_3D_LAW_H_INCLUDED defined
PeriodicInterfaceProcess & operator=(const PeriodicInterfaceProcess &)=delete
Definition: constitutive_law.h:47
std::size_t SizeType
Definition: constitutive_law.h:82
Geometry base class.
Definition: geometry.h:71
Definition: newtonian_3D_law.hpp:30
SizeType WorkingSpaceDimension() override
Law Dimension.
Definition: newtonian_3D_law.hpp:92
SizeType GetStrainSize() const override
Law Voigt Strain Size.
Definition: newtonian_3D_law.hpp:95
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: newtonian_3D_law.hpp:143
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: newtonian_3D_law.hpp:137
std::string Info() const override
Turn back information as a string.
Definition: newtonian_3D_law.hpp:129
KRATOS_CLASS_POINTER_DEFINITION(NewtonianFluid3DLaw)
Pointer definition of NewtonianFluid3DLaw.
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
#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
Definition: constitutive_law.h:189