Compute the value of a link forces.
- Parameters
-
[in] | Z | the distance (>0) between the extremities of the link force. |
[in] | Zd | the relative velocity between the extremities of the link force, negative if the points get closer. |
[in] | s | the MbsData structure of the model on which the driven joint are computed. |
[in] | tsim | the current time of the simulation. |
[in] | ilnk | the 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.