How to initialize spring preload in SimScape?

I am trying to apply a preload to a simple spring.
The case is when a spring is mechanically installed between two snap rings thus has an initial deformation of x0. With a mass connected to the spring, the spring does not apply any force. When the mass overcomes the preloaded value (k*x0), the spring applies a force proportional to the spring rate + preload.
I have tried the deformation variable, but once the model is initialised, the mass accelerates since it is an initial deformation and not a preload. I've tried implementing a hard stop, but could not get the desired output.

댓글 수: 2

Joe Cullen
Joe Cullen 2021년 9월 18일
I am struggling with the same issue, and haven't found a soltuion I'm happy with. You can override the deformation value and select high priority and this seems to sort of work but sometimes it also causes my model to not initialize.
Jun Yang
Jun Yang 2022년 11월 3일
I will try your idea, it seems brilliant!

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

답변 (1개)

Andreas
Andreas 2022년 7월 4일

2 개 추천

Just add an ideal force source in parallel to the spring.

카테고리

제품

릴리스

R2020b

질문:

2021년 7월 28일

댓글:

2022년 11월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by