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.
isotropic_damage_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
11 //
12 
13 #if !defined (KRATOS_ISOTROPIC_DAMAGE_COHESIVE_2D_LAW_H_INCLUDED)
14 #define KRATOS_ISOTROPIC_DAMAGE_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) IsotropicDamageCohesive2DLaw : public IsotropicDamageCohesive3DLaw
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<IsotropicDamageCohesive2DLaw>(IsotropicDamageCohesive2DLaw(*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 ComputeEquivalentStrain(ConstitutiveLawVariables& rVariables, Parameters& rValues) override;
68 
69  void GetElasticConstitutiveMatrix(Matrix& rElasticConstitutiveMatrix,
70  ConstitutiveLawVariables& rVariables,
71  Parameters& rValues) override;
72 
73 //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
74 
75 private:
76 
77  // Serialization
78 
79  friend class Serializer;
80 
81  void save(Serializer& rSerializer) const override
82  {
84  }
85 
86  void load(Serializer& rSerializer) override
87  {
89  }
90 
91 }; // Class IsotropicDamageCohesive2DLaw
92 } // namespace Kratos.
93 #endif // KRATOS_ISOTROPIC_DAMAGE_COHESIVE_2D_LAW_H_INCLUDED defined
Definition: constitutive_law.h:47
Definition: isotropic_damage_cohesive_2D_law.hpp:27
IsotropicDamageCohesive2DLaw(const IsotropicDamageCohesive2DLaw &rOther)
Definition: isotropic_damage_cohesive_2D_law.hpp:46
~IsotropicDamageCohesive2DLaw() override
Definition: isotropic_damage_cohesive_2D_law.hpp:51
ConstitutiveLaw::Pointer Clone() const override
Clone function (has to be implemented by any derived class)
Definition: isotropic_damage_cohesive_2D_law.hpp:40
IsotropicDamageCohesive2DLaw()
Definition: isotropic_damage_cohesive_2D_law.hpp:36
KRATOS_CLASS_POINTER_DEFINITION(IsotropicDamageCohesive2DLaw)
Definition: isotropic_damage_cohesive_3D_law.hpp:32
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