tfel
Loading...
Searching...
No Matches
mtest::MaterialProperty Struct Referenceabstract

base class for material properties More...

#include </home/runner/work/tfel/tfel/mtest/include/MTest/MaterialProperty.hxx>

Inheritance diagram for mtest::MaterialProperty:
mtest::MaterialPropertyBase mtest::CastemMaterialProperty mtest::CyranoMaterialProperty mtest::GenericMaterialProperty

Public Member Functions

virtual std::size_t getNumberOfVariables () const =0
virtual std::vector< std::string > getVariablesNames () const =0
virtual std::vector< std::string > getParametersNames () const =0
virtual std::string getOutputName () const =0
virtual void setVariableValue (const std::string &, const real)=0
 set variable value
virtual void setVariableValue (const std::size_t, const real)=0
 set variable value
virtual real getValue () const =0
 return the value of the material property
virtual void setParameter (const std::string &, const real)=0
 set the value of a parameter
virtual ~MaterialProperty ()
 destructor

Static Public Member Functions

static std::shared_ptr< MaterialProperty > getMaterialProperty (const std::string &, const std::string &, const std::string &)
 build a material property

Detailed Description

base class for material properties

Member Function Documentation

◆ getMaterialProperty()

std::shared_ptr< MaterialProperty > mtest::MaterialProperty::getMaterialProperty ( const std::string & ,
const std::string & ,
const std::string &  )
static

build a material property

Parameters
[in]iinterface
[in]llibrary
[in]ffunction

◆ getNumberOfVariables()

virtual std::size_t mtest::MaterialProperty::getNumberOfVariables ( ) const
nodiscardpure virtual
Returns
the names of the arguments

Implemented in mtest::MaterialPropertyBase.

◆ getOutputName()

virtual std::string mtest::MaterialProperty::getOutputName ( ) const
nodiscardpure virtual
Returns
the names of the output

Implemented in mtest::MaterialPropertyBase.

◆ getParametersNames()

virtual std::vector< std::string > mtest::MaterialProperty::getParametersNames ( ) const
nodiscardpure virtual
Returns
the names of the parameters

Implemented in mtest::MaterialPropertyBase.

◆ getValue()

virtual real mtest::MaterialProperty::getValue ( ) const
nodiscardpure virtual

return the value of the material property

Implemented in mtest::CastemMaterialProperty, mtest::CyranoMaterialProperty, and mtest::GenericMaterialProperty.

◆ getVariablesNames()

virtual std::vector< std::string > mtest::MaterialProperty::getVariablesNames ( ) const
nodiscardpure virtual
Returns
the names of the arguments

Implemented in mtest::MaterialPropertyBase.

◆ setParameter()

virtual void mtest::MaterialProperty::setParameter ( const std::string & ,
const real  )
pure virtual

set the value of a parameter

Parameters
[in]nname of the variable
[in]vvalue the variable

Implemented in mtest::MaterialPropertyBase.

◆ setVariableValue() [1/2]

virtual void mtest::MaterialProperty::setVariableValue ( const std::size_t ,
const real  )
pure virtual

set variable value

Parameters
[in]pposition of the variable
[in]vvalue the variable

Implemented in mtest::MaterialPropertyBase.

◆ setVariableValue() [2/2]

virtual void mtest::MaterialProperty::setVariableValue ( const std::string & ,
const real  )
pure virtual

set variable value

Parameters
[in]nname of the variable
[in]vvalue the variable

Implemented in mtest::MaterialPropertyBase.


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