Public Member Functions | List of all members
adaptiveSolver Class Referenceabstract
Inheritance diagram for adaptiveSolver:
Inheritance graph
[legend]

Public Member Functions

 adaptiveSolver (const ODESystem &ode, const dictionary &dict)
 Construct from ODESystem. More...
 
virtual ~adaptiveSolver ()
 Destructor. More...
 
virtual scalar solve (const scalar x0, const scalarField &y0, const scalarField &dydx0, const scalar dx, scalarField &y) const =0
 Solve a single step dx and return the error. More...
 
void solve (const ODESystem &ode, scalar &x, scalarField &y, scalar &dxTry) const
 Solve the ODE system and the update the state. More...
 

Detailed Description

Source files

Definition at line 47 of file adaptiveSolver.H.

Constructor & Destructor Documentation

adaptiveSolver ( const ODESystem ode,
const dictionary dict 
)

Construct from ODESystem.

Definition at line 32 of file adaptiveSolver.C.

References adaptiveSolver::solve().

Here is the call graph for this function:

virtual ~adaptiveSolver ( )
inlinevirtual

Destructor.

Definition at line 70 of file adaptiveSolver.H.

References adaptiveSolver::solve(), x, y, and Foam::y0().

Here is the call graph for this function:

Member Function Documentation

virtual scalar solve ( const scalar  x0,
const scalarField y0,
const scalarField dydx0,
const scalar  dx,
scalarField y 
) const
pure virtual
void solve ( const ODESystem ode,
scalar &  x,
scalarField y,
scalar &  dxTry 
) const

Solve the ODE system and the update the state.

Definition at line 50 of file adaptiveSolver.C.

References ODESystem::derivatives(), Foam::exit(), Foam::FatalError, FatalErrorIn, Foam::max(), Foam::min(), Foam::pow(), and solve().

Here is the call graph for this function:


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