HW4 Outline
HW4 Outline
Mass
m
m
[ M ] = 11 12
m21 m22
Stiffness
k
k
[ K ] = 11 21
k 21 k 22
{}
[ Q ] = Q1
Q2
Forces
The determinate of the equation below is equal to zero and can be used to find the
roots, which will the natural frequencies.
A= [ K ]w2 [ M ]
A=
A=
k 11 k 21
m m12
w 2 11
k 21 k 22
m21 m22
] [
w2 m
w2 m12
k 11 k 21
2 11
k 21 k 22
w m21 w2 m22
][
yields
{ }
w nat1
w nat2
Once we know the natural frequencies they are sort from smallest to largest and are
then used to find phi.
]{ } { }
k 11 w 2i m 11 k 21 w2i m12 1
Q
= 1
2
2
Q2
k 21w i m 21 k 22 wi m22 i
For each of the frequencies the modes can be calculated by solving the linear
system of equations by using the backward slash in matlab. This needs to be done
in a for loop since each natural frequency has a different mode
A { i }= [ Q ]
{ i }=[ Q ] A1
{ }
1 i
={ i } =
2 i
{i }
{ }
[ M ] { i }
With the normal modes calculated, they can be put together to form the normal
mode matrix
11 21
21 22
[kg]
% Lengthh [m]
F = 10;
% Force [n]
y = 20;
% Torque [N*m]
r = 1.4; % ROG
[m]
I = r^2*m; % Inertia
syms w
= solve(detA,w);
S_v = vpa(S);
ii = 1;
for i =1:length(S_v) % Finds only the positive numbers
if S_v(i) >0
w_n(ii,1) = S_v(i);
ii= ii+1;
end
end
w_n = sort(w_n)
%-------Modes------------------------for i = 1:length(w_n)
if i ==1
phi = ones(size(M));
end
matt(:,:,i) = K-w_n(i)^2.*M;
phi(2:end,i) = matt(i,2:end,i)\(Q(i)-matt(i,1,i))
phi_norm(:,i) = phi(:,i)./sqrt(phi(:,i).'*M*phi(:,i))
end
w_n =
4.1860352423161502883776928519889
7.7643184810772268393459294845624
phi =
1.0000
-2.2123
phi_norm =
0.0109
-0.0240
phi =
1.0000
0.2301
phi_norm =
0.0109
0.0337
-0.0240
0.0077