Selection for ODE solver. More...
#include <ODE/ODESolver.H>
Selection for ODE solver.
Definition at line 51 of file ODESolver.H.
Public Member Functions | |
TypeName ("ODESolver") | |
Runtime type information.
| |
declareRunTimeSelectionTable (autoPtr, ODESolver, ODE,(const ODE &ode),(ode)) | |
ODESolver (const ODE &ode) | |
Construct for given ODE.
| |
virtual | ~ODESolver () |
virtual void | solve (const ODE &ode, scalar &x, scalarField &y, scalarField &dydx, const scalar eps, const scalarField &yScale, const scalar hTry, scalar &hDid, scalar &hNext) const =0 |
virtual void | solve (const ODE &ode, const scalar xStart, const scalar xEnd, scalarField &y, const scalar eps, scalar &hEst) const |
Static Public Member Functions | |
static autoPtr< ODESolver > | New (const word &ODESolverTypeName, const ODE &ode) |
Select null constructed.
| |
Protected Member Functions | |
ODESolver (const ODESolver &) | |
Disallow default bitwise copy construct.
| |
void | operator= (const ODESolver &) |
Disallow default bitwise assignment.
| |
Protected Attributes | |
label | n_ |
scalarField | yScale_ |
scalarField | dydx_ |
Construct for given ODE.
Definition at line 39 of file ODESolver.C.
virtual ~ODESolver | ( | ) | [inline, virtual]
|
Definition at line 108 of file ODESolver.H.
void operator= | ( | const ODESolver & | ) | [protected]
|
Disallow default bitwise assignment.
TypeName | ( | "ODESolver" | ) |
Runtime type information.
Foam::autoPtr< Foam::ODESolver > New | ( | const word & | ODESolverTypeName, |
const ODE & | ode | ||
) | [static]
|
Select null constructed.
Definition at line 31 of file newODESolver.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, and Foam::Info.
virtual void solve | ( | const ODE & | ode, |
scalar & | x, | ||
scalarField & | y, | ||
scalarField & | dydx, | ||
const scalar | eps, | ||
const scalarField & | yScale, | ||
const scalar | hTry, | ||
scalar & | hDid, | ||
scalar & | hNext | ||
) | const [pure virtual]
|
void solve | ( | const ODE & | ode, |
const scalar | xStart, | ||
const scalar | xEnd, | ||
scalarField & | y, | ||
const scalar | eps, | ||
scalar & | hEst | ||
) | const [virtual]
|
Definition at line 50 of file ODESolver.C.
References ODE::derivatives(), Foam::exit(), Foam::FatalError, FatalErrorIn, h, Foam::mag(), and Foam::solve().
label n_ [protected]
|
Definition at line 58 of file ODESolver.H.
scalarField yScale_ [mutable, protected]
|
Definition at line 59 of file ODESolver.H.
scalarField dydx_ [mutable, protected]
|
Definition at line 60 of file ODESolver.H.