- Explicit-force redirect (simpler and robust): Treat the hole as a fixed point, compute tension and unit direction vectors for the two cable segments in Simulink, and apply equal-and-opposite forces using External Force and Torque blocks. This avoids contact loss and works even when the cable is straight. (https://www.mathworks.com/help/sm/ref/externalforceandtorque.html)
- Dynamic guide with segments (more physical but heavier): Model the hole as a small rigid guide (revolute/point-on-curve constraint) and represent the cable with short rigid segments linked by joints and light spring-dampers.
How to model a cable passing through a hole in 3D in Simscape?
12 次查看(过去 30 天)
显示 更早的评论
Hi all,
In Simscape multibody, is there a way to model a cable passing through a hole in a 3D body, allowing the cable to change direction as the body moves?
For example, in the figure below, let's say the system starts in the configuration shown in red and later transitions to the one shown in blue.

I have tried using the Pulley block in Simscape with a very small diameter at the center of the hole, but it loses contact once the cable becomes straight (just as it changes direction -- after it crosses the dashed line in the figure below). Losing contact ends the simulation.

Using a switch to change directions (or change to a different pulley that wraps in the other direction) is possible, but it complicated.
I also tried wrapping the cable around the pulley, which works to some extent, but I am not sure if the dynamics are the same as in the real world.
Is there a better method to model this interaction?
1 个评论
Shivangi
2025-9-16
Hello Soumya,
I understand that the issue is that the cable loses contact with the pulley/redirection point in Simscape Multibody when it straightens, which causes the simulation to fail.
As a workaround, you can try these approaches:
Hope this solves your query!
回答(1 个)
David Goodmanson
2025-9-16
编辑:David Goodmanson
2025-9-16
Hi Soumya,
(hypothetical answer since I don't know how details work in Simscape). In your diagram if it's known that the exit cable's angle to the x axis is always s.t. -90 < theta < 90, could you do the following?
______ exit
0
|
_____0
The two fixed pulleys are set up so that the cable run between them is exactly vertical.
If Simscape does not care about interferences between cables and cables, or cables and pulleys, then something like
________ exit
0___
_______0
gives a wider range of exit angles.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Assembly 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!