Convert a 2013a multibody model to 2022b

1 view (last 30 days)
Hi, I'm trying to convert this 2013a multibody model to 2022b version but I'm a beginner in multibody simscape and I'm stuck because I have the error message attached. I think the problem comes from the prismatic link, I'm not sure if the world frame block is well placed. Can you help me on this model? For information it simulates the vertical movement of a crank rod system. Thanks

Accepted Answer

Yifeng Tang
Yifeng Tang on 6 Mar 2025
Edited: Yifeng Tang on 6 Mar 2025
Looks like some of the frames need a rotation. I'm not sure about what mechanism you are trying to model, but right now, the three bars can rotation in the x-y plane, but the prismatic joint is trying to make one end to move in the z-direction, i.e. out of the x-y plane. I suspect the prismatic joint should be constraining the motion in the x or y direction instead.
I took out the 1D Simscape part and kept only the Multibody. After adding some rigid transform blocks to align the motion direction, the model will at least assemble and move. See attached. Not sure whether that's what you intended. Here is a picture.

More Answers (0)

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!