Define gravity in Simmechanics

20 ビュー (過去 30 日間)
saeed shekari
saeed shekari 2018 年 3 月 28 日
コメント済み: Bassim Younis 2019 年 3 月 29 日
I have modeled a multibody robot in solidworks and when i import it in simmechanics, it moves in an unexpected direction. i think it is because i considered the gravity in the -z direction in my CAD model, but the default gravity in simmechanics is in -y direction. how can i change the gravity direction and define it in -z direction in simmech? because its very hard to change it in my CAD model.

採用された回答

Nicolas Schmit
Nicolas Schmit 2018 年 3 月 29 日
In Simscape Multibody the gravity is towards the -z axis by default. However, the definition of the axis in Simscape might be different from the axis in your CAD software (like in SolidWorks where the +y axis is upward). If needed, you can change the orientation of the gravity using the Mechanism Configuration block.
  2 件のコメント
saeed shekari
saeed shekari 2018 年 3 月 30 日
Thanks, it worked.
Bassim Younis
Bassim Younis 2019 年 3 月 29 日
Hey Nicolas,
Im trying to model an inverted pendulum using simmechanics. I have imported the model from Autodesk Inventor and defined the gravity vector to be along -z (which is along the negative axis of the pendulum link). The equilibrium position (starting position of the pendulum) however has been defined using Inventor to be when the pendulum is aligned with +ve z..hence inverted pendulum.
The problem Im facing is that the pendulum falls towards -ve z-axis although the equilibrium position has been specified already to be +ve z, and there aren't any outside disturbances. Any idea how I can fix that?
Thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultibody Modeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by