L-stable embedded Rosenbrock ODE solver of order (2)3. More...
Public Member Functions | |
TypeName ("Rosenbrock23") | |
Rosenbrock23 (const ODESystem &ode, const dictionary &dict) | |
virtual | ~Rosenbrock23 ()=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 (2)3.
Sandu, A., Verwer, J. G., Blom, J. G., Spee, E. J., Carmichael, G. R., & Potra, F. A. (1997). Benchmarking stiff ODE solvers for atmospheric chemistry problems II: Rosenbrock solvers. Atmospheric environment, 31(20), 3459-3472.
Definition at line 60 of file Rosenbrock23.H.
Rosenbrock23 | ( | const ODESystem & | ode, |
const dictionary & | dict | ||
) |
Definition at line 60 of file Rosenbrock23.C.
|
virtualdefault |
TypeName | ( | "Rosenbrock23" | ) |
|
virtual |
Implements ODESolver.
Definition at line 78 of file Rosenbrock23.C.
References adaptiveSolver::resize(), and ODESolver::resize().
|
virtual |
Implements adaptiveSolver.
Definition at line 102 of file Rosenbrock23.C.
References Foam::constant::physicoChemical::c2, forAll, gamma, Foam::LUBacksubstitute(), Foam::LUDecompose(), y, and Foam::y0().
|
virtual |
Reimplemented from ODESolver.
Definition at line 168 of file Rosenbrock23.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.