How to add gravitational acceleration acting on a mass that is connected to a cylinder in Simscape?

조회 수: 15 (최근 30일)
I have a double-acting cylinder connected to a mass at its mechanical port R, and I am adding pressure at end A of the cylinder to extend the piston and hence drop the mass. I want to add a gravitational acceleration acting on the mass as well. I tried to use the ideal force source (to implement F=mg), but it does not seem to work. I have uploaded a screenshot to show what I did. Could you please help me?
Thanks a lot. Asmaa

채택된 답변

Sebastian Castro
Sebastian Castro 2015년 8월 14일
Your force source approach is the right way to model a weight. Two things I would check:
  1. You should also attach a "Mass" block to the R port of the cylinder. You can use (50/9.81) kg for the mass, I guess.
  2. Check the upper and lower limits/initial displacement/directionality of the cylinder block. Chances are your lower displacement limit is 0 and that small negative displacement is due to the large stiffness of the hard stop representing that contact.
- Sebastian

추가 답변 (1개)

Hamed Shamsi khani
Hamed Shamsi khani 2022년 4월 23일
편집: Hamed Shamsi khani 2022년 4월 23일
Hi.
A physical signal constant (PS Constant block) : B1
An Ideal Force Source (Ideal Force Source block): B2
connect 1 to S port of B2.
connect C port of B2 to ground.
connect R port of B2 to rod of cylinder.

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by