tfel
Loading...
Searching...
No Matches
TinyNonLinearSolverBase.hxx File Reference

Classes

struct  tfel::math::StackAllocatedTinyNonLinearSolverWorkspace< N, NumericType >
 base class for allocating on the stack a workspace usable by the solvers derived from TinyNonLinearSolverBase class. More...

Namespaces

namespace  tfel
 the namespace tfel encloses all the TFEL project. This namespace is empty.
namespace  tfel::math
 This namespace contains various classes and functions défining mathematical objects and numerical algorithms.

Functions

template<typename... ExternalWorkSpaceArguments>
TFEL_HOST_DEVICE tfel::math::TinyNonLinearSolverBase (ExternalWorkSpaceArguments &&...) noexcept
 A base class for algorithms dedicated to solve finite sized system of non linear equations.
*brief default constructor tfel::math::TinyNonLinearSolverBase (TinyNonLinearSolverBase &) noexcept=default
*brief default constructor tfel::math::TinyNonLinearSolverBase (TinyNonLinearSolverBase &&) noexcept=default
*brief default constructor TinyNonLinearSolverBase & tfel::math::operator= (TinyNonLinearSolverBase &&) noexcept=default
*brief default constructor TinyNonLinearSolverBase & tfel::math::operator= (const TinyNonLinearSolverBase &) noexcept=default
TFEL_HOST_DEVICE bool tfel::math::solveNonLinearSystem ()
 solve the non linear problem. This methods wraps the resolution algorithm and tries to handles failures of the latter.
TFEL_HOST_DEVICE bool tfel::math::solveNonLinearSystem2 ()
 solve the non linear problem. This method is called by the solveNonLinearSystem and must contain the core of the resolution algorithm.
TFEL_HOST_DEVICE constexpr void tfel::math::executeInitialisationTaskBeforeResolution () noexcept
 this method is called at the beginning of the solveNonLinearSystem method.
TFEL_HOST_DEVICE constexpr void tfel::math::executeInitialisationTaskBeforeBeginningOfCoreAlgorithm () noexcept
 this method is called at the beginning of the solveNonLinearSystem2 method.
*return the norm of the residual TFEL_HOST_DEVICE NumericType tfel::math::computeResidualNorm () const noexcept
TFEL_HOST_DEVICE constexpr bool tfel::math::checkConvergence (const NumericType e) const noexcept
 check the convergence of the method
template<MatrixConcept FixedSizeMatrixType, VectorConcept FixedSizeVectorType>
TFEL_HOST_DEVICE bool tfel::math::solveLinearSystem (FixedSizeMatrixType &, FixedSizeVectorType &) const noexcept
 solve linear system
TFEL_HOST_DEVICE constexpr void tfel::math::updateOrCheckJacobian () noexcept
 update the jacobian matrix if required.
TFEL_HOST_DEVICE bool tfel::math::callUpdateOrCheckJacobian ()
 call the updateOrCheckJacobian method of the derived class.
TFEL_HOST_DEVICE constexpr void tfel::math::processNewCorrection () noexcept
 method meant to set bounds on some components of the current correction or to implement a line search or to implement static decondensation.
TFEL_HOST_DEVICE constexpr void tfel::math::rejectCurrentCorrection () noexcept
 method called when the current correction is rejected.
TFEL_HOST_DEVICE constexpr void tfel::math::processNewEstimate () noexcept
 method meant to process the new estimate.
*brief method called when the resolution begins TFEL_HOST_DEVICE constexpr void tfel::math::reportBeginningOfResolution () const noexcept
*brief method called when the resolution succeeds TFEL_HOST_DEVICE constexpr void tfel::math::reportSuccess () const noexcept
*brief method called when the resolution fails TFEL_HOST_DEVICE constexpr void tfel::math::reportFailure () const noexcept
*brief method called when the evaluation of the residual failed TFEL_HOST_DEVICE constexpr void tfel::math::reportInvalidResidualEvaluation () const noexcept
*brief method called when the computation of a new correction failed TFEL_HOST_DEVICE constexpr void tfel::math::reportNewCorrectionComputationFailure () const noexcept
TFEL_HOST_DEVICE constexpr void tfel::math::reportStandardIteration (const NumericType) const noexcept
 method called after a standard Newton step

Variables

*brief criterion value NumericType tfel::math::epsilon
iteration_number_type tfel::math::iter
 current iteration number
*brief maximum number of iterations iteration_number_type tfel::math::iterMax
bool tfel::math::is_delta_zeros_defined
 boolean stating if an increment of the unknowns has been computed.

Detailed Description

Author
Thomas Helfer
Date
02/07/2021