tfel
Loading...
Searching...
No Matches
tfel::material::MechanicalBehaviour< btype, H, NumType, use_qt > Class Template Referenceabstract

This class declares an interface for mechanical behaviours. More...

#include </home/runner/work/tfel/tfel/include/TFEL/Material/MechanicalBehaviour.hxx>

Inheritance diagram for tfel::material::MechanicalBehaviour< btype, H, NumType, use_qt >:
tfel::material::TangentOperatorTraits< btype > tfel::material::MechanicalBehaviourBase

Public Types

using SMFlag = typename TangentOperatorTraits<btype>::SMFlag
 available tangent operator
using TFELTypes = tfel::config::Types<N, NumType, use_qt>
 a simple alias
Public Types inherited from tfel::material::TangentOperatorTraits< btype >
enum  SMFlag { STANDARDTANGENTOPERATOR }
Public Types inherited from tfel::material::MechanicalBehaviourBase
enum  BehaviourType { GENERALBEHAVIOUR = 0 , STANDARDSTRAINBASEDBEHAVIOUR = 1 , STANDARDFINITESTRAINBEHAVIOUR = 2 , COHESIVEZONEMODEL = 3 }
enum  Kinematic {
  UNDEFINEDKINEMATIC = 0 , SMALLSTRAINKINEMATIC = 1 , COHESIVEZONEKINEMATIC = 2 , FINITESTRAINKINEMATIC_F_CAUCHY = 3 ,
  FINITESTRAINKINEMATIC_ETO_PK1 = 4
}
enum  ExitStatus { FAILURE = 0 , SUCCESS = 1 , UNRELIABLE_RESULTS }
 return values of the integrate method
enum  SMType {
  ELASTIC , SECANTOPERATOR , TANGENTOPERATOR , CONSISTENTTANGENTOPERATOR ,
  NOSTIFFNESSREQUESTED
}
 list of possible tangent operator type

Public Member Functions

virtual TFEL_HOST_DEVICE IntegrationResult computePredictionOperator (const SMFlag, const SMType)=0
 only compute a prediction stiffness matrix. The result shall be retrieved through the "getTangeOperator" method
virtual TFEL_HOST_DEVICE TFELTypes::real getMinimalTimeStepScalingFactor () const =0
virtual TFEL_HOST_DEVICE std::pair< bool, typename TFELTypes::real > computeAPrioriTimeStepScalingFactor (const typename TFELTypes::real) const =0
virtual TFEL_HOST_DEVICE IntegrationResult integrate (const SMFlag, const SMType)=0
 determine the value of the internal state variables at the end of the time step
virtual TFEL_HOST_DEVICE std::pair< bool, typename TFELTypes::real > computeAPosterioriTimeStepScalingFactor (const typename TFELTypes::real) const =0
virtual ~MechanicalBehaviour () noexcept=default
 destructor

Static Public Attributes

static constexpr unsigned short N
 dimension of the space for the the given modelling hypothesis

Detailed Description

template<MechanicalBehaviourBase::BehaviourType btype, ModellingHypothesis::Hypothesis H, typename NumType, bool use_qt>
class tfel::material::MechanicalBehaviour< btype, H, NumType, use_qt >

This class declares an interface for mechanical behaviours.

Parameters
H,modellinghypothesis
NumType,numericaltype.
booluse_qt, says if one shall use quantities.
Author
Thomas Helfer
Date
28/07/2006

Member Function Documentation

◆ computeAPosterioriTimeStepScalingFactor()

template<MechanicalBehaviourBase::BehaviourType btype, ModellingHypothesis::Hypothesis H, typename NumType, bool use_qt>
virtual TFEL_HOST_DEVICE std::pair< bool, typename TFELTypes::real > tfel::material::MechanicalBehaviour< btype, H, NumType, use_qt >::computeAPosterioriTimeStepScalingFactor ( const typename TFELTypes::real ) const
pure virtual
Parameters
[in]dtcurrent time step scaling factor
Returns
a pair containing:
  • a boolean syaing if the behaviour integration shall be considered a success or a failure
  • a scaling factor that can be used to:
    • increase the time step if the integration was successfull
    • decrease the time step if the integration failed or if the results were not reliable (time step too large).

Behaviours which are not able to give such a time step scaling factor may return the NumType(1) value.

◆ computeAPrioriTimeStepScalingFactor()

template<MechanicalBehaviourBase::BehaviourType btype, ModellingHypothesis::Hypothesis H, typename NumType, bool use_qt>
virtual TFEL_HOST_DEVICE std::pair< bool, typename TFELTypes::real > tfel::material::MechanicalBehaviour< btype, H, NumType, use_qt >::computeAPrioriTimeStepScalingFactor ( const typename TFELTypes::real ) const
pure virtual
Parameters
[in]dttime step scaling factor proposed by the calling code
Returns
a pair containing:
  • a boolean syaing if the behaviour integration shall be performed
  • a scaling factor that can be used to:
    • increase the time step if the integration was successfull
    • decrease the time step if the integration failed or if the results were not reliable (time step too large).

Interfaces to behaviour law shall use the hasAPrioriTimeStepScalingFactor member of the specialisation of the traits class MechanicalBehaviourTraits generated by MFront to know if the behaviour is able to give such a time step scaling factor. If not, behaviours may return the NumType(1) value.

◆ computePredictionOperator()

template<MechanicalBehaviourBase::BehaviourType btype, ModellingHypothesis::Hypothesis H, typename NumType, bool use_qt>
virtual TFEL_HOST_DEVICE IntegrationResult tfel::material::MechanicalBehaviour< btype, H, NumType, use_qt >::computePredictionOperator ( const SMFlag ,
const SMType  )
pure virtual

only compute a prediction stiffness matrix. The result shall be retrieved through the "getTangeOperator" method

Parameters
[in]smflag: expected tangent operator
[in]smt: expected tangent operator
Returns
SUCCESS if the integration is successfull.

◆ getMinimalTimeStepScalingFactor()

template<MechanicalBehaviourBase::BehaviourType btype, ModellingHypothesis::Hypothesis H, typename NumType, bool use_qt>
virtual TFEL_HOST_DEVICE TFELTypes::real tfel::material::MechanicalBehaviour< btype, H, NumType, use_qt >::getMinimalTimeStepScalingFactor ( ) const
pure virtual
Returns
the minimal scaling factor to be used. This scaling factor is used to decrease the time step if the integration failed.

◆ integrate()

template<MechanicalBehaviourBase::BehaviourType btype, ModellingHypothesis::Hypothesis H, typename NumType, bool use_qt>
virtual TFEL_HOST_DEVICE IntegrationResult tfel::material::MechanicalBehaviour< btype, H, NumType, use_qt >::integrate ( const SMFlag ,
const SMType  )
pure virtual

determine the value of the internal state variables at the end of the time step

Parameters
[in]smflag: expected tangent operator
[in]smt: expected tangent operator
Returns
SUCCESS if the integration is successfull.

Member Data Documentation

◆ N

template<MechanicalBehaviourBase::BehaviourType btype, ModellingHypothesis::Hypothesis H, typename NumType, bool use_qt>
unsigned short tfel::material::MechanicalBehaviour< btype, H, NumType, use_qt >::N
staticconstexpr
Initial value:

dimension of the space for the the given modelling hypothesis


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