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

structure describing a material property More...

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

Inheritance diagram for mfront::MaterialPropertyDescription:
mfront::MaterialKnowledgeDescription

Public Member Functions

 MaterialPropertyDescription ()
 default constructor
 MaterialPropertyDescription (const MaterialPropertyDescription &)
 copy constructor
 MaterialPropertyDescription (MaterialPropertyDescription &&) noexcept
 move constructor
MaterialPropertyDescription & operator= (const MaterialPropertyDescription &)
 standard assignement
MaterialPropertyDescription & operator= (MaterialPropertyDescription &&) noexcept
 move assignement
const VariableDescription & getVariableDescription (const std::string &) const
std::vector< std::string > getInputVariablesExternalNames ()
bool isInputName (const std::string &) const
bool isParameterName (const std::string &) const
void setGlossaryName (const std::string &, const std::string &)
 associate a glossary name to a variable
bool isGlossaryNameUsed (const std::string &) const
void setEntryName (const std::string &, const std::string &)
 associate an entry name to a variable
bool isEntryNameUsed (const std::string &) const
void addMaterialLaw (const std::string &)
 add a material law
void appendToIncludes (const std::string &)
 append the given code to the includes
void appendToMembers (const std::string &)
 append the given code to the members
void appendToPrivateCode (const std::string &)
 append the given code to the private code
void appendToSources (const std::string &)
 append the given code to the sources
bool hasParameter (const std::string &) const
bool hasParameters () const
void reserveName (const std::string &)
 register a name.
bool isNameReserved (const std::string &) const
 look if a name is reserved
void checkAndCompletePhysicalBoundsDeclaration ()
 check and complete the physical bounds of variables
const VariableDescription & getVariableDescriptionByExternalName (const std::string &) const
 ~MaterialPropertyDescription ()
 destructor
Public Member Functions inherited from mfront::MaterialKnowledgeDescription
 MaterialKnowledgeDescription ()
 default constructor
 MaterialKnowledgeDescription (MaterialKnowledgeDescription &&) noexcept
 move constructor
 MaterialKnowledgeDescription (const MaterialKnowledgeDescription &)
 copy constructor
MaterialKnowledgeDescription & operator= (const MaterialKnowledgeDescription &)
 default assignement
MaterialKnowledgeDescription & operator= (MaterialKnowledgeDescription &&) noexcept
 move assignement
void setAttribute (const std::string &, const MaterialKnowledgeAttribute &, const bool)
 insert a new attribute
void updateAttribute (const std::string_view, const MaterialKnowledgeAttribute &)
 update an existing new attribute
bool hasAttribute (const std::string_view) const
template<typename T>
requires ( isMaterialKnowledgeAttributeType<T>())
T & getAttribute (const std::string_view)
template<typename T>
requires (isMaterialKnowledgeAttributeType<T>())
const T & getAttribute (const std::string_view) const
template<typename T>
requires (isMaterialKnowledgeAttributeType<T>())
T getAttribute (const std::string_view, const T &) const
const std::map< std::string, MaterialKnowledgeAttribute, std::less<> > & getAttributes () const
void addExternalMFrontFile (const std::string_view, const std::vector< std::string > &, const tfel::utilities::DataMap &)
 add an external MFront file and the list of interfaces used to treat it.
const std::map< std::string, std::tuple< std::vector< std::string >, tfel::utilities::DataMap >, std::less<> > & getExternalMFrontFiles () const
bool hasUnitSystem () const
 return if an unit system has been associated to the material knowledge
void setUnitSystem (const std::string_view)
 associate an unit system to the material knowledge
const std::string & getUnitSystem () const
 associate an unit system to the material knowledge
 ~MaterialKnowledgeDescription ()
 destructor

Public Attributes

std::optional< bool > use_qt
 use quantities if available
LawFunction f
 body of the material property
VariableDescriptionContainer inputs
 list of inputs
VariableDescriptionContainer parameters
 list of parameters
VariableDescription output
 output
std::string law
 law name
std::string material
 material name
std::string library
 library name
std::string className
 class name
std::string includes
 included header files
std::string sources
 specific sources
std::string privateCode
 private code
std::string members
 class member
std::vector< std::string > materialLaws
 list of material laws used
StaticVariableDescriptionContainer staticVars
 static variables

Protected Member Functions

VariableDescription & getVariableDescription (const std::string &)

Protected Attributes

std::set< std::string > reservedNames
 list of reserved names
std::set< std::string > memberNames
 list of variables names
std::set< std::string > staticMemberNames
 list of variables names
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

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

Detailed Description

structure describing a material property

Member Function Documentation

◆ addMaterialLaw()

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

add a material law

Parameters
[in]m: added material law name

◆ getInputVariablesExternalNames()

std::vector< std::string > mfront::MaterialPropertyDescription::getInputVariablesExternalNames ( )
nodiscard
Returns
the external names of each input variables.

◆ getVariableDescription() [1/2]

VariableDescription & mfront::MaterialPropertyDescription::getVariableDescription ( const std::string & )
protected
Returns
the variable description with the given name
Parameters
[in]nvariable name

◆ getVariableDescription() [2/2]

const VariableDescription & mfront::MaterialPropertyDescription::getVariableDescription ( const std::string & ) const
nodiscard
Returns
the variable description with the given name
Parameters
[in]nvariable name

◆ getVariableDescriptionByExternalName()

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

◆ hasParameter()

bool mfront::MaterialPropertyDescription::hasParameter ( const std::string & ) const
nodiscard
Returns
true a parameter with the given name has been declared
Parameters
[in]nname

◆ hasParameters()

bool mfront::MaterialPropertyDescription::hasParameters ( ) const
nodiscard
Returns
true if at least one parameter has been declared

◆ isEntryNameUsed()

bool mfront::MaterialPropertyDescription::isEntryNameUsed ( const std::string & ) const
nodiscard
Returns
true if the given name is used as a entry name
Parameters
[in]eentry name

◆ isGlossaryNameUsed()

bool mfront::MaterialPropertyDescription::isGlossaryNameUsed ( const std::string & ) const
nodiscard
Returns
true if the given name is used as a glossary name
Parameters
[in]gglossary name

◆ isInputName()

bool mfront::MaterialPropertyDescription::isInputName ( const std::string & ) const
nodiscard
Returns
true if the given variable is the name of a input
Parameters
[in]nname

◆ isNameReserved()

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

look if a name is reserved

Parameters
[in]n: name

◆ isParameterName()

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

◆ reserveName()

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

register a name.

Parameters
[in]n: name

◆ setEntryName()

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

associate an entry name to a variable

Parameters
[in]nvariable name
[in]eentry name

◆ setGlossaryName()

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

associate a glossary name to a variable

Parameters
[in]n: variable name
[in]g: glossary name

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