tfel
Loading...
Searching...
No Matches
mfront::AbstractNonLinearSystemSolver Struct Referenceabstract

Base class for non linear system solver used in by implicit parser. More...

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

Inheritance diagram for mfront::AbstractNonLinearSystemSolver:
mfront::NonLinearSystemSolverBase mfront::BroydenSolverBase mfront::LevenbergMarquardtSolverBase mfront::NewtonRaphsonSolverBase mfront::SecondBroydenSolver mfront::UserDefinedNonLinearSystemSolver mfront::BroydenSolver mfront::PowellDogLegBroydenSolver mfront::LevenbergMarquardtNumericalJacobianSolver mfront::LevenbergMarquardtSolver mfront::NewtonRaphsonNumericalJacobianSolver mfront::NewtonRaphsonSolver mfront::PowellDogLegNewtonRaphsonNumericalJacobianSolver mfront::PowellDogLegNewtonRaphsonSolver

Public Types

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

virtual std::string getExternalAlgorithmClassName (const BehaviourDescription &, const Hypothesis) const =0
virtual void initializeNumericalParameters (std::ostream &, const BehaviourDescription &, const Hypothesis) const =0
 initialize numerical parameters for the behaviour parameters
virtual std::vector< std::string > getSpecificHeaders () const =0
virtual std::vector< std::string > getReservedNames () const =0
virtual std::vector< std::string > getMemberNames () const =0
virtual bool usesJacobian () const =0
virtual bool usesJacobianInvert () const =0
virtual bool requiresNumericalJacobian () const =0
virtual bool allowsJacobianInitialisation () const =0
virtual bool allowsJacobianInvertInitialisation () const =0
virtual bool requiresJacobianToBeReinitialisedToIdentityAtEachIterations () 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 void writeSpecificInitializeMethodPart (std::ostream &, const BehaviourDescription &, const Hypothesis) const =0
 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).
virtual void writeSpecificMembers (std::ostream &, const BehaviourDescription &, const Hypothesis) const =0
 write the algorithm specific members
virtual ~AbstractNonLinearSystemSolver ()
 destructor

Detailed Description

Base class for non linear system solver used in by implicit parser.

Member Function Documentation

◆ allowsJacobianInitialisation()

virtual bool mfront::AbstractNonLinearSystemSolver::allowsJacobianInitialisation ( ) const
nodiscardpure virtual
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.

Implemented in mfront::BroydenSolverBase, mfront::LevenbergMarquardtSolverBase, mfront::NewtonRaphsonSolverBase, mfront::SecondBroydenSolver, and mfront::UserDefinedNonLinearSystemSolver.

◆ allowsJacobianInvertInitialisation()

virtual bool mfront::AbstractNonLinearSystemSolver::allowsJacobianInvertInitialisation ( ) const
nodiscardpure virtual
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.

Implemented in mfront::BroydenSolverBase, mfront::LevenbergMarquardtSolverBase, mfront::NewtonRaphsonSolverBase, mfront::SecondBroydenSolver, and mfront::UserDefinedNonLinearSystemSolver.

◆ completeVariableDeclaration()

virtual void mfront::AbstractNonLinearSystemSolver::completeVariableDeclaration ( BehaviourDescription & ) const
pure virtual

◆ getExternalAlgorithmClassName()

virtual std::string mfront::AbstractNonLinearSystemSolver::getExternalAlgorithmClassName ( const BehaviourDescription & ,
const Hypothesis  ) const
nodiscardpure virtual

◆ getMemberNames()

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

Implemented in mfront::BroydenSolverBase, mfront::NonLinearSystemSolverBase, and mfront::SecondBroydenSolver.

◆ getReservedNames()

virtual std::vector< std::string > mfront::AbstractNonLinearSystemSolver::getReservedNames ( ) const
nodiscardpure virtual

◆ getSpecificHeaders()

◆ initializeNumericalParameters()

virtual void mfront::AbstractNonLinearSystemSolver::initializeNumericalParameters ( std::ostream & ,
const BehaviourDescription & ,
const Hypothesis  ) const
pure virtual

initialize numerical parameters for the behaviour parameters

Parameters
[in]osoutput stream
[in]bdbehaviour description
[in]hmodelling hypothesis

Implemented in mfront::LevenbergMarquardtSolverBase, mfront::NonLinearSystemSolverBase, mfront::PowellDogLegBroydenSolver, mfront::PowellDogLegNewtonRaphsonNumericalJacobianSolver, and mfront::PowellDogLegNewtonRaphsonSolver.

◆ requiresJacobianToBeReinitialisedToIdentityAtEachIterations()

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

Implemented in mfront::BroydenSolverBase, mfront::LevenbergMarquardtSolverBase, mfront::NewtonRaphsonSolverBase, mfront::SecondBroydenSolver, and mfront::UserDefinedNonLinearSystemSolver.

◆ requiresNumericalJacobian()

◆ treatSpecificKeywords()

virtual std::pair< bool, tokens_iterator > mfront::AbstractNonLinearSystemSolver::treatSpecificKeywords ( BehaviourDescription & ,
const std::string & ,
const tokens_iterator ,
const tokens_iterator  )
nodiscardpure virtual

write the algorithm specific members

Parameters
[in,out]md: mechanical description
[in]key: keyword
[in]p: current position in file (after keyword)
[in]pe: end of file

Implemented in mfront::BroydenSolver, mfront::LevenbergMarquardtSolverBase, mfront::NewtonRaphsonSolverBase, mfront::SecondBroydenSolver, and mfront::UserDefinedNonLinearSystemSolver.

◆ usesJacobian()

virtual bool mfront::AbstractNonLinearSystemSolver::usesJacobian ( ) const
nodiscardpure virtual
Returns
true if the solver uses the jacobian of the system (Newton-Raphson solvers) or an approximation of it (Broyden method).d'

Implemented in mfront::BroydenSolver, mfront::LevenbergMarquardtSolverBase, mfront::NewtonRaphsonSolverBase, mfront::PowellDogLegBroydenSolver, mfront::SecondBroydenSolver, and mfront::UserDefinedNonLinearSystemSolver.

◆ usesJacobianInvert()

virtual bool mfront::AbstractNonLinearSystemSolver::usesJacobianInvert ( ) const
nodiscardpure virtual
Returns
true if the solver uses the invert jacobian of the system or an approximation of it (second Broyden method).

Implemented in mfront::BroydenSolver, mfront::LevenbergMarquardtSolverBase, mfront::NewtonRaphsonSolverBase, mfront::PowellDogLegBroydenSolver, mfront::SecondBroydenSolver, and mfront::UserDefinedNonLinearSystemSolver.

◆ writeSpecificInitializeMethodPart()

virtual void mfront::AbstractNonLinearSystemSolver::writeSpecificInitializeMethodPart ( std::ostream & ,
const BehaviourDescription & ,
const Hypothesis  ) const
pure virtual

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

Implemented in mfront::BroydenSolverBase, mfront::LevenbergMarquardtSolverBase, mfront::NewtonRaphsonSolverBase, mfront::SecondBroydenSolver, and mfront::UserDefinedNonLinearSystemSolver.

◆ writeSpecificMembers()

virtual void mfront::AbstractNonLinearSystemSolver::writeSpecificMembers ( std::ostream & ,
const BehaviourDescription & ,
const Hypothesis  ) const
pure virtual

write the algorithm specific members

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

Implemented in mfront::BroydenSolverBase, mfront::LevenbergMarquardtSolverBase, mfront::NewtonRaphsonSolverBase, mfront::SecondBroydenSolver, and mfront::UserDefinedNonLinearSystemSolver.


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