You are on page 1of 5

Lab Assignment

Solve the following problems using the MATLAB. You need to copy the Simulink model and MATLAB
code in the report. You should submit the code and Simulink model as well.

1. Consider the following system.

A. Derive the equations of motion and write the equations in the following format:
1
𝑥𝑥1̈ = [𝑓𝑓(𝑡𝑡)1 − (𝑘𝑘1 + 𝑘𝑘2 )𝑥𝑥1 − (𝑐𝑐1 + 𝑐𝑐2 )𝑥𝑥1̇ + 𝑘𝑘2 𝑥𝑥2 + 𝑐𝑐2 𝑥𝑥2̇ ]
𝑚𝑚1
1
𝑥𝑥2̈ = [𝑓𝑓(𝑡𝑡)2 + 𝑘𝑘2 𝑥𝑥1 − (𝑘𝑘2 + 𝑘𝑘3 )𝑥𝑥2 + 𝑐𝑐2 𝑥𝑥1̇ − (𝐶𝐶2 + 𝑐𝑐3 )𝑥𝑥2̇ ]
𝑚𝑚2

B. Build a Simulink model for the above 2DOF mass-spring-damper system. Use the following
parameters: m1 = 1 kg; m2 = 1 kg; k1 = 10 N/m; k2 = 10 N/m; k3 = 10 N/m; c1 = 0.2 Ns/m; c2 = 0.2 N-
s/m; c3 = 0.2 N-s/m. Obtain the responses: x1(t) and x2(t) for the following conditions: (set the final
simulation time to see a steady-state response)

a. 𝑥𝑥1(0) = 0.05, 𝑥𝑥2(0) = 0, 𝑥𝑥̇1(0) = 𝑥𝑥̇2(0) = 0, 𝑓𝑓1(𝑡𝑡) = 𝑓𝑓2(𝑡𝑡) = 0

b. 𝑥𝑥1(0) = 𝑥𝑥2(0) = 0, 𝑥𝑥𝑥1(0) = 𝑥𝑥𝑥2(0) = 0, 𝑓𝑓1(𝑡𝑡) = 0.5 sin 𝜋𝜋𝜋𝜋 , 𝑓𝑓2(𝑡𝑡) = 0

c. 𝑥𝑥1(0) = 𝑥𝑥2(0) = 0, 𝑥𝑥𝑥1(0) = 𝑥𝑥𝑥2(0) = 0, 𝑓𝑓1(𝑡𝑡) = 0, 𝑓𝑓2(𝑡𝑡) = 0.5 sin 𝜋𝜋𝜋𝜋

d. 𝑥𝑥1(0) = 𝑥𝑥2(0) = 0, 𝑥𝑥̇1(0) = 𝑥𝑥̇2(0) = 0, 𝑓𝑓1(𝑡𝑡) = 0, 𝑓𝑓2(𝑡𝑡) is shown in below.


a)

Figure 1
b)
c)
d)

You might also like