Gear is rotating wrt wrong axis in simscape multibody

I made two gears in solidworks and then exported their step. file. Then I opened simscape in simulink and connected these gears to revolute joint and then to rigid transform. I offsetted one gear to make a gear mesh and reoriented both gears to xy plane using the rigid transform. I changed one of the gear's torque to "provided by input". I then connected a constant so that that gear would rotate at a specified torque.
Now It should rotate wrt z axis but it rotates wrt x axis. How can I fix this issue?

답변 (1개)

Abhishek
Abhishek 2025년 6월 10일
이동: Steve Miller 2025년 8월 11일

0 개 추천

Hi, just a quick clarification to better understand the issue:
  • After importing the STEP file into Simscape, have you verified the orientation of the gear's local reference frame using Mechanics Explorer?
  • Specifically, is the gear's rotation axis (Z-axis) aligned with the global Z-axis?
  • Also, in the Revolute Joint, is the axis of rotation explicitly set to [0 0 1]?Sometimes imported geometries from SolidWorks come in with unexpected frame orientations, which can cause this kind of mismatch.

댓글 수: 1

Muhtasimul
Muhtasimul 2025년 6월 23일
이동: Steve Miller 2025년 8월 11일
Hi. I fixed this issue. The orientation in solidworks was wrong. When I changed the orientation of gear rotation in solidworks to Z axis, It worked.
Thank you for clarifying. It was my first question to this forum. I'm glad I got helped.

댓글을 달려면 로그인하십시오.

카테고리

제품

릴리스

R2023b

태그

질문:

2025년 6월 6일

이동:

2025년 8월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by