- #1
Number2Pencil
- 208
- 1
Homework Statement
Derive the state space model of a spring-mass-damper system. Neglect friction, wind resistance, etc. Neglect the force of gravity. Assume the spring's equilibrium point is at y=0 and there is an arbitrary
Homework Equations
[X'] = AX + BU
y = CX + DU
The Attempt at a Solution
Newton's law:
[tex]
F_{NET}=ma = m\ddot{y}
[/tex]
The sum is an arbitrary input force, u, the recoil force that works in the direction towards the spring's equilibrium point, and the dampening coefficient which works against velocity:
[tex]
u-c\dot{y}-ky=m\ddot{y}
[/tex]
Rearranging terms:
[tex]
\ddot{y} = \frac{1}{m}u - \frac{c}{m}\dot{y}-\frac{k}{m}y
[/tex]
Setting up state-space integral form:
[tex]
y = \int( -\frac{c}{m}y + \int (-\frac{k}{m}y + \frac{1}{m}u) dt) dt'
[/tex]I call the entire outer integral X1 and the inner integral X2, using this nomenclature:
[tex]
y = X_1
[/tex]
[tex]
\dot{X_1} = -\frac{c}{m}X_1 + X_2
[/tex]
[tex]
\dot{X_2} = -\frac{k}{m}X1 + \frac{1}{m}u
[/tex]
[tex]
\left[
\begin{array}{cc}
\dot{X1}\\
\dot{X2}\\
\end{array}
\right] = \left[
\begin{array}{cc}
-\frac{c}{m}&1\\
-\frac{k}{m}&0\\
\end{array}
\right]
\left[
\begin{array}{cc}
X1\\
X2\\
\end{array}
\right] +
\left[
\begin{array}{cc}
0\\
\frac{1}{m}
\end{array}
\right]u
[/tex][tex]
y =
\left[
\begin{array}{cc}
1&0
\end{array}
\right]\left[
\begin{array}{cc}
X1\\
X2\\
\end{array}
\right] + 0u
[/tex]So now I wanted to test it using a sine-wave input force to the system. Intuitively, I would expect a sine-wave output as the mass should be bobbing up and down on the spring. What I actually get is at the beginning, there is a much slower frequency component than my input sine-wave, as well as the input-frequency component, almost like the sum of two different sine waves. This slower-component then dies off and I am left with something that matches more closely to my input sine-wave. What is strange is that during that initial slow-frequency response, the amplitude gets quite large, much larger than when it is finally settled.
My question is: What is going on? Is my intuition just wrong and truly this mass has a large initial "push"? Is there an error in my state-space model? Or something I am forgetting to take into account. I tested that having a zero-force input, the spring remains at zero.
Edit: Also, my test constant values were m= 0.72kg, k = 0.5, c =1
Last edited: