How can I make an elastic pendulum using Simmechanics 2nd generation

2 ビュー (過去 30 日間)
Jan Balajka
Jan Balajka 2014 年 11 月 12 日
コメント済み: Jan Balajka 2014 年 11 月 13 日
How can I define a pendulum suspended on an elastic rope in 3D using blocks from SimMechanics 2nd generation? It should have the ability to swing like a pendulum in 3D (spherical joint) and oscillate like a vertical spring oscillator at the same time. Thanks for suggestions!

採用された回答

Manuel
Manuel 2014 年 11 月 12 日
Hi Jan,
You can do that by introducing a prismatic joint on your pendulum and specifying internal mechanics with some spring stiffness. You can look at the doc of the prismatic joint: http://www.mathworks.com/help/physmod/sm/ref/prismaticjoint.html
Regards Manuel
  1 件のコメント
Jan Balajka
Jan Balajka 2014 年 11 月 13 日
Thank you, that was helpful. However I didn't understand how to set correct equilibrium length in internal mechanics of the prismatic joint. If I set it to zero the two bodies coincide, if I set it to some value, the direction is undefined and the suspended body starts flying around the fixed one. Therefore I started using prismatic joint with all values set to zero and rigid transform of the desired spring length in series. In parallel to these two I put spring&damper force where I set the correct spring parameters. It is perhaps not the nicest solution but it seems to work. Thanks, Jan

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by