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.
thermal_dispersion_law.h
Go to the documentation of this file.
1 // KRATOS___
2 // // ) )
3 // // ___ ___
4 // // ____ //___) ) // ) )
5 // // / / // // / /
6 // ((____/ / ((____ ((___/ / MECHANICS
7 //
8 // License: geo_mechanics_application/license.txt
9 //
10 // Main authors: Mohamed Nabi
11 // John van Esch
12 // Gennady Markelov
13 //
14 
15 #pragma once
16 
18 
19 namespace Kratos {
20 
21 class RetentionLaw;
22 
28 class KRATOS_API(GEO_MECHANICS_APPLICATION) GeoThermalDispersionLaw : public ConstitutiveLaw {
29 public:
32 
34 
35  explicit GeoThermalDispersionLaw(SizeType NumberOfDimensions);
36 
37  ConstitutiveLaw::Pointer Clone() const override;
38 
39  SizeType WorkingSpaceDimension() override;
40 
41  Matrix CalculateThermalDispersionMatrix(const Properties& rProp,
42  const ProcessInfo& rProcessInfo) const;
43 
44 private:
45  SizeType mNumberOfDimensions;
46 
47  friend class Serializer;
48 
49  void save(Serializer& rSerializer) const override
50  {
52  rSerializer.save("NumberOfDimensions", mNumberOfDimensions);
53  }
54 
55  void load(Serializer& rSerializer) override
56  {
58  rSerializer.load("NumberOfDimensions", mNumberOfDimensions);
59  }
60 };
61 } // namespace Kratos.
Definition: constitutive_law.h:47
std::size_t SizeType
Definition: constitutive_law.h:82
This class defines the thermal dispersion for heat cases.
Definition: thermal_dispersion_law.h:28
KRATOS_CLASS_POINTER_DEFINITION(GeoThermalDispersionLaw)
Counted pointer of GeoThermalDispersionLaw.
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
void load(std::string const &rTag, TDataType &rObject)
Definition: serializer.h:207
void save(std::string const &rTag, std::array< TDataType, TDataSize > const &rObject)
Definition: serializer.h:545
#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