valSPH
 All Classes Files Functions Variables
Verlet Class Reference

#include <Verlet.h>

Inheritance diagram for Verlet:
Inheritance graph
Collaboration diagram for Verlet:
Collaboration graph

Public Member Functions

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

Verlet::Verlet ( )

It creates a new empty RK4Solver.

Verlet::~Verlet ( )

It destroys the Verlet object.

Member Function Documentation

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

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