#include <rdRKF_fixed.h>
Public Member Functions | |
| rdRKF_fixed (rdModel *aModel) | |
| Default constructor. | |
| virtual | ~rdRKF_fixed () |
| Destructor. | |
| rdModel * | getModel () |
| Get the model. | |
| int | getNY () |
| Get the number of states being integrated. | |
| int | step (double dt, double t, double *xt, double *y) |
Protected Attributes | |
| rdModel * | _model |
| int | _ny |
| double * | _yv |
| double * | _dy |
| double * | _k1 |
| double * | _k2 |
| double * | _k3 |
| double * | _k4 |
| double * | _k5 |
Private Member Functions | |
| int | allocateMemory () |
| Allocate the memory needed to perform the integration. | |
| int | freeMemory () |
| Free the memory needed to perform the integration. | |
The integration method is based on a 4th Order Runge-Kutta integrator adapted from one given by Atkinson, L.V., et al, "Numerical Methods with Fortran 77.", pp. 310-322, Addison-Wesley Publishing Company, 1989.
The user must supply a pointer to an rdModel on construction.
1.3