Dynamics of Machines - Part II - IFS.pdf
Dynamics of Machines - Part II - IFS.pdf
Dynamics of Machines - Part II - IFS.pdf
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
%_____________________________________________________<br />
%Graphical Results<br />
figure(2)<br />
title(’Simulation <strong>of</strong> 2 D.O.F System in Time Domain’)<br />
subplot(2,1,1), plot(t_integ(1:n_integ),<br />
real(y1_approx(1:n_integ)),’r’)<br />
title(’Numerical Solution (delta T = 0.005 s)’)<br />
xlabel(’time [s]’)<br />
ylabel(’y1_{approx}(t) [m]’)<br />
grid<br />
subplot(2,1,2), plot(t_integ(1:n_integ),<br />
real(y2_approx(1:n_integ)),’r’)<br />
xlabel(’time [s]’)<br />
ylabel(’y2_{approx}(t) [m]’)<br />
grid<br />
%_____________________________________________________<br />
%Graphical Results (Comparison Exact vs. Numerical)<br />
figure(3)<br />
subplot(2,1,1), plot(t,real(y1_exact),’b’,<br />
t_integ(1:n_integ),real(y1_approx(1:n_integ)),’r’)<br />
title(’Simulation <strong>of</strong> 2 D.O.F System in Time Domain -<br />
Exact Solution vs. Numerical Solution<br />
(delta T = 0.005 s)’)<br />
xlabel(’time [s]’)<br />
ylabel(’y1_{approx}(t) [m]’)<br />
grid<br />
subplot(2,1,2), plot(t,real(y2_exact),’b’,<br />
t_integ(1:n_integ),real(y2_approx(1:n_integ)),’r’)<br />
xlabel(’time [s]’)<br />
ylabel(’y2_{approx}(t) [m]’)<br />
grid<br />
1.7.6 Analytical and Numerical Results <strong>of</strong> the System <strong>of</strong> Equations <strong>of</strong> Motion<br />
y1 exact (t) [m]<br />
y2 exact (t) [m]<br />
y1 approx (t) [m]<br />
y2 approx (t) [m]<br />
2<br />
0<br />
−2<br />
−4<br />
x Exact 10−5<br />
4<br />
Solution<br />
−6<br />
0 5 10 15<br />
time [s]<br />
20 25 30<br />
4<br />
2<br />
0<br />
−2<br />
−4<br />
−6<br />
x 10−5<br />
6<br />
−8<br />
0 5 10 15<br />
time [s]<br />
20 25 30<br />
x Numerical 10−5<br />
5<br />
0<br />
Solution (delta T = 0.005 s)<br />
−5<br />
0 5 10 15<br />
time [s]<br />
20 25 30<br />
4<br />
2<br />
0<br />
−2<br />
−4<br />
−6<br />
x 10−5<br />
6<br />
−8<br />
0 5 10 15<br />
time [s]<br />
20 25 30<br />
Figure 25: Analytical and Numerical Solutions – (a) Analytical solution with initial velocity<br />
condition at ˙y1(0) = 1 mm/s, ˙y2(0) = 0 mm/s, y1(0) = 0 mm and y2(0) = 0 mm; (b) Numerical<br />
solution (time step <strong>of</strong> 0.005 [s]) with the same initial conditions – Transient Analysis.<br />
41