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

a class to handle mechanical beheaviours written using the umat interface of the Cast3M finite element solver for Cast3M versions greater than 2021 More...

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

Inheritance diagram for mtest::Castem21FiniteStrainBehaviour:
mtest::CastemFiniteStrainBehaviour mtest::CastemStandardBehaviour mtest::StandardBehaviourBase mtest::Behaviour mtest::StandardBehaviourDescription tfel::system::ExternalBehaviourDescription tfel::system::ExternalMaterialKnowledgeDescription

Public Member Functions

 ~Castem21FiniteStrainBehaviour () override
 destructor
 CastemFiniteStrainBehaviour (const Hypothesis, const std::string &, const std::string &)
 CastemFiniteStrainBehaviour (const StandardBehaviourDescription &)
Public Member Functions inherited from mtest::CastemFiniteStrainBehaviour
 CastemFiniteStrainBehaviour (const Hypothesis, const std::string &, const std::string &)
 CastemFiniteStrainBehaviour (const StandardBehaviourDescription &)
void getGradientsDefaultInitialValues (tfel::math::vector< real > &) const override
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
const char * getBehaviourNameForUMATFunctionCall () const override
 ~CastemFiniteStrainBehaviour () override
 destructor
Public Member Functions inherited from mtest::CastemStandardBehaviour
 CastemStandardBehaviour (const Hypothesis, const std::string &, const std::string &)
 constructor
 CastemStandardBehaviour (const StandardBehaviourDescription &)
 constructor
StiffnessMatrixType getDefaultStiffnessMatrixType () 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
std::vector< std::string > getOptionalMaterialProperties () const override
void setOptionalMaterialPropertiesDefaultValues (EvolutionManager &, const EvolutionManager &) const override
 This method solves two issues:
 ~CastemStandardBehaviour () override
 destructor
Public Member Functions inherited from mtest::StandardBehaviourBase
 StandardBehaviourBase (const Hypothesis, const std::string &, const std::string &)
 StandardBehaviourBase (const StandardBehaviourDescription &)
void allocateCurrentState (CurrentState &) const override
 allocate current state
std::string getBehaviourName () const override
Hypothesis getHypothesis () const override
BehaviourType getBehaviourType () const override
Kinematic getBehaviourKinematic () const override
unsigned short getGradientsSize () 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
unsigned short getSymmetryType () const override
size_t getTangentOperatorArraySize () const override
std::vector< std::pair< std::string, std::string > > getTangentOperatorBlocks () const override
std::vector< std::string > getMaterialPropertiesNames () const override
size_t getMaterialPropertiesSize () 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
size_t getExternalStateVariablesSize () const override
std::vector< std::string > expandExternalStateVariablesNames () const override
unsigned short getExternalStateVariableType (const std::string &) const override
unsigned short getExternalStateVariablePosition (const std::string &) const override
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
std::vector< std::string > getOptionalMaterialProperties () const override
void setOptionalMaterialPropertiesDefaultValues (EvolutionManager &, const EvolutionManager &) const override
 This method solves two issues:
bool doPackagingStep (CurrentState &, BehaviourWorkSpace &) const override
 execute the packaging step. This victious step is done at the beginning of the computation.
 ~StandardBehaviourBase () override
 destructor
Public Member Functions inherited from mtest::Behaviour
virtual ~Behaviour ()
 destructor
Public Member Functions inherited from mtest::StandardBehaviourDescription
 StandardBehaviourDescription (const std::string &, const std::string &, const std::string &)
 StandardBehaviourDescription (StandardBehaviourDescription &&) noexcept
 StandardBehaviourDescription (const StandardBehaviourDescription &)
StandardBehaviourDescription & operator= (StandardBehaviourDescription &&) noexcept
StandardBehaviourDescription & operator= (const StandardBehaviourDescription &)
Public Member Functions inherited from tfel::system::ExternalBehaviourDescription
 ExternalBehaviourDescription (const std::string &, const std::string &, const std::string &)
 ExternalBehaviourDescription ()
 default constructor
 ExternalBehaviourDescription (ExternalBehaviourDescription &&) noexcept
 move constructor
 ExternalBehaviourDescription (const ExternalBehaviourDescription &)
 copy constructor
ExternalBehaviourDescription & operator= (ExternalBehaviourDescription &&) noexcept
 move assignement
ExternalBehaviourDescription & operator= (const ExternalBehaviourDescription &)
 standard assignement
 ~ExternalBehaviourDescription ()
 destructor
double getRealParameterDefaultValue (const std::string &) const
 get the default value of a double parameter
int getIntegerParameterDefaultValue (const std::string &) const
 get the default value of an integer parameter
unsigned short getUnsignedShortParameterDefaultValue (const std::string &) const
 get the default value of an unsigned short parameter
bool hasBounds (const std::string &) const
bool hasLowerBound (const std::string &) const
bool hasUpperBound (const std::string &) const
long double getLowerBound (const std::string &) const
long double getUpperBound (const std::string &) const
bool hasPhysicalBounds (const std::string &) const
bool hasLowerPhysicalBound (const std::string &) const
bool hasUpperPhysicalBound (const std::string &) const
long double getLowerPhysicalBound (const std::string &) const
long double getUpperPhysicalBound (const std::string &) const
Public Member Functions inherited from tfel::system::ExternalMaterialKnowledgeDescription
 ExternalMaterialKnowledgeDescription (const std::string &, const std::string &)
 ExternalMaterialKnowledgeDescription ()
 default constructor
 ExternalMaterialKnowledgeDescription (ExternalMaterialKnowledgeDescription &&) noexcept
 move constructor
 ExternalMaterialKnowledgeDescription (const ExternalMaterialKnowledgeDescription &)
 move constructor
ExternalMaterialKnowledgeDescription & operator= (ExternalMaterialKnowledgeDescription &&) noexcept
 move assignement
ExternalMaterialKnowledgeDescription & operator= (const ExternalMaterialKnowledgeDescription &)
 standard assignement
 ~ExternalMaterialKnowledgeDescription ()
 destructor

Protected Member Functions

CastemInterfaceVersion getCastemInterfaceVersion () const override
Protected Member Functions inherited from mtest::CastemFiniteStrainBehaviour
virtual void computeElasticStiffness (tfel::math::matrix< real > &, const tfel::math::vector< real > &, const tfel::math::tmatrix< 3u, 3u, real > &) const
 compute the elastic stiffness
Protected Member Functions inherited from mtest::CastemStandardBehaviour
virtual void buildMaterialProperties (BehaviourWorkSpace &, const CurrentState &) const
 build the appropriate material properties for the modelling hypothesis from the ones declared in the current state and store them in wk.mps. This method has been introduced to properly handle the plane stress hypothesis if this hypothesis is handled by the Cast3M interface and not the the behaviour directly.
Protected Member Functions inherited from mtest::StandardBehaviourBase
void initializeTangentOperator (tfel::math::matrix< real > &, const StiffnessMatrixType, const bool) const
 initialize the first value of the tangent operator

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::StandardBehaviourBase
static std::vector< std::string > getStensorComponentsSuffixes (const Hypothesis)
static std::vector< std::string > getVectorComponentsSuffixes (const Hypothesis)
static std::vector< std::string > getTensorComponentsSuffixes (const Hypothesis)
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
Public Attributes inherited from tfel::system::ExternalBehaviourDescription
std::string behaviour
 name of the behavior
std::string hypothesis
 name of the hypothesis
std::vector< std::pair< std::string, std::string > > tangent_operator_blocks
 list of tangent operator blocks
std::vector< std::string > gnames
 names of the gradients
std::vector< std::string > dvnames
 names of the gradients (provided for backward compatibility, gradients were initially called driving variables)
std::vector< int > gtypes
 types of the gradients (reference provided for backward compatibility, gradients were initially called driving variables)
std::vector< int > dvtypes
 types of the gradients (copy of dvtypes)
std::vector< std::string > thnames
 names of the thermodynamic forces
std::vector< int > thtypes
 types of the thermodynamic forces
std::vector< std::string > elastic_material_properties_epts
 names of entry points associated with elastic material properties exported by the behaviour, if any. This is currently only supported by a few interfaces (Cyrano, Cast3M).
std::vector< std::string > linear_thermal_expansion_coefficients_epts
 names of entry points associated with linear thermal expansion coefficients properties exported by the behaviour, if any. This is currently only supported by a few interfaces (Cyrano, Cast3M).
std::vector< std::string > mpnames
 names of the material properties that must be given to the behaviour by the calling solver
std::vector< std::string > ivnames
 names of the internal state variables
std::vector< int > ivtypes
 types of the internal state variables
std::vector< std::string > evnames
 names of the external state variables
std::vector< int > evtypes
 types of the external state variables
std::vector< std::string > pnames
 names of the parameters
std::vector< std::string > ipnames
 names of the integer parameters
std::vector< std::string > upnames
 names of the unsigned short parameters
unsigned short btype = 0
 behaviour type 0 : general behaviour 1 : small strain behaviour 2 : finite strain behaviour 3 : cohesive zone model
unsigned short kinematic = 0
 behaviour kinematic 0 : undefined kinematic 1 : small strain kinematic 2 : cohesive zone model kinematic 3 : standard finite strain kinematic (F-Cauchy) 4 : PTest,Alcyone, Cyrano 1D finite strain kinematic (eto-PK1)
unsigned short stype = 0
 symmetry type:
unsigned short etype = 0
 elastic symmetry type:
bool computesInternalEnergy = false
 if true, the behaviour may compute the internal energy
bool computesDissipatedEnergy = false
 if true, the behaviour may compute the dissipated energy
bool isUPUIR = false
 If isUPUIR is true, the behaviour is usable in purely implicit resolution.
bool requiresStiffnessTensor = false
 If requiresStiffnessTensor is true, the caller must provide the stiffness tensor.
bool requiresThermalExpansionCoefficientTensor = false
 If requiresThermalExpansionCoefficientTensor is true, the caller must provide the thermal expansion coefficients tensor.
bool hasTemperatureBeenRemovedFromExternalStateVariables = true
 a boolean stating if the temperature was removed from the list of declared external state variables.
Public Attributes inherited from tfel::system::ExternalMaterialKnowledgeDescription
std::string library
 name of the library
std::string entry_point
 name of the entry point
std::string tfel_version
 version of TFEL used to generate the entry point
std::string unit_system
 unit system used by the entry point (can be empty if no unit system has been specified)
std::string build_id
 build identifier
std::string source
 MFront source file.
std::string mfront_interface
 name of the interface used to generate the entry point
std::string material
 name of the material
std::string author
 author of the implementation
std::string date
 date of the implementation
std::string description
 description of the material knowledge
Protected Attributes inherited from mtest::CastemStandardBehaviour
bool usesGenericPlaneStressAlgorithm = false
tfel::system::CastemFctPtr fct
 the umat fonction

Detailed Description

a class to handle mechanical beheaviours written using the umat interface of the Cast3M finite element solver for Cast3M versions greater than 2021

Member Function Documentation

◆ CastemFiniteStrainBehaviour() [1/2]

mtest::CastemFiniteStrainBehaviour::CastemFiniteStrainBehaviour ( const Hypothesis ,
const std::string & ,
const std::string &  )
Parameters
[in]h: modelling hypothesis
[in]l: library name
[in]b: behaviour name

◆ CastemFiniteStrainBehaviour() [2/2]

Parameters
[in]umbbehaviour description

◆ getCastemInterfaceVersion()

CastemInterfaceVersion mtest::Castem21FiniteStrainBehaviour::getCastemInterfaceVersion ( ) const
overrideprotectedvirtual
Returns
the version of the Cast3M interface

Reimplemented from mtest::CastemStandardBehaviour.


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