tfel
Loading...
Searching...
No Matches
mtest::AbaqusStandardBehaviour Struct Referenceabstract

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

Inheritance diagram for mtest::AbaqusStandardBehaviour:
mtest::StandardBehaviourBase mtest::Behaviour mtest::StandardBehaviourDescription tfel::system::ExternalBehaviourDescription tfel::system::ExternalMaterialKnowledgeDescription mtest::AbaqusFiniteStrainBehaviour mtest::AbaqusSmallStrainBehaviour

Public Member Functions

 AbaqusStandardBehaviour (const Hypothesis, const std::string &, const std::string &)
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
StiffnessMatrixType getDefaultStiffnessMatrixType () const override
std::pair< bool, real > computePredictionOperator (BehaviourWorkSpace &, const CurrentState &, const StiffnessMatrixType) const override
 integrate the mechanical behaviour over the time step
std::pair< bool, real > integrate (CurrentState &, BehaviourWorkSpace &, const real, const StiffnessMatrixType) const override
 integrate the mechanical behaviour over the time step
void allocateWorkSpace (BehaviourWorkSpace &) const override
 allocate internal workspace
 ~AbaqusStandardBehaviour () 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 void getGradientsDefaultInitialValues (tfel::math::vector< real > &) const =0
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

Static Public Member Functions

static std::string getHypothesisSuffix (const Hypothesis)
static std::string extractBehaviourName (const std::string &, const Hypothesis)
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

Protected Member Functions

virtual std::pair< bool, real > call_behaviour (tfel::math::matrix< real > &, CurrentState &, BehaviourWorkSpace &, const real, const StiffnessMatrixType, const bool) const =0
 call the mechanical behaviour
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

Protected Attributes

tfel::system::AbaqusFctPtr fct
 the abaqus fonction
unsigned short omp = 0u
 orthotropy management policy

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
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

Detailed Description

A class to handle mechanical beheaviours written using the abaqus interface

Constructor & Destructor Documentation

◆ AbaqusStandardBehaviour()

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

Member Function Documentation

◆ allocateWorkSpace()

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

allocate internal workspace

Parameters
[out]wk: behaviour workspace

Implements mtest::Behaviour.

◆ call_behaviour()

virtual std::pair< bool, real > mtest::AbaqusStandardBehaviour::call_behaviour ( tfel::math::matrix< real > & ,
CurrentState & ,
BehaviourWorkSpace & ,
const real ,
const StiffnessMatrixType ,
const bool  ) const
protectedpure virtual

call the mechanical behaviour

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]Kt: tangent operator
[out/in]s : current state
[out]wk: behaviour workspace
[in]dt: time increment
[in]ktype: type of the stiffness matrix
[in]b: if true, integrate the behaviour over the time step, if false compute a prediction of the stiffness matrix

Implemented in mtest::AbaqusFiniteStrainBehaviour, and mtest::AbaqusSmallStrainBehaviour.

◆ computePredictionOperator()

std::pair< bool, real > mtest::AbaqusStandardBehaviour::computePredictionOperator ( BehaviourWorkSpace & ,
const CurrentState & ,
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]wk: behaviour workspace
[in]s: current state
[in]ktype: type of the stiffness matrix

Implements mtest::Behaviour.

◆ extractBehaviourName()

std::string mtest::AbaqusStandardBehaviour::extractBehaviourName ( const std::string & ,
const Hypothesis  )
static
Returns
the name of the behaviour by stripping the function name from the suffix describing the modelling hypothesis
Parameters
[in]h: modelling hypothesis
[in]f: function implementation the behaviour

◆ getDefaultStiffnessMatrixType()

StiffnessMatrixType mtest::AbaqusStandardBehaviour::getDefaultStiffnessMatrixType ( ) const
overridevirtual
Returns
the default type of stiffness matrix used by the behaviour

Implements mtest::Behaviour.

◆ getHypothesisSuffix()

std::string mtest::AbaqusStandardBehaviour::getHypothesisSuffix ( const Hypothesis )
static
Returns
the suffix associated with a modelling hypothesis
Parameters
[in]hhypothesis

◆ getRotationMatrix()

tfel::math::tmatrix< 3u, 3u, real > mtest::AbaqusStandardBehaviour::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.

◆ integrate()

std::pair< bool, real > mtest::AbaqusStandardBehaviour::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
[in,out]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: