valSPH
 All Classes Files Functions Variables
RK4Solver Class Reference

#include <RK4Solver.h>

Inheritance diagram for RK4Solver:
Inheritance graph
Collaboration diagram for RK4Solver:
Collaboration graph

Public Member Functions

 RK4Solver ()
 It creates a new empty RK4Solver.
 
vector< double > solve (Equation *eq, vector< double > X0, double h, double ti)
 It implements a step of the RK4 solver.
 
 ~RK4Solver ()
 It destroys the RK4Solver 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

RK4Solver::RK4Solver ( )

It creates a new empty RK4Solver.

RK4Solver::~RK4Solver ( )

It destroys the RK4Solver object.

Member Function Documentation

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

It implements a step of the RK4 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: