How to insert a spring with preload between a file solid and a brick solid in Simscape/Simulink

15 次查看(过去 30 天)
Hello, I'm new to Simscape so I don't know how to use it well. My problem should be quite simple to solve, but I still don't know how.
I have a system formed by a brick solid (a support) and suspended in the air, a rod is attached to this support through a spring and damper in parallel. This spring has a preload and I want to know the free motion of the rod under gravity (as well as the force due to preload and damping).
My problem is: I know the natural length of the spring, the stiffness and the deformation that cause the preload, and I know the damping. I have tried using the block "Spring and Damper Force", but I have two problems: 1) the direction of the natural length is opposite to that I want (is upwards and instead I would like it downwards). 2) I don't know how to set the initial deformation of the spring because there is no option for this.
Does anyone know how to solve these issues or if there is a better way to model the spring and damper between the two solids?
Thanks

回答(1 个)

Anurag Ojha
Anurag Ojha 2023-4-13
Hi Raffaele,
I understand that you have queries with setting the initial deformation of the spring and the difference in direction of the natural length of the spring.
To access spring double click on the Simulink model and search for “Translational Spring block” and select “Translational Spring block” from the drop-down menu. Once you have the block in your model double click on it and you would see this dialog box
Now, to set initial deformation of the spring.
  1. In the block dialog box, expand the Initial Targets section
  2. Select the check box next to the Deformation variable. Keep its Priority High.
  3. Change the Value to whatever you want to set.
For your query related to the difference in expectation of direction of the natural length of the spring, kindly provide more information to better understand the context of the issue
To know more about how to model the spring and damper between the two solids, kindly refer to the following MATLAB Documentation link:
To explore more you can follow these links:
Hope it helps!!
  1 个评论
Raffaele
Raffaele 2023-4-13
Hi Anurag
First, thank you for the answer. I have tried using translation spring block in parallel to a translational damper block to model my system, but then I don't know how to link these locks to the brick solid from the Simscape Multibody library. This is why I tried using the "Spring and Damper Force" block with the problems explained in the first question.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Bodies 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by