Simmechanics Weird behaviour when simulating a four bar linkage with an initial condition

조회 수: 5 (최근 30일)
Hello,
Could anyone please take a look to the example attached? It is a four bar linkage made in Simmechanics (Simscape Multibody). It is behaving really weird and I do not know exactly the reason.
I have been doing lately some matlab programming and the weirdest thingy is that this very mechanism, running under my code behaves exactly in the same way!!
It is a four bar mechanism sample slightly modified . One of the joints (Crank-Connector revolute joint) has a State Target Priority to define a specific initial position.
When simulated, the mechanism seems to find an attractor in one of the sides, and keeps oscillating around the position, which is actually supposed to be a repeller. There are not external forces applied (except the ones due to the gravitational field).
See this video .
Can anyone please give me some insight about this issue? I think I am going bananas...
PS: The example is attached as a .zip file. Just need to click on the play button.
Many thanks,
Rodrigo
  댓글 수: 6
Swarooph
Swarooph 2016년 8월 1일
Depends on if the former way (Autodesk) also has 20cm as the distance between the rocker and the crank. Otherwise, I would set that to 20cm in Autodesk simulation before comparing it to Simscape multibody.
Rodrigo Hernandez
Rodrigo Hernandez 2016년 8월 1일
편집: Rodrigo Hernandez 2016년 8월 1일
Sorry, my bad explanation again.
I meant, if I keep 20 cm in Simscape Multibody, should I guess that the simulation in Simscape is behaving realisticly?
Well...
As you have suggested, I have simulated the Simscape configuration right now in Autodesk Inventor and they are the same. It matches with my simulation in Matlab as well.
So yes, my intuition was wrong, and the simulation is ok.
Swarooph, a few words to you. Thank you for being in the front line, dealing with people like me and solving our questions.
Sometimes we come across problems that could be sooo frustrating... It is good to know there are people like you helping us to find ourselves into the dark and complex Maze.
So, thank you very much and wish you the best.
Rodrigo

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

답변 (1개)

Steve Miller
Steve Miller 2021년 11월 17일
As answered by Swarooph above, setting the initial conditions properly and ensuring the linkages are the right length resolved this issue. See the discussion in the comments.
--Steve

카테고리

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