DUECA/DUSIME
|
Here a template function for Runge-Kutta integration is defined. More...
Classes | |
class | RungeKuttaWorkspace |
This defines a "data-pack", with room for workspace for the Runge-Kutta integration. More... | |
Typedefs | |
typedef Eigen::Map< Eigen::VectorXd > | VectorE |
a vector that takes external storage | |
Functions | |
template<class MOD > | |
void | integrate_rungekutta (MOD &model, RungeKuttaWorkspace &ws, double dt) |
This function applies one Runge Kutta integration step to the state given in the kinematics argument. | |
Here a template function for Runge-Kutta integration is defined.
void integrate_rungekutta | ( | MOD & | model, |
RungeKuttaWorkspace & | ws, | ||
double | dt ) |
This function applies one Runge Kutta integration step to the state given in the kinematics argument.
The template parameter represents the derivative calculation for the model that is being integrated and needs to stick to the following signature:
The parameters for this function:
model | State-carrying object, one that can calculate its derivative. |
ws | workspace for the integration. |
dt | Time step of the integration. |