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

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

Inheritance diagram for mfront::Gradient:
mfront::VariableDescription mfront::VariableDescriptionBase

Public Member Functions

 Gradient (const std::string &, const std::string &)
 Constructor.
 Gradient (const std::string &, const std::string &, const std::string &)
 Constructor.
 Gradient (const VariableDescription &)
 constructor from a variable description
 Gradient (Gradient &&) noexcept
 move constructor
 Gradient (const Gradient &)
 copy constructor
Gradient & operator= (Gradient &&) noexcept
 move assignement
Gradient & operator= (const Gradient &)
 standard assignement
 ~Gradient () noexcept
 destructor
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

Static Public Member Functions

static void setIsIncrementKnownAttribute (VariableDescription &, const bool)
 a simple helper function to set an attribute stating if the gradient increment is known.
static bool isIncrementKnown (const VariableDescription &)
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

Additional Inherited Members

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

structure in charge of describing the main inputs of a behaviour and their associated thermodynamic forces. For example, small strain behaviours have the total strain as driving variable.

Constructor & Destructor Documentation

◆ Gradient() [1/3]

mfront::Gradient::Gradient ( const std::string & ,
const std::string &  )

Constructor.

Parameters
[in]t: variable type
[in]n: variable name

◆ Gradient() [2/3]

mfront::Gradient::Gradient ( const std::string & ,
const std::string & ,
const std::string &  )

Constructor.

Parameters
[in]tvariable type
[in]ssymbol name
[in]nvariable name

◆ Gradient() [3/3]

mfront::Gradient::Gradient ( const VariableDescription & )
explicit

constructor from a variable description

Parameters
[in]vvariable description

Member Function Documentation

◆ isIncrementKnown()

bool mfront::Gradient::isIncrementKnown ( const VariableDescription & )
static
Returns
if the increment of a variable is known

◆ setIsIncrementKnownAttribute()

void mfront::Gradient::setIsIncrementKnownAttribute ( VariableDescription & ,
const bool  )
static

a simple helper function to set an attribute stating if the gradient increment is known.

Parameters
[in]vvariable

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