OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

ODESolver Class Reference

Selection for ODE solver. More...

Inheritance diagram for ODESolver:
Collaboration diagram for ODESolver:

List of all members.


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_

Detailed Description

Selection for ODE solver.

Source files

Definition at line 46 of file ODESolver.H.


Constructor & Destructor Documentation

ODESolver ( const ODESolver &   )  [protected]

Disallow default bitwise copy construct.

ODESolver ( const ODE &  ode  ) 

Construct for given ODE.

Definition at line 31 of file ODESolver.C.

virtual ~ODESolver (  )  [inline, virtual]

Definition at line 103 of file ODESolver.H.


Member Function Documentation

void operator= ( const ODESolver &   )  [protected]

Disallow default bitwise assignment.

TypeName ( "ODESolver"   ) 

Runtime type information.

declareRunTimeSelectionTable ( autoPtr  ,
ODESolver  ,
ODE  ,
(const ODE &ode)  ,
(ode)   
)

Foam::autoPtr< Foam::ODESolver > New ( const word &  ODESolverTypeName,
const ODE &  ode 
) [static]

Select null constructed.

Definition at line 23 of file newODESolver.C.

References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, and Foam::Info.

Here is the call graph for this function:

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]

Implemented in KRR4, RK, and SIBS.

void solve ( const ODE &  ode,
const scalar  xStart,
const scalar  xEnd,
scalarField &  y,
const scalar  eps,
scalar &  hEst 
) const [virtual]

Definition at line 42 of file ODESolver.C.


Member Data Documentation

label n_ [protected]

Definition at line 53 of file ODESolver.H.

scalarField yScale_ [mutable, protected]

Definition at line 54 of file ODESolver.H.

scalarField dydx_ [mutable, protected]

Definition at line 55 of file ODESolver.H.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd