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.
elastic_cohesive_2D_law.hpp
Go to the documentation of this file.
1 // | / |
2 // ' / __| _` | __| _ \ __|
3 // . \ | ( | | ( |\__ `
4 // _|\_\_| \__,_|\__|\___/ ____/
5 // Multi-Physics
6 //
7 // License: BSD License
8 // Kratos default license: kratos/license.txt
9 //
10 // Main authors: Ignasi de Pouplana and Danilo Cavalcanti
11 //
12 
13 #if !defined (KRATOS_ELASTIC_COHESIVE_2D_LAW_H_INCLUDED)
14 #define KRATOS_ELASTIC_COHESIVE_2D_LAW_H_INCLUDED
15 
16 // Project includes
17 #include "includes/serializer.h"
18 
19 // Application includes
22 
23 namespace Kratos
24 {
25 
26 class KRATOS_API(POROMECHANICS_APPLICATION) ElasticCohesive2DLaw : public ElasticCohesive3DLaw
27 {
28 
29 public:
30 
32 
33 //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
34 
35  // Default Constructor
37  {
38  }
39 
40  ConstitutiveLaw::Pointer Clone() const override
41  {
42  return Kratos::make_shared<ElasticCohesive2DLaw>(ElasticCohesive2DLaw(*this));
43  }
44 
45  // Copy Constructor
47  {
48  }
49 
50  // Destructor
52  {
53  }
54 
55 //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
56 
57  void GetLawFeatures(Features& rFeatures) override;
58 
59 //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
60 
61 protected:
62 
63  // Member Variables
64 
65 //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
66 
67  void ComputeConstitutiveMatrix(Matrix& rConstitutiveMatrix,
68  ConstitutiveLawVariables& rVariables,
69  Parameters& rValues) override;
70 
71  void ComputeStressVector(Vector& rStressVector,
72  ConstitutiveLawVariables& rVariables,
73  Parameters& rValues) override;
74 
75 //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
76 
77 private:
78 
79  // Serialization
80 
81  friend class Serializer;
82 
83  void save(Serializer& rSerializer) const override
84  {
86  }
87 
88  void load(Serializer& rSerializer) override
89  {
91  }
92 
93 }; // Class ElasticCohesive2DLaw
94 } // namespace Kratos.
95 #endif // KRATOS_ELASTIC_COHESIVE_2D_LAW_H_INCLUDED defined
Definition: constitutive_law.h:47
Definition: elastic_cohesive_2D_law.hpp:27
~ElasticCohesive2DLaw() override
Definition: elastic_cohesive_2D_law.hpp:51
ConstitutiveLaw::Pointer Clone() const override
Clone function (has to be implemented by any derived class)
Definition: elastic_cohesive_2D_law.hpp:40
ElasticCohesive2DLaw(const ElasticCohesive2DLaw &rOther)
Definition: elastic_cohesive_2D_law.hpp:46
KRATOS_CLASS_POINTER_DEFINITION(ElasticCohesive2DLaw)
ElasticCohesive2DLaw()
Definition: elastic_cohesive_2D_law.hpp:36
Definition: elastic_cohesive_3D_law.hpp:31
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
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