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.
simo_ju_local_damage_3D_law.hpp
Go to the documentation of this file.
1 //
2 // Project Name: KratosPoromechanicsApplication $
3 // Last Modified by: $Author: Ignasi de Pouplana $
4 // Date: $Date: February 2016 $
5 // Revision: $Revision: 1.0 $
6 //
7 
8 #if !defined (KRATOS_SIMO_JU_LOCAL_DAMAGE_3D_LAW_H_INCLUDED)
9 #define KRATOS_SIMO_JU_LOCAL_DAMAGE_3D_LAW_H_INCLUDED
10 
11 // System includes
12 #include <cmath>
13 
14 // Project includes
15 #include "includes/serializer.h"
16 
17 // Application includes
19 #include "custom_constitutive/custom_hardening_laws/exponential_damage_hardening_law.hpp"
20 #include "custom_constitutive/custom_yield_criteria/simo_ju_yield_criterion.hpp"
23 
24 namespace Kratos
25 {
26 
27 class KRATOS_API(POROMECHANICS_APPLICATION) SimoJuLocalDamage3DLaw : public LocalDamage3DLaw
28 {
29 
30 public:
31 
33 
34  typedef FlowRule::Pointer FlowRulePointer;
35  typedef YieldCriterion::Pointer YieldCriterionPointer;
36  typedef HardeningLaw::Pointer HardeningLawPointer;
37 
39 
42 
44  SimoJuLocalDamage3DLaw(FlowRulePointer pFlowRule, YieldCriterionPointer pYieldCriterion, HardeningLawPointer pHardeningLaw);
45 
48 
50  ~SimoJuLocalDamage3DLaw() override;
51 
53 
54  int Check(const Properties& rMaterialProperties, const GeometryType& rElementGeometry, const ProcessInfo& rCurrentProcessInfo) const override;
55 
56  ConstitutiveLaw::Pointer Clone() const override;
57 
59 
60 protected:
61 
63 
65 
66  void CalculateCharacteristicSize( double& rCharacteristicSize, const GeometryType& DomainGeometry ) override;
67 
69 
70 private:
71 
73 
74  friend class Serializer;
75 
76  void save(Serializer& rSerializer) const override
77  {
79  }
80 
81  void load(Serializer& rSerializer) override
82  {
84  }
85 
86 }; // Class SimoJuLocalDamage3DLaw
87 } // namespace Kratos.
88 #endif // KRATOS_SIMO_JU_LOCAL_DAMAGE_3D_LAW_H_INCLUDED defined
Definition: constitutive_law.h:47
Geometry base class.
Definition: geometry.h:71
YieldCriterion::Pointer YieldCriterionPointer
Definition: hyperelastic_plastic_3D_law.hpp:62
FlowRule::Pointer FlowRulePointer
Definition: hyperelastic_plastic_3D_law.hpp:61
HardeningLaw::Pointer HardeningLawPointer
Definition: hyperelastic_plastic_3D_law.hpp:63
Definition: local_damage_3D_law.hpp:22
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
Definition: simo_ju_local_damage_3D_law.hpp:28
HardeningLaw::Pointer HardeningLawPointer
Definition: simo_ju_local_damage_3D_law.hpp:36
FlowRule::Pointer FlowRulePointer
Definition: simo_ju_local_damage_3D_law.hpp:34
YieldCriterion::Pointer YieldCriterionPointer
Definition: simo_ju_local_damage_3D_law.hpp:35
KRATOS_CLASS_POINTER_DEFINITION(SimoJuLocalDamage3DLaw)
#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