Class implementing an RK4 numerical integrator.
More...
#include <rk4integrator.h>
|
|
double | stepSize |
| | Default step size.
|
| |
|
double | initStepSize |
| | Step size which was given to the constructor (for resetting purposes)
|
| |
Class implementing an RK4 numerical integrator.
| RK4Integrator::RK4Integrator |
( |
double |
stepSize = 0.01 | ) |
|
Constructor.
- Parameters
-
| stepSize | Default step size |
| StateVector RK4Integrator::next |
( |
StateVector |
state, |
|
|
DiffEq * |
equation, |
|
|
double |
step = 0.0 |
|
) |
| |
|
virtual |
Function calculating the next state.
- Parameters
-
| state | Current state |
| equation | The differential equation to be used |
| step | Step size. If 0 (default), the default step size is used. |
Implements Integrator.
The documentation for this class was generated from the following files: