Coupled Oscillator: Coupled Mass-Spring System with Damping

From Class Wiki
Jump to navigation Jump to search

Problem Statement

For the below system set up a set of state variable equations, and then solve. Assume all motion takes place in the vertical directions.

Fig. 1

Solution

Initial Values

For the upper mass:

m1=2kg

k1=10Nm

b1=0.1

And for the lower mass:

m2=4kg

k2=12Nm

b2=0.2

Find the Force Equations

First we need to sum forces in the y-direction for each block.

For mass 1:

+Fy1=m1x¨1m1x¨1=k1x12b1x˙1+k2(x2x1)+2b2(x˙2x˙1)


For mass 2:

+Fy2=m2x¨2m2x¨2=k2(x2x1)2b2(x˙2x˙1)


So if we put the equations above into the correct form we have:


x¨1=(k1m1+k2m1)x1(2b1m1+2b2m1)x˙1+k2m1x2+2b1m1x˙2

and

x¨2=k2m2x1+2b2m2x˙1k2m2x22b2m2x˙2


Note: Many people include the original length of the springs in the above equations, however if we take our initial reference point to be where the mass is in equilibrium, we do not need to include the initial spring length or gravity as an imput.

State Space Equation

The general form for the state equation is as shown below:


x˙_=A^x_+B^u_


Where M^ denotes a matrix and v_ denotes a vector.


If we let x1, x˙1, x2, and x2˙ be the state variables, then


[x˙1x¨1x˙2x¨2]=[0100(k1m1+k2m1)(2b1m1+2b2m1)k2m12b1m10001k2m22b2m2k2m22b2m2][x1x˙1x2x˙2]+[0000][u]


Now we need to set up our output. The below is the general form of the output.


y=C^x_+D^u_


If we want to output both positions and velocities of both masses we will use:


y=[1000010000100001][x1x˙1x2x˙2]+[0][u]