L-stable embedded Rosenbrock ODE solver of order (3)4. More...
Public Member Functions | |
TypeName ("Rosenbrock34") | |
Rosenbrock34 (const ODESystem &ode, const dictionary &dict) | |
virtual | ~Rosenbrock34 ()=default |
virtual bool | resize () |
virtual scalar | solve (const scalar x0, const scalarField &y0, const scalarField &dydx0, const scalar dx, scalarField &y) const |
virtual void | solve (scalar &x, scalarField &y, scalar &dxTry) const |
virtual void | solve (scalar &x, scalarField &y, scalar &dxTry) const |
virtual void | solve (scalar &x, scalarField &y, stepState &step) const |
virtual void | solve (const scalar xStart, const scalar xEnd, scalarField &y, scalar &dxEst) const |
![]() | |
TypeName ("ODESolver") | |
declareRunTimeSelectionTable (autoPtr, ODESolver, dictionary,(const ODESystem &ode, const dictionary &dict),(ode, dict)) | |
ODESolver (const ODESystem &ode, const dictionary &dict) | |
ODESolver (const ODESystem &ode, const scalarField &absTol, const scalarField &relTol) | |
virtual | ~ODESolver ()=default |
label | nEqns () const |
scalarField & | absTol () |
scalarField & | relTol () |
template<class Type > | |
void | resizeField (UList< Type > &f) const |
void | resizeMatrix (scalarSquareMatrix &m) const |
virtual void | solve (scalar &x, scalarField &y, stepState &step) const |
virtual void | solve (const scalar xStart, const scalar xEnd, scalarField &y, scalar &dxEst) const |
![]() | |
adaptiveSolver (const ODESystem &ode, const dictionary &dict) | |
virtual | ~adaptiveSolver ()=default |
bool | resize (const label n) |
void | solve (const ODESystem &ode, scalar &x, scalarField &y, scalar &dxTry) const |
Additional Inherited Members | |
![]() | |
static autoPtr< ODESolver > | New (const ODESystem &ode, const dictionary &dict) |
template<class Type > | |
static void | resizeField (UList< Type > &f, const label n) |
![]() | |
scalar | normalizeError (const scalarField &y0, const scalarField &y, const scalarField &err) const |
ODESolver (const ODESolver &)=delete | |
void | operator= (const ODESolver &)=delete |
![]() | |
const ODESystem & | odes_ |
const label | maxN_ |
label | n_ |
scalarField | absTol_ |
scalarField | relTol_ |
label | maxSteps_ |
L-stable embedded Rosenbrock ODE solver of order (3)4.
Hairer, E., Nørsett, S. P., & Wanner, G. (1996). Solving Ordinary Differential Equations II: Stiff and Differential-Algebraic Problems, second edition", Springer-Verlag, Berlin.
The default constants are from:
Shampine, L. F. (1982). Implementation of Rosenbrock Methods. ACM Transactions on Mathematical Software, vol. 8, pp. 93–113.
with which the scheme is more accurate than with the L-Stable coefficients for small step-size but less stable for large step-size.
The L-Stable scheme constants are provided commented-out in Rosenbrock34.C
Definition at line 69 of file Rosenbrock34.H.
Rosenbrock34 | ( | const ODESystem & | ode, |
const dictionary & | dict | ||
) |
Definition at line 104 of file Rosenbrock34.C.
|
virtualdefault |
TypeName | ( | "Rosenbrock34" | ) |
|
virtual |
Implements ODESolver.
Definition at line 123 of file Rosenbrock34.C.
References adaptiveSolver::resize(), and ODESolver::resize().
|
virtual |
Implements adaptiveSolver.
Definition at line 148 of file Rosenbrock34.C.
References Foam::constant::physicoChemical::c2, forAll, gamma, Foam::LUBacksubstitute(), Foam::LUDecompose(), y, and Foam::y0().
|
virtual |
Reimplemented from ODESolver.
Definition at line 229 of file Rosenbrock34.C.
References adaptiveSolver::solve(), x, and y.
void solve |
Definition at line 110 of file ODESolver.C.
void solve |
Definition at line 123 of file ODESolver.C.
void solve |
Definition at line 136 of file ODESolver.C.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.