DOV Session 1 Report
DOV Session 1 Report
%======Initial parameters ======% sol_1 = sol(:,1)' %quotations used to transpose the matrix
g = 9.81; %Gravitational Constant sol_2 = sol(:,2)' %quotations used to transpose the matrix
iterations
pendulum_top_x = 0
pendulum_top_y = L
pause_time = 0.01
tx = 0;
Tutorial 1
M. Script
%====== Plotting the results ======% subplot(3,1,2)
iterations
cartesian_x(iterations) hold on
title(['Simple pendulum simulation \theta = ' num2str(sol_1(iterations))], 'fontsize',12); plot(t(iterations), sol_1(iterations), 'bo')
xlabel('x [m]', 'FontSize',12) title(['Simple pendulum time series for \theta1 t =' num2str(t(iterations))], 'FontSize', 12)
ylabel('\theta1', 'FontSize',12)
tx = tx + time_step;
pause(pause_time)
iterations = iterations+1;
end
Tutorial 1
M. Script Screen Shot
Tutorial 1
Results
Tutorial 1
Conclusion/Interpretation/Learning outcomes
# The oscillation of the pendulum never stops as there is no resistance given to stop it (no damper or air drag).
# The bob of the pendulum tries to reach its equilibrium position at any point of time.
# The time-period of a pendulum on depends on its length and acceleration due to gravity.
Tutorial 2
Purpose/Problem Definition with diagram/eq.s
To write a general MATLAB code to obtain the response of a spring mass system with a damper
(Damped free vibration)
General equation of a spring mass system with a damper
Three possibilities:
%k = 3 x(j,:) = numerator*exp(-zeta(j)*wn*t).*sin((wd*t)+phi)
end
plot(t,x)
end
Tutorial 2
M. Script Screen Shot
Tutorial 2
Results
Input values
Tutorial 2
Conclusion/Interpretation/Learning outcomes
Zeta = 0.1 <1: Under damped:
The dampening effect or the resistance
to bring the system to rest is lower. So, it takes a
long time for the system to come to complete rest.
Example: Pendulum
Zeta = 1.9 >1: Over damped:
The dampening effect or the resistance to
bring the system to rest is more than what is required.
The system comes to rest faster than the case of under
damped. Number of oscillations will be very much
lower. Example: Automatic-Closing doors
Input values