valSPH
 All Classes Files Functions Variables
OdeSolver Class Referenceabstract

#include <OdeSolver.h>

Inheritance diagram for OdeSolver:
Inheritance graph
Collaboration diagram for OdeSolver:
Collaboration graph

Public Member Functions

 OdeSolver ()
 It creates a new empty OdeSolver. It will be invoked by the constructors of its children classes.
 
virtual vector< double > solve (Equation *eq, vector< double > X0, double h, double ti)=0
 It will be implemented by its children class.
 
 ~OdeSolver ()
 It destroys the OdeSolver object.
 

Constructor & Destructor Documentation

OdeSolver::OdeSolver ( )

It creates a new empty OdeSolver. It will be invoked by the constructors of its children classes.

OdeSolver::~OdeSolver ( )

It destroys the OdeSolver object.

Member Function Documentation

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

It will be implemented by its children class.

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

Implemented in EulerExplicitSolver, Fehlberg, PredictorCorrector, RK4Solver, Verlet, and RK23Solver.

Here is the caller graph for this function:


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