Base class implementing a numerical integrator. More...
#include <numeric.h>
Public Member Functions | |
| Integrator (double stepSize=0.01) | |
| Constructor. More... | |
| virtual | ~Integrator () |
| Virtual destructor. | |
| virtual StateVector | next (StateVector state, DiffEq *equation, double step=0.0)=0 |
| Function returning the next value of the state. More... | |
| void | setStepSize (double) |
| Sets the default step size. | |
| void | resetStepSize () |
| Resets the step size to the value passed to the constructor. | |
| double | getStepSize () |
| Returns the default step size. | |
Protected Attributes | |
| double | stepSize |
| Default step size. | |
| double | initStepSize |
| Step size which was given to the constructor (for resetting purposes) | |
Base class implementing a numerical integrator.
Class represents an integrator, which calculates the state of the system based on the initial state and a time step. Overloading this class allows implementation of various integrating algorithms.
| Integrator::Integrator | ( | double | stepSize = 0.01 | ) |
Constructor.
| stepSize | Initial step size |
|
pure virtual |
Function returning the next value of the state.
| state | Initial state |
| equation | Differential equation to be used for propagation |
| step | Step size. Defaults to 0.0. |
Implemented in DPIntegrator, and RK4Integrator.
1.8.3.1