Simulink - Mass/spring/damper system - why offset in steady state value?

조회 수: 9 (최근 30일)
Grufff
Grufff 2012년 3월 6일
댓글: Udhaya K 2021년 2월 21일
I've built a simple Simulink model of a straightforward mass/spring/damper system. It seems to work fine, but I'm puzzled why the final steady state output (displacement of the mass) doesn't converge back to zero (the initial starting point).
Have worked from standard equation:
mx''+cx'+kx=F
rearranged to give:
x''=1/m (-cx'-kx+F)
The forcing function F is a unit step input, and varying damping coefficient I get appropriate responses, but they all converge to a steady state value with a very small offset from zero position.
Why doesn't the mass come to rest back at it's starting point?
Model and output plots here:
I've set the initial condition in integrator one to "1", in order to get the mass oscillating either side of its starting position, with extremes in both positive and negative directions (as opposed to just oscillating in the positive range). Is this the correct way to achieve this behaviour?
Would appreciate words of advice...
G

채택된 답변

Grufff
Grufff 2012년 3월 6일
Oh dear, I'm so stupid :/
Just realised that of course I'm going to get an offset, I'm using a step input. The final output is the value of that step attenuated/amplified by the model parameters.
If I use an impulse input it should converge back to zero (I'm off to do that now).
And of course giving my first integrator a value of 1 is not what I wanted to do either, if I want the system at rest to begin with (I'm giving it an initial velocity if I do that, right?).
(embarrassed)
  댓글 수: 1
Udhaya K
Udhaya K 2021년 2월 21일
Hi Gruff.
Indeed it is a 9 year old thread, but just trying my luck here. Did you already find the answer? I have a very similar question and couldn't find a solution:
https://nl.mathworks.com/matlabcentral/answers/751254-spring-mass-damper-system-shows-position-of-mass-only-to-be-on-positive-side?s_tid=prof_contriblnk

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by