Professional Documents
Culture Documents
Qno:1 Qno:2 Part (A)
Qno:1 Qno:2 Part (A)
Qno:2
Part(a)
To derive the equations of motion for the given spring-mass system, we can use Newton’s second law of
motion, which states that the sum of the forces acting on a mass is equal to the mass multiplied by its
acceleration. We’ll consider the vertical direction for the displacements.
The net force acting on mass m1 is the sum of the forces from springs 1 and 3 and the damping force
from damper 1. According to Newton’s second law, we have:
The net force acting on mass m2 is the sum of the forces from spring 1 and damper 1 and the force from
spring 2. According to Newton’s second law, we have:
The net force acting on mass m3 is the force from spring 3 and the damping force from damper 3.
According to Newton’s second law, we have:
These equations represent the equations of motion for the given spring-mass system. They describe the
relationship between the displacements, velocities, accelerations, and the forces acting on each mass.
Part(b)
To put the equations of motion for the spring-mass system into matrix form, we can express the
displacements, velocities, accelerations, and forces as vectors. Let’s define the following vectors:
- Displacement vector:
- Velocity vector:
- Acceleration vector:
Where F1 represents the net force acting on mass m1, F2 represents the net force acting on mass m2,
and F3 represents the net force acting on mass m3.
M*a=K*x+C*v
Where:
M = [[m1, 0, 0],
[0, 0, m3]]
[-k3, 0, k3]]
[0, 0, c3]]
Part(c)
Let’s define the state variables as follows:
X2’ = x5
X3’ = x6
To derive the equations for the velocities, we can use the equations of motion we previously derived:
Now, we have a set of first-order differential equations in terms of the state variables. To write the
system in matrix form, we can define the state vector and input vector as:
State vector:
Input vector:
U = [yc]
X’ = A * x + B * u
A = [[0, 0, 0, 1, 0, 0],
[0, 0, 0, 0, 1, 0],
[0, 0, 0, 0, 0, 1],
[k1 / m2, -(k1 + k2) / m2, 0, c1 / m2, -(c1 + c2) / m2, 0],
X’ = A * x + B * u
Where x is the state vector, u is the input vector, A is the state matrix, and B is the input matrix.
Part(d)
Matlab code:
clc
clear all;
m1=2000
m2=200
m3=500
k1=500
k2=5000
k3=50
c1=100
c2=1000
c3=10
A = [0, 0, 0, 1, 0, 0;
0, 0, 0, 0, 1, 0;
0, 0, 0, 0, 0, 1;
[V, D] = eig(A);
eigenvalues = diag(D);
eigenvectors = V;
disp(‘Eigenvalues:’);
disp(eigenvalues);
disp(‘Eigenvectors:’);
disp(eigenvectors);
Results:
Eigenvalues:
-2.7523 + 4.4663i
-2.7523 – 4.4663i
-0.0217 + 0.5162i
-0.0217 – 0.5162i
-0.0110 + 0.2915i
-0.0110 – 0.2915i
Eigenvectors:
Columns 1 through 2
Columns 3 through 4
Columns 5 through 6
Part(e)
Matlab code:
% Assuming the values of k1, k2, k3, c1, c2, c3, m1, m2, and m3 are provided
m1=2000
m2=200
m3=500
k1=500
k2=5000
k3=50
c1=100
c2=1000
c3=10
A = [0, 0, 0, 1, 0, 0;
0, 0, 0, 0, 1, 0;
0, 0, 0, 0, 0, 1;
[V, D] = eig(A);
% Extract the eigenvalues and eigenvectors
eigenvalues = diag(D);
eigenvectors = V;
natural_frequencies = sqrt(abs(eigenvalues));
normalized_mode_shapes = eigenvectors;
disp(‘Natural Frequencies:’);
disp(natural_frequencies);
disp(normalized_mode_shapes);
Result:
Natural Frequencies:
2.2905
2.2905
0.7188
0.7188
0.5401
0.5401
Columns 1 through 2
Columns 3 through 4
Columns 5 through 6
Qno:4
The characteristic equation is obtained by setting the denominator of G(s) equal to zero:
s^3 + 5s^2 + 3s + 2 + K = 0
s^3 1 3
s^2. 5 2+K
s^1 {15-(2+K)}/{5} 0
s^0 2+K
1. The first row of the Routh array must have all coefficients greater than zero:
2. The second row of the Routh array must have all coefficients greater than zero:
3. The first element of the third row must be greater than zero:
15 - 2 - K > 0
13 - K > 0
K < 13
4. The second element of the third row must be greater than zero:
5. The first element of the fourth row must be greater than zero:
2+K>0
K > -2
-2 < K < 13
Therefore, the range of values for the gain factor K, for which the system is stable, is -2 < K < 13.