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 forces, moments and gravitation applied by the forcer are taken into account.
The template parameter needs to stick to the following signature:
model | State-carrying object, one that can calculate its derivative. |
ws | workspace for the integration. |
dt | Time step of the integration. |