Robotran C Documentation
Functions
user_LinkForces.c File Reference
#include "math.h"
#include "mbs_data.h"
#include "user_IO.h"

Functions

double user_LinkForces (double Z, double Zd, MbsData *mbs_data, double tsim, int ilnk)
 Compute the value of a link forces. More...
 

Function Documentation

◆ user_LinkForces()

double user_LinkForces ( double  Z,
double  Zd,
MbsData s,
double  tsim,
int  ilnk 
)

Compute the value of a link forces.

Parameters
[in]ZThe distance (>0) between the extremities of the link force.
[in]ZdThe relative velocity between the extremities of the link force. A negative value means that the points get closer.
[in]sThe MbsData structure of the model on which the driven joint are computed.
[in]tsimthe current time of the simulation.
[in]ilnkthe ID identifying the computed link force.
Returns
The value of the link force. A positive value is a repelling force. A negative force value is an attractive effect.