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 CenterFile Exchange에서 Assembly에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by