Why does my Simscape (mechanical translational) model fail to move when a force is applied?

4 views (last 30 days)
I am modelling a mass-spring system which is excited by a sinusoidal force as below: 
However, the output from the "Ideal Translational Motion Sensor" shows that the components have 0 velocity in this setup. Why is this occurring, and how do I rectify this? 

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 12 Nov 2025 at 0:00
The issue is because of the use of the "Ideal Force Sensor" block. In particular, the issue is occurring as it is connected in parallel between the spring and the Mechanical Translational Reference (ground). 
As described in the
documentation, "the sensor constrains ports R and C to allow no motion between them, therefore connecting the sensor in parallel may affect the simulation results because it is analogous to adding a bypass connection line between the connection points."
The issue can be resolved by either commenting out the "Ideal Force Sensor" block or by connecting it between the spring and the mass so that it is now in series, as shown here: 

More Answers (0)

Categories

Find more on Simscape in Help Center and File Exchange

Products


Release

R2025b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!