Nonlinear solvers: Newton method. More...
Files | |
file | multidomain/newtonconvergencewriter.hh |
This class provides the infrastructure to write the convergence behaviour of the Newton method for multidomain simulations into a VTK file. | |
file | multidomain/newtonsolver.hh |
file | findscalarroot.hh |
Root finding algorithms for scalar functions. | |
file | nonlinear/newtonconvergencewriter.hh |
This class provides the infrastructure to write the convergence behaviour of the newton method into a VTK file. | |
file | nonlinear/newtonsolver.hh |
Reference implementation of a Newton solver. | |
file | primaryvariableswitchadapter.hh |
An adapter for the Newton to manage models with primary variable switch. | |
file | staggerednewtonconvergencewriter.hh |
This class provides the infrastructure to write the convergence behaviour of the newton method for the staggered discretization scheme into a VTK file. | |
Functions | |
template<class Scalar , class ResFunc , class DerivFunc , typename std::enable_if_t< std::is_invocable_r_v< Scalar, ResFunc, Scalar > &&std::is_invocable_r_v< Scalar, DerivFunc, Scalar > > ...> | |
Scalar | Dumux::findScalarRootNewton (Scalar xOld, const ResFunc &residual, const DerivFunc &derivative, const Scalar tol=1e-13, const int maxIter=200) |
Newton's root finding algorithm for scalar functions (secant method) More... | |
template<class Scalar , class ResFunc , typename std::enable_if_t< std::is_invocable_r_v< Scalar, ResFunc, Scalar > > ...> | |
Scalar | Dumux::findScalarRootNewton (Scalar xOld, const ResFunc &residual, const Scalar tol=1e-13, const int maxIter=200) |
Newton's root finding algorithm for scalar functions (secant method) More... | |
template<class Scalar , class ResFunc , typename std::enable_if_t< std::is_invocable_r_v< Scalar, ResFunc, Scalar > > ...> | |
Scalar | Dumux::findScalarRootBrent (Scalar a, Scalar b, const ResFunc &residual, const Scalar tol=1e-13, const int maxIter=200) |
Brent's root finding algorithm for scalar functions. More... | |
Variables | |
template<class Variables > | |
constexpr bool | Dumux::hasPriVarsSwitch = Dune::Std::is_detected<Detail::DetectPVSwitch, Variables>() |
Helper boolean to check if the given variables involve primary variable switching. More... | |
Scalar Dumux::findScalarRootBrent | ( | Scalar | a, |
Scalar | b, | ||
const ResFunc & | residual, | ||
const Scalar | tol = 1e-13 , |
||
const int | maxIter = 200 |
||
) |
a | Lower bound |
b | Upper bound |
residual | Residual function |
tol | Relative shift tolerance |
maxIter | Maximum number of iterations |
Scalar Dumux::findScalarRootNewton | ( | Scalar | xOld, |
const ResFunc & | residual, | ||
const DerivFunc & | derivative, | ||
const Scalar | tol = 1e-13 , |
||
const int | maxIter = 200 |
||
) |
xOld | initial guess |
residual | Residual function |
derivative | Derivative of the residual |
tol | Relative shift tolerance |
maxIter | Maximum number of iterations |
Scalar Dumux::findScalarRootNewton | ( | Scalar | xOld, |
const ResFunc & | residual, | ||
const Scalar | tol = 1e-13 , |
||
const int | maxIter = 200 |
||
) |
xOld | initial guess |
residual | Residual function |
tol | Relative shift tolerance |
maxIter | Maximum number of iterations |
|
inlineconstexpr |