22 #include "custom_constitutive/elastic_isotropic_3d.h"
23 #include "custom_constitutive/linear_plane_strain.h"
57 template <
class TConstLawIntegratorType>
59 :
public std::conditional<TConstLawIntegratorType::VoigtSize == 6, ElasticIsotropic3D, LinearPlaneStrain >
::type
66 static constexpr
SizeType Dimension = TConstLawIntegratorType::Dimension;
69 static constexpr
SizeType VoigtSize = TConstLawIntegratorType::VoigtSize;
103 ConstitutiveLaw::Pointer
Clone()
const override
105 return Kratos::make_shared<GenericSmallStrainIsotropicPlasticity<TConstLawIntegratorType>>(*this);
113 mPlasticDissipation(rOther.mPlasticDissipation),
114 mThreshold(rOther.mThreshold),
115 mPlasticStrain(rOther.mPlasticStrain)
164 void InitializeMaterial(
167 const Vector& rShapeFunctionsValues
246 const double& rValue,
318 double& CalculateValue(
321 double& rValue)
override;
428 double mPlasticDissipation = 0.0;
429 double mThreshold = 0.0;
462 void save(
Serializer &rSerializer)
const override
465 rSerializer.
save(
"PlasticDissipation", mPlasticDissipation);
466 rSerializer.
save(
"Threshold", mThreshold);
467 rSerializer.
save(
"PlasticStrain", mPlasticStrain);
473 rSerializer.
load(
"PlasticDissipation", mPlasticDissipation);
474 rSerializer.
load(
"Threshold", mThreshold);
475 rSerializer.
load(
"PlasticStrain", mPlasticStrain);
Definition: constitutive_law.h:47
This class is the base class which define all the constitutive laws for plasticity in small deformati...
Definition: generic_small_strain_isotropic_plasticity.h:60
Geometry< NodeType > GeometryType
The geometry definition.
Definition: generic_small_strain_isotropic_plasticity.h:87
void SetPlasticStrain(const array_1d< double, VoigtSize > &rPlasticStrain)
Definition: generic_small_strain_isotropic_plasticity.h:400
GenericSmallStrainIsotropicPlasticity(const GenericSmallStrainIsotropicPlasticity &rOther)
Definition: generic_small_strain_isotropic_plasticity.h:111
Node NodeType
The node definition.
Definition: generic_small_strain_isotropic_plasticity.h:84
std::conditional< VoigtSize==6, ElasticIsotropic3D, LinearPlaneStrain >::type BaseType
Definition of the base class.
Definition: generic_small_strain_isotropic_plasticity.h:72
BoundedMatrix< double, Dimension, Dimension > BoundedMatrixType
The definition of the bounded matrix type.
Definition: generic_small_strain_isotropic_plasticity.h:78
ConstitutiveLaw::Pointer Clone() const override
Definition: generic_small_strain_isotropic_plasticity.h:103
bool RequiresInitializeMaterialResponse() override
If the CL requires to initialize the material response, called by the element in InitializeSolutionSt...
Definition: generic_small_strain_isotropic_plasticity.h:298
GenericSmallStrainIsotropicPlasticity()
Definition: generic_small_strain_isotropic_plasticity.h:96
KRATOS_CLASS_POINTER_DEFINITION(GenericSmallStrainIsotropicPlasticity)
Counted pointer of GenericSmallStrainIsotropicPlasticity.
void SetPlasticDissipation(const double PlasticDissipation)
Definition: generic_small_strain_isotropic_plasticity.h:399
array_1d< double, VoigtSize > BoundedArrayType
The definition of the Voigt array type.
Definition: generic_small_strain_isotropic_plasticity.h:75
double & GetThreshold()
Definition: generic_small_strain_isotropic_plasticity.h:394
bool RequiresFinalizeMaterialResponse() override
If the CL requires to initialize the material response, called by the element in InitializeSolutionSt...
Definition: generic_small_strain_isotropic_plasticity.h:306
~GenericSmallStrainIsotropicPlasticity() override
Definition: generic_small_strain_isotropic_plasticity.h:122
Vector & GetPlasticStrain()
Definition: generic_small_strain_isotropic_plasticity.h:396
void SetThreshold(const double Threshold)
Definition: generic_small_strain_isotropic_plasticity.h:398
double & GetPlasticDissipation()
Definition: generic_small_strain_isotropic_plasticity.h:395
Geometry base class.
Definition: geometry.h:71
Definition: amatrix_interface.h:41
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
KratosZeroVector< double > ZeroVector
Definition: amatrix_interface.h:561
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