FreeFOAM The Cross-Platform CFD Toolkit
ODESolver Class Reference

Selection for ODE solver. More...

#include <ODE/ODESolver.H>


Detailed Description

Selection for ODE solver.

Source files

Definition at line 51 of file ODESolver.H.

+ 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< ODESolverNew (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_

Constructor & Destructor Documentation

ODESolver ( const ODESolver )
protected

Disallow default bitwise copy construct.

ODESolver ( const ODE ode)

Construct for given ODE.

Definition at line 39 of file ODESolver.C.

virtual ~ODESolver ( )
inlinevirtual

Definition at line 108 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 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

Implemented in SIBS, RK, and KRR4.

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

Member Data Documentation

label n_
protected

Definition at line 58 of file ODESolver.H.

scalarField yScale_
mutableprotected

Definition at line 59 of file ODESolver.H.

scalarField dydx_
mutableprotected

Definition at line 60 of file ODESolver.H.


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