tfel
Loading...
Searching...
No Matches
mtest::GenericEvolution Struct Reference

an evolution defined by a cyrano material property More...

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

Inheritance diagram for mtest::GenericEvolution:
mtest::Evolution

Public Member Functions

 GenericEvolution (const std::string &, const std::string &, const EvolutionManager &)
 constructor
real operator() (const real) const override
bool isConstant () const override
void setValue (const real) override
 set the evolution value
void setValue (const real, const real) override
 set the evolution value for a given date
 ~GenericEvolution () override
 destructor
Public Member Functions inherited from mtest::Evolution
virtual ~Evolution ()
 destructor

Protected Attributes

const EvolutionManager & evm
 externally defined evolutions
mfront_gmp_MaterialPropertyPtr f
 the generic function
std::vector< std::string > vnames
 names of the variables
std::vector< real > args
 arguments send to the generic function

Detailed Description

an evolution defined by a cyrano material property

Constructor & Destructor Documentation

◆ GenericEvolution()

mtest::GenericEvolution::GenericEvolution ( const std::string & ,
const std::string & ,
const EvolutionManager &  )

constructor

Parameters
[in]l: library
[in]f: function
[in]evm_: externally defined evolutions
[in]vm_: externally defined values

Member Function Documentation

◆ isConstant()

bool mtest::GenericEvolution::isConstant ( ) const
overridevirtual
Returns
true if the evolution is constant

Implements mtest::Evolution.

◆ operator()()

real mtest::GenericEvolution::operator() ( const real ) const
overridevirtual
Returns
the value of the evolution at the given time
Parameters
[in]ttime

Implements mtest::Evolution.

◆ setValue() [1/2]

void mtest::GenericEvolution::setValue ( const real )
overridevirtual

set the evolution value

Note
most evolution will throw an exception (this method only makes sense for constant evolutions)
Parameters
[in]v: value

Implements mtest::Evolution.

◆ setValue() [2/2]

void mtest::GenericEvolution::setValue ( const real ,
const real  )
overridevirtual

set the evolution value for a given date

Parameters
[in]ttime
[in]vvalue
Note
most evolution will throw an exception (for example, this method does not makes sense for constant evolutions)

Implements mtest::Evolution.


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