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

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

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

Inheritance diagram for mtest::UAndersonAccelerationAlgorithm:
mtest::AccelerationAlgorithm

Public Member Functions

 UAndersonAccelerationAlgorithm ()
 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
 ~UAndersonAccelerationAlgorithm () override
 destructor
Public Member Functions inherited from mtest::AccelerationAlgorithm
virtual ~AccelerationAlgorithm ()
 destructor

Protected Types

using Field = tfel::math::vector<real>
using UAnderson = tfel::math::UAnderson<Field, long double>

Protected Attributes

std::unique_ptr< UAnderson > a
 the underlying algorithm
Field * uO
 < previous displacement estimate
Field * uN
int Nmax = -1
 method order
int alMax = -1
 alternance order

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::UAndersonAccelerationAlgorithm::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
[in]u0: previous estimate of the unknowns
[in]r: 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::UAndersonAccelerationAlgorithm::getName ( ) const
nodiscardoverridevirtual
Returns
the name of the acceleration algorithm

Implements mtest::AccelerationAlgorithm.

◆ initialize()

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

Implements mtest::AccelerationAlgorithm.

◆ postExecuteTasks()

void mtest::UAndersonAccelerationAlgorithm::postExecuteTasks ( )
overridevirtual

called at each time step, once convergence is reached

Implements mtest::AccelerationAlgorithm.

◆ preExecuteTasks()

void mtest::UAndersonAccelerationAlgorithm::preExecuteTasks ( )
overridevirtual

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

Implements mtest::AccelerationAlgorithm.

◆ setParameter()

void mtest::UAndersonAccelerationAlgorithm::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.

Member Data Documentation

◆ uO

Field* mtest::UAndersonAccelerationAlgorithm::uO
protected

< previous displacement estimate

current displacement estimate


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