28.08.2013 Views

Dynamics of Machines - Part II - IFS.pdf

Dynamics of Machines - Part II - IFS.pdf

Dynamics of Machines - Part II - IFS.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1.6.4 Analytical and Numerical Solution <strong>of</strong> Equation <strong>of</strong> Motion using Matlab<br />

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />

% DYNAMICS OF MACHINERY LECTURES (41035) %<br />

% MEK - DEPARTMENT OF MECHANICAL ENGINEERING %<br />

% DTU - TECHNICAL UNIVERSITY OF DENMARK %<br />

% %<br />

% Copenhagen, October 30th, 2003 %<br />

% %<br />

% <strong>IFS</strong> %<br />

% %<br />

% 1 D.O.F. SYSTEM - EXACT AND NUMERICAL SOLUTION %<br />

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br />

clear all;<br />

close all;<br />

%Concentred Masses<br />

m1= 0.191; %[Kg]<br />

m2= 0.191; %[Kg]<br />

m3= 0.191; %[Kg]<br />

m4= 0.191; %[Kg]<br />

m5= 0.191; %[Kg]<br />

m6= 0.191; %[Kg]<br />

%Elastic Properties <strong>of</strong> the Beam <strong>of</strong> 600 [mm]<br />

E = 2e11; %elasticity modulus [N/m^2]<br />

b = 0.030 ; %width [m]<br />

h = 0.0012 ; %thickness [m]<br />

Iz= (b*h^3)/12; %area moment <strong>of</strong> inertia [m^4]<br />

%Mass-Spring-Damping System Properties<br />

L=0.610; %beam length<br />

K= 3*E*Iz/L^3; %stiffness coefficient<br />

M=m1+m2; %mass coefficient<br />

xi=0.005; %damping factor [no-dimension]<br />

D=2*xi*sqrt(K*M); %damping coefficient<br />

wn=sqrt(K/M); %natural frequency [rad/s]<br />

fn=wn/2/pi %natural frequency [Hz]<br />

fnexp=0.875; %measured natural frequency [Hz]<br />

dif=(fn-fnexp)/fnexp;%error between calculated<br />

%and measured frequencies<br />

%_____________________________________________________<br />

%Initial Condition<br />

y_ini= -0.000 % beam initial deflection [m]<br />

v_ini= -0.000 % beam initial velocity [m/s]<br />

freq_exc=0.95 % excitation frequency [Hz]<br />

force=-0.100 % excitation force [N]<br />

time_max=30.0; % integration time [s]<br />

%_____________________________________________________<br />

15<br />

%_____________________________________________________<br />

%EXACT SOLUTION % EQUATION (40)<br />

n=600; % number <strong>of</strong> points for plotting<br />

j=sqrt(-1); % complex number<br />

w=2*pi*freq_exc; % excitation frequency [rad/s]<br />

lambda1=-xi*wn+j*wn*sqrt(1-xi*xi);<br />

lambda2=-xi*wn-j*wn*sqrt(1-xi*xi); AA=(force/M)/(wn*wn-w*w +<br />

j*2*xi*wn*w); C1=(<br />

lambda2*(y_ini-AA)-(v_ini-j*w*AA))/(lambda2-lambda1);<br />

C2=(-lambda1*(y_ini-AA)+(v_ini-j*w*AA))/(lambda2-lambda1);<br />

for i=1:n,<br />

t(i)=(i-1)/n*time_max;<br />

y_exact(i)=C1*exp(lambda1*t(i)) + ...<br />

C2*exp(lambda2*t(i)) + ...<br />

AA*exp(j*w*t(i));<br />

end<br />

%_____________________________________________________<br />

%NUMERICAL SOLUTION % EQUATION (44)<br />

% trying different time steps to observe convergence<br />

% deltaT=0.3605; % time step [s]<br />

% deltaT=0.3; % time step [s]<br />

% deltaT=0.1; % time step [s]<br />

% deltaT=0.05; % time step [s]<br />

deltaT=0.01; % time step [s]<br />

n_integ=time_max/deltaT; % number <strong>of</strong> points (integration)<br />

% Initial Conditions<br />

y_approx(1) = y_ini; % beam initial deflection [m]<br />

yp_approx(1) = v_ini; % beam initial velocity [m/s]<br />

for i=1:n_integ,<br />

t_integ(i)=(i-1)*deltaT;<br />

ypp_approx(i) =-(wn*wn)*y_approx(i) ...<br />

-(2*xi*wn)*yp_approx(i) ...<br />

+(force/M)*exp(j*w*t_integ(i));<br />

yp_approx(i+1)= yp_approx(i) + ypp_approx(i)*deltaT;<br />

y_approx(i+1) = y_approx(i) + yp_approx(i+1)*deltaT;<br />

end<br />

%_____________________________________________________<br />

%Graphical Results<br />

title(’Simulation <strong>of</strong> 1 D.O.F System in Time Domain’)<br />

subplot(3,1,1), plot(t,real(y_exact),’b’)<br />

title(’(a) Exact Solution - (b) Numerical Solution<br />

(delta T = 0.01 s) - (c) Comparison’)<br />

xlabel(’time [s]’)<br />

ylabel(’(a) y(t) [m]’)<br />

grid<br />

subplot(3,1,2),<br />

plot(t_integ(1:n_integ),real(y_approx(1:n_integ)),’r’)<br />

xlabel(’time [s]’)<br />

ylabel(’(b) y(t) [m]’)<br />

grid<br />

subplot(3,1,3), plot(t,real(y_exact),’b’,t_integ(1:n_integ),<br />

real(y_approx(1:n_integ)),’r’)<br />

xlabel(’time [s]’)<br />

ylabel(’(c) y(t) [m]’)<br />

grid

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!