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

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

Inheritance diagram for mfront::BehaviourMaterialProperty:
mfront::VariableDescription mfront::VariableDescriptionBase

Public Types

using ModellingHypothesis = tfel::material::ModellingHypothesis
 a simple alias
using Hypothesis = ModellingHypothesis::Hypothesis
 a simple alias

Public Member Functions

 BehaviourMaterialProperty (const VariableDescription &, const SupportedTypes::TypeSize, const bool)
 BehaviourMaterialProperty (const BehaviourMaterialProperty &)
 BehaviourMaterialProperty (BehaviourMaterialProperty &&) noexcept
BehaviourMaterialProperty & operator= (const BehaviourMaterialProperty &)
BehaviourMaterialProperty & operator= (BehaviourMaterialProperty &&) noexcept
bool isScalar () const
Public Member Functions inherited from mfront::VariableDescription
 VariableDescription ()
 default constructor
 VariableDescription (const VariableDescription &)
 copy constructor
 VariableDescription (VariableDescription &&) noexcept
 move constructor
VariableDescription & operator= (VariableDescription &&) noexcept
 move operator
VariableDescription & operator= (const VariableDescription &)
 assignement operator
 VariableDescription (const std::string &, const std::string &, const unsigned short, const size_t)
 constructor
 VariableDescription (const std::string &, const std::string &, const std::string &, const unsigned short, const size_t)
 constructor
void setAttribute (const std::string &, const VariableAttribute &, const bool)
 insert a new attribute
bool hasAttribute (const std::string &) const
template<typename T>
requires ( isVariableAttribute<T>)
T & getAttribute (const std::string &)
template<typename T>
requires (isVariableAttribute<T>)
const T & getAttribute (const std::string &) const
template<typename T>
requires (isVariableAttribute<T>)
T getAttribute (const std::string &, const T &) const
const std::map< std::string, VariableAttribute > & getAttributes () const
bool hasBounds () const
bool hasBounds (const unsigned short) const
void setBounds (const VariableBoundsDescription &)
 set bounds on this variable
void setBounds (const VariableBoundsDescription &, const unsigned short)
 set bounds on this variable
const VariableBoundsDescription & getBounds () const
const VariableBoundsDescription & getBounds (const unsigned short) const
bool hasPhysicalBounds () const
bool hasPhysicalBounds (const unsigned short) const
void setPhysicalBounds (const VariableBoundsDescription &)
 set physical bounds on this variable
void setPhysicalBounds (const VariableBoundsDescription &, const unsigned short)
 set physical bounds on this variable
const VariableBoundsDescription & getPhysicalBounds () const
const VariableBoundsDescription & getPhysicalBounds (const unsigned short) const
void setGlossaryName (const std::string &)
 associate a glossary name to the variable
void resetGlossaryName (const std::string &)
 associate a new glossary name to the variable
void setEntryName (const std::string &)
 associate an entry name to the variable
void resetEntryName (const std::string &)
 associate a new entry name to the variable
bool hasGlossaryName () const
bool hasEntryName () const
const std::string & getExternalName () const
bool isScalar () const
 ~VariableDescription ()
 destructor
Public Member Functions inherited from mfront::VariableDescriptionBase
 VariableDescriptionBase ()
 default constructor
 VariableDescriptionBase (const VariableDescriptionBase &)
 copy constructor
 VariableDescriptionBase (VariableDescriptionBase &&) noexcept
 move constructor
VariableDescriptionBase & operator= (VariableDescriptionBase &&) noexcept
 move operator
VariableDescriptionBase & operator= (const VariableDescriptionBase &)
 assignement operator
 VariableDescriptionBase (const std::string &, const std::string &, const unsigned short, const size_t)
 constructor
 VariableDescriptionBase (const std::string &, const std::string &, const std::string &, const unsigned short, const size_t)
 constructor
SupportedTypes::TypeFlag getTypeFlag () const
SupportedTypes::TypeSize getTypeSize () const
int getVariableTypeIdentifier () const
 ~VariableDescriptionBase ()
 destructor

Public Attributes

SupportedTypes::TypeSize offset
bool dummy
Public Attributes inherited from mfront::VariableDescriptionBase
std::string type
 type of the variable
std::string symbolic_form
 symbolic representation of the variable
std::string name
 name of the variable
std::string description
 description
unsigned short arraySize
 if the variable has been declared as an array, this field contains a value greater than 1
size_t lineNumber
 line at wich the variable has been declared

Additional Inherited Members

Static Public Member Functions inherited from mfront::VariableDescription
static void throwUndefinedAttribute (const std::string &)
 throw an exception saying that no attribute with the given name exists
Static Public Attributes inherited from mfront::VariableDescription
template<typename T>
static constexpr bool isVariableAttribute
static const char *const depth
 standard attribute name
static const char *const initialValue
 standard attribute name
static const char *const defaultValue
 standard attribute name
static const char *const errorNormalisationFactor
 error normalisation factor
static const char *const variableDeclaredInBaseClass
 attribute stating that a variable has already been declared in a based class.

Detailed Description

Some interfaces may require additionnal material properties, to compute the stiffness matrix or to compute the thermal expansions. Some additional material properties may also be required by the solver (mass density, orthotropic basis for the Cast3M solver) which are of no interest for the behaviour. On the other hand, some material properties are highly needed by the behaviour (Young modulus and Poisson ratio for example). This structure allows the computation of an indirection map between the data given by the solver and the ones needed by the interface.

Constructor & Destructor Documentation

◆ BehaviourMaterialProperty()

mfront::BehaviourMaterialProperty::BehaviourMaterialProperty ( const VariableDescription & ,
const SupportedTypes::TypeSize ,
const bool  )

constructor

Parameters
[in]v: variable description
[in]o: offset
[in]d: dummy variable

Member Function Documentation

◆ isScalar()

bool mfront::BehaviourMaterialProperty::isScalar ( ) const
nodiscard
Returns
if the material property is scalar

Member Data Documentation

◆ dummy

bool mfront::BehaviourMaterialProperty::dummy

If true, this variable is not considered in the computation of the indirection map. For example, the Cast3M solver may require a variable called 'V1X' for the first component of the first direction of the orthotropic basis. The variable shall not prevent the user of defining a material property named 'V1X'.

◆ offset

SupportedTypes::TypeSize mfront::BehaviourMaterialProperty::offset

offset of the variable in the indirection map


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