Robotran C Documentation
Functions
mbs_bader.c File Reference

This file implements the functions of the semi-implicit integration method and polynomial extrapolation in C. Based on the work of Bader and Deuflhard. More...

#include "mbs_bader.h"
#include "mbs_message.h"
#include "bader.h"
#include "mbs_errors_names.h"

Functions

void initialize_bader (MbsData *mbs_data, MbsDirdyn *mbs_dd)
 Initialize all needed fields in MbsDirdyn for Bader integrator. More...
 
int loop_bader (double t0, double tf, MbsData *mbs_data, MbsDirdyn *mbs_dd)
 Integrate the motion from t0 to tf. More...
 
void finish_bader (MbsData *mbs_data, MbsDirdyn *dd)
 Finalize and clear memory allocated for Bader integrator. More...
 
void error_bader (MbsData *mbs_data, MbsDirdyn *dd, int err)
 If an error occurs during time integration, this function prints the error message and call finish_bader. More...
 

Detailed Description

This file implements the functions of the semi-implicit integration method and polynomial extrapolation in C. Based on the work of Bader and Deuflhard.

Creation date: April 2018

Author
Sebastien Timmermans

\source Bader, G., and Deuflhard, A semi-implicit mid-point rule for stiff systems of ordinary differential equations, P. 1983, Numerische Mathematik, vol. 41, pp. 373–398.

(c) Universite catholique de Louvain

Function Documentation

◆ error_bader()

void error_bader ( MbsData mbs_data,
MbsDirdyn dd,
int  err 
)

If an error occurs during time integration, this function prints the error message and call finish_bader.

Parameters
mbs_dataThe computed MBS structure
mbs_ddThe associated MbsDirdyn structure
errThe error number

◆ finish_bader()

void finish_bader ( MbsData mbs_data,
MbsDirdyn mbs_dd 
)

Finalize and clear memory allocated for Bader integrator.

Parameters
mbs_dataThe computed MBS structure
mbs_ddThe associated MbsDirdyn structure

◆ initialize_bader()

void initialize_bader ( MbsData mbs_data,
MbsDirdyn mbs_dd 
)

Initialize all needed fields in MbsDirdyn for Bader integrator.

Parameters
mbs_dataThe computed MBS structure
mbs_ddThe associated MbsDirdyn structure

◆ loop_bader()

int loop_bader ( double  t0,
double  tf,
MbsData mbs_data,
MbsDirdyn mbs_dd 
)

Integrate the motion from t0 to tf.

Parameters
t0The initial time
tfThe final time
mbs_dataThe computed MBS structure
mbs_ddThe associated MbsDirdyn structure
Returns
Error status, <0 in case of failure.

user loop

user loop