Professional Documents
Culture Documents
clc
L1=input ('Enter length between 1st roter and 2nd roter on actual system in m- ');
L2=input ('Enter length of first part of stepped shaft between 2nd roter and 3rd roter on actual
system in m- ');
L3=input ('Enter length of second part of stepped shaft between 2nd roter and 3rd roter on
actual system in m- ');
L4=input ('Enter length of third part of stepped shaft between 2nd roter and 3rd roter on
actual system in m- ');
d1=input ('Enter the diameter of the part between 1st roter and 2nd roter on actual system in
m. ');
d2=input ('Enter the diameter of the first part of the stepped shaft between 2nd roter and 3rd
roter in m. ');
d3=input ('Enter the diameter of the second part of the stepped shaft between 2nd roter and
3rd roter in m. ');
d4=input ('Enter the diameter of the third part of the stepped shaft between 2nd roter and 3rd
roter in m. ');
g=N1/N2
LE1=L1
LE2=(g^2*L2*(d1/d2)^4)+(g^2*L3*(d1/d3)^4)+(g^2*L4*(d1/d4)^4)
LE=LE1+LE2
Ice=Ic/g^2
Ibe=Ip+(Ig/g^2)
x=Ice/Ia;
A=Ice*(1+x)+Ibe*x
B=-Ibe*LE1-Ibe*x*LE2-Ice*LE
C=Ibe*LE1*LE2
Lc1=(-B+sqrt(B*B-4*A*C))/(2*A)
Lc2=(-B-sqrt(B*B-4*A*C))/(2*A)
La1=x*Lc1
La2=x*Lc2
G=84*10^9;
J=(pi/32)*d1^4;
wn2=sqrt((G*J)/(Lc1*Ice));
wn3=sqrt((G*J)/(Lc2*Ice));
disp('wn2=');
disp(wn2)
disp('wn3=');
disp(wn3)
fn2=wn2/(2*pi);
fn3=wn3/(2*pi);
% disp('fn2=');
% disp(fn2)
NPA1= sprintf('The distance of first node point form end A in m = %f m\n\n',La1);
disp(NPA1);
disp(NPA2);
disp(NPC1);
disp(NPC2);
disp(OP2);
% disp('fn3=');
% disp(fn3)
disp(OP3);
clc
%% Code
fn1=Omega1/(2*pi);
fn2=Omega2/(2*pi);
fn3=Omega3/(2*pi);
% disp('fn2=');
% disp(fn2)
disp(OP1);
disp(OP2);
%% Plots
X=[1;2;3];
figure(1)
plot(X,Mode1,'-o',X,Mode2,'-o',X,Mode3,'-o');grid
x2= 2;
y2= Mode1(2,1);
x3=3;
y3= Mode1(3,1);
txt1=['',num2str(y2)];
txt2=['',num2str(y3)];
text(x2,y2,txt1)
text(x3,y3,txt2)
x2= 2;
y2= Mode2(2,1);
x3=3;
y3= Mode2(3,1);
txt3=['',num2str(y2)];
txt4=['',num2str(y3)];
text(x2,y2,txt3)
text(x3,y3,txt4)
x2= 2;
y2= Mode3(2,1);
x3=3;
y3= Mode3(3,1);
txt5=['',num2str(y2)];
txt6=['',num2str(y3)];
text(x2,y2,txt5)
text(x3,y3,txt6)
title('Mode shapes')
ylabel('Modal vectors')
hold off