tfel
Loading...
Searching...
No Matches
mtest::LogarithmicStrain1DBehaviourWrapper Struct Reference

a simple wrapper around a small strain behaviour which turns a small strain behaviour into a finite strain behaviour in the logarithmic strain framework using the ETO-PK1 kinematic assumption under the axisymmetrical generalised plane strain modelling hypothesis. More...

#include </home/runner/work/tfel/tfel/mtest/include/MTest/LogarithmicStrain1DBehaviourWrapper.hxx>

Inheritance diagram for mtest::LogarithmicStrain1DBehaviourWrapper:
mtest::BehaviourWrapperBase mtest::Behaviour

Public Member Functions

 LogarithmicStrain1DBehaviourWrapper (const std::shared_ptr< Behaviour > &)
 constructor
Hypothesis getHypothesis () const override
BehaviourType getBehaviourType () const override
Kinematic getBehaviourKinematic () const override
unsigned short getGradientsSize () const override
void getGradientsDefaultInitialValues (tfel::math::vector< real > &) const override
unsigned short getThermodynamicForcesSize () const override
std::vector< std::string > getStensorComponentsSuffixes () const override
std::vector< std::string > getVectorComponentsSuffixes () const override
std::vector< std::string > getTensorComponentsSuffixes () const override
std::vector< std::string > getGradientsComponents () const override
std::vector< std::string > getThermodynamicForcesComponents () const override
unsigned short getGradientComponentPosition (const std::string &) const override
unsigned short getThermodynamicForceComponentPosition (const std::string &) const override
size_t getTangentOperatorArraySize () const override
std::vector< std::pair< std::string, std::string > > getTangentOperatorBlocks () const override
std::vector< std::string > getInternalStateVariablesNames () const override
std::vector< std::string > expandInternalStateVariablesNames () const override
size_t getInternalStateVariablesSize () const override
std::vector< std::string > getInternalStateVariablesDescriptions () const override
unsigned short getInternalStateVariableType (const std::string &) const override
unsigned short getInternalStateVariablePosition (const std::string &) const override
std::vector< std::string > getExternalStateVariablesNames () const override
std::vector< std::string > expandExternalStateVariablesNames () const override
size_t getExternalStateVariablesSize () const override
unsigned short getExternalStateVariableType (const std::string &) const override
unsigned short getExternalStateVariablePosition (const std::string &) const override
void allocateWorkSpace (BehaviourWorkSpace &) const override
 allocate workspace
tfel::math::tmatrix< 3u, 3u, real > getRotationMatrix (const tfel::math::vector< real > &, const tfel::math::tmatrix< 3u, 3u, real > &) const override
 compute the real rotation matrix
bool doPackagingStep (CurrentState &, BehaviourWorkSpace &) const override
 execute the packaging step. This victious step is done at the beginning of the computation.
std::pair< bool, real > computePredictionOperator (BehaviourWorkSpace &, const CurrentState &, const StiffnessMatrixType) const override
 compute the prediction operator at the beginning of the time step.
std::pair< bool, real > integrate (CurrentState &, BehaviourWorkSpace &, const real, const StiffnessMatrixType) const override
 integrate the mechanical behaviour over the time step
 ~LogarithmicStrain1DBehaviourWrapper () override
 destructor
Public Member Functions inherited from mtest::BehaviourWrapperBase
 BehaviourWrapperBase (const std::shared_ptr< Behaviour > &)
 constructor
void allocateCurrentState (CurrentState &) const override
 allocate current state
std::string getBehaviourName () const override
unsigned short getSymmetryType () const override
StiffnessMatrixType getDefaultStiffnessMatrixType () const override
std::vector< std::string > getMaterialPropertiesNames () const override
size_t getMaterialPropertiesSize () const override
std::vector< std::string > getOptionalMaterialProperties () const override
void setOptionalMaterialPropertiesDefaultValues (EvolutionManager &, const EvolutionManager &) const override
 This method solves two issues:
std::vector< std::string > getParametersNames () const override
std::vector< std::string > getIntegerParametersNames () const override
std::vector< std::string > getUnsignedShortParametersNames () const override
double getRealParameterDefaultValue (const std::string &) const override
int getIntegerParameterDefaultValue (const std::string &) const override
unsigned short getUnsignedShortParameterDefaultValue (const std::string &) const override
void setOutOfBoundsPolicy (const tfel::material::OutOfBoundsPolicy) const override
 set the out of bounds policy
bool hasBounds (const std::string &) const override
bool hasLowerBound (const std::string &) const override
bool hasUpperBound (const std::string &) const override
long double getLowerBound (const std::string &) const override
long double getUpperBound (const std::string &) const override
bool hasPhysicalBounds (const std::string &) const override
bool hasLowerPhysicalBound (const std::string &) const override
bool hasUpperPhysicalBound (const std::string &) const override
long double getLowerPhysicalBound (const std::string &) const override
long double getUpperPhysicalBound (const std::string &) const override
void setParameter (const std::string &, const real) const override
 set the value of a parameter
void setIntegerParameter (const std::string &, const int) const override
 set the value of a parameter
void setUnsignedIntegerParameter (const std::string &, const unsigned short) const override
 set the value of a parameter
 ~BehaviourWrapperBase () override
 destructor
Public Member Functions inherited from mtest::Behaviour
virtual ~Behaviour ()
 destructor

Additional Inherited Members

Public Types inherited from mtest::Behaviour
using Parameters = tfel::utilities::Data
 a simple alias
using ParametersMap = tfel::utilities::DataMap
 a simple alias
using ModellingHypothesis = tfel::material::ModellingHypothesis
 a simple alias
using Hypothesis = ModellingHypothesis::Hypothesis
 a simple alias
using BehaviourType
 a simple alias
using Kinematic = tfel::material::MechanicalBehaviourBase::Kinematic
 a simple alias
Static Public Member Functions inherited from mtest::Behaviour
static void setOptionalMaterialPropertyDefaultValue (EvolutionManager &, const EvolutionManager &, const std::string &, const real)
 This function set a material property to its default value if it not already declared.
static std::shared_ptr< Behaviour > getBehaviour (const std::string &, const std::string &, const std::string &, const Parameters &, const Hypothesis)
 build a behaviour
Protected Attributes inherited from mtest::BehaviourWrapperBase
std::shared_ptr< Behaviour > b
 wrapped behaviour

Detailed Description

a simple wrapper around a small strain behaviour which turns a small strain behaviour into a finite strain behaviour in the logarithmic strain framework using the ETO-PK1 kinematic assumption under the axisymmetrical generalised plane strain modelling hypothesis.

Constructor & Destructor Documentation

◆ LogarithmicStrain1DBehaviourWrapper()

mtest::LogarithmicStrain1DBehaviourWrapper::LogarithmicStrain1DBehaviourWrapper ( const std::shared_ptr< Behaviour > & )
explicit

constructor

Parameters
[in]wb: wrapped behaviour

Member Function Documentation

◆ allocateWorkSpace()

void mtest::LogarithmicStrain1DBehaviourWrapper::allocateWorkSpace ( BehaviourWorkSpace & ) const
overridevirtual

allocate workspace

Parameters
[out]wk: behaviour workspace

Implements mtest::Behaviour.

◆ computePredictionOperator()

std::pair< bool, real > mtest::LogarithmicStrain1DBehaviourWrapper::computePredictionOperator ( BehaviourWorkSpace & ,
const CurrentState & ,
const StiffnessMatrixType  ) const
overridevirtual

compute the prediction operator at the beginning of the time step.

Returns
a pair. The first member is true if the integration was successfull, false otherwise. The second member contains a time step scaling factor.
Parameters
[out]wk: behaviour workspace
[in]s: current state
[in]ktype: type of the stiffness matrix

Implements mtest::Behaviour.

◆ doPackagingStep()

bool mtest::LogarithmicStrain1DBehaviourWrapper::doPackagingStep ( CurrentState & ,
BehaviourWorkSpace &  ) const
overridevirtual

execute the packaging step. This victious step is done at the beginning of the computation.

Returns
a boolean
Parameters
[out]wk: behaviour workspace
[in]s: current state

Implements mtest::Behaviour.

◆ expandExternalStateVariablesNames()

std::vector< std::string > mtest::LogarithmicStrain1DBehaviourWrapper::expandExternalStateVariablesNames ( ) const
overridevirtual
Returns
expand the names of external variables

Implements mtest::Behaviour.

◆ expandInternalStateVariablesNames()

std::vector< std::string > mtest::LogarithmicStrain1DBehaviourWrapper::expandInternalStateVariablesNames ( ) const
overridevirtual
Returns
expand the names of internal variables

Implements mtest::Behaviour.

◆ getBehaviourKinematic()

Kinematic mtest::LogarithmicStrain1DBehaviourWrapper::getBehaviourKinematic ( ) const
overridevirtual
Returns
the type of the behaviour

Implements mtest::Behaviour.

◆ getBehaviourType()

BehaviourType mtest::LogarithmicStrain1DBehaviourWrapper::getBehaviourType ( ) const
overridevirtual
Returns
the type of the behaviour

Implements mtest::Behaviour.

◆ getExternalStateVariablePosition()

unsigned short mtest::LogarithmicStrain1DBehaviourWrapper::getExternalStateVariablePosition ( const std::string & ) const
overridevirtual
Returns
the position of an external variable
Parameters
[in]n: external variable name

Implements mtest::Behaviour.

◆ getExternalStateVariablesNames()

std::vector< std::string > mtest::LogarithmicStrain1DBehaviourWrapper::getExternalStateVariablesNames ( ) const
overridevirtual
Returns
the names of external variables

Implements mtest::Behaviour.

◆ getExternalStateVariablesSize()

size_t mtest::LogarithmicStrain1DBehaviourWrapper::getExternalStateVariablesSize ( ) const
overridevirtual
Returns
the size of the array of exernal variables

Implements mtest::Behaviour.

◆ getExternalStateVariableType()

unsigned short mtest::LogarithmicStrain1DBehaviourWrapper::getExternalStateVariableType ( const std::string & ) const
overridevirtual
Returns
the type of an external variable

Implements mtest::Behaviour.

◆ getGradientComponentPosition()

unsigned short mtest::LogarithmicStrain1DBehaviourWrapper::getGradientComponentPosition ( const std::string & ) const
overridevirtual
Parameters
[in]c: component

Implements mtest::Behaviour.

◆ getGradientsComponents()

std::vector< std::string > mtest::LogarithmicStrain1DBehaviourWrapper::getGradientsComponents ( ) const
overridevirtual
Returns
the components of the driving variables

Implements mtest::Behaviour.

◆ getGradientsDefaultInitialValues()

void mtest::LogarithmicStrain1DBehaviourWrapper::getGradientsDefaultInitialValues ( tfel::math::vector< real > & ) const
overridevirtual
Parameters
[out]v: initial values of the driving variables
Note
: the vector shall have been correctly allocated

Implements mtest::Behaviour.

◆ getGradientsSize()

unsigned short mtest::LogarithmicStrain1DBehaviourWrapper::getGradientsSize ( ) const
overridevirtual
Returns
the size of a vector able to contain all the components of the driving variables

Implements mtest::Behaviour.

◆ getHypothesis()

Hypothesis mtest::LogarithmicStrain1DBehaviourWrapper::getHypothesis ( ) const
overridevirtual
Returns
the modelling hypothesis

Implements mtest::Behaviour.

◆ getInternalStateVariablePosition()

unsigned short mtest::LogarithmicStrain1DBehaviourWrapper::getInternalStateVariablePosition ( const std::string & ) const
overridevirtual
Returns
the position of an internal variable
Parameters
[in]n: internal variable name

Implements mtest::Behaviour.

◆ getInternalStateVariablesDescriptions()

std::vector< std::string > mtest::LogarithmicStrain1DBehaviourWrapper::getInternalStateVariablesDescriptions ( ) const
overridevirtual
Returns
the descriptions the internal variables

Implements mtest::Behaviour.

◆ getInternalStateVariablesNames()

std::vector< std::string > mtest::LogarithmicStrain1DBehaviourWrapper::getInternalStateVariablesNames ( ) const
overridevirtual
Returns
the names of internal variables

Implements mtest::Behaviour.

◆ getInternalStateVariablesSize()

size_t mtest::LogarithmicStrain1DBehaviourWrapper::getInternalStateVariablesSize ( ) const
overridevirtual
Returns
the size of the array of internal variables

Implements mtest::Behaviour.

◆ getInternalStateVariableType()

unsigned short mtest::LogarithmicStrain1DBehaviourWrapper::getInternalStateVariableType ( const std::string & ) const
overridevirtual
Returns
the type of an internal variable

Implements mtest::Behaviour.

◆ getRotationMatrix()

tfel::math::tmatrix< 3u, 3u, real > mtest::LogarithmicStrain1DBehaviourWrapper::getRotationMatrix ( const tfel::math::vector< real > & ,
const tfel::math::tmatrix< 3u, 3u, real > &  ) const
overridevirtual

compute the real rotation matrix

Parameters
[in]mp: material properties
[in]r: rotation matrix defined by the user
Note
this method is only meaningfull for the umat (Cast3M) interface

Implements mtest::Behaviour.

◆ getStensorComponentsSuffixes()

std::vector< std::string > mtest::LogarithmicStrain1DBehaviourWrapper::getStensorComponentsSuffixes ( ) const
overridevirtual
Returns
the components suffixes of a symmetric tensor

Implements mtest::Behaviour.

◆ getTangentOperatorArraySize()

size_t mtest::LogarithmicStrain1DBehaviourWrapper::getTangentOperatorArraySize ( ) const
overridevirtual
Returns
the size of the tangent operator used by MTest

Implements mtest::Behaviour.

◆ getTangentOperatorBlocks()

std::vector< std::pair< std::string, std::string > > mtest::LogarithmicStrain1DBehaviourWrapper::getTangentOperatorBlocks ( ) const
overridevirtual
Returns
the tangent operator blocks defined by the behaviour. Those blocks can be unused by MTest.

Implements mtest::Behaviour.

◆ getTensorComponentsSuffixes()

std::vector< std::string > mtest::LogarithmicStrain1DBehaviourWrapper::getTensorComponentsSuffixes ( ) const
overridevirtual
Returns
the components suffixes of a tensor

Implements mtest::Behaviour.

◆ getThermodynamicForceComponentPosition()

unsigned short mtest::LogarithmicStrain1DBehaviourWrapper::getThermodynamicForceComponentPosition ( const std::string & ) const
overridevirtual
Parameters
[in]c: component

Implements mtest::Behaviour.

◆ getThermodynamicForcesComponents()

std::vector< std::string > mtest::LogarithmicStrain1DBehaviourWrapper::getThermodynamicForcesComponents ( ) const
overridevirtual
Returns
the components of the thermodynamic forces

Implements mtest::Behaviour.

◆ getThermodynamicForcesSize()

unsigned short mtest::LogarithmicStrain1DBehaviourWrapper::getThermodynamicForcesSize ( ) const
overridevirtual
Returns
the size of a vector able to contain all the components of the thermodynamic forces

Implements mtest::Behaviour.

◆ getVectorComponentsSuffixes()

std::vector< std::string > mtest::LogarithmicStrain1DBehaviourWrapper::getVectorComponentsSuffixes ( ) const
overridevirtual
Returns
the components suffixes of a vector

Implements mtest::Behaviour.

◆ integrate()

std::pair< bool, real > mtest::LogarithmicStrain1DBehaviourWrapper::integrate ( CurrentState & ,
BehaviourWorkSpace & ,
const real ,
const StiffnessMatrixType  ) const
overridevirtual

integrate the mechanical behaviour over the time step

Returns
a pair. The first member is true if the integration was successfull, false otherwise. The second member contains a time step scaling factor.
Parameters
[out/in]s : current state
[out]wk: behaviour workspace
[in]dt: time increment
[in]ktype: type of the stiffness matrix

Implements mtest::Behaviour.


The documentation for this struct was generated from the following file: