tfel
Loading...
Searching...
No Matches
mtest::CastemAccelerationAlgorithm Struct Referencefinal

This class implements the Cast3M acceleration algorithm. More...

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

Inheritance diagram for mtest::CastemAccelerationAlgorithm:
mtest::AccelerationAlgorithm

Public Member Functions

 CastemAccelerationAlgorithm ()
 default constructor
std::string getName () const override
void initialize (const unsigned short) override
void setParameter (const std::string &, const std::string &) override
void preExecuteTasks () override
void execute (tfel::math::vector< real > &, const tfel::math::vector< real > &, const tfel::math::vector< real > &, const real, const real, const unsigned short) override
void postExecuteTasks () override
 ~CastemAccelerationAlgorithm () override
 destructor
Public Member Functions inherited from mtest::AccelerationAlgorithm
virtual ~AccelerationAlgorithm ()
 destructor

Protected Attributes

tfel::math::vector< real > ca_u0
tfel::math::vector< real > ca_u1
tfel::math::vector< real > ca_u2
tfel::math::vector< real > ca_r0
tfel::math::vector< real > ca_r1
tfel::math::vector< real > ca_r2
tfel::math::vector< real > ca_n0
tfel::math::vector< real > ca_n1
tfel::math::vector< real > ca_tmp0
tfel::math::vector< real > ca_tmp1
int cat
 acceleration trigger
int cap
 acceleration period

Additional Inherited Members

Static Public Member Functions inherited from mtest::AccelerationAlgorithm
static unsigned short convertToUnsignedShort (const std::string &, const std::string &)
 extract an unsigned short from a string

Detailed Description

This class implements the Cast3M acceleration algorithm.

Member Function Documentation

◆ execute()

void mtest::CastemAccelerationAlgorithm::execute ( tfel::math::vector< real > & ,
const tfel::math::vector< real > & ,
const tfel::math::vector< real > & ,
const real ,
const real ,
const unsigned short  )
overridevirtual
Parameters
[in,out]u1: current estimate of the unknowns (after incrementation)
[in]ru: fixed point residual on the unknowns
[in]rf: Newton residual
[in]ueps: criterium on the unknowns
[in]seps: criterium on the thermodynamic forces
[in]iter: current iteration number

Implements mtest::AccelerationAlgorithm.

◆ getName()

std::string mtest::CastemAccelerationAlgorithm::getName ( ) const
nodiscardoverridevirtual
Returns
the name of the acceleration algorithm

Implements mtest::AccelerationAlgorithm.

◆ initialize()

void mtest::CastemAccelerationAlgorithm::initialize ( const unsigned short )
overridevirtual
Parameters
[in]psz: total number of unknowns (problem size)

Implements mtest::AccelerationAlgorithm.

◆ postExecuteTasks()

void mtest::CastemAccelerationAlgorithm::postExecuteTasks ( )
overridevirtual

called at each time step, once convergence is reached

Implements mtest::AccelerationAlgorithm.

◆ preExecuteTasks()

void mtest::CastemAccelerationAlgorithm::preExecuteTasks ( )
overridevirtual

called at each time step, before the beginning of the Newton algorithm

Implements mtest::AccelerationAlgorithm.

◆ setParameter()

void mtest::CastemAccelerationAlgorithm::setParameter ( const std::string & ,
const std::string &  )
overridevirtual

set a parameter of the acceleration algorithm

Parameters
[in]p: parameter name
[in]v: parameter value

Implements mtest::AccelerationAlgorithm.


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