Euler-implicit integration scheme. More...
Public Member Functions | |
TypeName ("Euler") | |
Euler (const ODESystem &ode, const dictionary &dict) | |
virtual | ~Euler ()=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_ |
Euler-implicit integration scheme.
Euler ODE solver of order (0)1.
The method calculates the new state from:
The error is estimated directly from the change in the solution, i.e. the difference between the 0th and 1st order solutions:
Euler | ( | const ODESystem & | ode, |
const dictionary & | dict | ||
) |
|
virtualdefault |
TypeName | ( | "Euler" | ) |
|
virtual |
Implements ODESolver.
Definition at line 46 of file Euler.C.
References adaptiveSolver::resize(), and ODESolver::resize().
|
virtual |
Implements adaptiveSolver.
Definition at line 62 of file Euler.C.
References forAll, y, and Foam::y0().
|
virtual |
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.