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.
Public Types | Public Member Functions | Static Public Attributes | List of all members
Kratos::SmallStrainUDSM3DLaw Class Reference

Short class definition. More...

#include <small_strain_udsm_3D_law.hpp>

Inheritance diagram for Kratos::SmallStrainUDSM3DLaw:
Collaboration diagram for Kratos::SmallStrainUDSM3DLaw:

Public Types

typedef ConstitutiveLaw BaseType
 
typedef std::size_t SizeType
 The size type definition. More...
 
- Public Types inherited from Kratos::ConstitutiveLaw
enum  StrainMeasure {
  StrainMeasure_Infinitesimal , StrainMeasure_GreenLagrange , StrainMeasure_Almansi , StrainMeasure_Hencky_Material ,
  StrainMeasure_Hencky_Spatial , StrainMeasure_Deformation_Gradient , StrainMeasure_Right_CauchyGreen , StrainMeasure_Left_CauchyGreen ,
  StrainMeasure_Velocity_Gradient
}
 
enum  StressMeasure { StressMeasure_PK1 , StressMeasure_PK2 , StressMeasure_Kirchhoff , StressMeasure_Cauchy }
 
typedef ProcessInfo ProcessInfoType
 
typedef std::size_t SizeType
 
typedef Geometry< NodeGeometryType
 
typedef Vector StrainVectorType
 
typedef Vector StressVectorType
 
typedef Matrix VoigtSizeMatrixType
 
typedef Matrix DeformationGradientMatrixType
 
- Public Types inherited from Kratos::Flags
enum  FlagsList {
  Flag0 = BlockType(1) , Flag1 = BlockType(1) << 1 , Flag2 = BlockType(1) << 2 , Flag3 = BlockType(1) << 3 ,
  Flag4 = BlockType(1) << 4 , Flag5 = BlockType(1) << 5 , Flag6 = BlockType(1) << 6 , Flag7 = BlockType(1) << 7 ,
  Flag8 = BlockType(1) << 8 , Flag9 = BlockType(1) << 9 , Flag10 = BlockType(1) << 10 , Flag11 = BlockType(1) << 11 ,
  Flag12 = BlockType(1) << 12 , Flag13 = BlockType(1) << 13 , Flag14 = BlockType(1) << 14 , Flag15 = BlockType(1) << 15 ,
  Flag16 = BlockType(1) << 16 , Flag17 = BlockType(1) << 17 , Flag18 = BlockType(1) << 18 , Flag19 = BlockType(1) << 19 ,
  Flag20 = BlockType(1) << 20 , Flag21 = BlockType(1) << 21 , Flag22 = BlockType(1) << 22 , Flag23 = BlockType(1) << 23 ,
  Flag24 = BlockType(1) << 24 , Flag25 = BlockType(1) << 25 , Flag26 = BlockType(1) << 26 , Flag27 = BlockType(1) << 27 ,
  Flag28 = BlockType(1) << 28 , Flag29 = BlockType(1) << 29 , Flag30 = BlockType(1) << 30
}
 
typedef int64_t BlockType
 
typedef int64_t FlagType
 
typedef std::size_t IndexType
 

Public Member Functions

 KRATOS_CLASS_POINTER_DEFINITION (SmallStrainUDSM3DLaw)
 Pointer definition of SmallStrainUDSM3DLaw. More...
 
 SmallStrainUDSM3DLaw ()=default
 Default constructor. More...
 
ConstitutiveLaw::Pointer Clone () const override
 Clone method. More...
 
 SmallStrainUDSM3DLaw (SmallStrainUDSM3DLaw const &rOther)
 
 ~SmallStrainUDSM3DLaw () override=default
 Destructor. More...
 
SmallStrainUDSM3DLawoperator= (SmallStrainUDSM3DLaw const &rOther)
 
void GetLawFeatures (Features &rFeatures) override
 This function is designed to be called once to check compatibility with element. More...
 
SizeType WorkingSpaceDimension () override
 Dimension of the law: More...
 
SizeType GetStrainSize () const override
 Voigt tensor size: More...
 
StrainMeasure GetStrainMeasure () override
 Returns the expected strain measure of this constitutive law (by default Green-Lagrange) More...
 
StressMeasure GetStressMeasure () override
 
void CalculateMaterialResponsePK1 (ConstitutiveLaw::Parameters &rValues) override
 Computes the material response: More...
 
void CalculateMaterialResponsePK2 (ConstitutiveLaw::Parameters &rValues) override
 Computes the material response: More...
 
void CalculateMaterialResponseKirchhoff (ConstitutiveLaw::Parameters &rValues) override
 Computes the material response: More...
 
void CalculateMaterialResponseCauchy (ConstitutiveLaw::Parameters &rValues) override
 Computes the material response: More...
 
void FinalizeMaterialResponseCauchy (ConstitutiveLaw::Parameters &rValues) override
 Updates the material response: More...
 
void FinalizeMaterialResponsePK1 (ConstitutiveLaw::Parameters &rValues) override
 
void FinalizeMaterialResponsePK2 (ConstitutiveLaw::Parameters &rValues) override
 
void FinalizeMaterialResponseKirchhoff (ConstitutiveLaw::Parameters &rValues) override
 
doubleCalculateValue (ConstitutiveLaw::Parameters &rParameterValues, const Variable< double > &rThisVariable, double &rValue) override
 It calculates the value of a specified variable (double case) More...
 
VectorCalculateValue (ConstitutiveLaw::Parameters &rParameterValues, const Variable< Vector > &rThisVariable, Vector &rValue) override
 It calculates the value of a specified variable (Vector case) More...
 
MatrixCalculateValue (ConstitutiveLaw::Parameters &rParameterValues, const Variable< Matrix > &rThisVariable, Matrix &rValue) override
 It calculates the value of a specified variable (Matrix case) More...
 
int Check (const Properties &rMaterialProperties, const GeometryType &rElementGeometry, const ProcessInfo &rCurrentProcessInfo) const override
 
void InitializeMaterial (const Properties &rMaterialProperties, const GeometryType &rElementGeometry, const Vector &rShapeFunctionsValues) override
 
void InitializeMaterialResponseCauchy (ConstitutiveLaw::Parameters &rValues) override
 
void InitializeMaterialResponsePK1 (ConstitutiveLaw::Parameters &rValues) override
 Initialize the material response in terms of 1st Piola-Kirchhoff stresses. More...
 
void InitializeMaterialResponsePK2 (ConstitutiveLaw::Parameters &rValues) override
 Initialize the material response in terms of 2nd Piola-Kirchhoff stresses. More...
 
void InitializeMaterialResponseKirchhoff (ConstitutiveLaw::Parameters &rValues) override
 Initialize the material response in terms of Kirchhoff stresses. More...
 
virtual void CalculateCauchyGreenStrain (ConstitutiveLaw::Parameters &rValues, Vector &rStrainVector)
 It calculates the strain vector. More...
 
void ResetMaterial (const Properties &rMaterialProperties, const GeometryType &rElementGeometry, const Vector &rShapeFunctionsValues) override
 
doubleGetValue (const Variable< double > &rThisVariable, double &rValue) override
 Returns the value of a specified variable (double) More...
 
intGetValue (const Variable< int > &rThisVariable, int &rValue) override
 
VectorGetValue (const Variable< Vector > &rThisVariable, Vector &rValue) override
 Returns the value of a specified variable (Vector) More...
 
void SetValue (const Variable< double > &rVariable, const double &rValue, const ProcessInfo &rCurrentProcessInfo) override
 Sets the value of a specified variable (double) More...
 
void SetValue (const Variable< Vector > &rVariable, const Vector &rValue, const ProcessInfo &rCurrentProcessInfo) override
 Sets the value of a specified variable (Vector) More...
 
virtual boolCalculateValue (Parameters &rParameterValues, const Variable< bool > &rThisVariable, bool &rValue)
 Calculates the value of a specified variable (bool) More...
 
virtual intCalculateValue (Parameters &rParameterValues, const Variable< int > &rThisVariable, int &rValue)
 Calculates the value of a specified variable (int) More...
 
virtual doubleCalculateValue (Parameters &rParameterValues, const Variable< double > &rThisVariable, double &rValue)
 Calculates the value of a specified variable (double) More...
 
virtual VectorCalculateValue (Parameters &rParameterValues, const Variable< Vector > &rThisVariable, Vector &rValue)
 Calculates the value of a specified variable (Vector) More...
 
virtual MatrixCalculateValue (Parameters &rParameterValues, const Variable< Matrix > &rThisVariable, Matrix &rValue)
 Calculates the value of a specified variable (Matrix) More...
 
virtual array_1d< double, 3 > & CalculateValue (Parameters &rParameterValues, const Variable< array_1d< double, 3 > > &rVariable, array_1d< double, 3 > &rValue)
 Calculates the value of a specified variable (array of 3 components) More...
 
virtual array_1d< double, 6 > & CalculateValue (Parameters &rParameterValues, const Variable< array_1d< double, 6 > > &rVariable, array_1d< double, 6 > &rValue)
 
Input and output
std::string Info () const override
 Turn back information as a string. More...
 
void PrintInfo (std::ostream &rOStream) const override
 Print information about this object. More...
 
void PrintData (std::ostream &rOStream) const override
 Print object's data. More...
 
- Public Member Functions inherited from Kratos::ConstitutiveLaw
 KRATOS_CLASS_POINTER_DEFINITION (ConstitutiveLaw)
 
 KRATOS_DEFINE_LOCAL_FLAG (USE_ELEMENT_PROVIDED_STRAIN)
 
 KRATOS_DEFINE_LOCAL_FLAG (COMPUTE_STRESS)
 
 KRATOS_DEFINE_LOCAL_FLAG (COMPUTE_CONSTITUTIVE_TENSOR)
 
 KRATOS_DEFINE_LOCAL_FLAG (COMPUTE_STRAIN_ENERGY)
 
 KRATOS_DEFINE_LOCAL_FLAG (ISOCHORIC_TENSOR_ONLY)
 
 KRATOS_DEFINE_LOCAL_FLAG (VOLUMETRIC_TENSOR_ONLY)
 
 KRATOS_DEFINE_LOCAL_FLAG (MECHANICAL_RESPONSE_ONLY)
 
 KRATOS_DEFINE_LOCAL_FLAG (THERMAL_RESPONSE_ONLY)
 
 KRATOS_DEFINE_LOCAL_FLAG (INCREMENTAL_STRAIN_MEASURE)
 
 KRATOS_DEFINE_LOCAL_FLAG (INITIALIZE_MATERIAL_RESPONSE)
 
 KRATOS_DEFINE_LOCAL_FLAG (FINALIZE_MATERIAL_RESPONSE)
 
 KRATOS_DEFINE_LOCAL_FLAG (FINITE_STRAINS)
 
 KRATOS_DEFINE_LOCAL_FLAG (INFINITESIMAL_STRAINS)
 
 KRATOS_DEFINE_LOCAL_FLAG (THREE_DIMENSIONAL_LAW)
 
 KRATOS_DEFINE_LOCAL_FLAG (PLANE_STRAIN_LAW)
 
 KRATOS_DEFINE_LOCAL_FLAG (PLANE_STRESS_LAW)
 
 KRATOS_DEFINE_LOCAL_FLAG (AXISYMMETRIC_LAW)
 
 KRATOS_DEFINE_LOCAL_FLAG (U_P_LAW)
 
 KRATOS_DEFINE_LOCAL_FLAG (ISOTROPIC)
 
 KRATOS_DEFINE_LOCAL_FLAG (ANISOTROPIC)
 
 ConstitutiveLaw ()
 
 ~ConstitutiveLaw () override
 
virtual Pointer Create (Kratos::Parameters NewParameters) const
 It creates a new constitutive law pointer. More...
 
virtual Pointer Create (Kratos::Parameters NewParameters, const Properties &rProperties) const
 It creates a new constitutive law pointer (version with properties) More...
 
void SetInitialState (InitialState::Pointer pInitialState)
 
InitialState::Pointer pGetInitialState ()
 
InitialStateGetInitialState ()
 
bool HasInitialState () const
 
template<typename TVectorType >
void AddInitialStressVectorContribution (TVectorType &rStressVector)
 Adds the initial stress vector if it is defined in the InitialState. More...
 
template<typename TVectorType >
void AddInitialStrainVectorContribution (TVectorType &rStrainVector)
 Adds the initial strain vector if it is defined in the InitialState. More...
 
template<typename TMatrixType >
void AddInitialDeformationGradientMatrixContribution (TMatrixType &rF)
 Adds the initial strain vector if it is defined in the InitialState. More...
 
virtual bool Has (const Variable< bool > &rThisVariable)
 Returns whether this constitutive Law has specified variable (boolean) More...
 
virtual bool Has (const Variable< int > &rThisVariable)
 Returns whether this constitutive Law has specified variable (integer) More...
 
virtual bool Has (const Variable< double > &rThisVariable)
 Returns whether this constitutive Law has specified variable (double) More...
 
virtual bool Has (const Variable< Vector > &rThisVariable)
 Returns whether this constitutive Law has specified variable (Vector) More...
 
virtual bool Has (const Variable< Matrix > &rThisVariable)
 Returns whether this constitutive Law has specified variable (Matrix) More...
 
virtual bool Has (const Variable< array_1d< double, 3 > > &rThisVariable)
 Returns whether this constitutive Law has specified variable (array of 3 components) More...
 
virtual bool Has (const Variable< array_1d< double, 6 > > &rThisVariable)
 Returns whether this constitutive Law has specified variable (array of 6 components) More...
 
virtual boolGetValue (const Variable< bool > &rThisVariable, bool &rValue)
 Returns the value of a specified variable (boolean) More...
 
virtual MatrixGetValue (const Variable< Matrix > &rThisVariable, Matrix &rValue)
 Returns the value of a specified variable (Matrix) More...
 
virtual array_1d< double, 3 > & GetValue (const Variable< array_1d< double, 3 > > &rThisVariable, array_1d< double, 3 > &rValue)
 Returns the value of a specified variable (array of 3 components) More...
 
virtual array_1d< double, 6 > & GetValue (const Variable< array_1d< double, 6 > > &rThisVariable, array_1d< double, 6 > &rValue)
 Returns the value of a specified variable (array of 6 components) More...
 
virtual void SetValue (const Variable< bool > &rVariable, const bool &Value, const ProcessInfo &rCurrentProcessInfo)
 Sets the value of a specified variable (boolean) More...
 
virtual void SetValue (const Variable< int > &rVariable, const int &Value, const ProcessInfo &rCurrentProcessInfo)
 Sets the value of a specified variable (integer) More...
 
virtual void SetValue (const Variable< Matrix > &rVariable, const Matrix &rValue, const ProcessInfo &rCurrentProcessInfo)
 Sets the value of a specified variable (Matrix) More...
 
virtual void SetValue (const Variable< array_1d< double, 3 > > &rVariable, const array_1d< double, 3 > &rValue, const ProcessInfo &rCurrentProcessInfo)
 Sets the value of a specified variable (array of 3 components) More...
 
virtual void SetValue (const Variable< array_1d< double, 6 > > &rVariable, const array_1d< double, 6 > &rValue, const ProcessInfo &rCurrentProcessInfo)
 Sets the value of a specified variable (array of 6 components) More...
 
virtual boolCalculateValue (Parameters &rParameterValues, const Variable< bool > &rThisVariable, bool &rValue)
 Calculates the value of a specified variable (bool) More...
 
virtual intCalculateValue (Parameters &rParameterValues, const Variable< int > &rThisVariable, int &rValue)
 Calculates the value of a specified variable (int) More...
 
virtual array_1d< double, 3 > & CalculateValue (Parameters &rParameterValues, const Variable< array_1d< double, 3 > > &rVariable, array_1d< double, 3 > &rValue)
 Calculates the value of a specified variable (array of 3 components) More...
 
virtual array_1d< double, 6 > & CalculateValue (Parameters &rParameterValues, const Variable< array_1d< double, 6 > > &rVariable, array_1d< double, 6 > &rValue)
 
virtual void CalculateDerivative (Parameters &rParameterValues, const Variable< double > &rFunctionVariable, const Variable< double > &rDerivativeVariable, double &rOutput)
 Calculates derivatives of a given function. More...
 
virtual void CalculateDerivative (Parameters &rParameterValues, const Variable< Vector > &rFunctionVariable, const Variable< double > &rDerivativeVariable, Vector &rOutput)
 Calculates derivatives of a given function. More...
 
virtual void CalculateDerivative (Parameters &rParameterValues, const Variable< Matrix > &rFunctionVariable, const Variable< double > &rDerivativeVariable, Matrix &rOutput)
 Calculates derivatives of a given function. More...
 
virtual void CalculateDerivative (Parameters &rParameterValues, const Variable< array_1d< double, 3 >> &rFunctionVariable, const Variable< double > &rDerivativeVariable, array_1d< double, 3 > &rOutput)
 Calculates derivatives of a given function. More...
 
virtual bool ValidateInput (const Properties &rMaterialProperties)
 
virtual bool IsIncremental ()
 
virtual void InitializeSolutionStep (const Properties &rMaterialProperties, const GeometryType &rElementGeometry, const Vector &rShapeFunctionsValues, const ProcessInfo &rCurrentProcessInfo)
 
virtual void FinalizeSolutionStep (const Properties &rMaterialProperties, const GeometryType &rElementGeometry, const Vector &rShapeFunctionsValues, const ProcessInfo &rCurrentProcessInfo)
 
virtual void InitializeNonLinearIteration (const Properties &rMaterialProperties, const GeometryType &rElementGeometry, const Vector &rShapeFunctionsValues, const ProcessInfo &rCurrentProcessInfo)
 
virtual void FinalizeNonLinearIteration (const Properties &rMaterialProperties, const GeometryType &rElementGeometry, const Vector &rShapeFunctionsValues, const ProcessInfo &rCurrentProcessInfo)
 
void CalculateMaterialResponse (Parameters &rValues, const StressMeasure &rStressMeasure)
 
virtual bool RequiresInitializeMaterialResponse ()
 If the CL requires to initialize the material response, called by the element in InitializeSolutionStep. More...
 
virtual void CalculateStressResponse (Parameters &rValues, Vector &rInternalVariables)
 
void InitializeMaterialResponse (Parameters &rValues, const StressMeasure &rStressMeasure)
 Initialize the material response, called by the element in InitializeSolutionStep. More...
 
virtual bool RequiresFinalizeMaterialResponse ()
 If the CL requires to finalize the material response, called by the element in FinalizeSolutionStep. More...
 
void FinalizeMaterialResponse (Parameters &rValues, const StressMeasure &rStressMeasure)
 Finalize the material response, called by the element in FinalizeSolutionStep. More...
 
virtual VectorTransformStrains (Vector &rStrainVector, const Matrix &rF, StrainMeasure rStrainInitial, StrainMeasure rStrainFinal)
 
virtual MatrixTransformStresses (Matrix &rStressMatrix, const Matrix &rF, const double &rdetF, StressMeasure rStressInitial, StressMeasure rStressFinal)
 
virtual VectorTransformStresses (Vector &rStressVector, const Matrix &rF, const double &rdetF, StressMeasure rStressInitial, StressMeasure rStressFinal)
 
VectorTransformPK1Stresses (Vector &rStressVector, const Matrix &rF, const double &rdetF, StressMeasure rStressFinal)
 
VectorTransformPK2Stresses (Vector &rStressVector, const Matrix &rF, const double &rdetF, StressMeasure rStressFinal)
 
VectorTransformKirchhoffStresses (Vector &rStressVector, const Matrix &rF, const double &rdetF, StressMeasure rStressFinal)
 
VectorTransformCauchyStresses (Vector &rStressVector, const Matrix &rF, const double &rdetF, StressMeasure rStressFinal)
 
void PullBackConstitutiveMatrix (Matrix &rConstitutiveMatrix, const Matrix &rF)
 
void PushForwardConstitutiveMatrix (Matrix &rConstitutiveMatrix, const Matrix &rF)
 
virtual void CalculateCauchyStresses (Vector &Cauchy_StressVector, const Matrix &F, const Vector &PK2_StressVector, const Vector &GreenLagrangeStrainVector)
 
- Public Member Functions inherited from Kratos::Flags
Flagsoperator= (Flags const &rOther)
 Assignment operator. More...
 
 operator bool () const
 
Flags operator~ () const
 
bool operator! () const
 
void AssignFlags (Flags const &rOther)
 
void Set (const Flags ThisFlag)
 
void Set (const Flags ThisFlag, bool Value)
 
void Reset (const Flags ThisFlag)
 
void Flip (const Flags ThisFlag)
 
void SetPosition (IndexType Position, bool Value=true)
 
bool GetPosition (IndexType Position) const
 
void FlipPosition (IndexType Position)
 
void ClearPosition (IndexType Position)
 
void Clear ()
 
Flags AsFalse () const
 
bool Is (Flags const &rOther) const
 
bool IsDefined (Flags const &rOther) const
 
bool IsNot (Flags const &rOther) const
 
bool IsNotDefined (Flags const &rOther) const
 
 KRATOS_CLASS_POINTER_DEFINITION (Flags)
 Pointer definition of Flags. More...
 
const Flagsoperator|= (const Flags &Other)
 
const Flagsoperator&= (const Flags &Other)
 
 Flags ()
 Default constructor. More...
 
 Flags (Flags const &rOther)
 Copy constructor. More...
 
virtual ~Flags ()
 Destructor. More...
 

Static Public Attributes

static constexpr SizeType Dimension = N_DIM_3D
 Static definition of the dimension. More...
 
static constexpr SizeType VoigtSize = VOIGT_SIZE_3D
 Static definition of the VoigtSize. More...
 

Protected Types

Protected static Member Variables
enum  IDTASK : int {
  INITIALISATION = 1 , STRESS_CALCULATION , MATRIX_ELASTO_PLASTIC , NUMBER_OF_STATE_VARIABLES ,
  ATTRIBUTES , MATRIX_ELASTIC
}
 
enum  ATTRIBUTE : int { IS_NON_SYMMETRIC , IS_STRESS_DEPENDENT , IS_TIME_DEPENDENT , USE_TANGENT_MATRIX }
 

Protected Member Functions

Protected Access
virtual void UpdateInternalDeltaStrainVector (ConstitutiveLaw::Parameters &rValues)
 
virtual void UpdateInternalStrainVectorFinalized (ConstitutiveLaw::Parameters &rValues)
 
virtual void SetExternalStressVector (Vector &rStressVector)
 
virtual void SetInternalStressVector (const Vector &rStressVector)
 
virtual void SetInternalStrainVector (const Vector &rStrainVector)
 
virtual void CopyConstitutiveMatrix (ConstitutiveLaw::Parameters &rValues, Matrix &rConstitutiveMatrix)
 
void CalculateConstitutiveMatrix (ConstitutiveLaw::Parameters &rValues, Matrix &rConstitutiveMatrix)
 
void CalculateStress (ConstitutiveLaw::Parameters &rValues, Vector &rStressVector)
 
int getIsNonSymmetric ()
 
int getIsStressDependent ()
 
int getIsTimeDependent ()
 
int getUseTangentMatrix ()
 
- Protected Member Functions inherited from Kratos::ConstitutiveLaw
void ContraVariantPushForward (Matrix &rMatrix, const Matrix &rF)
 
void ContraVariantPullBack (Matrix &rMatrix, const Matrix &rF)
 
void CoVariantPushForward (Matrix &rMatrix, const Matrix &rF)
 
void CoVariantPullBack (Matrix &rMatrix, const Matrix &rF)
 
void ConstitutiveMatrixTransformation (Matrix &rConstitutiveMatrix, const Matrix &rOriginalConstitutiveMatrix, const Matrix &rF)
 
doubleTransformConstitutiveComponent (double &rCabcd, const Matrix &rConstitutiveMatrix, const Matrix &rF, const unsigned int &a, const unsigned int &b, const unsigned int &c, const unsigned int &d)
 
doubleGetConstitutiveComponent (double &rCabcd, const Matrix &rConstitutiveMatrix, const unsigned int &a, const unsigned int &b, const unsigned int &c, const unsigned int &d)
 

Protected Attributes

Protected member Variables
array_1d< double, VOIGT_SIZE_3DmStressVector
 
array_1d< double, VOIGT_SIZE_3DmStressVectorFinalized
 
array_1d< double, VOIGT_SIZE_3DmDeltaStrainVector
 
array_1d< double, VOIGT_SIZE_3DmStrainVectorFinalized
 
double mMatrixD [VOIGT_SIZE_3D][VOIGT_SIZE_3D]
 

Serialization

class Serializer
 

Additional Inherited Members

- Static Public Member Functions inherited from Kratos::ConstitutiveLaw
static bool HasSameType (const ConstitutiveLaw &rLHS, const ConstitutiveLaw &rRHS)
 This method is used to check that two Constitutive Laws are the same type (references) More...
 
static bool HasSameType (const ConstitutiveLaw *rLHS, const ConstitutiveLaw *rRHS)
 This method is used to check that two Constitutive Laws are the same type (pointers) More...
 
- Static Public Member Functions inherited from Kratos::Flags
static const Flags AllDefined ()
 
static const Flags AllTrue ()
 
static Flags Create (IndexType ThisPosition, bool Value=true)
 
- Static Protected Attributes inherited from Kratos::ConstitutiveLaw
static const unsigned int msIndexVoigt3D6C [6][2] = { {0, 0}, {1, 1}, {2, 2}, {0, 1}, {1, 2}, {0, 2} }
 
static const unsigned int msIndexVoigt2D4C [4][2] = { {0, 0}, {1, 1}, {2, 2}, {0, 1} }
 
static const unsigned int msIndexVoigt2D3C [3][2] = { {0, 0}, {1, 1}, {0, 1} }
 

Detailed Description

Short class definition.

Detail class definition.

Member Typedef Documentation

◆ BaseType

◆ SizeType

The size type definition.

Member Enumeration Documentation

◆ ATTRIBUTE

Enumerator
IS_NON_SYMMETRIC 
IS_STRESS_DEPENDENT 
IS_TIME_DEPENDENT 
USE_TANGENT_MATRIX 

◆ IDTASK

Enumerator
INITIALISATION 
STRESS_CALCULATION 
MATRIX_ELASTO_PLASTIC 
NUMBER_OF_STATE_VARIABLES 
ATTRIBUTES 
MATRIX_ELASTIC 

Constructor & Destructor Documentation

◆ SmallStrainUDSM3DLaw() [1/2]

Kratos::SmallStrainUDSM3DLaw::SmallStrainUDSM3DLaw ( )
default

Default constructor.

◆ SmallStrainUDSM3DLaw() [2/2]

Kratos::SmallStrainUDSM3DLaw::SmallStrainUDSM3DLaw ( SmallStrainUDSM3DLaw const &  rOther)

Copy constructor.

◆ ~SmallStrainUDSM3DLaw()

Kratos::SmallStrainUDSM3DLaw::~SmallStrainUDSM3DLaw ( )
overridedefault

Destructor.

Member Function Documentation

◆ CalculateCauchyGreenStrain()

void Kratos::SmallStrainUDSM3DLaw::CalculateCauchyGreenStrain ( ConstitutiveLaw::Parameters rValues,
Vector rStrainVector 
)
virtual

It calculates the strain vector.

Parameters
rValuesThe internal values of the law
rStrainVectorThe strain vector in Voigt notation

Reimplemented in Kratos::SmallStrainUDSM3DInterfaceLaw, Kratos::SmallStrainUDSM2DPlaneStrainLaw, and Kratos::SmallStrainUDSM2DInterfaceLaw.

◆ CalculateConstitutiveMatrix()

void Kratos::SmallStrainUDSM3DLaw::CalculateConstitutiveMatrix ( ConstitutiveLaw::Parameters rValues,
Matrix rConstitutiveMatrix 
)
protected

◆ CalculateMaterialResponseCauchy()

void Kratos::SmallStrainUDSM3DLaw::CalculateMaterialResponseCauchy ( ConstitutiveLaw::Parameters rValues)
overridevirtual

Computes the material response:

Cauchy stresses and algorithmic ConstitutiveMatrix

Parameters
rValuesThe internal values of the law
See also
Parameters

Reimplemented from Kratos::ConstitutiveLaw.

◆ CalculateMaterialResponseKirchhoff()

void Kratos::SmallStrainUDSM3DLaw::CalculateMaterialResponseKirchhoff ( ConstitutiveLaw::Parameters rValues)
overridevirtual

Computes the material response:

Kirchhoff stresses and algorithmic ConstitutiveMatrix

Parameters
rValuesThe internal values of the law
See also
Parameters

Reimplemented from Kratos::ConstitutiveLaw.

◆ CalculateMaterialResponsePK1()

void Kratos::SmallStrainUDSM3DLaw::CalculateMaterialResponsePK1 ( ConstitutiveLaw::Parameters rValues)
overridevirtual

Computes the material response:

PK1 stresses and algorithmic ConstitutiveMatrix

Parameters
rValuesThe internal values of the law
See also
Parameters

Reimplemented from Kratos::ConstitutiveLaw.

◆ CalculateMaterialResponsePK2()

void Kratos::SmallStrainUDSM3DLaw::CalculateMaterialResponsePK2 ( ConstitutiveLaw::Parameters rValues)
overridevirtual

Computes the material response:

PK2 stresses and algorithmic ConstitutiveMatrix

Parameters
rValuesThe internal values of the law
See also
Parameters

Reimplemented from Kratos::ConstitutiveLaw.

◆ CalculateStress()

void Kratos::SmallStrainUDSM3DLaw::CalculateStress ( ConstitutiveLaw::Parameters rValues,
Vector rStressVector 
)
protected

◆ CalculateValue() [1/10]

double & Kratos::SmallStrainUDSM3DLaw::CalculateValue ( ConstitutiveLaw::Parameters rParameterValues,
const Variable< double > &  rThisVariable,
double rValue 
)
overridevirtual

It calculates the value of a specified variable (double case)

Parameters
rParameterValuesthe needed parameters for the CL calculation
rThisVariablethe variable to be returned
rValuea reference to the returned value
Returns
rValue output: the value of the specified variable

Reimplemented from Kratos::ConstitutiveLaw.

◆ CalculateValue() [2/10]

Matrix & Kratos::SmallStrainUDSM3DLaw::CalculateValue ( ConstitutiveLaw::Parameters rParameterValues,
const Variable< Matrix > &  rThisVariable,
Matrix rValue 
)
overridevirtual

It calculates the value of a specified variable (Matrix case)

Parameters
rParameterValuesthe needed parameters for the CL calculation
rThisVariablethe variable to be returned
rValuea reference to the returned value
Returns
rValue output: the value of the specified variable

Reimplemented from Kratos::ConstitutiveLaw.

◆ CalculateValue() [3/10]

Vector & Kratos::SmallStrainUDSM3DLaw::CalculateValue ( ConstitutiveLaw::Parameters rParameterValues,
const Variable< Vector > &  rThisVariable,
Vector rValue 
)
overridevirtual

It calculates the value of a specified variable (Vector case)

Parameters
rParameterValuesthe needed parameters for the CL calculation
rThisVariablethe variable to be returned
rValuea reference to the returned value
Returns
rValue output: the value of the specified variable

Reimplemented from Kratos::ConstitutiveLaw.

◆ CalculateValue() [4/10]

array_1d< double, 3 > & Kratos::ConstitutiveLaw::CalculateValue

Calculates the value of a specified variable (array of 3 components)

Parameters
rParameterValuesthe needed parameters for the CL calculation
rThisVariablethe variable to be returned
rValuea reference to the returned value
rValueoutput: the value of the specified variable

returns the value of a specified variable (array of 3 components)

Parameters
rParameterValuesthe needed parameters for the CL calculation
rThisVariablethe variable to be returned
rValuea reference to the returned value
rValueoutput: the value of the specified variable

◆ CalculateValue() [5/10]

array_1d< double, 6 > & Kratos::ConstitutiveLaw::CalculateValue

returns the value of a specified variable (array of 6 components)

Parameters
rThisVariablethe variable to be returned
rValuea reference to the returned value
Returns
the value of the specified variable

returns the value of a specified variable (array of 6 components)

Parameters
rParameterValuesthe needed parameters for the CL calculation
rThisVariablethe variable to be returned
rValuea reference to the returned value
rValueoutput: the value of the specified variable

◆ CalculateValue() [6/10]

bool & Kratos::ConstitutiveLaw::CalculateValue

Calculates the value of a specified variable (bool)

Parameters
rParameterValuesthe needed parameters for the CL calculation
rThisVariablethe variable to be returned
rValuea reference to the returned value
rValueoutput: the value of the specified variable

◆ CalculateValue() [7/10]

double & Kratos::ConstitutiveLaw::CalculateValue

Calculates the value of a specified variable (double)

Parameters
rParameterValuesthe needed parameters for the CL calculation
rThisVariablethe variable to be returned
rValuea reference to the returned value
rValueoutput: the value of the specified variable

returns the value of a specified variable (double)

Parameters
rParameterValuesthe needed parameters for the CL calculation
rThisVariablethe variable to be returned
rValuea reference to the returned value
rValueoutput: the value of the specified variable

◆ CalculateValue() [8/10]

int & Kratos::ConstitutiveLaw::CalculateValue

Calculates the value of a specified variable (int)

Parameters
rParameterValuesthe needed parameters for the CL calculation
rThisVariablethe variable to be returned
rValuea reference to the returned value
rValueoutput: the value of the specified variable

◆ CalculateValue() [9/10]

Matrix & Kratos::ConstitutiveLaw::CalculateValue

Calculates the value of a specified variable (Matrix)

Parameters
rParameterValuesthe needed parameters for the CL calculation
rThisVariablethe variable to be returned
rValuea reference to the returned value
rValueoutput: the value of the specified variable

returns the value of a specified variable (Matrix)

Parameters
rParameterValuesthe needed parameters for the CL calculation
rThisVariablethe variable to be returned
rValuea reference to the returned value
rValueoutput: the value of the specified variable

◆ CalculateValue() [10/10]

Vector & Kratos::ConstitutiveLaw::CalculateValue

Calculates the value of a specified variable (Vector)

Parameters
rParameterValuesthe needed parameters for the CL calculation
rThisVariablethe variable to be returned
rValuea reference to the returned value
rValueoutput: the value of the specified variable

returns the value of a specified variable (Vector)

Parameters
rParameterValuesthe needed parameters for the CL calculation
rThisVariablethe variable to be returned
rValuea reference to the returned value
rValueoutput: the value of the specified variable

◆ Check()

int Kratos::SmallStrainUDSM3DLaw::Check ( const Properties rMaterialProperties,
const GeometryType rElementGeometry,
const ProcessInfo rCurrentProcessInfo 
) const
overridevirtual

This function is designed to be called once to perform all the checks needed on the input provided. Checks can be "expensive" as the function is designed to catch user's errors.

Parameters
rMaterialProperties
rElementGeometry
rCurrentProcessInfo
Returns

Reimplemented from Kratos::ConstitutiveLaw.

◆ Clone()

ConstitutiveLaw::Pointer Kratos::SmallStrainUDSM3DLaw::Clone ( ) const
overridevirtual

Clone method.

Reimplemented from Kratos::ConstitutiveLaw.

◆ CopyConstitutiveMatrix()

void Kratos::SmallStrainUDSM3DLaw::CopyConstitutiveMatrix ( ConstitutiveLaw::Parameters rValues,
Matrix rConstitutiveMatrix 
)
protectedvirtual

◆ FinalizeMaterialResponseCauchy()

void Kratos::SmallStrainUDSM3DLaw::FinalizeMaterialResponseCauchy ( ConstitutiveLaw::Parameters rValues)
overridevirtual

Updates the material response:

Cauchy stresses and Internal Variables

Parameters
rValuesThe internal values of the law
See also
Parameters

Reimplemented from Kratos::ConstitutiveLaw.

◆ FinalizeMaterialResponseKirchhoff()

void Kratos::SmallStrainUDSM3DLaw::FinalizeMaterialResponseKirchhoff ( ConstitutiveLaw::Parameters rValues)
overridevirtual

Finalize the material response in terms of Kirchhoff stresses

See also
Parameters

Updates the material response in terms of Kirchhoff stresses

See also
Parameters

Reimplemented from Kratos::ConstitutiveLaw.

◆ FinalizeMaterialResponsePK1()

void Kratos::SmallStrainUDSM3DLaw::FinalizeMaterialResponsePK1 ( ConstitutiveLaw::Parameters rValues)
overridevirtual

Finalize the material response in terms of 1st Piola-Kirchhoff stresses

See also
Parameters

Reimplemented from Kratos::ConstitutiveLaw.

◆ FinalizeMaterialResponsePK2()

void Kratos::SmallStrainUDSM3DLaw::FinalizeMaterialResponsePK2 ( ConstitutiveLaw::Parameters rValues)
overridevirtual

Finalize the material response in terms of 2nd Piola-Kirchhoff stresses

See also
Parameters

Updates the material response in terms of 2nd Piola-Kirchhoff stresses

See also
Parameters

Reimplemented from Kratos::ConstitutiveLaw.

◆ getIsNonSymmetric()

int Kratos::SmallStrainUDSM3DLaw::getIsNonSymmetric ( )
inlineprotected

◆ getIsStressDependent()

int Kratos::SmallStrainUDSM3DLaw::getIsStressDependent ( )
inlineprotected

◆ getIsTimeDependent()

int Kratos::SmallStrainUDSM3DLaw::getIsTimeDependent ( )
inlineprotected

◆ GetLawFeatures()

void Kratos::SmallStrainUDSM3DLaw::GetLawFeatures ( Features rFeatures)
overridevirtual

This function is designed to be called once to check compatibility with element.

Parameters
rFeaturesThe Features of the law

Reimplemented from Kratos::ConstitutiveLaw.

◆ GetStrainMeasure()

StrainMeasure Kratos::SmallStrainUDSM3DLaw::GetStrainMeasure ( )
inlineoverridevirtual

Returns the expected strain measure of this constitutive law (by default Green-Lagrange)

Returns
the expected strain measure

Reimplemented from Kratos::ConstitutiveLaw.

◆ GetStrainSize()

SizeType Kratos::SmallStrainUDSM3DLaw::GetStrainSize ( ) const
inlineoverridevirtual

Voigt tensor size:

Reimplemented from Kratos::ConstitutiveLaw.

◆ GetStressMeasure()

StressMeasure Kratos::SmallStrainUDSM3DLaw::GetStressMeasure ( )
inlineoverridevirtual

returns the stress measure of this constitutive law (by default 1st Piola-Kirchhoff stress in Voigt notation)

Returns
the expected stress measure

Reimplemented from Kratos::ConstitutiveLaw.

◆ getUseTangentMatrix()

int Kratos::SmallStrainUDSM3DLaw::getUseTangentMatrix ( )
inlineprotected

◆ GetValue() [1/3]

double & Kratos::SmallStrainUDSM3DLaw::GetValue ( const Variable< double > &  rThisVariable,
double rValue 
)
overridevirtual

Returns the value of a specified variable (double)

Parameters
rThisVariablethe variable to be returned
rValuea reference to the returned value
Returns
rValue output: the value of the specified variable

returns the value of a specified variable

Parameters
rThisVariablethe variable to be returned
rValuea reference to the returned value
rValueoutput: the value of the specified variable

Reimplemented from Kratos::ConstitutiveLaw.

◆ GetValue() [2/3]

int & Kratos::SmallStrainUDSM3DLaw::GetValue ( const Variable< int > &  rThisVariable,
int rValue 
)
overridevirtual

Returns the value of a specified variable (integer)

Parameters
rThisVariablethe variable to be returned
rValuea reference to the returned value
Returns
rValue output: the value of the specified variable

returns the value of a specified variable

Parameters
rThisVariablethe variable to be returned
rValuea reference to the returned value
rValueoutput: the value of the specified variable

Reimplemented from Kratos::ConstitutiveLaw.

◆ GetValue() [3/3]

Vector & Kratos::SmallStrainUDSM3DLaw::GetValue ( const Variable< Vector > &  rThisVariable,
Vector rValue 
)
overridevirtual

Returns the value of a specified variable (Vector)

Parameters
rThisVariablethe variable to be returned
rValuea reference to the returned value
Returns
rValue output: the value of the specified variable

returns the value of a specified variable

Parameters
rThisVariablethe variable to be returned
rValuea reference to the returned value
Returns
the value of the specified variable

Reimplemented from Kratos::ConstitutiveLaw.

◆ Info()

std::string Kratos::SmallStrainUDSM3DLaw::Info ( ) const
inlineoverridevirtual

Turn back information as a string.

Reimplemented from Kratos::ConstitutiveLaw.

◆ InitializeMaterial()

void Kratos::SmallStrainUDSM3DLaw::InitializeMaterial ( const Properties rMaterialProperties,
const GeometryType rElementGeometry,
const Vector rShapeFunctionsValues 
)
overridevirtual

This is to be called at the very beginning of the calculation (e.g. from InitializeElement) in order to initialize all relevant attributes of the constitutive law

Parameters
rMaterialPropertiesthe Properties instance of the current element
rElementGeometrythe geometry of the current element
rShapeFunctionsValuesthe shape functions values in the current integration point

Reimplemented from Kratos::ConstitutiveLaw.

◆ InitializeMaterialResponseCauchy()

void Kratos::SmallStrainUDSM3DLaw::InitializeMaterialResponseCauchy ( ConstitutiveLaw::Parameters rValues)
overridevirtual

Initialize the material response in terms of Cauchy stresses

See also
Parameters

Reimplemented from Kratos::ConstitutiveLaw.

◆ InitializeMaterialResponseKirchhoff()

void Kratos::SmallStrainUDSM3DLaw::InitializeMaterialResponseKirchhoff ( ConstitutiveLaw::Parameters rValues)
overridevirtual

Initialize the material response in terms of Kirchhoff stresses.

Initialize the material response in terms of Kirchhoff stresses

See also
Parameters
Parameters

Reimplemented from Kratos::ConstitutiveLaw.

◆ InitializeMaterialResponsePK1()

void Kratos::SmallStrainUDSM3DLaw::InitializeMaterialResponsePK1 ( ConstitutiveLaw::Parameters rValues)
overridevirtual

Initialize the material response in terms of 1st Piola-Kirchhoff stresses.

Initialize the material response in terms of 1st Piola-Kirchhoff stresses

See also
Parameters
Parameters

Reimplemented from Kratos::ConstitutiveLaw.

◆ InitializeMaterialResponsePK2()

void Kratos::SmallStrainUDSM3DLaw::InitializeMaterialResponsePK2 ( ConstitutiveLaw::Parameters rValues)
overridevirtual

Initialize the material response in terms of 2nd Piola-Kirchhoff stresses.

Initialize the material response in terms of 2nd Piola-Kirchhoff stresses

See also
Parameters
Parameters

Reimplemented from Kratos::ConstitutiveLaw.

◆ KRATOS_CLASS_POINTER_DEFINITION()

Kratos::SmallStrainUDSM3DLaw::KRATOS_CLASS_POINTER_DEFINITION ( SmallStrainUDSM3DLaw  )

Pointer definition of SmallStrainUDSM3DLaw.

◆ operator=()

SmallStrainUDSM3DLaw & Kratos::SmallStrainUDSM3DLaw::operator= ( SmallStrainUDSM3DLaw const &  rOther)

◆ PrintData()

void Kratos::SmallStrainUDSM3DLaw::PrintData ( std::ostream &  rOStream) const
inlineoverridevirtual

Print object's data.

Reimplemented from Kratos::ConstitutiveLaw.

◆ PrintInfo()

void Kratos::SmallStrainUDSM3DLaw::PrintInfo ( std::ostream &  rOStream) const
inlineoverridevirtual

Print information about this object.

Reimplemented from Kratos::ConstitutiveLaw.

◆ ResetMaterial()

void Kratos::SmallStrainUDSM3DLaw::ResetMaterial ( const Properties rMaterialProperties,
const GeometryType rElementGeometry,
const Vector rShapeFunctionsValues 
)
overridevirtual

This can be used in order to reset all internal variables of the constitutive law (e.g. if a model should be reset to its reference state)

Parameters
rMaterialPropertiesthe Properties instance of the current element
rElementGeometrythe geometry of the current element
rShapeFunctionsValuesthe shape functions values in the current integration point
thecurrent ProcessInfo instance

Reimplemented from Kratos::ConstitutiveLaw.

◆ SetExternalStressVector()

void Kratos::SmallStrainUDSM3DLaw::SetExternalStressVector ( Vector rStressVector)
protectedvirtual

◆ SetInternalStrainVector()

void Kratos::SmallStrainUDSM3DLaw::SetInternalStrainVector ( const Vector rStrainVector)
protectedvirtual

◆ SetInternalStressVector()

void Kratos::SmallStrainUDSM3DLaw::SetInternalStressVector ( const Vector rStressVector)
protectedvirtual

◆ SetValue() [1/2]

void Kratos::SmallStrainUDSM3DLaw::SetValue ( const Variable< double > &  rVariable,
const double rValue,
const ProcessInfo rCurrentProcessInfo 
)
overridevirtual

Sets the value of a specified variable (double)

Parameters
rVariablethe variable to be returned
rValuenew value of the specified variable
rCurrentProcessInfothe process info

Reimplemented from Kratos::ConstitutiveLaw.

◆ SetValue() [2/2]

void Kratos::SmallStrainUDSM3DLaw::SetValue ( const Variable< Vector > &  rVariable,
const Vector rValue,
const ProcessInfo rCurrentProcessInfo 
)
overridevirtual

Sets the value of a specified variable (Vector)

Parameters
rVariablethe variable to be returned
rValuenew value of the specified variable
rCurrentProcessInfothe process info

Reimplemented from Kratos::ConstitutiveLaw.

◆ UpdateInternalDeltaStrainVector()

void Kratos::SmallStrainUDSM3DLaw::UpdateInternalDeltaStrainVector ( ConstitutiveLaw::Parameters rValues)
protectedvirtual

◆ UpdateInternalStrainVectorFinalized()

void Kratos::SmallStrainUDSM3DLaw::UpdateInternalStrainVectorFinalized ( ConstitutiveLaw::Parameters rValues)
protectedvirtual

◆ WorkingSpaceDimension()

SizeType Kratos::SmallStrainUDSM3DLaw::WorkingSpaceDimension ( )
inlineoverridevirtual

Dimension of the law:

Reimplemented from Kratos::ConstitutiveLaw.

Friends And Related Function Documentation

◆ Serializer

friend class Serializer
friend

Member Data Documentation

◆ Dimension

constexpr SizeType Kratos::SmallStrainUDSM3DLaw::Dimension = N_DIM_3D
staticconstexpr

Static definition of the dimension.

◆ mDeltaStrainVector

array_1d<double, VOIGT_SIZE_3D> Kratos::SmallStrainUDSM3DLaw::mDeltaStrainVector
protected

◆ mMatrixD

double Kratos::SmallStrainUDSM3DLaw::mMatrixD[VOIGT_SIZE_3D][VOIGT_SIZE_3D]
protected

◆ mStrainVectorFinalized

array_1d<double, VOIGT_SIZE_3D> Kratos::SmallStrainUDSM3DLaw::mStrainVectorFinalized
protected

◆ mStressVector

array_1d<double, VOIGT_SIZE_3D> Kratos::SmallStrainUDSM3DLaw::mStressVector
protected

◆ mStressVectorFinalized

array_1d<double, VOIGT_SIZE_3D> Kratos::SmallStrainUDSM3DLaw::mStressVectorFinalized
protected

◆ VoigtSize

constexpr SizeType Kratos::SmallStrainUDSM3DLaw::VoigtSize = VOIGT_SIZE_3D
staticconstexpr

Static definition of the VoigtSize.


The documentation for this class was generated from the following files: