#include <ODE/RK.H>
Public Member Functions | |
TypeName ("RK") | |
Runtime type information. | |
RK (const ODE &ode) | |
Construct from ODE. | |
void | solve (const ODE &ode, const scalar x, const scalarField &y, const scalarField &dydx, const scalar h, scalarField &yout, scalarField &yerr) const |
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 |
![]() | |
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, const scalar xStart, const scalar xEnd, scalarField &y, const scalar eps, scalar &hEst) const |
Additional Inherited Members | |
![]() | |
static autoPtr< ODESolver > | New (const word &ODESolverTypeName, const ODE &ode) |
Select null constructed. | |
![]() | |
ODESolver (const ODESolver &) | |
Disallow default bitwise copy construct. | |
void | operator= (const ODESolver &) |
Disallow default bitwise assignment. | |
![]() | |
label | n_ |
scalarField | yScale_ |
scalarField | dydx_ |
TypeName | ( | "RK" | ) |
Runtime type information.
void solve | ( | const ODE & | ode, |
const scalar | x, | ||
const scalarField & | y, | ||
const scalarField & | dydx, | ||
const scalar | h, | ||
scalarField & | yout, | ||
scalarField & | yerr | ||
) | const |
Definition at line 75 of file RK.C.
References ODE::derivatives(), and forAll.
|
virtual |
Implements ODESolver.
Definition at line 145 of file RK.C.
References Foam::exit(), Foam::FatalError, FatalErrorIn, h, Foam::mag(), Foam::max(), Foam::min(), Foam::pow(), and Foam::solve().