Why does spring-damper element move solid?

I'm trying to simulate the simple 1-DOF spring-damper mass system. The red block (see picture below) should oscillate on the ground (y,z = const.) in the x direction.
When I put all the element blocks - without the spring and damper Force - together it looks fine.
But when I insert the spring and damper Force, it seems to move the red block with its center of mass into the world frame.
Is there a way (without using the prismatic joint) to avoid this?
Here are the simscape blocks without the spring and damper force:
and at last with the spring and damper force inserted:
I'm grateful for any help.

답변 (1개)

Steve Miller
Steve Miller 2022년 11월 24일

0 개 추천

When you insert the Spring and Damper force block, the brick is free to move in space, as there is nothing constraining it. With no constraints, it can start the simulation anywhere it wants, and so it starts at [0 0 0].
I am not sure why you do not want use a Prismatic Joint. If you want to specify where it should start the simulation, you will need to attach a joint to it. You could attach a 6-DOF Joint and specify its initial position and orientation to be anywhere in space.
--Steve

댓글 수: 1

Stefan Klimmek
Stefan Klimmek 2022년 11월 26일
I thought that a pure Spring and Damper block would be more general than the Prismatic joint. That's why I gave it a go. Thank you very much for your answer :)

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

카테고리

제품

릴리스

R2019a

질문:

2022년 1월 31일

댓글:

2022년 11월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by