valSPH
 All Classes Files Functions Variables
RK23Solver Class Reference

#include <RK23Solver.h>

Inheritance diagram for RK23Solver:
Inheritance graph
Collaboration diagram for RK23Solver:
Collaboration graph

Public Member Functions

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

RK23Solver::RK23Solver ( )

It creates a new empty RK23Solver.

RK23Solver::~RK23Solver ( )

It destroys the RK23Solver object.

Member Function Documentation

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

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