valSPH
 All Classes Files Functions Variables
Fehlberg Class Reference

#include <Fehlberg.h>

Inheritance diagram for Fehlberg:
Inheritance graph
Collaboration diagram for Fehlberg:
Collaboration graph

Public Member Functions

 Fehlberg ()
 It creates a new empty RK4Solver.
 
vector< double > solve (Equation *eq, vector< double > X0, double h, double ti)
 It implements a step of the Fehlberg solver.
 
 ~Fehlberg ()
 It destroys the Fehlberg object.
 
- Public Member Functions inherited from OdeSolver
 OdeSolver ()
 It creates a new empty OdeSolver. It will be invoked by the constructors of its children classes.
 
 ~OdeSolver ()
 It destroys the OdeSolver object.
 

Constructor & Destructor Documentation

Fehlberg::Fehlberg ( )

It creates a new empty RK4Solver.

Fehlberg::~Fehlberg ( )

It destroys the Fehlberg object.

Member Function Documentation

vector< double > Fehlberg::solve ( Equation eq,
vector< double >  X0,
double  h,
double  ti 
)
virtual

It implements a step of the Fehlberg solver.

Parameters
eqthe equations we want to solve
X0the initial value
hsize of the intervals
tiactual time step
Returns
the solution of the ODE

Implements OdeSolver.

Here is the call graph for this function:


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