tfel
Loading...
Searching...
No Matches
mfront::BehaviourData Struct Reference

#include </home/runner/work/tfel/tfel/mfront/include/MFront/BehaviourData.hxx>

Inheritance diagram for mfront::BehaviourData:
mfront::MaterialKnowledgeDescription mfront::SupportedTypes

Classes

struct  SFED_ESV
struct  NullExpansion
 a placeholder for null expansion More...
struct  VolumeSwellingStressFreeExpansion
 a simple wrapper around an isotropic swelling model given by a volume change More...
struct  AxialGrowth
 a simple wrapper around a model describing an axial growth. More...
struct  Relocation
 a simple wrapper around a model describing fuel relocation. More...
struct  IsotropicStressFreeExpansion
 a brief structure describing a stress free expansion du to an isotropic swelling given by a linear change in each material geometry: More...
struct  OrthotropicStressFreeExpansion
 a brief structure describing a stress free expansion du to an orthotropic swelling More...
struct  OrthotropicStressFreeExpansionII
 a brief structure describing a stress free expansion du to an orthotropic swelling described by an array of external state variables More...

Public Types

enum  Mode { CREATE , CREATEORREPLACE , CREATEORAPPEND , CREATEBUTDONTREPLACE }
enum  Position { AT_BEGINNING , BODY , AT_END }
 position of the inserted code
enum  RegistrationStatus { UNREGISTRED , FORCEREGISTRATION , ALREADYREGISTRED }
using ModellingHypothesis = tfel::material::ModellingHypothesis
 a simple alias
using Hypothesis = ModellingHypothesis::Hypothesis
 a simple alias
using StressFreeExpansionHandlerTypes
using StressFreeExpansionHandler
using StressFreeExpansionDescriptionTypes
 list of a stress free expansion descriptions
using StressFreeExpansionDescription
 description of a stress free expansion

Public Member Functions

 BehaviourData ()
 constructor
 BehaviourData (const BehaviourData &)
 copy constructor
 BehaviourData (BehaviourData &&)=delete
 move constructor (disabled)
BehaviourData & operator= (const BehaviourData &)=delete
 assignement operator (disabled)
BehaviourData & operator= (BehaviourData &&)=delete
 move assignement operator (disabled)
void overrideByAParameter (const std::string &, const double)
 specify that the given variable must be overriden by a parameter. This must be called before the declaration of the variable.
std::map< std::string, double > getOverridenParameters () const
void checkAndCompletePhysicalBoundsDeclaration (const std::string_view)
 check and complete the physical bounds of variables
bool isUsableInPurelyImplicitResolution () const
void setUsableInPurelyImplicitResolution (const bool)
 set if this behaviour can be used in a purely implicit resolution.
void declareExternalStateVariableProbablyUnusableInPurelyImplicitResolution (const std::string &)
 declares an external state variable to be probably unusable in a purely implicit resolution. This means that its increment is used somewhere.
const std::set< std::string > & getExternalStateVariablesDeclaredProbablyUnusableInPurelyImplicitResolution () const
 get all the external state variables found to be probably unusable in a purely implicit resolution.
const VariableDescriptionContainer & getVariables (const std::string &) const
const VariableDescriptionContainer & getMaterialProperties () const
const VariableDescriptionContainer & getPersistentVariables () const
const VariableDescriptionContainer & getIntegrationVariables () const
const VariableDescriptionContainer & getStateVariables () const
const VariableDescriptionContainer & getAuxiliaryStateVariables () const
const VariableDescriptionContainer & getInitializeFunctionVariables () const
const VariableDescriptionContainer & getPostProcessingVariables () const
const VariableDescriptionContainer & getExternalStateVariables () const
const VariableDescriptionContainer & getLocalVariables () const
const std::vector< BehaviourVariableDescription > & getBehaviourVariables () const
const BehaviourVariableDescription & getBehaviourVariableFactory (const std::string &) const
const std::vector< BehaviourVariableDescription > & getBehaviourVariableFactories () const
const VariableDescriptionContainer & getParameters () const
const VariableDescription & getPersistentVariableDescription (const std::string &) const
const VariableDescription & getPersistentVariableDescriptionByExternalName (const std::string &) const
const VariableDescription & getIntegrationVariableDescription (const std::string &) const
const VariableDescription & getIntegrationVariableDescriptionByExternalName (const std::string &) const
const VariableDescription & getStateVariableDescription (const std::string &) const
const VariableDescription & getStateVariableDescriptionByExternalName (const std::string &) const
const VariableDescription & getAuxiliaryStateVariableDescription (const std::string &) const
const VariableDescription & getInitializeFunctionVariableDescription (const std::string &) const
const VariableDescription & getPostProcessingVariableDescription (const std::string &) const
const VariableDescription & getExternalStateVariableDescription (const std::string &) const
const VariableDescription & getExternalStateVariableDescriptionByExternalName (const std::string &) const
const VariableDescription & getParameterDescription (const std::string &) const
const VariableDescription & getParameterDescriptionByExternalName (const std::string &) const
const VariableDescription & getAuxiliaryStateVariableDescriptionByExternalName (const std::string &) const
const StaticVariableDescription & getStaticVariableDescription (const std::string &) const
const VariableDescription & getInitializeFunctionVariableDescriptionByExternalName (const std::string &) const
const VariableDescription & getPostProcessingVariableDescriptionByExternalName (const std::string &) const
const VariableDescription & getVariableDescription (const std::string &) const
const VariableDescription & getVariableDescriptionByExternalName (const std::string &) const
void setVariableAttribute (const std::string &, const std::string &, const VariableAttribute &, const bool)
 assign an attribute to variable
bool isStressFreeExansionAnisotropic () const
const std::vector< StressFreeExpansionDescription > & getStressFreeExpansionDescriptions () const
bool isMemberUsedInCodeBlocks (const std::string &) const
bool isMaterialPropertyName (const std::string &) const
bool isLocalVariableName (const std::string &) const
bool isPersistentVariableName (const std::string &) const
bool isIntegrationVariableName (const std::string &) const
bool isIntegrationVariableIncrementName (const std::string &) const
bool isStateVariableName (const std::string &) const
bool isStateVariableIncrementName (const std::string &) const
bool isAuxiliaryStateVariableName (const std::string &) const
bool isInitializeFunctionVariableName (const std::string &) const
bool isPostProcessingVariableName (const std::string &) const
bool isExternalStateVariableName (const std::string &) const
bool isExternalStateVariableIncrementName (const std::string &) const
bool isParameterName (const std::string &) const
bool isStaticVariableName (const std::string &n) const
const StaticVariableDescriptionContainer & getStaticVariables () const
void addMaterialProperty (const VariableDescription &, const RegistrationStatus)
 add a material property
void addIntegrationVariable (const VariableDescription &, const RegistrationStatus)
 add a integration variable
void addStateVariable (const VariableDescription &, const RegistrationStatus)
 add a state variable
void addAuxiliaryStateVariable (const VariableDescription &, const RegistrationStatus)
 add an auxiliary state variable
void addInitializeFunctionVariable (const VariableDescription &)
 add an initialize variable
void addPostProcessingVariable (const VariableDescription &)
 add a post-processing variable
void addExternalStateVariable (const VariableDescription &, const RegistrationStatus)
 add an external state variable
void addBehaviourVariable (const BehaviourVariableDescription &)
 add a behaviour variable
void addBehaviourVariableFactory (const BehaviourVariableDescription &)
 add a behaviour variable factory
void addLocalVariable (const VariableDescription &, const RegistrationStatus)
 add a : variable
void addParameter (const VariableDescription &, const RegistrationStatus)
 add a parameter
void declareMaterialPropertyFromSharedVariable (const BehaviourVariableDescription &, const VariableDescription &)
void declareExternalStateVariableFromSharedVariable (const BehaviourVariableDescription &, const VariableDescription &)
bool hasParameter (const std::string &) const
bool hasParameters () const
void setParameterDefaultValue (const std::string &, const double)
void setParameterDefaultValue (const std::string &, const unsigned short i, const double)
void setParameterDefaultValue (const std::string &, const int)
void setParameterDefaultValue (const std::string &, const unsigned short)
double getFloattingPointParameterDefaultValue (const std::string &) const
double getFloattingPointParameterDefaultValue (const std::string &, const unsigned short) const
int getIntegerParameterDefaultValue (const std::string &) const
unsigned short getUnsignedShortParameterDefaultValue (const std::string &) const
void addStaticVariable (const StaticVariableDescription &, const RegistrationStatus)
 add a static variable description
virtual std::map< std::string, int > getIntegerConstants () const
int getIntegerConstant (const std::string &) const
void addStressFreeExpansion (const StressFreeExpansionDescription &)
 add a new stress free expansion description
void appendToMembers (const std::string &)
 append the given code to the members
std::string getMembers () const
void addInitializeFunction (const std::string &, const CodeBlock &)
 add a new initialize function
const std::map< std::string, CodeBlock > & getInitializeFunctions () const
void addPostProcessing (const std::string &, const CodeBlock &)
 add a new post-processing
const std::map< std::string, CodeBlock > & getPostProcessings () const
void appendToPrivateCode (const std::string &)
 append the given code to the members
std::string getPrivateCode () const
std::vector< std::string > getCodeBlockNames () const
 return the name of the code blocks defined so far
void setCode (const std::string &, const CodeBlock &, const Mode, const Position, const bool)
 declare or update a code block
const CodeBlock & getCodeBlock (std::string_view) const
std::string getCode (std::string_view, std::string_view, const bool) const
bool hasCode (std::string_view) const
bool hasGlossaryName (const std::string &) const
bool hasEntryName (const std::string &) const
std::string getExternalName (const std::string &) const
std::vector< std::string > getExternalNames (const VariableDescriptionContainer &) const
void getExternalNames (std::vector< std::string > &, const VariableDescriptionContainer &) const
void appendExternalNames (std::vector< std::string > &, const VariableDescriptionContainer &) const
void setGlossaryName (const std::string &, const std::string &)
 associate a glossary name to a variable
bool isGlossaryNameUsed (const std::string &) const
void setEntryName (const std::string &, const std::string &)
 associate an entry name to a variable
bool isUsedAsEntryName (const std::string &) const
std::string getVariableNameFromGlossaryNameOrEntryName (const std::string &) const
void setBounds (const std::string &, const VariableBoundsDescription &)
 add bounds to a variable
void setBounds (const std::string &, const unsigned short, const VariableBoundsDescription &)
 add bounds to a variable
void setPhysicalBounds (const std::string &, const VariableBoundsDescription &)
 add physical bounds to a variable
void setPhysicalBounds (const std::string &, const unsigned short, const VariableBoundsDescription &)
 add physical bounds to a variable
void reserveName (const std::string &)
bool isNameReserved (const std::string &) const
 look if a name is reserved
void registerMemberName (const std::string &)
 register a member name
void registerGlossaryName (const std::string &, const std::string &)
 register a glossary name
void registerEntryName (const std::string &, const std::string &)
 register a entry name
void registerStaticMemberName (const std::string &)
const std::set< std::string > & getRegistredMembersNames () const
const std::set< std::string > & getRegistredStaticMembersNames () const
std::set< std::string > getVariablesNames () const
void getSymbols (std::map< std::string, std::string > &) const
 retrieve all the symbols associated with the declared variables.
std::vector< std::string > getUserDefinedInitializeCodeBlocksNames () const
const CodeBlock & getUserDefinedInitializeCodeBlock (const std::string &) const
void finalizeVariablesDeclaration (const Hypothesis)
 method that shall be called when all variables are declared.
 ~BehaviourData () override
 destructor
Public Member Functions inherited from mfront::MaterialKnowledgeDescription
 MaterialKnowledgeDescription ()
 default constructor
 MaterialKnowledgeDescription (MaterialKnowledgeDescription &&) noexcept
 move constructor
 MaterialKnowledgeDescription (const MaterialKnowledgeDescription &)
 copy constructor
MaterialKnowledgeDescription & operator= (const MaterialKnowledgeDescription &)
 default assignement
MaterialKnowledgeDescription & operator= (MaterialKnowledgeDescription &&) noexcept
 move assignement
void setAttribute (const std::string &, const MaterialKnowledgeAttribute &, const bool)
 insert a new attribute
void updateAttribute (const std::string_view, const MaterialKnowledgeAttribute &)
 update an existing new attribute
bool hasAttribute (const std::string_view) const
template<typename T>
requires ( isMaterialKnowledgeAttributeType<T>())
T & getAttribute (const std::string_view)
template<typename T>
requires (isMaterialKnowledgeAttributeType<T>())
const T & getAttribute (const std::string_view) const
template<typename T>
requires (isMaterialKnowledgeAttributeType<T>())
T getAttribute (const std::string_view, const T &) const
const std::map< std::string, MaterialKnowledgeAttribute, std::less<> > & getAttributes () const
void addExternalMFrontFile (const std::string_view, const std::vector< std::string > &, const tfel::utilities::DataMap &)
 add an external MFront file and the list of interfaces used to treat it.
const std::map< std::string, std::tuple< std::vector< std::string >, tfel::utilities::DataMap >, std::less<> > & getExternalMFrontFiles () const
bool hasUnitSystem () const
 return if an unit system has been associated to the material knowledge
void setUnitSystem (const std::string_view)
 associate an unit system to the material knowledge
const std::string & getUnitSystem () const
 associate an unit system to the material knowledge
 ~MaterialKnowledgeDescription ()
 destructor

Static Public Attributes

static const char *const UserDefinedInitializeCodeBlock
 standard code name
static const char *const BeforeFlowRule
 standard code name
static const char *const FlowRule
 standard code name
static const char *const BeforeInitializeLocalVariables
 standard code name
static const char *const InitializeLocalVariables
 standard code name
static const char *const AfterInitializeLocalVariables
 standard code name
static const char *const ComputePredictor
 standard code name
static const char *const ComputeThermodynamicForces
 standard code name
static const char *const ComputeFinalThermodynamicForcesCandidate
 standard code name
static const char *const ComputeFinalThermodynamicForces
 standard code name
static const char *const DefaultComputeFinalThermodynamicForce
 standard code name
static const char *const APrioriTimeStepScalingFactor
 standard code name
static const char *const Integrator
 standard code name
static const char *const APosterioriTimeStepScalingFactor
 standard code name
static const char *const ComputeDerivative
 standard code name
static const char *const ComputePredictionOperator
 standard code name
static const char *const ComputeTangentOperator
 standard code name
static const char *const ComputeStressFreeExpansion
 standard code name
static const char *const UpdateAuxiliaryStateVariables
 standard code name
static const char *const InitializeJacobian
 standard code name
static const char *const InitializeJacobianInvert
 standard code name
static const char *const ComputeInternalEnergy
 standard code name
static const char *const ComputeDissipatedEnergy
 standard code name
static const char *const ComputeSpeedOfSound
 standard code name
static const char *const AdditionalConvergenceChecks
 standard code name
static const char *const PostProcessings
 standard code name
static const char *const ProcessNewCorrection
 standard code name
static const char *const RejectCurrentCorrection
 standard code name
static const char *const ProcessNewEstimate
 standard code name
static const char *const hasConsistentTangentOperator
 if this attribute is true, the behaviour can compute a tangent operator.
static const char *const isConsistentTangentOperatorSymmetric
 if this attribute is true, the tangent operator can be considered symmetric.
static const char *const hasAPrioriTimeStepScalingFactor
 if this attribute is true, the behaviour can compute an a priori estimate of the time step scaling factor after the initialisation
static const char *const hasAPosterioriTimeStepScalingFactor
static const char *const hasPredictionOperator
static const char *const compareToNumericalJacobian
static const char *const numericallyComputedJacobianBlocks
 list of jacobian blocks that must be computed numerically
static const char *const allowsNewUserDefinedVariables
static const char *const profiling
 a boolean attribute telling if profiling information shall be collected
static const char *const algorithm
 algorithm used
static const char *const numberOfEvaluations
 number of evaluation of the computeDerivative method
Static Public Attributes inherited from mfront::MaterialKnowledgeDescription
static const char *const defaultOutOfBoundsPolicy
 standard option and attribute name
static const char *const disableRuntimeChecks
 standard option and attribute name
static const char *const runtimeModificationOfTheOutOfBoundsPolicy
 standard option name
static const char *const parametersAsStaticVariables
 attribute name
static const char *const initializeParametersFromFile
 attribute name
static const char *const validator
 attribute name
static const char *const buildIdentifier
 attribute name
static const char *const compatibilityMode
 attribute name

Additional Inherited Members

Static Public Member Functions inherited from mfront::MaterialKnowledgeDescription
static void throwUndefinedAttribute (const std::string_view)
 throw an exception saying that no attribute with the given name exists
Protected Attributes inherited from mfront::MaterialKnowledgeDescription
std::optional< std::string > unit_system
 unit system
std::map< std::string, MaterialKnowledgeAttribute, std::less<> > attributes
 behaviour attributes
std::map< std::string, std::tuple< std::vector< std::string >, tfel::utilities::DataMap >, std::less<> > externalMFrontFiles
 external mfront files

Detailed Description

This structure gathers various behaviour characteristic for a given modelling hypothesis

Member Typedef Documentation

◆ StressFreeExpansionDescription

Initial value:

description of a stress free expansion

◆ StressFreeExpansionDescriptionTypes

Initial value:
typename tfel::meta::GenerateTypeList<
a simple wrapper around a model describing an axial growth.
Definition mfront/include/MFront/BehaviourData.hxx:216
a brief structure describing a stress free expansion du to an isotropic swelling given by a linear ch...
Definition mfront/include/MFront/BehaviourData.hxx:239
a brief structure describing a stress free expansion du to an orthotropic swelling
Definition mfront/include/MFront/BehaviourData.hxx:247
a brief structure describing a stress free expansion du to an orthotropic swelling described by an ar...
Definition mfront/include/MFront/BehaviourData.hxx:260
a simple wrapper around a model describing fuel relocation.
Definition mfront/include/MFront/BehaviourData.hxx:227
a simple wrapper around an isotropic swelling model given by a volume change
Definition mfront/include/MFront/BehaviourData.hxx:205

list of a stress free expansion descriptions

◆ StressFreeExpansionHandler

◆ StressFreeExpansionHandlerTypes

Initial value:
typename tfel::meta::GenerateTypeList<
std::shared_ptr<ModelDescription>>::type
a placeholder for null expansion
Definition mfront/include/MFront/BehaviourData.hxx:182
Definition mfront/include/MFront/BehaviourData.hxx:177

a stress free expansion can be computed using by:

  • an external state variable
  • a model

Member Enumeration Documentation

◆ Mode

mode used when inserting code

Enumerator
CREATE 

create a code block. Return an error if if fails

CREATEORREPLACE 

create a code block or replace it if it already exists. If the code is to be replaced, all positions are cleard. This applies to the whole code block and not only to specific positions

CREATEORAPPEND 

create a code block or append a code block to an existing one

CREATEBUTDONTREPLACE 

create a code block but don't replace it if it already exists. This applies to the whole code block and not only to specific positions. This option is meant to be used internally and is not accessible from a mfront file

◆ RegistrationStatus

Some dsl may want to avoid the user to declare a variable with a given name. To avoid this, they shall reserve the name. Once the variable is finally declare, they shall pass the ALREADYREGISTRED flag to the addXXXVariables methods

Member Function Documentation

◆ addAuxiliaryStateVariable()

void mfront::BehaviourData::addAuxiliaryStateVariable ( const VariableDescription & ,
const RegistrationStatus  )

add an auxiliary state variable

Parameters
[in]v: variable description
[in]s: registration status

◆ addBehaviourVariable()

void mfront::BehaviourData::addBehaviourVariable ( const BehaviourVariableDescription & )

add a behaviour variable

Parameters
[in]v: variable description

◆ addBehaviourVariableFactory()

void mfront::BehaviourData::addBehaviourVariableFactory ( const BehaviourVariableDescription & )

add a behaviour variable factory

Parameters
[in]v: variable description

◆ addExternalStateVariable()

void mfront::BehaviourData::addExternalStateVariable ( const VariableDescription & ,
const RegistrationStatus  )

add an external state variable

Parameters
[in]v: variable description
[in]s: registration status

◆ addInitializeFunction()

void mfront::BehaviourData::addInitializeFunction ( const std::string & ,
const CodeBlock &  )

add a new initialize function

Parameters
[in]nname of the initialize function
[in]ccode block associated with the initialize function

◆ addInitializeFunctionVariable()

void mfront::BehaviourData::addInitializeFunctionVariable ( const VariableDescription & )

add an initialize variable

Parameters
[in]v: variable description

◆ addIntegrationVariable()

void mfront::BehaviourData::addIntegrationVariable ( const VariableDescription & ,
const RegistrationStatus  )

add a integration variable

Parameters
[in]v: variable description
[in]s: registration status

◆ addLocalVariable()

void mfront::BehaviourData::addLocalVariable ( const VariableDescription & ,
const RegistrationStatus  )

add a : variable

Parameters
[in]v: variable description
[in]s: registration status

◆ addMaterialProperty()

void mfront::BehaviourData::addMaterialProperty ( const VariableDescription & ,
const RegistrationStatus  )

add a material property

Parameters
[in]v: variable description
[in]s: registration status

◆ addParameter()

void mfront::BehaviourData::addParameter ( const VariableDescription & ,
const RegistrationStatus  )

add a parameter

Parameters
[in]v: variable description
[in]s: registration status

◆ addPostProcessing()

void mfront::BehaviourData::addPostProcessing ( const std::string & ,
const CodeBlock &  )

add a new post-processing

Parameters
[in]nname of the post-processing
[in]ccode block associated with the post-processing

◆ addPostProcessingVariable()

void mfront::BehaviourData::addPostProcessingVariable ( const VariableDescription & )

add a post-processing variable

Parameters
[in]v: variable description

◆ addStateVariable()

void mfront::BehaviourData::addStateVariable ( const VariableDescription & ,
const RegistrationStatus  )

add a state variable

Parameters
[in]v: variable description
[in]s: registration status

◆ addStaticVariable()

void mfront::BehaviourData::addStaticVariable ( const StaticVariableDescription & ,
const RegistrationStatus  )

add a static variable description

Parameters
[in]v: variable description
[in]s: registration status

◆ addStressFreeExpansion()

void mfront::BehaviourData::addStressFreeExpansion ( const StressFreeExpansionDescription & )

add a new stress free expansion description

Parameters
[in]sfedstress free expansion description

◆ appendExternalNames()

void mfront::BehaviourData::appendExternalNames ( std::vector< std::string > & ,
const VariableDescriptionContainer &  ) const

get the external names associated with the variables contained in the given container.

See also
getExternalName
Parameters
[out]nnames
[in]vvariables for which glossary names are requested

◆ appendToMembers()

void mfront::BehaviourData::appendToMembers ( const std::string & )

append the given code to the members

Parameters
[in]s: members

◆ appendToPrivateCode()

void mfront::BehaviourData::appendToPrivateCode ( const std::string & )

append the given code to the members

Parameters
[in]s: members

◆ checkAndCompletePhysicalBoundsDeclaration()

void mfront::BehaviourData::checkAndCompletePhysicalBoundsDeclaration ( const std::string_view )

check and complete the physical bounds of variables

Parameters
[in]sunit system

◆ declareExternalStateVariableProbablyUnusableInPurelyImplicitResolution()

void mfront::BehaviourData::declareExternalStateVariableProbablyUnusableInPurelyImplicitResolution ( const std::string & )

declares an external state variable to be probably unusable in a purely implicit resolution. This means that its increment is used somewhere.

The term "probably" refers to the fact that it may happens that the increment is only used to get the value of the external state variable at a given date. For example, in a standard resolution (non implicit), the value of (T+\theta\,\Delta\,T) gives the temperature value at (t+\theta\,\Delta\,t). However, this expression is still valid in a purely implicit resolution.

◆ finalizeVariablesDeclaration()

void mfront::BehaviourData::finalizeVariablesDeclaration ( const Hypothesis )

method that shall be called when all variables are declared.

Parameters
[in]hmodelling hypothesis This method overrides variables by parameters

◆ getAuxiliaryStateVariableDescription()

const VariableDescription & mfront::BehaviourData::getAuxiliaryStateVariableDescription ( const std::string & ) const
nodiscard
Returns
the auxiliary state variable associated with the given name
Parameters
[in]nname

◆ getAuxiliaryStateVariableDescriptionByExternalName()

const VariableDescription & mfront::BehaviourData::getAuxiliaryStateVariableDescriptionByExternalName ( const std::string & ) const
nodiscard
Parameters
[in]nexternal name

◆ getAuxiliaryStateVariables()

const VariableDescriptionContainer & mfront::BehaviourData::getAuxiliaryStateVariables ( ) const
nodiscard
Returns
all auxiliary state variables

◆ getBehaviourVariableFactories()

const std::vector< BehaviourVariableDescription > & mfront::BehaviourData::getBehaviourVariableFactories ( ) const
nodiscard
Returns
all behaviour variables factories

◆ getBehaviourVariableFactory()

const BehaviourVariableDescription & mfront::BehaviourData::getBehaviourVariableFactory ( const std::string & ) const
nodiscard
Returns
the behaviour variable factory whose class name matches the argument
Parameters
[in]nbehaviour variable factory' class name

◆ getBehaviourVariables()

const std::vector< BehaviourVariableDescription > & mfront::BehaviourData::getBehaviourVariables ( ) const
nodiscard
Returns
all behaviour variables

◆ getCode()

std::string mfront::BehaviourData::getCode ( std::string_view ,
std::string_view ,
const bool  ) const
nodiscard
Returns
the code block associated with the given name
Parameters
[in]n: name
[in]cn: behaviour class name
[in]b: add profiling information

◆ getCodeBlock()

const CodeBlock & mfront::BehaviourData::getCodeBlock ( std::string_view ) const
nodiscard
Returns
the code block associated with the given name
Parameters
[in]n: name

◆ getCodeBlockNames()

std::vector< std::string > mfront::BehaviourData::getCodeBlockNames ( ) const
nodiscard

return the name of the code blocks defined so far

Parameters
[in]h: modelling hypothesis

◆ getExternalName()

std::string mfront::BehaviourData::getExternalName ( const std::string & ) const
nodiscard
Returns
the glossary or the entry name associated with the given variable. If none was defined, return the variable name.
Parameters
[in]v: variable name

◆ getExternalNames() [1/2]

std::vector< std::string > mfront::BehaviourData::getExternalNames ( const VariableDescriptionContainer & ) const
nodiscard
Returns
the external names associated with the variables contained in the given container.
See also
getExternalName
Parameters
[in]v: variables for which glossary names are requested

◆ getExternalNames() [2/2]

void mfront::BehaviourData::getExternalNames ( std::vector< std::string > & ,
const VariableDescriptionContainer &  ) const

get the external names associated with the variables contained in the given container.

See also
getExternalName
Parameters
[out]n: names
[in]v: variables for which glossary names are requested

◆ getExternalStateVariableDescription()

const VariableDescription & mfront::BehaviourData::getExternalStateVariableDescription ( const std::string & ) const
nodiscard
Parameters
[in]nname

◆ getExternalStateVariableDescriptionByExternalName()

const VariableDescription & mfront::BehaviourData::getExternalStateVariableDescriptionByExternalName ( const std::string & ) const
nodiscard
Parameters
[in]nexternal name

◆ getExternalStateVariables()

const VariableDescriptionContainer & mfront::BehaviourData::getExternalStateVariables ( ) const
nodiscard
Returns
all external state variables

◆ getFloattingPointParameterDefaultValue() [1/2]

double mfront::BehaviourData::getFloattingPointParameterDefaultValue ( const std::string & ) const
nodiscard
Returns
the default value of a paramater
Parameters
[in]v: parameter default value

◆ getFloattingPointParameterDefaultValue() [2/2]

double mfront::BehaviourData::getFloattingPointParameterDefaultValue ( const std::string & ,
const unsigned short  ) const
nodiscard
Returns
the default value of a paramater
Parameters
[in]vparameter default value
[in]iindex

◆ getInitializeFunctions()

const std::map< std::string, CodeBlock > & mfront::BehaviourData::getInitializeFunctions ( ) const
nodiscard
Returns
the registred initialize functions

◆ getInitializeFunctionVariableDescription()

const VariableDescription & mfront::BehaviourData::getInitializeFunctionVariableDescription ( const std::string & ) const
nodiscard
Returns
the initialize variable associated with the given name
Parameters
[in]nname

◆ getInitializeFunctionVariableDescriptionByExternalName()

const VariableDescription & mfront::BehaviourData::getInitializeFunctionVariableDescriptionByExternalName ( const std::string & ) const
nodiscard
Parameters
[in]nexternal name

◆ getInitializeFunctionVariables()

const VariableDescriptionContainer & mfront::BehaviourData::getInitializeFunctionVariables ( ) const
nodiscard
Returns
all initialize variables

◆ getIntegerConstant()

int mfront::BehaviourData::getIntegerConstant ( const std::string & ) const
nodiscard
Returns
the value of an integer constant
Parameters
[in]nvariable name

◆ getIntegerConstants()

virtual std::map< std::string, int > mfront::BehaviourData::getIntegerConstants ( ) const
nodiscardvirtual
Returns
all the integer constants

◆ getIntegerParameterDefaultValue()

int mfront::BehaviourData::getIntegerParameterDefaultValue ( const std::string & ) const
nodiscard
Returns
the default value of a paramater
Parameters
[in]v: parameter default value

◆ getIntegrationVariableDescription()

const VariableDescription & mfront::BehaviourData::getIntegrationVariableDescription ( const std::string & ) const
nodiscard
Returns
a variable description with the given name.
Parameters
[in]nname

◆ getIntegrationVariableDescriptionByExternalName()

const VariableDescription & mfront::BehaviourData::getIntegrationVariableDescriptionByExternalName ( const std::string & ) const
nodiscard
Returns
a variable description associated with the given external name.
Parameters
[in]nname

◆ getIntegrationVariables()

const VariableDescriptionContainer & mfront::BehaviourData::getIntegrationVariables ( ) const
nodiscard
Returns
all integration variables

◆ getLocalVariables()

const VariableDescriptionContainer & mfront::BehaviourData::getLocalVariables ( ) const
nodiscard
Returns
all local variables

◆ getMaterialProperties()

const VariableDescriptionContainer & mfront::BehaviourData::getMaterialProperties ( ) const
nodiscard
Returns
all material properties

◆ getMembers()

std::string mfront::BehaviourData::getMembers ( ) const
nodiscard
Returns
the material additional members

◆ getOverridenParameters()

std::map< std::string, double > mfront::BehaviourData::getOverridenParameters ( ) const
nodiscard
Returns
the list of overriden parameters

◆ getParameterDescription()

const VariableDescription & mfront::BehaviourData::getParameterDescription ( const std::string & ) const
nodiscard
Parameters
[in]nname

◆ getParameterDescriptionByExternalName()

const VariableDescription & mfront::BehaviourData::getParameterDescriptionByExternalName ( const std::string & ) const
nodiscard
Parameters
[in]nexternal name

◆ getParameters()

const VariableDescriptionContainer & mfront::BehaviourData::getParameters ( ) const
nodiscard
Returns
all parameter variables

◆ getPersistentVariableDescription()

const VariableDescription & mfront::BehaviourData::getPersistentVariableDescription ( const std::string & ) const
nodiscard
Returns
a variable description with the given name.
Parameters
[in]nname

◆ getPersistentVariableDescriptionByExternalName()

const VariableDescription & mfront::BehaviourData::getPersistentVariableDescriptionByExternalName ( const std::string & ) const
nodiscard
Returns
a variable description associated with the given external name.
Parameters
[in]nname

◆ getPersistentVariables()

const VariableDescriptionContainer & mfront::BehaviourData::getPersistentVariables ( ) const
nodiscard
Returns
all persistent variables

◆ getPostProcessings()

const std::map< std::string, CodeBlock > & mfront::BehaviourData::getPostProcessings ( ) const
nodiscard
Returns
the registred post-processings

◆ getPostProcessingVariableDescription()

const VariableDescription & mfront::BehaviourData::getPostProcessingVariableDescription ( const std::string & ) const
nodiscard
Returns
the post-processing variable associated with the given name
Parameters
[in]nname

◆ getPostProcessingVariableDescriptionByExternalName()

const VariableDescription & mfront::BehaviourData::getPostProcessingVariableDescriptionByExternalName ( const std::string & ) const
nodiscard
Parameters
[in]nexternal name

◆ getPostProcessingVariables()

const VariableDescriptionContainer & mfront::BehaviourData::getPostProcessingVariables ( ) const
nodiscard
Returns
all post-processing variables

◆ getPrivateCode()

std::string mfront::BehaviourData::getPrivateCode ( ) const
nodiscard
Returns
the material private code

◆ getRegistredMembersNames()

const std::set< std::string > & mfront::BehaviourData::getRegistredMembersNames ( ) const
nodiscard
Returns
all the registred member names

◆ getRegistredStaticMembersNames()

const std::set< std::string > & mfront::BehaviourData::getRegistredStaticMembersNames ( ) const
nodiscard
Returns
all the registred static member names

◆ getStateVariableDescription()

const VariableDescription & mfront::BehaviourData::getStateVariableDescription ( const std::string & ) const
nodiscard
Returns
the state variable associated with the given name
Parameters
[in]nname

◆ getStateVariableDescriptionByExternalName()

const VariableDescription & mfront::BehaviourData::getStateVariableDescriptionByExternalName ( const std::string & ) const
nodiscard
Returns
the state variable associated with the given name
Parameters
[in]nname

◆ getStateVariables()

const VariableDescriptionContainer & mfront::BehaviourData::getStateVariables ( ) const
nodiscard
Returns
all state variables

◆ getStaticVariableDescription()

const StaticVariableDescription & mfront::BehaviourData::getStaticVariableDescription ( const std::string & ) const
nodiscard
Parameters
[in]nname

◆ getStaticVariables()

const StaticVariableDescriptionContainer & mfront::BehaviourData::getStaticVariables ( ) const
nodiscard
Returns
the static variables defined

◆ getStressFreeExpansionDescriptions()

const std::vector< StressFreeExpansionDescription > & mfront::BehaviourData::getStressFreeExpansionDescriptions ( ) const
nodiscard
Returns
the registred stress free expansion descriptions

◆ getSymbols()

void mfront::BehaviourData::getSymbols ( std::map< std::string, std::string > & ) const

retrieve all the symbols associated with the declared variables.

Parameters
[out]symbolsmap between symbols and replacement strings

◆ getUnsignedShortParameterDefaultValue()

unsigned short mfront::BehaviourData::getUnsignedShortParameterDefaultValue ( const std::string & ) const
nodiscard
Returns
the default value of a paramater
Parameters
[in]v: parameter default value

◆ getUserDefinedInitializeCodeBlock()

const CodeBlock & mfront::BehaviourData::getUserDefinedInitializeCodeBlock ( const std::string & ) const
nodiscard
Returns
the list of user defined initialize blocks

◆ getUserDefinedInitializeCodeBlocksNames()

std::vector< std::string > mfront::BehaviourData::getUserDefinedInitializeCodeBlocksNames ( ) const
nodiscard
Returns
the list of user defined initialize blocks

◆ getVariableDescription()

const VariableDescription & mfront::BehaviourData::getVariableDescription ( const std::string & ) const
nodiscard
Returns
a variable description with the given name.
Parameters
[in]nexternal name.

◆ getVariableDescriptionByExternalName()

const VariableDescription & mfront::BehaviourData::getVariableDescriptionByExternalName ( const std::string & ) const
nodiscard
Returns
a variable description associated with the given external name.
Parameters
[in]nexternal name.

◆ getVariableNameFromGlossaryNameOrEntryName()

std::string mfront::BehaviourData::getVariableNameFromGlossaryNameOrEntryName ( const std::string & ) const
nodiscard
Returns
the name of the variable associated with the given glossary or entry name
Parameters
[in]n: name

◆ getVariables()

const VariableDescriptionContainer & mfront::BehaviourData::getVariables ( const std::string & ) const
nodiscard
Returns
the variables of the specificed type
Parameters
[in]ttype of the variable Currently t must have one of the following values:
  • MaterialProperties
  • PersistentVariables
  • IntegrationVariables
  • StateVariables
  • AuxiliaryStateVariables
  • InitializeFunctionVariables
  • PostProcessingVariables
  • ExternalStateVariables
  • Parameters

◆ getVariablesNames()

std::set< std::string > mfront::BehaviourData::getVariablesNames ( ) const
nodiscard
Returns
the name of all the variables (material properties, state variables, auxiliary state variables, external state variables, parameters)

◆ hasCode()

bool mfront::BehaviourData::hasCode ( std::string_view ) const
nodiscard
Returns
true if a code block associated with the given name has been defined
Parameters
[in]n: name

◆ hasEntryName()

bool mfront::BehaviourData::hasEntryName ( const std::string & ) const
nodiscard
Returns
true if an entry name was associated with the given variable.
Parameters
[in]v: variable name

◆ hasGlossaryName()

bool mfront::BehaviourData::hasGlossaryName ( const std::string & ) const
nodiscard
Returns
true a glossary was associated with the given variable.
Parameters
[in]v: variable name

◆ hasParameter()

bool mfront::BehaviourData::hasParameter ( const std::string & ) const
nodiscard
Returns
true if a parameter with the given name exists
Parameters
[in]n: name

◆ hasParameters()

bool mfront::BehaviourData::hasParameters ( ) const
nodiscard
Returns
true if at least one parameter is defined

◆ isAuxiliaryStateVariableName()

bool mfront::BehaviourData::isAuxiliaryStateVariableName ( const std::string & ) const
nodiscard
Returns
if the given name is the name of an auxiliary state variable
Parameters
[in]nname

◆ isExternalStateVariableIncrementName()

bool mfront::BehaviourData::isExternalStateVariableIncrementName ( const std::string & ) const
nodiscard
Returns
if the given name is the name of the increment of an external state variable
Parameters
[in]nname

◆ isExternalStateVariableName()

bool mfront::BehaviourData::isExternalStateVariableName ( const std::string & ) const
nodiscard
Returns
if the given name is the name of an external state variable
Parameters
[in]nname

◆ isGlossaryNameUsed()

bool mfront::BehaviourData::isGlossaryNameUsed ( const std::string & ) const
nodiscard

Look if the given glossary name is used.

Note
we explicitely check that the given name is part of the TFEL glossary.
Parameters
[in]n: glossary name

◆ isInitializeFunctionVariableName()

bool mfront::BehaviourData::isInitializeFunctionVariableName ( const std::string & ) const
nodiscard
Returns
if the given name is the name of an initialize variable
Parameters
[in]nname

◆ isIntegrationVariableIncrementName()

bool mfront::BehaviourData::isIntegrationVariableIncrementName ( const std::string & ) const
nodiscard
Returns
if the given name is the name of the increment of an integration variable
Parameters
[in]nname

◆ isIntegrationVariableName()

bool mfront::BehaviourData::isIntegrationVariableName ( const std::string & ) const
nodiscard
Returns
if the given name is the name of an integration variable
Parameters
[in]nname

◆ isLocalVariableName()

bool mfront::BehaviourData::isLocalVariableName ( const std::string & ) const
nodiscard
Returns
if the given name is the name of a local variable
Parameters
[in]nname

◆ isMaterialPropertyName()

bool mfront::BehaviourData::isMaterialPropertyName ( const std::string & ) const
nodiscard
Returns
if the given name is the name of a material property
Parameters
[in]nname

◆ isMemberUsedInCodeBlocks()

bool mfront::BehaviourData::isMemberUsedInCodeBlocks ( const std::string & ) const
nodiscard
Returns
true if the given member is used in a code block
Parameters
[in]h: modelling hypothesis
[in]n: name

◆ isNameReserved()

bool mfront::BehaviourData::isNameReserved ( const std::string & ) const
nodiscard

look if a name is reserved

Parameters
[in]n: name

◆ isParameterName()

bool mfront::BehaviourData::isParameterName ( const std::string & ) const
nodiscard
Returns
if the given name is the name of a parameter
Parameters
[in]nname

◆ isPersistentVariableName()

bool mfront::BehaviourData::isPersistentVariableName ( const std::string & ) const
nodiscard
Returns
if the given name is the name of a persistent variable
Parameters
[in]nname

◆ isPostProcessingVariableName()

bool mfront::BehaviourData::isPostProcessingVariableName ( const std::string & ) const
nodiscard
Returns
if the given name is the name of a post-processing variable
Parameters
[in]nname

◆ isStateVariableIncrementName()

bool mfront::BehaviourData::isStateVariableIncrementName ( const std::string & ) const
nodiscard
Returns
if the given name is the name of the increment of a state variable
Parameters
[in]nname

◆ isStateVariableName()

bool mfront::BehaviourData::isStateVariableName ( const std::string & ) const
nodiscard
Returns
if the given name is the name of a state variable
Parameters
[in]nname

◆ isStaticVariableName()

bool mfront::BehaviourData::isStaticVariableName ( const std::string & n) const
nodiscard
Returns
true if the given name is the one of a static variable
Parameters
[in]n: name

◆ isStressFreeExansionAnisotropic()

bool mfront::BehaviourData::isStressFreeExansionAnisotropic ( ) const
nodiscard
Returns
true if a least one modelling hypothesis is anisotropic

◆ isUsableInPurelyImplicitResolution()

bool mfront::BehaviourData::isUsableInPurelyImplicitResolution ( ) const
nodiscard

This method has been introduced to optimize the mechanical resolution in licos : a purely implicit resolution only evaluate external loadings at the end of the time step. This implies that no increment of an external loading is used in the behaviour law.

◆ isUsedAsEntryName()

bool mfront::BehaviourData::isUsedAsEntryName ( const std::string & ) const
nodiscard

look if the given name is used as an entry name

Parameters
[in]n: name

◆ overrideByAParameter()

void mfront::BehaviourData::overrideByAParameter ( const std::string & ,
const double  )

specify that the given variable must be overriden by a parameter. This must be called before the declaration of the variable.

Parameters
[in]nvariable name
[in]vvariable value

◆ registerEntryName()

void mfront::BehaviourData::registerEntryName ( const std::string & ,
const std::string &  )

register a entry name

Parameters
[in]nvariable name
[in]eentry name
Note
an exception is thrown if:
  • the variable name has not been reserved
  • the given entry name is a glossary name
  • the given entry name has already been registred
: this method automatically calls the reserveName method

◆ registerGlossaryName()

void mfront::BehaviourData::registerGlossaryName ( const std::string & ,
const std::string &  )

register a glossary name

Parameters
[in]nvariable name
[in]gglossary name
Note
an exception is thrown if:
  • the variable name has not been reserved
  • the given glossary name is not a real glossary name
  • the given glossary name has already been registred
: this method automatically calls the reserveName method

◆ registerMemberName()

void mfront::BehaviourData::registerMemberName ( const std::string & )

register a member name

Parameters
[in]n: member name
Note
an exception is thrown is the given name has already been registred
: this method automatically calls the reserveName method

◆ registerStaticMemberName()

void mfront::BehaviourData::registerStaticMemberName ( const std::string & )

register a static member name

Parameters
[in]n: static member name
Note
an exception is thrown is the given name has already been registred
: this method automatically calls the reserveName method

◆ reserveName()

void mfront::BehaviourData::reserveName ( const std::string & )

reserve the given name

Parameters
[in]n: variable name
Note
an exception is thrown is the given name has already been registred

◆ setBounds() [1/2]

void mfront::BehaviourData::setBounds ( const std::string & ,
const unsigned short ,
const VariableBoundsDescription &  )

add bounds to a variable

Parameters
[in]nvariable name
[in]iindex (for array of variables)
[in]bbounds description

◆ setBounds() [2/2]

void mfront::BehaviourData::setBounds ( const std::string & ,
const VariableBoundsDescription &  )

add bounds to a variable

Parameters
[in]nvariable name
[in]bbounds description

◆ setCode()

void mfront::BehaviourData::setCode ( const std::string & ,
const CodeBlock & ,
const Mode ,
const Position ,
const bool  )

declare or update a code block

Parameters
[in]n: name
[in]c: code
[in]m: mode
[in]p: position
[in]b: if true, the code can be overriden or completed

◆ setEntryName()

void mfront::BehaviourData::setEntryName ( const std::string & ,
const std::string &  )

associate an entry name to a variable

Parameters
[in]nvariable name
[in]eentry name

◆ setGlossaryName()

void mfront::BehaviourData::setGlossaryName ( const std::string & ,
const std::string &  )

associate a glossary name to a variable

Parameters
[in]nvariable name
[in]gglossary name

◆ setParameterDefaultValue() [1/4]

void mfront::BehaviourData::setParameterDefaultValue ( const std::string & ,
const double  )
Parameters
[in]n: parameter name
[in]v: parameter default value

◆ setParameterDefaultValue() [2/4]

void mfront::BehaviourData::setParameterDefaultValue ( const std::string & ,
const int  )
Parameters
[in]n: parameter name
[in]v: parameter default value

◆ setParameterDefaultValue() [3/4]

void mfront::BehaviourData::setParameterDefaultValue ( const std::string & ,
const unsigned short i,
const double  )
Parameters
[in]n: parameter name
[in]i: index
[in]v: parameter default value

◆ setParameterDefaultValue() [4/4]

void mfront::BehaviourData::setParameterDefaultValue ( const std::string & ,
const unsigned short  )
Parameters
[in]n: parameter name
[in]v: parameter default value

◆ setPhysicalBounds() [1/2]

void mfront::BehaviourData::setPhysicalBounds ( const std::string & ,
const unsigned short ,
const VariableBoundsDescription &  )

add physical bounds to a variable

Parameters
[in]nvariable name
[in]iindex (for array of variables)
[in]bbounds description

◆ setPhysicalBounds() [2/2]

void mfront::BehaviourData::setPhysicalBounds ( const std::string & ,
const VariableBoundsDescription &  )

add physical bounds to a variable

Parameters
[in]nvariable name
[in]bbounds description

◆ setUsableInPurelyImplicitResolution()

void mfront::BehaviourData::setUsableInPurelyImplicitResolution ( const bool )

set if this behaviour can be used in a purely implicit resolution.

Parameters
[in]b: new value of the usableInPurelyImplicitResolution member
See also
isUsableInPurelyImplicitResolution for details about purely implicit resolution.

◆ setVariableAttribute()

void mfront::BehaviourData::setVariableAttribute ( const std::string & ,
const std::string & ,
const VariableAttribute & ,
const bool  )

assign an attribute to variable

Parameters
[in]vvariable name
[in]nattribute name
[in]aattribute
[in]bdon't throw if the attribute already exists. In this case, the attribute is left unchanged. However the type of the attribute is checked.

Member Data Documentation

◆ allowsNewUserDefinedVariables

const char* const mfront::BehaviourData::allowsNewUserDefinedVariables
static

a boolean attribute telling if the additionnal variables can be declared. This attribute is set by DSL's when the first code block has been read.

Note
This attribute applies to all variables except for local variables.

◆ compareToNumericalJacobian

const char* const mfront::BehaviourData::compareToNumericalJacobian
static

if this attribute is true, the implicit algorithm compares the analytical jacobian to the numeric one

◆ hasAPosterioriTimeStepScalingFactor

const char* const mfront::BehaviourData::hasAPosterioriTimeStepScalingFactor
static

if this attribute is true, the behaviour can compute an a posteriori estimate of the time step scaling factor after the integration

◆ hasPredictionOperator

const char* const mfront::BehaviourData::hasPredictionOperator
static

if this attribute is true, the behaviour can compute a prediction operator


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