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

Base class for non linear system solver based on the Broyden algorithm. More...

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

Inheritance diagram for mfront::BroydenSolverBase:
mfront::NonLinearSystemSolverBase mfront::AbstractNonLinearSystemSolver mfront::BroydenSolver mfront::PowellDogLegBroydenSolver

Public Types

using Hypothesis = NonLinearSystemSolverBase::Hypothesis
 a simple alias
Public Types inherited from mfront::AbstractNonLinearSystemSolver
using Hypothesis = tfel::material::ModellingHypothesis::Hypothesis
 a simple alias
using CxxTokenizer = tfel::utilities::CxxTokenizer
 a simple alias
using tokens_iterator = CxxTokenizer::TokensContainer::const_iterator
 a simple alias

Public Member Functions

std::vector< std::string > getMemberNames () const override
bool requiresNumericalJacobian () const override
bool allowsJacobianInitialisation () const override
bool allowsJacobianInvertInitialisation () const override
bool requiresJacobianToBeReinitialisedToIdentityAtEachIterations () const override
void writeSpecificInitializeMethodPart (std::ostream &, const BehaviourDescription &, const Hypothesis) const override
 write algorithm specific initialisations This method may be used to initialise the jacobian to identity at the beginning of the computations (if the user did no provide an initialisation of the jacobian).
void writeSpecificMembers (std::ostream &, const BehaviourDescription &, const Hypothesis) const override
 write the algorithm specific members
 ~BroydenSolverBase () override
 destructor
Public Member Functions inherited from mfront::NonLinearSystemSolverBase
std::vector< std::string > getReservedNames () const override
std::vector< std::string > getMemberNames () const override
void initializeNumericalParameters (std::ostream &, const BehaviourDescription &, const Hypothesis) const override
 initialize numerical parameters for the behaviour parameters
Public Member Functions inherited from mfront::AbstractNonLinearSystemSolver
virtual std::string getExternalAlgorithmClassName (const BehaviourDescription &, const Hypothesis) const =0
virtual std::vector< std::string > getSpecificHeaders () const =0
virtual bool usesJacobian () const =0
virtual bool usesJacobianInvert () const =0
virtual std::pair< bool, tokens_iterator > treatSpecificKeywords (BehaviourDescription &, const std::string &, const tokens_iterator, const tokens_iterator)=0
 write the algorithm specific members
virtual void completeVariableDeclaration (BehaviourDescription &) const =0
 method called when all the user defined variables have been set.
virtual ~AbstractNonLinearSystemSolver ()
 destructor

Additional Inherited Members

Static Public Member Functions inherited from mfront::NonLinearSystemSolverBase
static std::string buildExternalAlgorithmClassName (const BehaviourDescription &, const Hypothesis, const std::string &)
 brief build a suitable specialisation of the class implementing the algorithm.
static std::string getJacobianPart (const VariableDescription &, const VariableDescription &, const SupportedTypes::TypeSize &, const SupportedTypes::TypeSize &, const std::string &="this->jacobian", const std::string &="")
static void writeEvaluateNumericallyComputedBlocks (std::ostream &, const BehaviourDescription &, const Hypothesis)
static void writeComparisonToNumericalJacobian (std::ostream &, const BehaviourDescription &, const Hypothesis, const std::string &)
static void writeLimitsOnIncrementValues (std::ostream &, const BehaviourDescription &, const Hypothesis, const std::string &)
static void writeLimitsOnIncrementValuesBasedOnStateVariablesPhysicalBounds (std::ostream &, const BehaviourDescription &, const Hypothesis)
static void writeLimitsOnIncrementValuesBasedOnIntegrationVariablesIncrementsPhysicalBounds (std::ostream &, const BehaviourDescription &, const Hypothesis)
Protected Member Functions inherited from mfront::NonLinearSystemSolverBase
 ~NonLinearSystemSolverBase () override
 destructor

Detailed Description

Base class for non linear system solver based on the Broyden algorithm.

Member Function Documentation

◆ allowsJacobianInitialisation()

bool mfront::BroydenSolverBase::allowsJacobianInitialisation ( ) const
nodiscardoverridevirtual
Returns
true if the solver allows the user to initialize the jacobian.
Note
If the solver does not provide such initialisation, the jacobian could for example be initialised to identity in the behaviour constructor.

Implements mfront::AbstractNonLinearSystemSolver.

◆ allowsJacobianInvertInitialisation()

bool mfront::BroydenSolverBase::allowsJacobianInvertInitialisation ( ) const
nodiscardoverridevirtual
Returns
true if the solver allows the user to initialize the invert of the jacobian.
Note
If the solver does not provide such initialisation, the invert of the jacobian could for example be initialised to identity in the behaviour constructor.

Implements mfront::AbstractNonLinearSystemSolver.

◆ getMemberNames()

std::vector< std::string > mfront::BroydenSolverBase::getMemberNames ( ) const
nodiscardoverridevirtual
Returns
list of member names that are defined by the non linear system solver.

Implements mfront::AbstractNonLinearSystemSolver.

◆ requiresJacobianToBeReinitialisedToIdentityAtEachIterations()

bool mfront::BroydenSolverBase::requiresJacobianToBeReinitialisedToIdentityAtEachIterations ( ) const
nodiscardoverridevirtual
Returns
true if the solver requires the jacobian to be initialized to the identity matrix at the beginning of the computeFdF method.

Implements mfront::AbstractNonLinearSystemSolver.

◆ requiresNumericalJacobian()

bool mfront::BroydenSolverBase::requiresNumericalJacobian ( ) const
nodiscardoverridevirtual
Returns
true if the solver requires a numerical jacobian

Implements mfront::AbstractNonLinearSystemSolver.

◆ writeSpecificInitializeMethodPart()

void mfront::BroydenSolverBase::writeSpecificInitializeMethodPart ( std::ostream & ,
const BehaviourDescription & ,
const Hypothesis  ) const
overridevirtual

write algorithm specific initialisations This method may be used to initialise the jacobian to identity at the beginning of the computations (if the user did no provide an initialisation of the jacobian).

Parameters
[in]out: output file
[in]md: mechanical description
[in]h: modelling hypotheis

Implements mfront::AbstractNonLinearSystemSolver.

◆ writeSpecificMembers()

void mfront::BroydenSolverBase::writeSpecificMembers ( std::ostream & ,
const BehaviourDescription & ,
const Hypothesis  ) const
overridevirtual

write the algorithm specific members

Parameters
[in]out: output file
[in]md: mechanical description
[in]h: modelling hypotheis

Implements mfront::AbstractNonLinearSystemSolver.


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