This file implements the functions of the Runge Kutta order 4 integration method in C. More...
#include <math.h>
#include "mbs_rk4.h"
#include "integrator.h"
#include "mbs_message.h"
#include "mbs_1D_array.h"
#include "mbs_dirdyn_struct.h"
Functions | |
void | initialize_rk4 (MbsData *mbs_data, MbsDirdyn *mbs_dd, int(*derivs)(double, double[], double[], MbsData *, MbsDirdyn *), void(*loop_fct)(MbsData *, MbsDirdyn *), int(*save_realtime_update)(MbsDirdyn *dd, MbsData *mbs_data)) |
Initialize all needed fields in MbsDirdyn for RK4 integrator. More... | |
int | loop_rk4 (double t0, double tf, MbsData *mbs_data, MbsDirdyn *mbs_dd) |
Integrate the motion from t0 to tf. More... | |
void | finish_rk4 (MbsData *mbs_data, MbsDirdyn *dd) |
Finalize and clear memory allocated for RK4 integrator. More... | |
void | error_rk4 (MbsData *mbs_data, MbsDirdyn *dd, int err) |
If an error occurs during time integration, this function prints the error message and call finish_rk4. More... | |
This file implements the functions of the Runge Kutta order 4 integration method in C.
This file implements the functions of the Runge Kutta order 4 integration method in C. Specific functions implementation of the algorithm.
Creation date: December 2017
Modification date: April 2018 \modified by Sebastien Timmermans
(c) Universite catholique de Louvain
If an error occurs during time integration, this function prints the error message and call finish_rk4.
mbs_data | The computed MBS structure |
mbs_dd | The associated MbsDirdyn structure |
err | The error number |
Finalize and clear memory allocated for RK4 integrator.
mbs_data | The computed MBS structure |
mbs_dd | The associated MbsDirdyn structure |
Integrate the motion from t0 to tf.
t0 | The initial time |
tf | The final time |
mbs_data | The computed MBS structure |
mbs_dd | The associated MbsDirdyn structure |
user loop
user loop