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.
Classes | List of all members
Kratos::SmallStrainUmatModel Class Reference

Short class definition. More...

#include <small_strain_umat_model.hpp>

Inheritance diagram for Kratos::SmallStrainUmatModel:
Collaboration diagram for Kratos::SmallStrainUmatModel:

Classes

struct  UmatModelData
 

Public Member Functions

Life Cycle
 SmallStrainUmatModel ()
 Default constructor.
More...
 
 SmallStrainUmatModel (SmallStrainUmatModel const &rOther)
 Copy constructor. More...
 
virtual ConstitutiveModel::Pointer Clone () const override
 Clone. More...
 
SmallStrainUmatModeloperator= (SmallStrainUmatModel const &rOther)
 Assignment operator. More...
 
virtual ~SmallStrainUmatModel ()
 Destructor. More...
 
Operations
virtual void InitializeModel (ModelDataType &rValues) override
 
virtual void FinalizeModel (ModelDataType &rValues) override
 
virtual void CalculateStrainEnergy (ModelDataType &rValues, double &rDensityFunction) override
 
virtual void CalculateStressTensor (ModelDataType &rValues, MatrixType &rStressMatrix) override
 
virtual void CalculateConstitutiveTensor (ModelDataType &rValues, Matrix &rConstitutiveMatrix) override
 
virtual void CalculateStressAndConstitutiveTensors (ModelDataType &rValues, MatrixType &rStressMatrix, Matrix &rConstitutiveMatrix) override
 
virtual int Check (const Properties &rMaterialProperties, const ProcessInfo &rCurrentProcessInfo) override
 
Access
virtual void SetValue (const Variable< Vector > &rThisVariable, const Vector &rValue, const ProcessInfo &rCurrentProcessInfo) override
 
virtual void SetValue (const Variable< Matrix > &rThisVariable, const Matrix &rValue, const ProcessInfo &rCurrentProcessInfo) override
 
virtual void GetDomainVariablesList (std::vector< Variable< double > > &rScalarVariables, std::vector< Variable< array_1d< double, 3 > > > &rComponentVariables) override
 
doubleGetValue (const Variable< double > &, double &rValue) override
 
Input and output
virtual std::string Info () const override
 Turn back information as a string. More...
 
virtual void PrintInfo (std::ostream &rOStream) const override
 Print information about this object. More...
 
virtual void PrintData (std::ostream &rOStream) const override
 Print object's data. More...
 
- Public Member Functions inherited from Kratos::ConstitutiveModel
 KRATOS_DEFINE_LOCAL_FLAG (ADD_HISTORY_VECTOR)
 
 KRATOS_DEFINE_LOCAL_FLAG (HISTORY_STRAIN_MEASURE)
 
 KRATOS_DEFINE_LOCAL_FLAG (HISTORY_STRESS_MEASURE)
 
 ConstitutiveModel ()
 Default constructor. More...
 
 ConstitutiveModel (ConstitutiveModel const &rOther)
 Copy constructor. More...
 
ConstitutiveModeloperator= (ConstitutiveModel const &rOther)
 Assignment operator. More...
 
virtual ~ConstitutiveModel ()
 Destructor. More...
 
virtual void InitializeMaterial (const Properties &rProperties)
 
virtual void CalculateIsochoricStressTensor (ModelDataType &rValues, MatrixType &rStressMatrix)
 
virtual void CalculateVolumetricStressTensor (ModelDataType &rValues, MatrixType &rStressMatrix)
 
virtual void CalculateIsochoricConstitutiveTensor (ModelDataType &rValues, Matrix &rConstitutive)
 
virtual void CalculateVolumetricConstitutiveTensor (ModelDataType &rValues, Matrix &rConstitutive)
 
virtual void CalculateIsochoricStressAndConstitutiveTensors (ModelDataType &rValues, MatrixType &rStressMatrix, Matrix &rConstitutive)
 
virtual void CalculateVolumetricStressAndConstitutiveTensors (ModelDataType &rValues, MatrixType &rStressMatrix, Matrix &rConstitutive)
 
virtual bool Has (const Variable< double > &rThisVariable)
 
virtual void SetValue (const Variable< double > &rVariable, const double &rValue, const ProcessInfo &rCurrentProcessInfo)
 
 KRATOS_CLASS_POINTER_DEFINITION (ConstitutiveModel)
 Pointer definition of ConstitutiveModel. More...
 

Protected Member Functions

Protected Operations
virtual void InitializeStateVariables (Vector &rStateVariables, const Properties &rMaterialProperties)
 
void InitializeElasticData (ModelDataType &rValues, UmatDataType &rVariables)
 
virtual unsigned int GetNumberOfStateVariables ()
 
virtual void CreateConstitutiveParametersVector (double *&rpVector, int &rNumberParameters, const Properties &rMaterialProperties)
 
virtual void CreateStateVariablesVector (double *&rpStateVariables, int &rNumberStateVariables)
 
virtual void CreateStrainsVectors (UmatDataType &rVariables, double *&rpStrain, double *&rpIncrementalStrain)
 
virtual void CreateStressAtInitialState (UmatDataType &rVariables, double *&rpStressVector)
 
virtual void UpdateVariables (UmatDataType &rVariables, double *&rpStressVector, double *&rpStateVariables, double Pressure=0.0)
 
virtual int GetConstitutiveEquationNumber ()
 
virtual void SetConstitutiveMatrix (Matrix &rC, const Matrix &rCBig, const MatrixType &rStressMatrix)
 

Protected Attributes

Protected member Variables
bool mInitializedModel
 
Vector mStateVariablesFinalized
 
VectorType mStressVectorFinalized
 
VectorType mStrainVectorFinalized
 
- Protected Attributes inherited from Kratos::ConstitutiveModel
Flags mOptions
 
VectorType mHistoryVector
 

Type Definitions

typedef UmatModelData UmatDataType
 
 KRATOS_CLASS_POINTER_DEFINITION (SmallStrainUmatModel)
 Pointer definition of SmallStrainUmatModel. More...
 

Serialization

class Serializer
 

Additional Inherited Members

- Public Types inherited from Kratos::ConstitutiveModel
typedef ConstitutiveModelData::SizeType SizeType
 
typedef ConstitutiveModelData::VectorType VectorType
 
typedef ConstitutiveModelData::MatrixType MatrixType
 
typedef ConstitutiveModelData::ModelData ModelDataType
 
typedef ConstitutiveModelData::MaterialData MaterialDataType
 
typedef ConstitutiveModelData::StrainMeasureType StrainMeasureType
 
typedef ConstitutiveModelData::StressMeasureType StressMeasureType
 
- Protected Types inherited from Kratos::ConstitutiveModel
using VoigtIndexType = const unsigned int(*)[2]
 

Detailed Description

Short class definition.

Detail class definition.

Member Typedef Documentation

◆ UmatDataType

Constructor & Destructor Documentation

◆ SmallStrainUmatModel() [1/2]

Kratos::SmallStrainUmatModel::SmallStrainUmatModel ( )

Default constructor.

◆ SmallStrainUmatModel() [2/2]

Kratos::SmallStrainUmatModel::SmallStrainUmatModel ( SmallStrainUmatModel const &  rOther)

Copy constructor.

◆ ~SmallStrainUmatModel()

Kratos::SmallStrainUmatModel::~SmallStrainUmatModel ( )
virtual

Destructor.

Member Function Documentation

◆ CalculateConstitutiveTensor()

void Kratos::SmallStrainUmatModel::CalculateConstitutiveTensor ( ModelDataType rValues,
Matrix rConstitutiveMatrix 
)
overridevirtual

Calculate Constitutive Tensor

Reimplemented from Kratos::ConstitutiveModel.

◆ CalculateStrainEnergy()

void Kratos::SmallStrainUmatModel::CalculateStrainEnergy ( ModelDataType rValues,
double rDensityFunction 
)
overridevirtual

Calculate Strain Energy Density Functions

Reimplemented from Kratos::ConstitutiveModel.

◆ CalculateStressAndConstitutiveTensors()

void Kratos::SmallStrainUmatModel::CalculateStressAndConstitutiveTensors ( ModelDataType rValues,
MatrixType rStressMatrix,
Matrix rConstitutiveMatrix 
)
overridevirtual

Calculate Stress and Constitutive Tensor

Reimplemented from Kratos::ConstitutiveModel.

◆ CalculateStressTensor()

void Kratos::SmallStrainUmatModel::CalculateStressTensor ( ModelDataType rValues,
MatrixType rStressMatrix 
)
overridevirtual

Calculate Stresses

Reimplemented from Kratos::ConstitutiveModel.

◆ Check()

int Kratos::SmallStrainUmatModel::Check ( const Properties rMaterialProperties,
const ProcessInfo rCurrentProcessInfo 
)
overridevirtual

Check

Reimplemented from Kratos::ConstitutiveModel.

◆ Clone()

ConstitutiveModel::Pointer Kratos::SmallStrainUmatModel::Clone ( ) const
overridevirtual

◆ CreateConstitutiveParametersVector()

virtual void Kratos::SmallStrainUmatModel::CreateConstitutiveParametersVector ( double *&  rpVector,
int rNumberParameters,
const Properties rMaterialProperties 
)
inlineprotectedvirtual

◆ CreateStateVariablesVector()

virtual void Kratos::SmallStrainUmatModel::CreateStateVariablesVector ( double *&  rpStateVariables,
int rNumberStateVariables 
)
inlineprotectedvirtual

◆ CreateStrainsVectors()

virtual void Kratos::SmallStrainUmatModel::CreateStrainsVectors ( UmatDataType rVariables,
double *&  rpStrain,
double *&  rpIncrementalStrain 
)
inlineprotectedvirtual

Reimplemented in Kratos::LargeStrainUmatModel.

◆ CreateStressAtInitialState()

virtual void Kratos::SmallStrainUmatModel::CreateStressAtInitialState ( UmatDataType rVariables,
double *&  rpStressVector 
)
inlineprotectedvirtual

Reimplemented in Kratos::LargeStrainUmatModel.

◆ FinalizeModel()

void Kratos::SmallStrainUmatModel::FinalizeModel ( ModelDataType rValues)
overridevirtual

Finalize member data

Reimplemented from Kratos::ConstitutiveModel.

◆ GetConstitutiveEquationNumber()

virtual int Kratos::SmallStrainUmatModel::GetConstitutiveEquationNumber ( )
inlineprotectedvirtual

◆ GetDomainVariablesList()

virtual void Kratos::SmallStrainUmatModel::GetDomainVariablesList ( std::vector< Variable< double > > &  rScalarVariables,
std::vector< Variable< array_1d< double, 3 > > > &  rComponentVariables 
)
inlineoverridevirtual

method to ask the plasticity model the list of variables (dofs) needed from the domain

Parameters
rScalarVariables: list of scalar dofs
rComponentVariables: list of vector dofs

Reimplemented from Kratos::ConstitutiveModel.

◆ GetNumberOfStateVariables()

virtual unsigned int Kratos::SmallStrainUmatModel::GetNumberOfStateVariables ( )
inlineprotectedvirtual

◆ GetValue()

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

Get Values

Reimplemented from Kratos::ConstitutiveModel.

◆ Info()

virtual std::string Kratos::SmallStrainUmatModel::Info ( ) const
inlineoverridevirtual

◆ InitializeElasticData()

void Kratos::SmallStrainUmatModel::InitializeElasticData ( ModelDataType rValues,
UmatDataType rVariables 
)
protected

◆ InitializeModel()

void Kratos::SmallStrainUmatModel::InitializeModel ( ModelDataType rValues)
overridevirtual

Initialize member data

Reimplemented from Kratos::ConstitutiveModel.

◆ InitializeStateVariables()

virtual void Kratos::SmallStrainUmatModel::InitializeStateVariables ( Vector rStateVariables,
const Properties rMaterialProperties 
)
inlineprotectedvirtual

◆ KRATOS_CLASS_POINTER_DEFINITION()

Kratos::SmallStrainUmatModel::KRATOS_CLASS_POINTER_DEFINITION ( SmallStrainUmatModel  )

Pointer definition of SmallStrainUmatModel.

◆ operator=()

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

Assignment operator.

◆ PrintData()

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

◆ PrintInfo()

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

◆ SetConstitutiveMatrix()

void Kratos::SmallStrainUmatModel::SetConstitutiveMatrix ( Matrix rC,
const Matrix rCBig,
const MatrixType rStressMatrix 
)
protectedvirtual

Reimplemented in Kratos::LargeStrainUmatModel.

◆ SetValue() [1/2]

virtual void Kratos::SmallStrainUmatModel::SetValue ( const Variable< Matrix > &  rThisVariable,
const Matrix rValue,
const ProcessInfo rCurrentProcessInfo 
)
inlineoverridevirtual

Reimplemented from Kratos::ConstitutiveModel.

◆ SetValue() [2/2]

virtual void Kratos::SmallStrainUmatModel::SetValue ( const Variable< Vector > &  rThisVariable,
const Vector rValue,
const ProcessInfo rCurrentProcessInfo 
)
inlineoverridevirtual

Reimplemented from Kratos::ConstitutiveModel.

◆ UpdateVariables()

virtual void Kratos::SmallStrainUmatModel::UpdateVariables ( UmatDataType rVariables,
double *&  rpStressVector,
double *&  rpStateVariables,
double  Pressure = 0.0 
)
inlineprotectedvirtual

Friends And Related Function Documentation

◆ Serializer

friend class Serializer
friend

Member Data Documentation

◆ mInitializedModel

bool Kratos::SmallStrainUmatModel::mInitializedModel
protected

◆ mStateVariablesFinalized

Vector Kratos::SmallStrainUmatModel::mStateVariablesFinalized
protected

◆ mStrainVectorFinalized

VectorType Kratos::SmallStrainUmatModel::mStrainVectorFinalized
protected

◆ mStressVectorFinalized

VectorType Kratos::SmallStrainUmatModel::mStressVectorFinalized
protected

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