Coupled Horizontal Spring Mass Oscillator

From Class Wiki
Jump to navigation Jump to search

Coupled Oscillator Spring Mass Oscillator: State Space

Problem Statement

Two 4 Kg Weights are suspended between two walls. They are connected by a spring between them with a spring constant k2. They are connected to the walls by two springs k1 and k3 with k1=k3. m1 is a distance x1 form m2 and m2 is x2 from the wall.


Solution

Things we know

m1=5kg

m2=5kg

k1=50Nm

k2=100Nm

k3=50Nm

So now that we have are problem we need to start setting up the equations we need to solve it.

x1˙=x1˙

x1¨+k1+k2m1x1−k2m1x2=0

x2˙=x2˙

x2¨+k3+k2m2x2−k2m2x1=0

Now we take these equations and put them in a state space model.

[x1˙x1¨x2˙x2¨] = [0100(k1+k2)m10−k1m100001−k1m20(k1+k2)m20][x1x˙1x2x˙2]+[0]

Now we make the appropriate numerical substitutions.


[x1˙x1¨x2˙x2¨] = [010015050−50500001−505015050][x1x˙1x2x˙2]+[0]



[x1˙x1¨x2˙x2¨]=[0100300−1000001−100300][x1x˙1x2x˙2]+[0]

So using Maple I was able to obtain the eigenvalues and eigenvectors.

Eigenvalues.


λ1=210 λ2=−210 λ3=25 λ4=−25

Eigenvectors.

K1=[−1−2(10)12(10)],K2=[−12(10)1−2(10)],K3=[12(5)12(5)],K4=[1−2(5)1−2(5)]

So then the answer is...

x=c1[−1−2(10)12(10)]e210+c2[−12(10)1−2(10)]e2*−210+c3[12(5)12(5)]e3*25+c4[1−2(5)1−2(5)]e4*−25

Solve with the Matrix exponential

So first we need to know what the matrix exponential equation looks like.

it is...


x~=eA~tx(0)~

Where A is a matrix

Also 

z~=T~x~

x~=T~−1z~

Where 

T~−1=[−1−111−2(10)2(10)2(5)−2(5)11112(10)−2(10)2(5)−2(5)]

I converted the T matrix to decimal form for make it easier to write up on here 


T~=</math>[−.25−.039528.25.039528−.25.039528.25−.039528.25.055902.25.055902.25−.055902.25−.055902]

and

A^=[eλ1t0000eλ2t0000eλ3t0000eλ4t]


eA^t=[e210t0000e−210t0000e25t0000e−25t]


Then the next step is

z~=eA^tz~(0)

So that implies

x~=T~−1eA^tz~(0)=T~−1eA^tT~−1x~(0)


Now Simply substitute back in and we have the answer. 


x~=[−1−111−2(10)2(10)2(5)−2(5)11112(10)−2(10)2(5)−2(5)][e210t0000e−210t0000e25t0000e−25t][−.25−.039528.25.039528−.25.039528.25−.039528.25.055902.25.055902.25−.055902.25−.055902]x~(0)



Created By: Mark Bernet