tfel
Loading...
Searching...
No Matches
tfel::system::ExternalBehaviourDescription Struct Reference

a structure containing the information that could be retrieved by the ExternalLibraryManger class about a given behaviour for a given hypothesis. More...

#include </home/runner/work/tfel/tfel/include/TFEL/System/ExternalBehaviourDescription.hxx>

Inheritance diagram for tfel::system::ExternalBehaviourDescription:
tfel::system::ExternalMaterialKnowledgeDescription mtest::StandardBehaviourDescription mtest::StandardBehaviourBase mtest::AbaqusExplicitBehaviour mtest::AbaqusStandardBehaviour mtest::AnsysStandardBehaviour mtest::AsterCohesiveZoneModel mtest::AsterStandardBehaviour mtest::CalculiXStandardBehaviour mtest::CastemCohesiveZoneModel mtest::CastemModel mtest::CastemStandardBehaviour mtest::CyranoBehaviour mtest::DianaFEASmallStrainBehaviour mtest::GenericBehaviour

Public Member Functions

 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

Public Attributes

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 structure containing the information that could be retrieved by the ExternalLibraryManger class about a given behaviour for a given hypothesis.

Constructor & Destructor Documentation

◆ ExternalBehaviourDescription()

tfel::system::ExternalBehaviourDescription::ExternalBehaviourDescription ( const std::string & ,
const std::string & ,
const std::string &  )
Parameters
[in]l: library
[in]f: function
[in]h: hypothesis

Member Function Documentation

◆ getIntegerParameterDefaultValue()

int tfel::system::ExternalBehaviourDescription::getIntegerParameterDefaultValue ( const std::string & ) const
nodiscard

get the default value of an integer parameter

Parameters
[in]pparameter name

◆ getLowerBound()

long double tfel::system::ExternalBehaviourDescription::getLowerBound ( const std::string & ) const
nodiscard
Returns
the lower bound of the given variable
Parameters
[in]vvariable name

◆ getLowerPhysicalBound()

long double tfel::system::ExternalBehaviourDescription::getLowerPhysicalBound ( const std::string & ) const
nodiscard
Returns
the lower bound of the given variable
Parameters
[in]vvariable name

◆ getRealParameterDefaultValue()

double tfel::system::ExternalBehaviourDescription::getRealParameterDefaultValue ( const std::string & ) const
nodiscard

get the default value of a double parameter

Parameters
[in]pparameter name

◆ getUnsignedShortParameterDefaultValue()

unsigned short tfel::system::ExternalBehaviourDescription::getUnsignedShortParameterDefaultValue ( const std::string & ) const
nodiscard

get the default value of an unsigned short parameter

Parameters
[in]pparameter name

◆ getUpperBound()

long double tfel::system::ExternalBehaviourDescription::getUpperBound ( const std::string & ) const
nodiscard
Returns
the upper bound of the given variable
Parameters
[in]vvariable name

◆ getUpperPhysicalBound()

long double tfel::system::ExternalBehaviourDescription::getUpperPhysicalBound ( const std::string & ) const
nodiscard
Returns
the upper bound of the given variable
Parameters
[in]vvariable name

◆ hasBounds()

bool tfel::system::ExternalBehaviourDescription::hasBounds ( const std::string & ) const
nodiscard
Returns
true if the given variable has bounds
Parameters
[in]vvariable name

◆ hasLowerBound()

bool tfel::system::ExternalBehaviourDescription::hasLowerBound ( const std::string & ) const
nodiscard
Returns
true if the given variable has a lower bound
Parameters
[in]vvariable name

◆ hasLowerPhysicalBound()

bool tfel::system::ExternalBehaviourDescription::hasLowerPhysicalBound ( const std::string & ) const
nodiscard
Returns
true if the given variable has a lower physical bound
Parameters
[in]vvariable name

◆ hasPhysicalBounds()

bool tfel::system::ExternalBehaviourDescription::hasPhysicalBounds ( const std::string & ) const
nodiscard
Returns
true if the given variable has bounds
Parameters
[in]vvariable name

◆ hasUpperBound()

bool tfel::system::ExternalBehaviourDescription::hasUpperBound ( const std::string & ) const
nodiscard
Returns
true if the given variable has a upper bound
Parameters
[in]vvariable name

◆ hasUpperPhysicalBound()

bool tfel::system::ExternalBehaviourDescription::hasUpperPhysicalBound ( const std::string & ) const
nodiscard
Returns
true if the given variable has a upper physical bound
Parameters
[in]vvariable name

Member Data Documentation

◆ elastic_material_properties_epts

std::vector<std::string> tfel::system::ExternalBehaviourDescription::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).

The size of this member is either:

  • 0: which means that the behaviour does not export its elastic properties.
  • 2, which means that the elastic behaviour is isotropic.
  • 9, which means that the elastic behaviour is orthotropic.

◆ etype

unsigned short tfel::system::ExternalBehaviourDescription::etype = 0

elastic symmetry type:

  • If etype is equal to 0, the behaviour elastic behaviour is isotropic.
  • If etype is equal to 1, the behaviour elastic behaviour is orthotropic.

◆ evtypes

std::vector<int> tfel::system::ExternalBehaviourDescription::evtypes

types of the external state variables

  • 0 means that the variable is a scalar
  • 1 means that the variable is a symmetric tensor
  • 2 means that the variable is a vector
  • 3 means that the variable is an unsymmetric tensor

◆ gtypes

std::vector<int> tfel::system::ExternalBehaviourDescription::gtypes

types of the gradients (reference provided for backward compatibility, gradients were initially called driving variables)

Note
A type is associated to an integer as follows:
  • 0: scalar
  • 1: symmetric tensor
  • 2: vector (size of the space dimension)
  • 3: unsymmetric tensor

◆ ivtypes

std::vector<int> tfel::system::ExternalBehaviourDescription::ivtypes

types of the internal state variables

  • 0 means that the variable is a scalar
  • 1 means that the variable is a symmetric tensor
  • 2 means that the variable is a vector
  • 3 means that the variable is an unsymmetric tensor

◆ linear_thermal_expansion_coefficients_epts

std::vector<std::string> tfel::system::ExternalBehaviourDescription::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).

The size of this member is either:

  • 0: which means that the behaviour does not export its elastic properties.
  • 1, which means that the thermal expansion is isotropic.
  • 3, which means that the thermal expansion is orthotropic.

◆ stype

unsigned short tfel::system::ExternalBehaviourDescription::stype = 0

symmetry type:

  • If stype is equal to 0, the behaviour is isotropic.
  • If stype is equal to 1, the behaviour is orthotropic.

◆ tangent_operator_blocks

std::vector<std::pair<std::string, std::string> > tfel::system::ExternalBehaviourDescription::tangent_operator_blocks

list of tangent operator blocks

Note
this entry is most of the time empty for finite strain behaviours, because the tangent operators used by most interfaces are not directly the derivative of the stress with respect to the deformation gradient.

◆ thtypes

std::vector<int> tfel::system::ExternalBehaviourDescription::thtypes

types of the thermodynamic forces

Note
A type is associated to an integer as follows:
  • 0: scalar
  • 1: symmetric tensor
  • 2: vector (size of the space dimension)
  • 3: unsymmetric tensor

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