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

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

Inheritance diagram for mfront::BehaviourDescription:
tfel::material::MechanicalBehaviourBase mfront::MaterialKnowledgeDescription mfront::SupportedTypes

Classes

struct  ConstantMaterialProperty
 this structure holds the value of a constant material property More...
struct  AnalyticMaterialProperty
 this structure holds the value of a material property defined through an analytic expression More...
struct  ExternalMFrontMaterialProperty
 this structure holds the value of a material property defined through an mfront file More...
struct  ExternalModelBasedOnBehaviourVariableFactory
 structure describing a model based on a behaviour factory More...
struct  HillTensor
 structure used to defined a Hill tensor More...
struct  MaterialPropertyInput
 a simple structure used to compte the value of a material property More...

Public Types

enum  VerificationStatus { UNVERIFIED , VERIFIED }
 validation tatus
enum  ValidationStatus { UNVALIDATED , VALIDATED }
 validation tatus
enum  StrainMeasure { LINEARISED , GREENLAGRANGE , HENCKY }
 Strain measure.
using ModellingHypothesis = tfel::material::ModellingHypothesis
 a simple alias
using Hypothesis = ModellingHypothesis::Hypothesis
 a simple alias
using CrystalStructure = tfel::material::CrystalStructure
 a simple alias
using SlipSystemsDescription = tfel::material::SlipSystemsDescription
 a simple alias
using SlipSystem = SlipSystemsDescription::system
 a simple alias
using InteractionMatrixStructure
 a simple alias
using OrthotropicAxesConvention = tfel::material::OrthotropicAxesConvention
 a simple alias
using Mode = BehaviourData::Mode
 a simple alias
using Position = BehaviourData::Position
 a simple alias
using MaterialPropertyTypes
 list of supported material properties types
using StressFreeExpansionDescription
 a simple alias
using MaterialProperty
using IntegrationScheme = mfront::IntegrationScheme
 a simple alias
Public Types inherited from tfel::material::MechanicalBehaviourBase
enum  BehaviourType { GENERALBEHAVIOUR = 0 , STANDARDSTRAINBASEDBEHAVIOUR = 1 , STANDARDFINITESTRAINBEHAVIOUR = 2 , COHESIVEZONEMODEL = 3 }
enum  Kinematic {
  UNDEFINEDKINEMATIC = 0 , SMALLSTRAINKINEMATIC = 1 , COHESIVEZONEKINEMATIC = 2 , FINITESTRAINKINEMATIC_F_CAUCHY = 3 ,
  FINITESTRAINKINEMATIC_ETO_PK1 = 4
}
enum  ExitStatus { FAILURE = 0 , SUCCESS = 1 , UNRELIABLE_RESULTS }
 return values of the integrate method
enum  SMType {
  ELASTIC , SECANTOPERATOR , TANGENTOPERATOR , CONSISTENTTANGENTOPERATOR ,
  NOSTIFFNESSREQUESTED
}
 list of possible tangent operator type
Public Types inherited from mfront::SupportedTypes
enum  TypeFlag { SCALAR , TVECTOR , STENSOR , TENSOR }
 flag associaed with a variable type
using const_iterator = tfel::utilities::CxxTokenizer::const_iterator
 a simple alias

Public Member Functions

 BehaviourDescription ()
 default constructor
 BehaviourDescription (const tfel::utilities::DataMap &)
 constructor
 BehaviourDescription (const BehaviourDescription &)
 copy constructor
void setAttribute (const Hypothesis, const std::string &, const MaterialKnowledgeAttribute &, const bool=false)
 set a mechanical attribute
void updateAttribute (const Hypothesis, const std::string &, const MaterialKnowledgeAttribute &)
 update an attribute
template<typename T>
const T & getAttribute (const Hypothesis, const std::string &) const
template<typename T>
T getAttribute (const Hypothesis, const std::string &, const T &) const
bool hasAttribute (const Hypothesis, const std::string &) const
bool isModel () const noexcept
bool allowsNewUserDefinedVariables () const
 return true if the behaviour description allows the declaration of user defined variables
void completeVariableDeclaration ()
 complete the declaration of variables
void areDynamicallyAllocatedVectorsAllowed (const bool)
 set if dynamically allocated vectors are allowed
bool areDynamicallyAllocatedVectorsAllowed () const
bool useDynamicallyAllocatedVector (const unsigned short) const
bool isBehaviourNameDefined () const
void overrideByAParameter (const std::string &, const double)
 specify that the given variable must be overriden by a parameter when declared.
std::map< std::string, double > getOverridenParameters () const
void setBehaviourName (const std::string &)
 set the behaviour name
const std::string & getBehaviourName () const
void setDSLName (const std::string &)
 set the dsl name
const std::string & getDSLName () const
void setMaterialName (const std::string &)
 set the material name
const std::string & getMaterialName () const
void setLibrary (const std::string &)
 set the library name
const std::string & getLibrary () const
void setClassName (const std::string &)
 set the class name
const std::string & getClassName () const
std::string getFullClassName () const
bool shallDefineDefaultConstructor () const
bool isFinal () const
std::string getInternalNamespace () const
std::string getBehaviourFileName () const
std::string getBehaviourDataFileName () const
std::string getIntegrationDataFileName () const
std::string getSlipSystemHeaderFileName () const
std::string getSlipSystemImplementationFileName () const
std::string getSrcFileName () const
MaterialPropertyInput getMaterialPropertyInput (const std::string &, const bool=true) const
std::vector< MaterialPropertyInput > getMaterialPropertyInputs (const std::vector< std::string > &, const bool=true) const
std::vector< MaterialPropertyInput > getMaterialPropertyInputs (const MaterialPropertyDescription &, const bool=true) const
void appendToSources (const std::string &)
 append the given code to the sources
const std::string & getSources () const
void appendToMembers (const Hypothesis, const std::string &, const bool)
 append the given code to the members
std::string getMembers (const Hypothesis) const
void appendToPrivateCode (const Hypothesis, const std::string &, const bool)
 append the given code to the members
void addInitializeFunction (const Hypothesis, const std::string &, const CodeBlock &)
 add the given initialize function
void addPostProcessing (const Hypothesis, const std::string &, const CodeBlock &)
 add the given post-processing
std::string getPrivateCode (const Hypothesis) const
void appendToIncludes (const std::string &)
 append the given code to the includes
const std::string & getIncludes () const
void addMaterialLaw (const std::string &)
void addModelDescription (const ModelDescription &)
 add a model description. All outputs of the model are automatically added as auxiliary state variables
void addModelDescription (const BehaviourVariableDescription &)
 add a model description based on an already declared behaviour variable factory.
void addAuxiliaryModelDescription (const ModelDescription &)
 add an auxiliary model description. All outputs of the model are automatically added as auxiliary state variables
void addAuxiliaryModelDescription (const BehaviourVariableDescription &)
 add an auxiliary model description based on an already declared behaviour variable factory.
void addLocalDataStructure (const LocalDataStructure &, const BehaviourData::RegistrationStatus=BehaviourData::UNREGISTRED)
const std::vector< std::string > & getMaterialLaws () const
std::pair< SupportedTypes::TypeSize, SupportedTypes::TypeSize > getMainVariablesSize () const
void addMainVariable (const Gradient &, const ThermodynamicForce &)
 add a new main variable
const std::vector< std::pair< Gradient, ThermodynamicForce > > & getMainVariables () const
void setTangentOperatorBlocks (const std::vector< std::string > &)
 set the tangent operator blocks and disable the use of the default blocks.
void addTangentOperatorBlock (const std::string &)
 add new block to the tangent operator
void addTangentOperatorBlocks (const std::vector< std::string > &)
 add new blocks to the tangent operator
const Gradient & getGradient (const std::string &) const
const Gradient & getGradientByExternalName (const std::string &) const
const ThermodynamicForce & getThermodynamicForce (const std::string &) const
const ThermodynamicForce & getThermodynamicForceByExternalName (const std::string &) const
std::vector< std::pair< VariableDescription, VariableDescription > > getTangentOperatorBlocks () const
std::string getTangentOperatorBlockName (const std::pair< VariableDescription, VariableDescription > &) const
std::string getTangentOperatorBlockSymbolicName (const std::pair< VariableDescription, VariableDescription > &) const
void declareAsGenericBehaviour ()
 set the behaviour to be a generic behaviour
void declareAsASmallStrainStandardBehaviour ()
 set the behaviour to be a small strain standard behaviour
void declareAsAFiniteStrainStandardBehaviour (const bool)
 set the behaviour to be a finite strain standard behaviour
void declareAsACohesiveZoneModel ()
 set the behaviour to be a cohesive zone model
void setStrainMeasure (const StrainMeasure)
 set the strain measure to be used
void setSaveStrainMeasure (const bool)
 set if the strain measure shall be save
void setSaveDualStress (const bool)
 set if the dual stress shall be save
StrainMeasure getStrainMeasure () const
bool isStrainMeasureDefined () const
bool saveStrainMeasure () const
bool saveDualStress () const
bool hasTangentOperator () const
bool hasTrivialTangentOperatorStructure () const
std::string computeTangentOperatorSize () const
std::string getTangentOperatorType () const
bool useQt () const
void setIntegrationScheme (const IntegrationScheme)
 disable the usage of quantities if not already specified.
*return the integration scheme used IntegrationScheme getIntegrationScheme () const
*return a string describing the behaviour type std::string getBehaviourTypeFlag () const
*return the symmetry type of the behaviour BehaviourSymmetryType getSymmetryType () const
void setSymmetryType (const BehaviourSymmetryType)
bool isSymmetryTypeDefined () const
BehaviourSymmetryType getElasticSymmetryType () const
void setElasticSymmetryType (const BehaviourSymmetryType)
bool isElasticSymmetryTypeDefined () const
void setOrthotropicAxesConvention (const OrthotropicAxesConvention)
 set the orthotropic axes convention.
OrthotropicAxesConvention getOrthotropicAxesConvention () const
bool hasCrystalStructure () const
*return the crystal structure of the material CrystalStructure getCrystalStructure () const
void setCrystalStructure (const CrystalStructure)
 set the crystal structure
void setCrystalStructure (const CrystalStructure, const long double)
 set the crystal structure
*return true if slip systems were defined bool areSlipSystemsDefined () const
void setSlipSystems (const std::vector< SlipSystem > &)
 set the behaviour slip systems
*return the slip systemss const SlipSystemsDescription & getSlipSystems () const
void setInteractionMatrix (const std::vector< long double > &)
 set the interaction matrix.
InteractionMatrixStructure getInteractionMatrixStructure () const
 return the interaction matrix structure.
bool hasInteractionMatrix () const
 return true if an interaction matrix is defined.
bool hasDislocationsMeanFreePathInteractionMatrix () const
 return true if an interaction matrix is defined.
void setDislocationsMeanFreePathInteractionMatrix (const std::vector< long double > &)
 set the interaction matrix.
bool isMaterialPropertyConstantDuringTheTimeStep (const MaterialProperty &) const
bool isMaterialPropertyDependantOnStateVariables (const MaterialProperty &) const
*return registred models const std::vector< std::variant< ModelDescription, ExternalModelBasedOnBehaviourVariableFactory > > & getModelsDescriptions () const
*return registred models const std::vector< std::variant< ModelDescription, ExternalModelBasedOnBehaviourVariableFactory > > & getAuxiliaryModelsDescriptions () const
void setElasticMaterialProperties (const std::vector< MaterialProperty > &)
 set the elastic material properties
const std::vector< MaterialProperty > & getElasticMaterialProperties () const
std::vector< MaterialPropertyDescription > getElasticMaterialPropertiesDescriptions () const
 this method is meant to generate callable material properties when needed.
bool areElasticMaterialPropertiesDefined () const
bool areElasticMaterialPropertiesConstantDuringTheTimeStep () const
bool areMaterialPropertiesConstantDuringTheTimeStep (const std::vector< MaterialProperty > &) const
bool areElasticMaterialPropertiesDependantOnStateVariables () const
bool areMaterialPropertiesDependantOnStateVariables (const std::vector< MaterialProperty > &) const
void addHillTensor (const VariableDescription &, const std::vector< MaterialProperty > &)
 add a new Hill tensor
const std::vector< HillTensor > & getHillTensors () const
const BehaviourData & getBehaviourData (const Hypothesis) const
*return true if modelling hypotheses are defined bool areModellingHypothesesDefined () const
const std::set< Hypothesis > & getModellingHypotheses () const
std::set< Hypothesis > getDistinctModellingHypotheses () const
bool isModellingHypothesisSupported (const Hypothesis) const
void setModellingHypotheses (const std::set< Hypothesis > &, const bool b=false)
 set the list of supported modelling hypotheses
void addMaterialProperties (const Hypothesis, const VariableDescriptionContainer &, const BehaviourData::RegistrationStatus=BehaviourData::UNREGISTRED)
 add material properties
void addParameters (const Hypothesis, const VariableDescriptionContainer &, const BehaviourData::RegistrationStatus=BehaviourData::UNREGISTRED)
 add parameters
void addMaterialProperty (const Hypothesis, const VariableDescription &, const BehaviourData::RegistrationStatus=BehaviourData::UNREGISTRED)
 add a material property
void addIntegrationVariable (const Hypothesis, const VariableDescription &, const BehaviourData::RegistrationStatus=BehaviourData::UNREGISTRED)
 add a state variables
void addIntegrationVariables (const Hypothesis, const VariableDescriptionContainer &, const BehaviourData::RegistrationStatus=BehaviourData::UNREGISTRED)
 add state variables
void addStateVariable (const Hypothesis, const VariableDescription &, const BehaviourData::RegistrationStatus=BehaviourData::UNREGISTRED)
 add a state variables
void addStateVariables (const Hypothesis, const VariableDescriptionContainer &, const BehaviourData::RegistrationStatus=BehaviourData::UNREGISTRED)
 add state variables
void addAuxiliaryStateVariables (const Hypothesis, const VariableDescriptionContainer &, const BehaviourData::RegistrationStatus=BehaviourData::UNREGISTRED)
 add auxiliary state variables
void addAuxiliaryStateVariable (const Hypothesis, const VariableDescription &, const BehaviourData::RegistrationStatus=BehaviourData::UNREGISTRED)
 add an auxiliary state variable
bool isTemperatureDefinedAsTheFirstExternalStateVariable () const
void addExternalStateVariables (const Hypothesis, const VariableDescriptionContainer &, const BehaviourData::RegistrationStatus=BehaviourData::UNREGISTRED)
 add external state variables
void addExternalStateVariable (const Hypothesis, const VariableDescription &, const BehaviourData::RegistrationStatus=BehaviourData::UNREGISTRED)
 add external state variable
void addBehaviourVariable (const BehaviourVariableDescription &)
 add a behaviour variable
void addBehaviourVariableFactory (const BehaviourVariableDescription &)
 add a behaviour variable factory
void addInitializeFunctionVariables (const Hypothesis, const VariableDescriptionContainer &)
 add initialize variables
void addInitializeFunctionVariable (const Hypothesis, const VariableDescription &)
 add an initialize variable
void addPostProcessingVariables (const Hypothesis, const VariableDescriptionContainer &)
 add post-processing variables
void addPostProcessingVariable (const Hypothesis, const VariableDescription &)
 add an post-processing variable
void addLocalVariable (const Hypothesis, const VariableDescription &, const BehaviourData::RegistrationStatus=BehaviourData::UNREGISTRED)
 add a local variable
void addLocalVariables (const Hypothesis, const VariableDescriptionContainer &, const BehaviourData::RegistrationStatus=BehaviourData::UNREGISTRED)
 add local variables
void addStaticVariable (const Hypothesis, const StaticVariableDescription &, const BehaviourData::RegistrationStatus=BehaviourData::UNREGISTRED)
 add a static variable
std::map< std::string, int > getIntegerConstants (const Hypothesis) const
int getIntegerConstant (const Hypothesis, const std::string &) const
void addParameter (const Hypothesis, const VariableDescription &, const BehaviourData::RegistrationStatus=BehaviourData::UNREGISTRED)
 add a material property
void setVariableAttribute (const Hypothesis, const std::string &, const std::string &, const VariableAttribute &, const bool)
 assign an attribute to variable
*return a type suitable for storing stress free expansion std::string getStressFreeExpansionType () const
void addStressFreeExpansion (const Hypothesis, const StressFreeExpansionDescription &)
 add a new stress free expansion description
const std::vector< BehaviourData::StressFreeExpansionDescription > & getStressFreeExpansionDescriptions (const Hypothesis) const
bool isStressFreeExansionAnisotropic (const Hypothesis) const
bool isMaterialPropertyName (const Hypothesis, const std::string &) const
bool isLocalVariableName (const Hypothesis, const std::string &) const
bool isPersistentVariableName (const Hypothesis, const std::string &) const
bool isIntegrationVariableName (const Hypothesis, const std::string &) const
bool isIntegrationVariableIncrementName (const Hypothesis, const std::string &) const
bool isStateVariableName (const Hypothesis, const std::string &) const
bool isStateVariableIncrementName (const Hypothesis, const std::string &) const
bool isAuxiliaryStateVariableName (const Hypothesis, const std::string &) const
bool isExternalStateVariableName (const Hypothesis, const std::string &) const
bool isExternalStateVariableIncrementName (const Hypothesis, const std::string &) const
bool isStaticVariableName (const Hypothesis, const std::string &) const
void requiresTVectorOrVectorIncludes (bool &, bool &) const
 check if one has to include tvector.hxx or vector.hxx
void requiresTVectorOrVectorIncludes (bool &, bool &, const BehaviourData &) const
 check if one has to include tvector.hxx or vector.hxx
bool areAllMechanicalDataSpecialised () const
bool areAllMechanicalDataSpecialised (const std::set< Hypothesis > &) const
bool hasSpecialisedMechanicalData (const Hypothesis) const
void specialize (const Hypothesis)
 specialize the given hypothesis
*return true if a stress free expansion has been defined bool requiresStressFreeExpansionTreatment (const Hypothesis) const
*return true if thermal expansion coefficient were defined bool areThermalExpansionCoefficientsDefined () const
*return the thermal expansion coefficients const std::vector< MaterialProperty > & getThermalExpansionCoefficients () const
std::vector< MaterialPropertyDescription > getThermalExpansionCoefficientsDescriptions () const
 this method is meant to generate callable material properties when needed.
void setThermalExpansionCoefficient (MaterialProperty)
void setThermalExpansionCoefficients (MaterialProperty, MaterialProperty, MaterialProperty)
std::vector< std::string > getExternalNames (const Hypothesis, const VarContainer &) const
void getExternalNames (std::vector< std::string > &, const Hypothesis, const VarContainer &) const
void appendExternalNames (std::vector< std::string > &, const Hypothesis, const VarContainer &) const
bool isMemberUsedInCodeBlocks (const Hypothesis, const std::string &) const
bool isParameterName (const Hypothesis, const std::string &) const
bool isInitializeFunctionVariableName (const Hypothesis, const std::string &) const
bool isPostProcessingVariableName (const Hypothesis, const std::string &) const
void setParameterDefaultValue (const Hypothesis, const std::string &, const double)
void setParameterDefaultValue (const Hypothesis, const std::string &, const unsigned short i, const double)
void setParameterDefaultValue (const Hypothesis, const std::string &, const int)
void setParameterDefaultValue (const Hypothesis, const std::string &, const unsigned short)
double getFloattingPointParameterDefaultValue (const Hypothesis, const std::string &) const
double getFloattingPointParameterDefaultValue (const Hypothesis, const std::string &, const unsigned short) const
int getIntegerParameterDefaultValue (const Hypothesis, const std::string &) const
unsigned short getUnsignedShortParameterDefaultValue (const Hypothesis, const std::string &) const
void setGlossaryName (const std::string &, const std::string &)
 associate a glossary name to a gradient or a thermodynamic force
void setGlossaryName (const Hypothesis, const std::string &, const std::string &)
bool isGlossaryNameUsed (const Hypothesis, const std::string &) const
bool hasGlossaryName (const Hypothesis, const std::string &) const
void setEntryName (const std::string &, const std::string &)
 associate a glossary name to a gradient or a thermodynamic force
bool hasEntryName (const Hypothesis, const std::string &) const
void setEntryName (const Hypothesis, const std::string &, const std::string &)
std::string getExternalName (const Hypothesis h, const std::string &n) const
const VariableDescription & getVariableDescriptionByExternalName (const Hypothesis, const std::string &) const
std::string getVariableNameFromGlossaryNameOrEntryName (const Hypothesis, const std::string &) const
bool isUsedAsEntryName (const Hypothesis, const std::string &) const
void setBounds (const Hypothesis, const std::string &, const VariableBoundsDescription &)
 add bounds to a variable
void setBounds (const Hypothesis, const std::string &, const unsigned short, const VariableBoundsDescription &)
 add bounds to a variable
void setPhysicalBounds (const Hypothesis, const std::string &, const VariableBoundsDescription &)
 add physical bounds to a variable
void setPhysicalBounds (const Hypothesis, const std::string &, const unsigned short, const VariableBoundsDescription &)
 add physical bounds to a variable
void declareExternalStateVariableProbablyUnusableInPurelyImplicitResolution (const Hypothesis, 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.
void setUsableInPurelyImplicitResolution (const Hypothesis, const bool)
 set if this behaviour can be used in a purely implicit resolution.
void setCode (const Hypothesis, const std::string &, const CodeBlock &, const Mode, const Position, const bool=true)
 declare or update a code block
std::vector< std::string > getCodeBlockNames (const Hypothesis) const
 return the name of the code blocks defined so far
const CodeBlock & getCodeBlock (const Hypothesis, const std::string &) const
std::string getCode (const Hypothesis, const std::string &) const
bool hasCode (const Hypothesis, const std::string &) const
bool hasParameter (const Hypothesis, const std::string &) const
bool hasParameters (const Hypothesis) const
bool hasParameters () const
void reserveName (const Hypothesis, const std::string &)
bool isNameReserved (const std::string &) const
 look if a name is reserved
void registerGlossaryName (const Hypothesis, const std::string &, const std::string &)
 register the given glossary name
void registerEntryName (const Hypothesis, const std::string &, const std::string &)
 register the given entry name
void registerMemberName (const Hypothesis, const std::string &)
void registerStaticMemberName (const Hypothesis, const std::string &)
std::pair< bool, bool > checkVariableExistence (const std::string &) const
 check variable existence
std::pair< bool, bool > checkVariableExistence (const std::string &, const std::string &, const bool=true) const
 check variable existence for a particular sort of variable.
void checkVariableGlossaryName (const std::string &, const std::string &) const
 check variable glossary name. The variable must exists for all modelling hypothesis and have the given glossary name. If not, an exception is thrown. If another variable has the given glossary name, an exception if thrown.
void checkVariableEntryName (const std::string &, const std::string &) const
 check variable entry name. The variable must exists for all modelling hypothesis and have the given entry name. If not, an exception is thrown. If another variable has the given entry name, an exception if thrown.
void checkVariablePosition (const std::string &, const std::string &, const size_t)
 check a variable position. Throw an exception if this check is not satisfied.
void getSymbols (std::map< std::string, std::string > &, const Hypothesis) const
 retrieve all the symbols associated with the declared variables.
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
bool hasAttribute (const std::string_view) const
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
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
Public Member Functions inherited from mfront::SupportedTypes
 SupportedTypes ()
 default constructor
 SupportedTypes (SupportedTypes &&)=default
 move constructor
 SupportedTypes (const SupportedTypes &)=default
 copy constructor
SupportedTypes & operator= (SupportedTypes &&)=default
 move assignement
SupportedTypes & operator= (const SupportedTypes &)=default
 copy assignement
virtual ~SupportedTypes ()
 desctructor

Static Public Attributes

static const char *const automaticDeclarationOfTheTemperatureAsFirstExternalStateVariable
 standard option and attribute name
static const char *const modellingHypothesis
 standard option
static const char *const modellingHypotheses
 standard option
static const char *const internalNamespace
 standard option and attribute
static const char *const defaultConstructor
 standard option and attribute
static const char *const finalClass
 standard option and attribute
static const char *const saveThermalExpansion
 standard attribute
static constexpr IntegrationScheme IMPLICITSCHEME
 a simple alias for backward compatibility
static constexpr IntegrationScheme EXPLICITSCHEME
 a simple alias for backward compatibility
static constexpr IntegrationScheme SPECIFICSCHEME
 a simple alias for backward compatibility
static constexpr IntegrationScheme USERDEFINEDSCHEME
 a simple alias for backward compatibility
static constexpr IntegrationScheme UNDEFINEDINTEGRATIONSCHEME
 a simple alias for backward compatibility
static const char *const requiresStiffnessTensor
 attribute name
static const char *const computesStiffnessTensor
 attribute name
static const char *const requiresUnAlteredStiffnessTensor
 attribute name
static const char *const requiresThermalExpansionCoefficientTensor
 attribute name
static const char *const setRequireThermalExpansionCoefficientTensor
 attribute name
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
Static Public Attributes inherited from mfront::SupportedTypes
static constexpr int ArraySizeLimit = 10u
 limit for small array support

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
Static Public Member Functions inherited from mfront::SupportedTypes
static const std::map< std::string, TypeFlag, std::less<> > & getTypeFlags ()
static bool isSupportedConstexprIntegerVariables (const std::string_view)
static std::string extractType (const_iterator &, const const_iterator &, const TypeParsingOptions &=TypeParsingOptions())
static std::string extractType (const std::string_view, const TypeParsingOptions &=TypeParsingOptions())
static bool hasTypeFlag (const std::string_view)
static bool isScalarType (const std::string_view)
static TypeFlag getTypeFlag (const std::string_view)
static int getTypeIdentifier (const std::string_view)
static TypeSize getTypeSize (const std::string_view, const unsigned short=1)
static std::string getTimeDerivativeType (const std::string_view)
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 describes a mechanical behaviour

This class handles the fact that the mechanical behaviour data may depend on the modelling hypothesis considered, altough most of the time they won't.

This class thus stores a default mechanical behaviour data which is intendend to be valid for most hypotheses, and specific mechanical behaviour datas when required.

Member Typedef Documentation

◆ InteractionMatrixStructure

Initial value:
structure describing the structure of the interaction matrix.
Definition SlipSystemsDescription.hxx:63

a simple alias

◆ MaterialProperty

Initial value:
the base class of GenType.
Definition GenTypeBase.hxx:118

The description of a material property from the point of view of a behaviour.

◆ MaterialPropertyTypes

Initial value:
tfel::meta::GenerateTypeList<ConstantMaterialProperty,
this structure holds the value of a material property defined through an analytic expression
Definition BehaviourDescription.hxx:127
this structure holds the value of a constant material property
Definition BehaviourDescription.hxx:117
this structure holds the value of a material property defined through an mfront file
Definition BehaviourDescription.hxx:137

list of supported material properties types

◆ StressFreeExpansionDescription

Initial value:
tfel::utilities::GenTypeBase< StressFreeExpansionDescriptionTypes > StressFreeExpansionDescription
description of a stress free expansion
Definition mfront/include/MFront/BehaviourData.hxx:276

a simple alias

Constructor & Destructor Documentation

◆ BehaviourDescription()

mfront::BehaviourDescription::BehaviourDescription ( const tfel::utilities::DataMap & )
explicit

constructor

Parameters
[in]optsoptions

Member Function Documentation

◆ addAuxiliaryModelDescription() [1/2]

void mfront::BehaviourDescription::addAuxiliaryModelDescription ( const BehaviourVariableDescription & )

add an auxiliary model description based on an already declared behaviour variable factory.

Parameters
[in]mdmodel description

◆ addAuxiliaryModelDescription() [2/2]

void mfront::BehaviourDescription::addAuxiliaryModelDescription ( const ModelDescription & )

add an auxiliary model description. All outputs of the model are automatically added as auxiliary state variables

Parameters
[in]mdmodel description

◆ addAuxiliaryStateVariable()

void mfront::BehaviourDescription::addAuxiliaryStateVariable ( const Hypothesis ,
const VariableDescription & ,
const BehaviourData::RegistrationStatus = BehaviourData::UNREGISTRED )

add an auxiliary state variable

Parameters
[in]hmodelling hypothesis
[in]vauxiliary state variable added
[in]sregistration status
Note
if h is UNDEFINEDHYPOTHESIS, add the auxiliary state variables to the default data and to all the specialisations

◆ addAuxiliaryStateVariables()

void mfront::BehaviourDescription::addAuxiliaryStateVariables ( const Hypothesis ,
const VariableDescriptionContainer & ,
const BehaviourData::RegistrationStatus = BehaviourData::UNREGISTRED )

add auxiliary state variables

Parameters
[in]hmodelling hypothesis
[in]vauxiliary state variables added
[in]sregistration status
Note
if h is UNDEFINEDHYPOTHESIS, add the auxiliary state variables to the default data and to all the specialisations

◆ addBehaviourVariable()

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

add a behaviour variable

Parameters
[in]vbehaviour variable added

◆ addBehaviourVariableFactory()

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

add a behaviour variable factory

Parameters
[in]vbehaviour variable added

◆ addExternalStateVariable()

void mfront::BehaviourDescription::addExternalStateVariable ( const Hypothesis ,
const VariableDescription & ,
const BehaviourData::RegistrationStatus = BehaviourData::UNREGISTRED )

add external state variable

Parameters
[in]hmodelling hypothesis
[in]vexternal state variable added
[in]sregistration status
Note
if h is UNDEFINEDHYPOTHESIS, add the external state variable to the default data and to all the specialisations

◆ addExternalStateVariables()

void mfront::BehaviourDescription::addExternalStateVariables ( const Hypothesis ,
const VariableDescriptionContainer & ,
const BehaviourData::RegistrationStatus = BehaviourData::UNREGISTRED )

add external state variables

Parameters
[in]hmodelling hypothesis
[in]vexternal state variables added
[in]sregistration status
Note
if h is UNDEFINEDHYPOTHESIS, add the external state variables to the default data and to all the specialisations

◆ addHillTensor()

void mfront::BehaviourDescription::addHillTensor ( const VariableDescription & ,
const std::vector< MaterialProperty > &  )

add a new Hill tensor

Parameters
[in]vvariable description
[in]hcsHill tensor coefficents
Precondition
the behaviour must be either small strain or finite strain
the material must be orthotropic
the number of Hill tensor coefficients must be 6
the variable name must be valid and unused yet
the type of the variable must be "tfel::math::st2tost2<N,stress>"
the array size of the variable must be 1

◆ addInitializeFunction()

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

add the given initialize function

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

◆ addInitializeFunctionVariable()

void mfront::BehaviourDescription::addInitializeFunctionVariable ( const Hypothesis ,
const VariableDescription &  )

add an initialize variable

Parameters
[in]hmodelling hypothesis
[in]vauxiliary state variable added
[in]sregistration status
Note
if h is UNDEFINEDHYPOTHESIS, add the given initialize variable to the default data and to all the specialisations

◆ addInitializeFunctionVariables()

void mfront::BehaviourDescription::addInitializeFunctionVariables ( const Hypothesis ,
const VariableDescriptionContainer &  )

add initialize variables

Parameters
[in]hmodelling hypothesis
[in]vinitialize variables added
[in]sregistration status
Note
if h is UNDEFINEDHYPOTHESIS, add the initialize variables to the default data and to all the specialisations

◆ addIntegrationVariable()

void mfront::BehaviourDescription::addIntegrationVariable ( const Hypothesis ,
const VariableDescription & ,
const BehaviourData::RegistrationStatus = BehaviourData::UNREGISTRED )

add a state variables

Parameters
[in]hmodelling hypothesis
[in]vstate variable added
[in]sregistration status
Note
if h is UNDEFINEDHYPOTHESIS, add the state variables to the default data and to all the specialisations

◆ addIntegrationVariables()

void mfront::BehaviourDescription::addIntegrationVariables ( const Hypothesis ,
const VariableDescriptionContainer & ,
const BehaviourData::RegistrationStatus = BehaviourData::UNREGISTRED )

add state variables

Parameters
[in]hmodelling hypothesis
[in]vstate variables added
[in]sregistration status
Note
if h is UNDEFINEDHYPOTHESIS, add the state variables to the default data and to all the specialisations

◆ addLocalDataStructure()

void mfront::BehaviourDescription::addLocalDataStructure ( const LocalDataStructure & ,
const BehaviourData::RegistrationStatus = BehaviourData::UNREGISTRED )

add a local data structure

Parameters
[in]ldslocal data structure
[in]sregistration status

◆ addLocalVariable()

void mfront::BehaviourDescription::addLocalVariable ( const Hypothesis ,
const VariableDescription & ,
const BehaviourData::RegistrationStatus = BehaviourData::UNREGISTRED )

add a local variable

Parameters
[in]hmodelling hypothesis
[in]vlocal variable added
[in]sregistration status
Note
if h is UNDEFINEDHYPOTHESIS, add the local variables to the default data and to all the specialisations

◆ addLocalVariables()

void mfront::BehaviourDescription::addLocalVariables ( const Hypothesis ,
const VariableDescriptionContainer & ,
const BehaviourData::RegistrationStatus = BehaviourData::UNREGISTRED )

add local variables

Parameters
[in]hmodelling hypothesis
[in]vlocal variables added
[in]sregistration status
Note
if h is UNDEFINEDHYPOTHESIS, add the local variables to the default data and to all the specialisations

◆ addMainVariable()

void mfront::BehaviourDescription::addMainVariable ( const Gradient & ,
const ThermodynamicForce &  )

add a new main variable

Note
using this method means that the behaviour type is always 'GENERALBEHAVIOUR'. This can't be changed afterwards.

◆ addMaterialLaw()

void mfront::BehaviourDescription::addMaterialLaw ( const std::string & )

add a material law

Parameters
[in]m:materiallaw

◆ addMaterialProperties()

void mfront::BehaviourDescription::addMaterialProperties ( const Hypothesis ,
const VariableDescriptionContainer & ,
const BehaviourData::RegistrationStatus = BehaviourData::UNREGISTRED )

add material properties

Parameters
[in]hmodelling hypothesis
[in]vmaterial properties added
[in]sregistration status
Note
if h is UNDEFINEDHYPOTHESIS, add the material properties to the default data and to all the specialisations

◆ addMaterialProperty()

void mfront::BehaviourDescription::addMaterialProperty ( const Hypothesis ,
const VariableDescription & ,
const BehaviourData::RegistrationStatus = BehaviourData::UNREGISTRED )

add a material property

Parameters
[in]hmodelling hypothesis
[in]vmaterial property added
[in]sregistration status
Note
if h is UNDEFINEDHYPOTHESIS, add the material properties to the default data and to all the specialisations

◆ addModelDescription() [1/2]

void mfront::BehaviourDescription::addModelDescription ( const BehaviourVariableDescription & )

add a model description based on an already declared behaviour variable factory.

Parameters
[in]mdmodel description

◆ addModelDescription() [2/2]

void mfront::BehaviourDescription::addModelDescription ( const ModelDescription & )

add a model description. All outputs of the model are automatically added as auxiliary state variables

Parameters
[in]mdmodel description

◆ addParameter()

void mfront::BehaviourDescription::addParameter ( const Hypothesis ,
const VariableDescription & ,
const BehaviourData::RegistrationStatus = BehaviourData::UNREGISTRED )

add a material property

Parameters
[in]hmodelling hypothesis
[in]vparameter
[in]sregistration status
Note
if h is UNDEFINEDHYPOTHESIS, add the material properties to the default data and to all the specialisations

◆ addParameters()

void mfront::BehaviourDescription::addParameters ( const Hypothesis ,
const VariableDescriptionContainer & ,
const BehaviourData::RegistrationStatus = BehaviourData::UNREGISTRED )

add parameters

Parameters
[in]hmodelling hypothesis
[in]vmaterial properties added
[in]sregistration status
Note
if h is UNDEFINEDHYPOTHESIS, add the parameters to the default data and to all the specialisations

◆ addPostProcessing()

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

add the given post-processing

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

◆ addPostProcessingVariable()

void mfront::BehaviourDescription::addPostProcessingVariable ( const Hypothesis ,
const VariableDescription &  )

add an post-processing variable

Parameters
[in]hmodelling hypothesis
[in]vauxiliary state variable added
[in]sregistration status
Note
if h is UNDEFINEDHYPOTHESIS, add the post-processing variable to the default data and to all the specialisations

◆ addPostProcessingVariables()

void mfront::BehaviourDescription::addPostProcessingVariables ( const Hypothesis ,
const VariableDescriptionContainer &  )

add post-processing variables

Parameters
[in]hmodelling hypothesis
[in]vpost-processing variables added
[in]sregistration status
Note
if h is UNDEFINEDHYPOTHESIS, add the post-processing variables to the default data and to all the specialisations

◆ addStateVariable()

void mfront::BehaviourDescription::addStateVariable ( const Hypothesis ,
const VariableDescription & ,
const BehaviourData::RegistrationStatus = BehaviourData::UNREGISTRED )

add a state variables

Parameters
[in]hmodelling hypothesis
[in]vstate variable added
[in]sregistration status
Note
if h is UNDEFINEDHYPOTHESIS, add the state variables to the default data and to all the specialisations

◆ addStateVariables()

void mfront::BehaviourDescription::addStateVariables ( const Hypothesis ,
const VariableDescriptionContainer & ,
const BehaviourData::RegistrationStatus = BehaviourData::UNREGISTRED )

add state variables

Parameters
[in]hmodelling hypothesis
[in]vstate variables added
[in]sregistration status
Note
if h is UNDEFINEDHYPOTHESIS, add the state variables to the default data and to all the specialisations

◆ addStaticVariable()

void mfront::BehaviourDescription::addStaticVariable ( const Hypothesis ,
const StaticVariableDescription & ,
const BehaviourData::RegistrationStatus = BehaviourData::UNREGISTRED )

add a static variable

Parameters
[in]hmodelling hypothesis
[in]vstatic variable
[in]sregistration status
Note
if h is UNDEFINEDHYPOTHESIS, add the local variable to the default data and to all the specialisations

◆ addStressFreeExpansion()

void mfront::BehaviourDescription::addStressFreeExpansion ( const Hypothesis ,
const StressFreeExpansionDescription &  )

add a new stress free expansion description

Parameters
[in]hmodelling hypothesis
[in]sfedstress free expansion description

◆ addTangentOperatorBlock()

void mfront::BehaviourDescription::addTangentOperatorBlock ( const std::string & )

add new block to the tangent operator

Parameters
[in]bblock name
Note
a valid block defines either:
  • the derivative of a thermodynamic force with respect to an external state variable.
  • the derivative of a state variable or an auxiliary state variable with respect to a gradient or an external state variable.
This method is only valid for general behaviours

◆ addTangentOperatorBlocks()

void mfront::BehaviourDescription::addTangentOperatorBlocks ( const std::vector< std::string > & )

add new blocks to the tangent operator

Parameters
[in]bnslist of blocks names
Note
This method is only valid for general behaviours

◆ appendExternalNames()

void mfront::BehaviourDescription::appendExternalNames ( std::vector< std::string > & ,
const Hypothesis ,
const VarContainer &  ) const

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

Parameters
[out]nnames
[in]hmodelling Hypothesis
[in]vvariables for which external names are requested

◆ appendToIncludes()

void mfront::BehaviourDescription::appendToIncludes ( const std::string & )

append the given code to the includes

Parameters
[in]sincludes

◆ appendToMembers()

void mfront::BehaviourDescription::appendToMembers ( const Hypothesis ,
const std::string & ,
const bool  )

append the given code to the members

Parameters
[in]hhypothesis
[in]smembers
[in]bif h is UNDEFINEDHYPOTHIS, propagate to all specialised data

◆ appendToPrivateCode()

void mfront::BehaviourDescription::appendToPrivateCode ( const Hypothesis ,
const std::string & ,
const bool  )

append the given code to the members

Parameters
[in]hhypothesis
[in]smembers
[in]bif h is UNDEFINEDHYPOTHIS, propagate to all specialised data

◆ appendToSources()

void mfront::BehaviourDescription::appendToSources ( const std::string & )

append the given code to the sources

Parameters
[in]ssources

◆ areAllMechanicalDataSpecialised() [1/2]

bool mfront::BehaviourDescription::areAllMechanicalDataSpecialised ( ) const
Returns
true if all mechanical data are specialised This means that the default mechanical data is useless

◆ areAllMechanicalDataSpecialised() [2/2]

bool mfront::BehaviourDescription::areAllMechanicalDataSpecialised ( const std::set< Hypothesis > & ) const
Returns
true if all mechanical data associated with the given modelling hypothesis are specialised.
Parameters
[in]hmodelling hypotheses considered

◆ areDynamicallyAllocatedVectorsAllowed()

bool mfront::BehaviourDescription::areDynamicallyAllocatedVectorsAllowed ( ) const
Returns
true if dynamically allocated vectors are allowed

◆ areElasticMaterialPropertiesConstantDuringTheTimeStep()

bool mfront::BehaviourDescription::areElasticMaterialPropertiesConstantDuringTheTimeStep ( ) const
Returns
true if the elastic material properties are constant over the time step

◆ areElasticMaterialPropertiesDefined()

bool mfront::BehaviourDescription::areElasticMaterialPropertiesDefined ( ) const
Returns
true if the elastic material properties have been defined

◆ areElasticMaterialPropertiesDependantOnStateVariables()

bool mfront::BehaviourDescription::areElasticMaterialPropertiesDependantOnStateVariables ( ) const
Returns
true if the elastic material properties depend on state variables

◆ areMaterialPropertiesConstantDuringTheTimeStep()

bool mfront::BehaviourDescription::areMaterialPropertiesConstantDuringTheTimeStep ( const std::vector< MaterialProperty > & ) const
Returns
true if the given material properties are constant over the time step
Parameters
[in]mpslist of material properties

◆ areMaterialPropertiesDependantOnStateVariables()

bool mfront::BehaviourDescription::areMaterialPropertiesDependantOnStateVariables ( const std::vector< MaterialProperty > & ) const
Returns
true if the given material properties depend on state variables
Parameters
[in]mpslist of material properties

◆ checkVariableEntryName()

void mfront::BehaviourDescription::checkVariableEntryName ( const std::string & ,
const std::string &  ) const

check variable entry name. The variable must exists for all modelling hypothesis and have the given entry name. If not, an exception is thrown. If another variable has the given entry name, an exception if thrown.

Parameters
[in]vvariable name
[in]gentry name

◆ checkVariableExistence() [1/2]

std::pair< bool, bool > mfront::BehaviourDescription::checkVariableExistence ( const std::string & ) const

check variable existence

Returns
a pair of booleans. The first part tells if the variable is available for all the distinct modelling hypotheses and the second tells if the variable was found in at least one specialisation of the behaviour. The first part is false if the variable was not found. The variable could be any sort of variable (local variable, integration variable, static variable, ...)
Parameters
[in]v: variable name

◆ checkVariableExistence() [2/2]

std::pair< bool, bool > mfront::BehaviourDescription::checkVariableExistence ( const std::string & ,
const std::string & ,
const bool = true ) const

check variable existence for a particular sort of variable.

Returns
a pair of booleans. The first part tells if the variable is available for all the distinct modelling hypotheses and the second tells if the variable was found in at least one specialisation of the behaviour. The first part is false if the variable was not found.
Parameters
[in]vvariable name
[in]cvariable category
[in]bif true, an exception is thrown if the variable is not found for one of the distinct modelling hypotheses

◆ checkVariableGlossaryName()

void mfront::BehaviourDescription::checkVariableGlossaryName ( const std::string & ,
const std::string &  ) const

check variable glossary name. The variable must exists for all modelling hypothesis and have the given glossary name. If not, an exception is thrown. If another variable has the given glossary name, an exception if thrown.

Parameters
[in]vvariable name
[in]gglossary name

◆ checkVariablePosition()

void mfront::BehaviourDescription::checkVariablePosition ( const std::string & ,
const std::string & ,
const size_t  )

check a variable position. Throw an exception if this check is not satisfied.

Parameters
[in]vvariable name
[in]cvariable category
[in]pvariable position
Precondition
The number of variables of the given type must be greater than the position given, otherwise an exception is thrown

◆ completeVariableDeclaration()

void mfront::BehaviourDescription::completeVariableDeclaration ( )

complete the declaration of variables

Note
the modelling hypotheses must be defined before calling this method.

◆ computeTangentOperatorSize()

std::string mfront::BehaviourDescription::computeTangentOperatorSize ( ) const
Returns
the size of an array able to store all the tangent operator blocks.

◆ declareAsAFiniteStrainStandardBehaviour()

void mfront::BehaviourDescription::declareAsAFiniteStrainStandardBehaviour ( const bool )

set the behaviour to be a finite strain standard behaviour

Parameters
[in]bif true, declare F and dF as members

◆ declareExternalStateVariableProbablyUnusableInPurelyImplicitResolution()

void mfront::BehaviourDescription::declareExternalStateVariableProbablyUnusableInPurelyImplicitResolution ( const Hypothesis ,
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.

Parameters
[in]hmodelling hypothesis
[in]nvariable name

◆ getAttribute() [1/5]

template<typename T>
const T & mfront::BehaviourDescription::getAttribute ( const Hypothesis h,
const std::string & n ) const
Returns
a mechanical attribute
Parameters
[in]hmodelling hypothesis
[in]nname

◆ getAttribute() [2/5]

template<typename T>
T mfront::BehaviourDescription::getAttribute ( const Hypothesis h,
const std::string & n,
const T & v ) const
Returns
a mechanical attribute if it exists or the default value
Parameters
[in]hmodelling hypothesis
[in]nname
[in]vdefault value

◆ getAttribute() [3/5]

template<typename T>
requires ( isMaterialKnowledgeAttributeType<T>())
T & mfront::MaterialKnowledgeDescription::getAttribute ( const std::string_view n)
nodiscard
Returns
the attribute with the given name
Parameters
[in]n: name

◆ getAttribute() [4/5]

template<typename T>
requires (isMaterialKnowledgeAttributeType<T>())
const T & mfront::MaterialKnowledgeDescription::getAttribute ( const std::string_view n) const
nodiscard
Returns
the attribute with the given name
Parameters
[in]n: name

◆ getAttribute() [5/5]

template<typename T>
requires (isMaterialKnowledgeAttributeType<T>())
T mfront::MaterialKnowledgeDescription::getAttribute ( const std::string_view n,
const T & v ) const
nodiscard
Returns
the attribute with the given name
Parameters
[in]nname
[in]vdefault value if the attribute is not defined

◆ getBehaviourData()

const BehaviourData & mfront::BehaviourDescription::getBehaviourData ( const Hypothesis ) const
Returns
a mechanical behaviour data associated with the given modelling hypothesis
Parameters
[in]hmodelling hypothesis

◆ getBehaviourDataFileName()

std::string mfront::BehaviourDescription::getBehaviourDataFileName ( ) const
Returns
the name of the behaviour data file

◆ getBehaviourFileName()

std::string mfront::BehaviourDescription::getBehaviourFileName ( ) const
Returns
the name of the behaviour file

◆ getBehaviourName()

const std::string & mfront::BehaviourDescription::getBehaviourName ( ) const
Returns
the behaviour name

◆ getClassName()

const std::string & mfront::BehaviourDescription::getClassName ( ) const
Returns
the class name

◆ getCode()

std::string mfront::BehaviourDescription::getCode ( const Hypothesis ,
const std::string &  ) const
Returns
the code with the given name
Parameters
[in]hmodelling hypothesis
[in]nname

◆ getCodeBlock()

const CodeBlock & mfront::BehaviourDescription::getCodeBlock ( const Hypothesis ,
const std::string &  ) const
Returns
the code block with the given name
Parameters
[in]hmodelling hypothesis
[in]nname

◆ getCodeBlockNames()

std::vector< std::string > mfront::BehaviourDescription::getCodeBlockNames ( const Hypothesis ) const

return the name of the code blocks defined so far

Parameters
[in]hmodelling hypothesis

◆ getDistinctModellingHypotheses()

std::set< Hypothesis > mfront::BehaviourDescription::getDistinctModellingHypotheses ( ) const
Returns
all the modelling hypotheses which are distinct.

This method returns, among all the supported modelling hypotheses (see getModellingHypotheses), the ones which have specialised mechanical data and, if at least one modelling hypothesis has no specialisation, UNDEFINEDHYPOTHESIS.

This method has been introduced for iteration purpose in behaviour dsls.

◆ getDSLName()

const std::string & mfront::BehaviourDescription::getDSLName ( ) const
Returns
the dsl name

◆ getElasticMaterialProperties()

const std::vector< MaterialProperty > & mfront::BehaviourDescription::getElasticMaterialProperties ( ) const
Returns
the elastic material properties

◆ getElasticMaterialPropertiesDescriptions()

std::vector< MaterialPropertyDescription > mfront::BehaviourDescription::getElasticMaterialPropertiesDescriptions ( ) const

this method is meant to generate callable material properties when needed.

Returns
the elastic material properties description

◆ getExternalName()

std::string mfront::BehaviourDescription::getExternalName ( const Hypothesis h,
const std::string & n ) const

get the glossary name or the entry name of a variable

Parameters
[in]hmodelling Hypothesis
[in]nvariable name

◆ getExternalNames() [1/2]

std::vector< std::string > mfront::BehaviourDescription::getExternalNames ( const Hypothesis ,
const VarContainer &  ) const
Returns
the external names associated with the variables contained in the given container
Parameters
[in]hmodelling Hypothesis
[in]vvariables for which external names are requested

◆ getExternalNames() [2/2]

void mfront::BehaviourDescription::getExternalNames ( std::vector< std::string > & ,
const Hypothesis ,
const VarContainer &  ) const

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

Parameters
[out]nnames
[in]hmodelling Hypothesis
[in]vvariables for which external names are requested

◆ getFloattingPointParameterDefaultValue() [1/2]

double mfront::BehaviourDescription::getFloattingPointParameterDefaultValue ( const Hypothesis ,
const std::string &  ) const
Returns
the default value of a parameter
Parameters
[in]hmodelling hypothesis
[in]vparameter default value

◆ getFloattingPointParameterDefaultValue() [2/2]

double mfront::BehaviourDescription::getFloattingPointParameterDefaultValue ( const Hypothesis ,
const std::string & ,
const unsigned short  ) const
Returns
the default value of a parameter (array case)
Parameters
[in]hmodelling hypothesis
[in]vparameter default value
[in]iindex

◆ getFullClassName()

std::string mfront::BehaviourDescription::getFullClassName ( ) const
Returns
the class name qualified with the namespaces in which it is defined

◆ getGradient()

const Gradient & mfront::BehaviourDescription::getGradient ( const std::string & ) const
Returns
the driving variable with the associated name
Parameters
[in]nname

◆ getGradientByExternalName()

const Gradient & mfront::BehaviourDescription::getGradientByExternalName ( const std::string & ) const
Returns
the driving variable with the given external name
Parameters
[in]nname

◆ getHillTensors()

const std::vector< HillTensor > & mfront::BehaviourDescription::getHillTensors ( ) const
Returns
the list of Hill tensors that have been defined

◆ getIncludes()

const std::string & mfront::BehaviourDescription::getIncludes ( ) const
Returns
the includes

◆ getIntegerConstant()

int mfront::BehaviourDescription::getIntegerConstant ( const Hypothesis ,
const std::string &  ) const
Returns
the value of an integer constant
Parameters
[in]hmodelling hypothesis
[in]nvariable name

◆ getIntegerConstants()

std::map< std::string, int > mfront::BehaviourDescription::getIntegerConstants ( const Hypothesis ) const
Returns
all the integer constants
Parameters
[in]hmodelling hypothesis

◆ getIntegerParameterDefaultValue()

int mfront::BehaviourDescription::getIntegerParameterDefaultValue ( const Hypothesis ,
const std::string &  ) const
Returns
the default value of a parameter
Parameters
[in]hmodelling hypothesis
[in]vparameter default value

◆ getIntegrationDataFileName()

std::string mfront::BehaviourDescription::getIntegrationDataFileName ( ) const
Returns
the name of the integration data file

◆ getInteractionMatrixStructure()

InteractionMatrixStructure mfront::BehaviourDescription::getInteractionMatrixStructure ( ) const

return the interaction matrix structure.

Note
: this method is only valid if one and only one slip system is defined.

◆ getInternalNamespace()

std::string mfront::BehaviourDescription::getInternalNamespace ( ) const
Returns
the internal namespace in which the behaviour class shall be defined.
Note
The returned value can be empty.

◆ getLibrary()

const std::string & mfront::BehaviourDescription::getLibrary ( ) const
Returns
the library name

◆ getMainVariables()

const std::vector< std::pair< Gradient, ThermodynamicForce > > & mfront::BehaviourDescription::getMainVariables ( ) const
Returns
the main variables of the behaviour

◆ getMainVariablesSize()

std::pair< SupportedTypes::TypeSize, SupportedTypes::TypeSize > mfront::BehaviourDescription::getMainVariablesSize ( ) const
Returns
the size of the main variables

◆ getMaterialLaws()

const std::vector< std::string > & mfront::BehaviourDescription::getMaterialLaws ( ) const
Returns
the list of material laws

◆ getMaterialName()

const std::string & mfront::BehaviourDescription::getMaterialName ( ) const
Returns
the material name

◆ getMaterialPropertyInput()

MaterialPropertyInput mfront::BehaviourDescription::getMaterialPropertyInput ( const std::string & ,
const bool = true ) const
Returns
a class describing the input of a material property
Parameters
[in]nvariable name
[in]bif true, the modelling hypotheses must be defined. In this case, inputs are searched in the BehaviourData associed with each modelling hypothesis and consistency of the definition of each input is checked. If false, all inputs are searched in the root BehaviourData only (the one associated with UNDEFINEDHYPOTESIS).

◆ getMaterialPropertyInputs() [1/2]

std::vector< MaterialPropertyInput > mfront::BehaviourDescription::getMaterialPropertyInputs ( const MaterialPropertyDescription & ,
const bool = true ) const
Returns
the inputs of a material property
Parameters
[in]mpdmaterial property description
[in]bif true, the modelling hypotheses must be defined. In this case, inputs are searched in the BehaviourData associed with each modelling hypothesis and consistency of the definition of each input is checked. If false, all inputs are searched in the root BehaviourData only (the one associated with UNDEFINEDHYPOTESIS).

◆ getMaterialPropertyInputs() [2/2]

std::vector< MaterialPropertyInput > mfront::BehaviourDescription::getMaterialPropertyInputs ( const std::vector< std::string > & ,
const bool = true ) const
Returns
the inputs of a material property
Parameters
[in]ilist of variables used to evaluate the material property.
[in]bif true, the modelling hypotheses must be defined. In this case, inputs are searched in the BehaviourData associed with each modelling hypothesis and consistency of the definition of each input is checked. If false, all inputs are searched in the root BehaviourData only (the one associated with UNDEFINEDHYPOTESIS).

◆ getMembers()

std::string mfront::BehaviourDescription::getMembers ( const Hypothesis ) const
Returns
the aditional members

◆ getModellingHypotheses()

const std::set< Hypothesis > & mfront::BehaviourDescription::getModellingHypotheses ( ) const
Returns
all the modelling hypotheses supported by the behaviour.

◆ getOrthotropicAxesConvention()

OrthotropicAxesConvention mfront::BehaviourDescription::getOrthotropicAxesConvention ( ) const
Returns
the orthotropic axes convention.
Note
if the orthotropic axes convention has not been defined, the UNDEFINED convention is assumed and oacIsDefined is set to true.

◆ getOverridenParameters()

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

◆ getPrivateCode()

std::string mfront::BehaviourDescription::getPrivateCode ( const Hypothesis ) const
Returns
the material private code
Parameters
[in]hhypothesis

◆ getSlipSystemHeaderFileName()

std::string mfront::BehaviourDescription::getSlipSystemHeaderFileName ( ) const
Returns
the name of the header file describing the slip systems, if declared

◆ getSlipSystemImplementationFileName()

std::string mfront::BehaviourDescription::getSlipSystemImplementationFileName ( ) const
Returns
the name of the header file implementing the description of the the slip systems, if declared

◆ getSources()

const std::string & mfront::BehaviourDescription::getSources ( ) const
Returns
the material name

◆ getSrcFileName()

std::string mfront::BehaviourDescription::getSrcFileName ( ) const
Returns
the name of the source file

◆ getStrainMeasure()

StrainMeasure mfront::BehaviourDescription::getStrainMeasure ( ) const
Returns
the strain measure associated with the behaviour

◆ getStressFreeExpansionDescriptions()

const std::vector< BehaviourData::StressFreeExpansionDescription > & mfront::BehaviourDescription::getStressFreeExpansionDescriptions ( const Hypothesis ) const
Returns
the registred stress free expansion descriptions
Parameters
[in]hmodelling hypothesis

◆ getSymbols()

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

retrieve all the symbols associated with the declared variables.

Parameters
[out]symbolsmap between symbols and replacement strings
[in]hmodelling hypothesis

◆ getTangentOperatorBlockName()

std::string mfront::BehaviourDescription::getTangentOperatorBlockName ( const std::pair< VariableDescription, VariableDescription > & ) const
Returns
the name of variable associated with a tangent operator block
Parameters
[in]blocktangent operator block

◆ getTangentOperatorBlocks()

std::vector< std::pair< VariableDescription, VariableDescription > > mfront::BehaviourDescription::getTangentOperatorBlocks ( ) const
Returns
the list of tangent operator blocks

◆ getTangentOperatorBlockSymbolicName()

std::string mfront::BehaviourDescription::getTangentOperatorBlockSymbolicName ( const std::pair< VariableDescription, VariableDescription > & ) const
Returns
the symbolic name of the given tangent operator block
Parameters
[in]blocktangent operator block

◆ getTangentOperatorType()

std::string mfront::BehaviourDescription::getTangentOperatorType ( ) const
Returns
the type of the stiffness operator

◆ getThermalExpansionCoefficientsDescriptions()

std::vector< MaterialPropertyDescription > mfront::BehaviourDescription::getThermalExpansionCoefficientsDescriptions ( ) const

this method is meant to generate callable material properties when needed.

Returns
the description of the thermal expansion coefficients

◆ getThermodynamicForce()

const ThermodynamicForce & mfront::BehaviourDescription::getThermodynamicForce ( const std::string & ) const
Returns
the thermodynamic force with the given name
Parameters
[in]nname

◆ getThermodynamicForceByExternalName()

const ThermodynamicForce & mfront::BehaviourDescription::getThermodynamicForceByExternalName ( const std::string & ) const
Returns
the thermodynamic force with the given external name
Parameters
[in]nname

◆ getUnsignedShortParameterDefaultValue()

unsigned short mfront::BehaviourDescription::getUnsignedShortParameterDefaultValue ( const Hypothesis ,
const std::string &  ) const
Returns
the default value of a parameter
Parameters
[in]hmodelling hypothesis
[in]vparameter default value

◆ getVariableDescriptionByExternalName()

const VariableDescription & mfront::BehaviourDescription::getVariableDescriptionByExternalName ( const Hypothesis ,
const std::string &  ) const
Returns
the variable description associated with the given glossary or entry name.
Parameters
[in]hmodelling Hypothesis
[in]nname

◆ getVariableNameFromGlossaryNameOrEntryName()

std::string mfront::BehaviourDescription::getVariableNameFromGlossaryNameOrEntryName ( const Hypothesis ,
const std::string &  ) const
Returns
the name of the variable associated with the given glossary or entry name
Parameters
[in]hmodelling Hypothesis
[in]nname

◆ hasAttribute() [1/2]

bool mfront::BehaviourDescription::hasAttribute ( const Hypothesis ,
const std::string &  ) const
Returns
true an attribute with the given name has been declared
Parameters
[in]hmodelling hypothesis
[in]nname

◆ hasAttribute() [2/2]

bool mfront::MaterialKnowledgeDescription::hasAttribute ( const std::string_view ) const
nodiscard
Returns
true if an attribute with the given name as been registred
Parameters
[in]n: name

◆ hasCode()

bool mfront::BehaviourDescription::hasCode ( const Hypothesis ,
const std::string &  ) const
Returns
the code with the given name
Parameters
[in]hmodelling hypothesis
[in]nname

◆ hasCrystalStructure()

bool mfront::BehaviourDescription::hasCrystalStructure ( ) const
Returns
true if the crystal structure of the material has been defined.

◆ hasDislocationsMeanFreePathInteractionMatrix()

bool mfront::BehaviourDescription::hasDislocationsMeanFreePathInteractionMatrix ( ) const

return true if an interaction matrix is defined.

Note
: this method is only valid if one and only one slip system is defined.

◆ hasEntryName()

bool mfront::BehaviourDescription::hasEntryName ( const Hypothesis ,
const std::string &  ) const
Returns
true if the given variable name is associated with a entry name
Parameters
[in]hmodelling hypothesis
[in]nname

◆ hasGlossaryName()

bool mfront::BehaviourDescription::hasGlossaryName ( const Hypothesis ,
const std::string &  ) const
Returns
true if the given variable name is associated with a glossary name
Parameters
[in]hmodelling hypothesis
[in]nname

◆ hasInteractionMatrix()

bool mfront::BehaviourDescription::hasInteractionMatrix ( ) const

return true if an interaction matrix is defined.

Note
: this method is only valid if one and only one slip system is defined.

◆ hasParameter()

bool mfront::BehaviourDescription::hasParameter ( const Hypothesis ,
const std::string &  ) const
Returns
true a parameter with the given name has been declared
Parameters
[in]hmodelling hypothesis
[in]nname

◆ hasParameters() [1/2]

bool mfront::BehaviourDescription::hasParameters ( ) const
Returns
true if at least one modelling hypothesis has a parameter.

◆ hasParameters() [2/2]

bool mfront::BehaviourDescription::hasParameters ( const Hypothesis ) const
Returns
true the given modelling hypothesis has a parameter.
Parameters
[in]hmodelling hypothesis
[in]nname

◆ hasSpecialisedMechanicalData()

bool mfront::BehaviourDescription::hasSpecialisedMechanicalData ( const Hypothesis ) const
Returns
true if the mechanical data associated with the given modelling hypothesis is specialised.
Parameters
[in]hmodelling hypothesis considered

◆ hasTangentOperator()

bool mfront::BehaviourDescription::hasTangentOperator ( ) const
Returns
true if the behaviour defines a tangent operator

◆ hasTrivialTangentOperatorStructure()

bool mfront::BehaviourDescription::hasTrivialTangentOperatorStructure ( ) const
Returns
true if the behaviour's tangent operator only contains one block

◆ isAuxiliaryStateVariableName()

bool mfront::BehaviourDescription::isAuxiliaryStateVariableName ( const Hypothesis ,
const std::string &  ) const
Returns
true if the given name is the one of an auxiliary internal state variable.
Parameters
[in]hmodelling hypothesis
[in]nname

◆ isBehaviourNameDefined()

bool mfront::BehaviourDescription::isBehaviourNameDefined ( ) const
Returns
if the behaviour name is defined

◆ isExternalStateVariableIncrementName()

bool mfront::BehaviourDescription::isExternalStateVariableIncrementName ( const Hypothesis ,
const std::string &  ) const
Returns
true if the given name is the one of an external state variable increment
Parameters
[in]hmodelling hypothesis
[in]nname

◆ isExternalStateVariableName()

bool mfront::BehaviourDescription::isExternalStateVariableName ( const Hypothesis ,
const std::string &  ) const
Returns
true if the given name is the one of an external state variable.
Parameters
[in]hmodelling hypothesis
[in]nname

◆ isFinal()

bool mfront::BehaviourDescription::isFinal ( ) const
Returns
if the generated class shall be declared final

◆ isGlossaryNameUsed()

bool mfront::BehaviourDescription::isGlossaryNameUsed ( const Hypothesis ,
const std::string &  ) const
Returns
true if the given glossary name is used
Parameters
[in]hmodelling Hypothesis
[in]nname

◆ isInitializeFunctionVariableName()

bool mfront::BehaviourDescription::isInitializeFunctionVariableName ( const Hypothesis ,
const std::string &  ) const
Returns
true if the given name is the name of initialize variable
Parameters
[in]hmodelling hypothesis
[in]nname

◆ isIntegrationVariableIncrementName()

bool mfront::BehaviourDescription::isIntegrationVariableIncrementName ( const Hypothesis ,
const std::string &  ) const
Returns
true if the given name is the one of an integration variable increment.
Parameters
[in]hmodelling hypothesis
[in]nname

◆ isIntegrationVariableName()

bool mfront::BehaviourDescription::isIntegrationVariableName ( const Hypothesis ,
const std::string &  ) const
Returns
true if the given name is the one of an integration variable.
Parameters
[in]hmodelling hypothesis
[in]nname

◆ isLocalVariableName()

bool mfront::BehaviourDescription::isLocalVariableName ( const Hypothesis ,
const std::string &  ) const
Returns
true if the given name is the one of a local variable.
Parameters
[in]hmodelling hypothesis
[in]nname

◆ isMaterialPropertyConstantDuringTheTimeStep()

bool mfront::BehaviourDescription::isMaterialPropertyConstantDuringTheTimeStep ( const MaterialProperty & ) const
Returns
true if the material property is constant over the time step
Parameters
[in]mpmaterial property

◆ isMaterialPropertyDependantOnStateVariables()

bool mfront::BehaviourDescription::isMaterialPropertyDependantOnStateVariables ( const MaterialProperty & ) const
Returns
true if the material property depends on state variables
Parameters
[in]mpmaterial property

◆ isMaterialPropertyName()

bool mfront::BehaviourDescription::isMaterialPropertyName ( const Hypothesis ,
const std::string &  ) const
Returns
true if the given name is the one of a material property.
Parameters
[in]hmodelling hypothesis
[in]nname

◆ isMemberUsedInCodeBlocks()

bool mfront::BehaviourDescription::isMemberUsedInCodeBlocks ( const Hypothesis ,
const std::string &  ) const
Returns
true if the given member is used in a code block
Parameters
[in]hmodelling hypothesis
[in]nname

◆ isModel()

bool mfront::BehaviourDescription::isModel ( ) const
noexcept
Returns
if the behaviour can be considered as a point-wise model.

A behaviour is considered as a model if its behaviour type is GENERALBEHAVIOUR and if it does not declared any gradient nor thermodynamic force.

◆ isModellingHypothesisSupported()

bool mfront::BehaviourDescription::isModellingHypothesisSupported ( const Hypothesis ) const
Returns
true if the given modelling hypothesis is supported
Parameters
[in]hmodelling hypothesis
See also
hasSpecialisedMechanicalData

◆ isNameReserved()

bool mfront::BehaviourDescription::isNameReserved ( const std::string & ) const

look if a name is reserved

Parameters
[in]nname

◆ isParameterName()

bool mfront::BehaviourDescription::isParameterName ( const Hypothesis ,
const std::string &  ) const
Returns
true if the given name is a parameter name
Parameters
[in]hmodelling hypothesis
[in]nname

◆ isPersistentVariableName()

bool mfront::BehaviourDescription::isPersistentVariableName ( const Hypothesis ,
const std::string &  ) const
Returns
true if the given name is the one of an persistent variable.
Parameters
[in]hmodelling hypothesis
[in]nname

◆ isPostProcessingVariableName()

bool mfront::BehaviourDescription::isPostProcessingVariableName ( const Hypothesis ,
const std::string &  ) const
Returns
true if the given name is the name of post-processing variable
Parameters
[in]hmodelling hypothesis
[in]nname

◆ isStateVariableIncrementName()

bool mfront::BehaviourDescription::isStateVariableIncrementName ( const Hypothesis ,
const std::string &  ) const
Returns
true if the given name is the one of an state variable increment.
Parameters
[in]hmodelling hypothesis
[in]nname

◆ isStateVariableName()

bool mfront::BehaviourDescription::isStateVariableName ( const Hypothesis ,
const std::string &  ) const
Returns
true if the given name is the one of an state variable.
Parameters
[in]hmodelling hypothesis
[in]nname

◆ isStaticVariableName()

bool mfront::BehaviourDescription::isStaticVariableName ( const Hypothesis ,
const std::string &  ) const
Returns
true if the given name is the one of a static variable
Parameters
[in]hmodelling hypothesis
[in]nname

◆ isStrainMeasureDefined()

bool mfront::BehaviourDescription::isStrainMeasureDefined ( ) const
Returns
if the strain measure has been set

◆ isStressFreeExansionAnisotropic()

bool mfront::BehaviourDescription::isStressFreeExansionAnisotropic ( const Hypothesis ) const
Returns
true if a least one modelling hypothesis is anisotropic
Parameters
[in]hmodelling hypothesis

◆ isTemperatureDefinedAsTheFirstExternalStateVariable()

bool mfront::BehaviourDescription::isTemperatureDefinedAsTheFirstExternalStateVariable ( ) const
Returns
if the temperature is defined as the first external state variable for all modelling hypotheses

◆ isUsedAsEntryName()

bool mfront::BehaviourDescription::isUsedAsEntryName ( const Hypothesis ,
const std::string &  ) const
Returns
true if the given name is an entry name
Parameters
[in]hmodelling Hypothesis
[in]nname

◆ overrideByAParameter()

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

specify that the given variable must be overriden by a parameter when declared.

Parameters
[in]nvariable name
[in]vvariable value
Note
This must be called before the declaration of the variable.

◆ registerEntryName()

void mfront::BehaviourDescription::registerEntryName ( const Hypothesis ,
const std::string & ,
const std::string &  )

register the given entry name

Parameters
[in]hhypothesis
[in]nvariable name
[in]eentry name

◆ registerGlossaryName()

void mfront::BehaviourDescription::registerGlossaryName ( const Hypothesis ,
const std::string & ,
const std::string &  )

register the given glossary name

Parameters
[in]hhypothesis
[in]nvariable name
[in]gglossary name

◆ registerMemberName()

void mfront::BehaviourDescription::registerMemberName ( const Hypothesis ,
const std::string &  )

register the given member name

Parameters
[in]hhypothesis
[in]nvariable name

◆ registerStaticMemberName()

void mfront::BehaviourDescription::registerStaticMemberName ( const Hypothesis ,
const std::string &  )

register the given static member name

Parameters
[in]hhypothesis
[in]nvariable name

◆ requiresTVectorOrVectorIncludes() [1/2]

void mfront::BehaviourDescription::requiresTVectorOrVectorIncludes ( bool & ,
bool &  ) const

check if one has to include tvector.hxx or vector.hxx

Parameters
[in]b1requires true if one has to include tvector.hxx
[in]b2requires true if one has to include vector.hxx

◆ requiresTVectorOrVectorIncludes() [2/2]

void mfront::BehaviourDescription::requiresTVectorOrVectorIncludes ( bool & ,
bool & ,
const BehaviourData &  ) const

check if one has to include tvector.hxx or vector.hxx

Parameters
[in]dbehaviour data
[in]b1requires true if one has to include tvector.hxx
[in]b2requires true if one has to include vector.hxx

◆ reserveName()

void mfront::BehaviourDescription::reserveName ( const Hypothesis ,
const std::string &  )

reserve the given name

Parameters
[in]hhypothesis
[in]nvariable name

◆ saveDualStress()

bool mfront::BehaviourDescription::saveDualStress ( ) const
Returns
if the stress measure shall be saved

◆ saveStrainMeasure()

bool mfront::BehaviourDescription::saveStrainMeasure ( ) const
Returns
if the strain measure shall be saved

◆ setAttribute() [1/2]

void mfront::BehaviourDescription::setAttribute ( const Hypothesis ,
const std::string & ,
const MaterialKnowledgeAttribute & ,
const bool = false )

set a mechanical attribute

Parameters
[in]hmodelling hypothesis
[in]nname
[in]aattribute
[in]bdon't throw if the the attribute already exists. The attribute is left unchanged. However the type of the attribute is checked.

◆ setAttribute() [2/2]

insert a new attribute

Parameters
[in]n: name
[in]a: attribute
[in]b: don't throw if the the attribute already exists. The attribute is left unchanged. However the type of the attribute is checked.

◆ setBehaviourName()

void mfront::BehaviourDescription::setBehaviourName ( const std::string & )

set the behaviour name

Parameters
[in]bbehaviour name

◆ setBounds() [1/2]

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

add bounds to a variable

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

◆ setBounds() [2/2]

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

add bounds to a variable

Parameters
[in]hmodelling hypothesis
[in]nvariable name
[in]bbounds description

◆ setClassName()

void mfront::BehaviourDescription::setClassName ( const std::string & )

set the class name

Parameters
[in]nclass name

◆ setCode()

void mfront::BehaviourDescription::setCode ( const Hypothesis ,
const std::string & ,
const CodeBlock & ,
const Mode ,
const Position ,
const bool = true )

declare or update a code block

Parameters
[in]hmodelling hypothesis
[in]nname
[in]ccode
[in]mmode
[in]pposition
[in]bif true, the code can be overriden or completed

◆ setCrystalStructure() [1/2]

void mfront::BehaviourDescription::setCrystalStructure ( const CrystalStructure )

set the crystal structure

Parameters
[in]cscrystal structure

◆ setCrystalStructure() [2/2]

void mfront::BehaviourDescription::setCrystalStructure ( const CrystalStructure ,
const long double  )

set the crystal structure

Parameters
[in]cscrystal structure, which must be HCP
[in]rc/a ratio

◆ setDislocationsMeanFreePathInteractionMatrix()

void mfront::BehaviourDescription::setDislocationsMeanFreePathInteractionMatrix ( const std::vector< long double > & )

set the interaction matrix.

Parameters
[in]minteraction matrix
Note
: this method is only valid if one and only one slip system is defined.

◆ setDSLName()

void mfront::BehaviourDescription::setDSLName ( const std::string & )

set the dsl name

Parameters
[in]bdsl name

◆ setElasticMaterialProperties()

void mfront::BehaviourDescription::setElasticMaterialProperties ( const std::vector< MaterialProperty > & )

set the elastic material properties

Parameters
[in]empselastic material properties

◆ setEntryName() [1/2]

void mfront::BehaviourDescription::setEntryName ( const Hypothesis ,
const std::string & ,
const std::string &  )

associate an entry name to a variable

Parameters
[in]hmodelling Hypothesis
[in]nvariable name
[in]eentry name

◆ setEntryName() [2/2]

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

associate a glossary name to a gradient or a thermodynamic force

Parameters
[in]nvariable name
[in]eentry name

◆ setGlossaryName() [1/2]

void mfront::BehaviourDescription::setGlossaryName ( const Hypothesis ,
const std::string & ,
const std::string &  )

associate a glossary name to a variable

Parameters
[in]hmodelling Hypothesis
[in]nvariable name
[in]gglossary name

◆ setGlossaryName() [2/2]

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

associate a glossary name to a gradient or a thermodynamic force

Parameters
[in]nvariable name
[in]gglossary name

◆ setIntegrationScheme()

void mfront::BehaviourDescription::setIntegrationScheme ( const IntegrationScheme )

disable the usage of quantities if not already specified.

`

This method shall be called before reading the first type of a variable. It is also automatically called by the useQt method if the usage of quantities is not already specified. */ void disableQuantitiesUsageIfNotAlreadySet() const;

void setUseQt(const bool);

bool isGradientName(const std::string&) const;

bool isGradientExternalName(const std::string&) const;

bool isGradientIncrementName(const std::string&) const;

bool isNameOfAGradientAtTheBeginningOfTheTimeStep(const std::string&) const;

bool isNameOfAGradientAtTheEndOfTheTimeStep(const std::string&) const;

bool isThermodynamicForceName(const std::string&) const;

bool isThermodynamicForceExternalName(const std::string&) const;

Returns
the behaviour type BehaviourType getBehaviourType() const; /*!

set the integration scheme

Parameters
[in]sintegration scheme

◆ setInteractionMatrix()

void mfront::BehaviourDescription::setInteractionMatrix ( const std::vector< long double > & )

set the interaction matrix.

Parameters
[in]minteraction matrix
Note
: this method is only valid if one and only one slip system is defined.

◆ setLibrary()

void mfront::BehaviourDescription::setLibrary ( const std::string & )

set the library name

Parameters
[in]llibrary name

◆ setMaterialName()

void mfront::BehaviourDescription::setMaterialName ( const std::string & )

set the material name

Parameters
[in]mmaterial name

◆ setModellingHypotheses()

void mfront::BehaviourDescription::setModellingHypotheses ( const std::set< Hypothesis > & ,
const bool b = false )

set the list of supported modelling hypotheses

Parameters
[in]hsupported modelling hypotheses
[in]bparameter used if some modelling hypotheses are already defined. In this case:
  • if b is true, the resulting modelling hypotheses will be the intersection of the given modelling hypotheses and the already declared ones. If such intersection is empty, an exception is thrown.
  • if b is false, an exception is thrown.

◆ setOrthotropicAxesConvention()

void mfront::BehaviourDescription::setOrthotropicAxesConvention ( const OrthotropicAxesConvention )

set the orthotropic axes convention.

Parameters
[in]cnew value for the orthotropic axes convention.
Note
this method can be only call once.

◆ setParameterDefaultValue() [1/4]

void mfront::BehaviourDescription::setParameterDefaultValue ( const Hypothesis ,
const std::string & ,
const double  )
Parameters
[in]hmodelling hypothesis
[in]nparameter name
[in]vparameter default value

◆ setParameterDefaultValue() [2/4]

void mfront::BehaviourDescription::setParameterDefaultValue ( const Hypothesis ,
const std::string & ,
const int  )
Parameters
[in]hmodelling hypothesis
[in]nparameter name
[in]vparameter default value

◆ setParameterDefaultValue() [3/4]

void mfront::BehaviourDescription::setParameterDefaultValue ( const Hypothesis ,
const std::string & ,
const unsigned short i,
const double  )
Parameters
[in]hmodelling hypothesis
[in]nparameter name
[in]iindex
[in]vparameter default value

◆ setParameterDefaultValue() [4/4]

void mfront::BehaviourDescription::setParameterDefaultValue ( const Hypothesis ,
const std::string & ,
const unsigned short  )
Parameters
[in]hmodelling hypothesis
[in]nparameter name
[in]vparameter default value

◆ setPhysicalBounds() [1/2]

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

add physical bounds to a variable

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

◆ setPhysicalBounds() [2/2]

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

add physical bounds to a variable

Parameters
[in]hmodelling hypothesis
[in]nvariable name
[in]bbounds description

◆ setSaveDualStress()

void mfront::BehaviourDescription::setSaveDualStress ( const bool )

set if the dual stress shall be save

Parameters
[in]bboolean

◆ setSaveStrainMeasure()

void mfront::BehaviourDescription::setSaveStrainMeasure ( const bool )

set if the strain measure shall be save

Parameters
[in]bboolean

◆ setSlipSystems()

void mfront::BehaviourDescription::setSlipSystems ( const std::vector< SlipSystem > & )

set the behaviour slip systems

Parameters
[in]gssslip systems

◆ setStrainMeasure()

void mfront::BehaviourDescription::setStrainMeasure ( const StrainMeasure )

set the strain measure to be used

Parameters
[in]mmeasure

◆ setTangentOperatorBlocks()

void mfront::BehaviourDescription::setTangentOperatorBlocks ( const std::vector< std::string > & )

set the tangent operator blocks and disable the use of the default blocks.

Parameters
[in]bnslist of blocks names
Note
This method is only valid for general behaviours
This method must be called before the addTangentOperatorBlock and addTangentOperatorBlocks methods.

◆ setThermalExpansionCoefficient()

void mfront::BehaviourDescription::setThermalExpansionCoefficient ( MaterialProperty )

set the behaviour thermal expansion coefficient (isotropic behaviour)

Parameters
[in]athermal expansion

◆ setThermalExpansionCoefficients()

void mfront::BehaviourDescription::setThermalExpansionCoefficients ( MaterialProperty ,
MaterialProperty ,
MaterialProperty  )

set the behaviour thermal expansions coefficient (orthotropic behaviour)

Parameters
[in]a1thermal expansion in the first direction
[in]a2thermal expansion in the second direction
[in]a3thermal expansion in the third direction

◆ setUsableInPurelyImplicitResolution()

void mfront::BehaviourDescription::setUsableInPurelyImplicitResolution ( const Hypothesis ,
const bool  )

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

Parameters
[in]hmodelling hypothesis
[in]bnew value of the usableInPurelyImplicitResolution member
See also
isUsableInPurelyImplicitResolution for details about purely implicit resolution.

◆ setVariableAttribute()

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

assign an attribute to variable

Parameters
[in]hmodelling hypothesis
[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.

◆ shallDefineDefaultConstructor()

bool mfront::BehaviourDescription::shallDefineDefaultConstructor ( ) const
Returns
if the generated class shall define the default constructor

◆ specialize()

void mfront::BehaviourDescription::specialize ( const Hypothesis )

specialize the given hypothesis

Parameters
[in]hmodelling hypothesis considered

◆ updateAttribute() [1/2]

void mfront::BehaviourDescription::updateAttribute ( const Hypothesis ,
const std::string & ,
const MaterialKnowledgeAttribute &  )

update an attribute

Parameters
[in]hmodelling hypothesis
[in]nname
[in]aattribute

◆ updateAttribute() [2/2]

update an existing new attribute

Parameters
[in]nname
[in]aattribute

◆ useDynamicallyAllocatedVector()

bool mfront::BehaviourDescription::useDynamicallyAllocatedVector ( const unsigned short ) const
Returns
true of the parser shall declare a dynamically

◆ useQt()

bool mfront::BehaviourDescription::useQt ( ) const
Returns
if the quantities are used

Member Data Documentation

◆ EXPLICITSCHEME

IntegrationScheme mfront::BehaviourDescription::EXPLICITSCHEME
staticconstexpr
Initial value:
=
@ EXPLICITSCHEME
value set by the Runge-Kutta Dsl
Definition IntegrationScheme.hxx:27

a simple alias for backward compatibility

◆ IMPLICITSCHEME

IntegrationScheme mfront::BehaviourDescription::IMPLICITSCHEME
staticconstexpr
Initial value:
=
@ IMPLICITSCHEME
value set by the Implicit Dsl family
Definition IntegrationScheme.hxx:26

a simple alias for backward compatibility

◆ SPECIFICSCHEME

IntegrationScheme mfront::BehaviourDescription::SPECIFICSCHEME
staticconstexpr
Initial value:
=
@ SPECIFICSCHEME
Definition IntegrationScheme.hxx:28

a simple alias for backward compatibility

◆ UNDEFINEDINTEGRATIONSCHEME

IntegrationScheme mfront::BehaviourDescription::UNDEFINEDINTEGRATIONSCHEME
staticconstexpr
Initial value:
=
@ UNDEFINEDINTEGRATIONSCHEME
undefined value.
Definition IntegrationScheme.hxx:33

a simple alias for backward compatibility

◆ USERDEFINEDSCHEME

IntegrationScheme mfront::BehaviourDescription::USERDEFINEDSCHEME
staticconstexpr
Initial value:
=
@ USERDEFINEDSCHEME
default value.
Definition IntegrationScheme.hxx:32

a simple alias for backward compatibility


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