FreeFOAM The Cross-Platform CFD Toolkit
RK Class Reference

Foam::RK. More...

#include <ODE/RK.H>


Detailed Description

Foam::RK.

Source files

Definition at line 50 of file RK.H.

+ Inheritance diagram for RK:
+ Collaboration diagram for RK:

List of all members.

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
- Public Member Functions inherited from ODESolver
 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 Public Member Functions inherited from ODESolver
static autoPtr< ODESolverNew (const word &ODESolverTypeName, const ODE &ode)
 Select null constructed.
- Protected Member Functions inherited from ODESolver
 ODESolver (const ODESolver &)
 Disallow default bitwise copy construct.
void operator= (const ODESolver &)
 Disallow default bitwise assignment.
- Protected Attributes inherited from ODESolver
label n_
scalarField yScale_
scalarField dydx_

Constructor & Destructor Documentation

RK ( const ODE ode)

Construct from ODE.

Definition at line 58 of file RK.C.


Member Function Documentation

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.

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
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().


The documentation for this class was generated from the following files: