valSPH
|
#include <RK4Solver.h>
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. | |
![]() | |
OdeSolver () | |
It creates a new empty OdeSolver. It will be invoked by the constructors of its children classes. | |
~OdeSolver () | |
It destroys the OdeSolver object. | |
RK4Solver::RK4Solver | ( | ) |
It creates a new empty RK4Solver.
RK4Solver::~RK4Solver | ( | ) |
It destroys the RK4Solver object.
|
virtual |
It implements a step of the RK4 solver.
eq | the equations we want to solve |
X0 | the initial value |
h | size of the intervals |
ti | actual time step |
Implements OdeSolver.