22 #include "custom_constitutive/linear_plane_strain.h"
55 template <
class TConstLawIntegratorType>
57 :
public std::conditional<TConstLawIntegratorType::VoigtSize == 6, ElasticIsotropic3D, LinearPlaneStrain >
::type
64 static constexpr
SizeType Dimension = TConstLawIntegratorType::Dimension;
67 static constexpr
SizeType VoigtSize = TConstLawIntegratorType::VoigtSize;
84 static constexpr
double tolerance = std::numeric_limits<double>::epsilon();
85 static constexpr
double threshold_tolerance = 1.0e-5;
101 ConstitutiveLaw::Pointer
Clone()
const override
103 return Kratos::make_shared<GenericSmallStrainIsotropicDamage<TConstLawIntegratorType>>(*this);
111 mDamage(rOther.mDamage),
112 mThreshold(rOther.mThreshold)
162 void InitializeMaterial(
165 const Vector& rShapeFunctionsValues
220 const double& rValue,
281 double& CalculateValue(
284 double& rValue)
override;
371 void SetThreshold(
const double toThreshold) { mThreshold = toThreshold; }
372 void SetDamage(
const double toDamage) { mDamage = toDamage; }
396 double mDamage = 0.0;
397 double mThreshold = 0.0;
423 void save(
Serializer &rSerializer)
const override
426 rSerializer.
save(
"Damage", mDamage);
427 rSerializer.
save(
"Threshold", mThreshold);
433 rSerializer.
load(
"Damage", mDamage);
434 rSerializer.
load(
"Threshold", mThreshold);
Definition: constitutive_law.h:47
This class is the base class which define all the constitutive laws for damage in small deformation.
Definition: generic_small_strain_isotropic_damage.h:58
Node NodeType
The node definition.
Definition: generic_small_strain_isotropic_damage.h:78
double & GetDamage()
Definition: generic_small_strain_isotropic_damage.h:369
bool RequiresInitializeMaterialResponse() override
If the CL requires to initialize the material response, called by the element in InitializeSolutionSt...
Definition: generic_small_strain_isotropic_damage.h:269
std::conditional< VoigtSize==6, ElasticIsotropic3D, LinearPlaneStrain >::type BaseType
Definition of the base class.
Definition: generic_small_strain_isotropic_damage.h:70
void SetThreshold(const double toThreshold)
Definition: generic_small_strain_isotropic_damage.h:371
double & GetThreshold()
Definition: generic_small_strain_isotropic_damage.h:368
array_1d< double, VoigtSize > BoundedArrayType
Definition: generic_small_strain_isotropic_damage.h:72
~GenericSmallStrainIsotropicDamage() override
Definition: generic_small_strain_isotropic_damage.h:119
void SetDamage(const double toDamage)
Definition: generic_small_strain_isotropic_damage.h:372
GenericSmallStrainIsotropicDamage(const GenericSmallStrainIsotropicDamage &rOther)
Definition: generic_small_strain_isotropic_damage.h:109
GenericSmallStrainIsotropicDamage()
Definition: generic_small_strain_isotropic_damage.h:94
KRATOS_CLASS_POINTER_DEFINITION(GenericSmallStrainIsotropicDamage)
Counted pointer of GenericYieldSurface.
bool RequiresFinalizeMaterialResponse() override
If the CL requires to initialize the material response, called by the element in InitializeSolutionSt...
Definition: generic_small_strain_isotropic_damage.h:261
Geometry< NodeType > GeometryType
The geometry definition.
Definition: generic_small_strain_isotropic_damage.h:81
ConstitutiveLaw::Pointer Clone() const override
Definition: generic_small_strain_isotropic_damage.h:101
Geometry base class.
Definition: geometry.h:71
This class defines the node.
Definition: node.h:65
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
bool Has(const std::string &ModelerName)
Checks if the modeler is registered.
Definition: modeler_factory.cpp:24
Parameters GetValue(Parameters &rParameters, const std::string &rEntry)
Definition: add_kratos_parameters_to_python.cpp:53
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::size_t SizeType
The definition of the size type.
Definition: mortar_classes.h:43
def SetValue(entity, variable, value)
Definition: coupling_interface_data.py:256
type
Definition: generate_gid_list_file.py:35
def load(f)
Definition: ode_solve.py:307
Definition: constitutive_law.h:189