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

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

Inheritance diagram for mfront::NonLinearSystemSolverBase:
mfront::AbstractNonLinearSystemSolver 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 Member Functions

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 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

Static Public Member Functions

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

 ~NonLinearSystemSolverBase () override
 destructor

Additional Inherited Members

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

Detailed Description

base class for non linear system solver providing some helpfull common methods

Member Function Documentation

◆ buildExternalAlgorithmClassName()

std::string mfront::NonLinearSystemSolverBase::buildExternalAlgorithmClassName ( const BehaviourDescription & ,
const Hypothesis ,
const std::string &  )
staticnodiscard

brief build a suitable specialisation of the class implementing the algorithm.

Parameters
[in]bdbehaviour description
[in]hhypothesis
[in]nclass name

◆ getJacobianPart()

std::string mfront::NonLinearSystemSolverBase::getJacobianPart ( const VariableDescription & ,
const VariableDescription & ,
const SupportedTypes::TypeSize & ,
const SupportedTypes::TypeSize & ,
const std::string & = "this->jacobian",
const std::string & = "" )
staticnodiscard
Returns
the part of the jacobian where the partial derivative of the first variable with respect to the second variable is stored
Parameters
[in]v1: first variable description
[in]v2: second variable description

◆ getMemberNames()

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

Implements mfront::AbstractNonLinearSystemSolver.

Reimplemented in mfront::SecondBroydenSolver.

◆ getReservedNames()

std::vector< std::string > mfront::NonLinearSystemSolverBase::getReservedNames ( ) const
nodiscardoverridevirtual
Returns
the reserved names

Implements mfront::AbstractNonLinearSystemSolver.

Reimplemented in mfront::PowellDogLegBroydenSolver.

◆ initializeNumericalParameters()

void mfront::NonLinearSystemSolverBase::initializeNumericalParameters ( std::ostream & ,
const BehaviourDescription & ,
const Hypothesis  ) const
overridevirtual

initialize numerical parameters for the behaviour parameters

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

Implements mfront::AbstractNonLinearSystemSolver.

Reimplemented in mfront::PowellDogLegBroydenSolver, mfront::PowellDogLegNewtonRaphsonNumericalJacobianSolver, and mfront::PowellDogLegNewtonRaphsonSolver.

◆ writeComparisonToNumericalJacobian()

void mfront::NonLinearSystemSolverBase::writeComparisonToNumericalJacobian ( std::ostream & ,
const BehaviourDescription & ,
const Hypothesis ,
const std::string &  )
static
Returns
write the code comparing the jacobian to a numerical one
Parameters
[in]out: output file
[in]mb: mechanical behaviour description
[in]h: modelling hypothesis
[in]nj: name of the variable holding the numerical jacobian

◆ writeEvaluateNumericallyComputedBlocks()

void mfront::NonLinearSystemSolverBase::writeEvaluateNumericallyComputedBlocks ( std::ostream & ,
const BehaviourDescription & ,
const Hypothesis  )
static
Returns
write the code comparing the jacobian to a numerical one
Parameters
[in]out: output file
[in]mb: mechanical behaviour description
[in]h: modelling hypothesis

◆ writeLimitsOnIncrementValues()

void mfront::NonLinearSystemSolverBase::writeLimitsOnIncrementValues ( std::ostream & ,
const BehaviourDescription & ,
const Hypothesis ,
const std::string &  )
static
Returns
write the code limiting the value of the increment of an integration variable based on information given by the user
Parameters
[in]out: output file
[in]mb: mechanical behaviour description
[in]h: modelling hypothesis
[in]v: name of the variable holding the integration variable increment

◆ writeLimitsOnIncrementValuesBasedOnIntegrationVariablesIncrementsPhysicalBounds()

void mfront::NonLinearSystemSolverBase::writeLimitsOnIncrementValuesBasedOnIntegrationVariablesIncrementsPhysicalBounds ( std::ostream & ,
const BehaviourDescription & ,
const Hypothesis  )
static
Returns
write the code limiting the value of the increment of a state variable based on physical bounds
Parameters
[in]out: output file
[in]mb: mechanical behaviour description
[in]h: modelling hypothesis

◆ writeLimitsOnIncrementValuesBasedOnStateVariablesPhysicalBounds()

void mfront::NonLinearSystemSolverBase::writeLimitsOnIncrementValuesBasedOnStateVariablesPhysicalBounds ( std::ostream & ,
const BehaviourDescription & ,
const Hypothesis  )
static
Returns
write the code limiting the value of the increment of a state variable based on physical bounds
Parameters
[in]out: output file
[in]mb: mechanical behaviour description
[in]h: modelling hypothesis

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