Gravity with Simscape Models
Table of Contents
We would like to include gravity in a Simscape multi-body model while starting the simulation at the equilibrium.
The basic idea is to first perform a simulation of the system until it goes at it rest position and save the rest position forces and deflection in each joint.
We can then think of three solutions to start a new simulation directly at the steady state position:
- Change the equilibrium position \(l_0\) of each joint such that at \(t=0\), \(k \times l_0\) is equal to the previously measured force in the joint. Here, it is suppose that we constrain the initial position of the joint to be equal to zero. Then, these forces cancel each other and the simulation starts at equilibrium.
- Add an External force (or maybe the “Internal Force”) in the direction of the joint (the “resolution frame” is fixed to the solids) equal to the opposite of the previously measured force.
- After the first simulation, measure the final change of position of each joint, then set the initial position to be the measured static position. Then, the simulation will start at equilibrium, but all the elements will be “deflected”.
The three solutions are tested below.
1 Simulink
open 'gravity_test.slx'
Figure 1: Simscape model used for the simulations
2 Initial Simulation
3 Change the equilibrium position
4 Add external force
5 Change initial position
6 Conclusion
Changing the equilibrium position of each joint seem the most practical solution.