% April 18, 2016 % By: Mitchell M. Jonas S. Darrin F. % % % % *PROJECTILE ARM LENGTH EFFECT ON RANGE AND EFFICIENCY* % % % % Launched on flat ground % Wind is negligible % Loss of energy due to surroundings (noise, friction, etc) % is unknown, therefor will be ignored
% *VELOCITY DUE TO Trebuchet PARAMETERS*
% Define variables g = 9.81; % Acceleration of gravity L_B = 10; % Beams total length L_P = 0.1:0.1:9.9; % Length between projectile and pivot point L_CW = L_B-L_P; % Length between counterweight and pivot point L_Cg = (L_B/2)-L_CW; % Length between center of gravity and pivot % point CW = 5; % Counter Weights mass h_p = 10; % Pivot height m_B = 1; % Beams mass m_P = 1; % Projectile mass r_P = 1; % Radius of a spherical projectile theta_i = 120; % Starting angle of L_CW and vertical axis theta_r = 45; % Release angle
% Define variables Vi = V; % Initial velocity of projectile theta_V = theta_r; % Initial angle of projectile Vy = Vi.*sind(theta_V); % Vertical initial velocity of projectile Vx = Vi.*cosd(theta_V); % Horizontal initial velocity of projectile h_g = h_p+L_P.*cosd(theta_r); % Height from ground when launched % Calculate time of projectile in air t_flight = (-Vy-sqrt((Vy.^2)-(4*(-g/2).*h_g)))/(2.*(-g/2));% Solves for time
% Calculate Range an Max Height
Range = Vx.*t_flight; Max_Height = ((Vy.^2)/(2.*g))+h_g;
% *ENERGY TRANSFER EFFICIENCY OF TREBUCHET*
V_CW = w.*L_CW; % Velocity of Counter Weight KE_CW = (CW./2).*(V_CW.^2); % Kinetic energy of Counter Weight KE_P = (m_P./2).*(V.^2); % Kinetic energy of Projectile eff = (KE_P./KE_CW).*100; % Efficiency
%Plot effect on Range and Efficiency
subplot(2,1,1) plot(Range,L_P),xlabel('Range (m)'),... ylabel('Length of Projectile Arm (m)') subplot(2,1,2) plot(eff,L_P),xlabel('Efficiency (%)'),... ylabel('Length of Projectile Arm (m)') % MODEL OF A "SEE-SAW" TREBUCHET % (Fixed Counter Weight and No Sling) % April 18, 2016 % By: Mitchell M. Jonas S. Darrin F. % % % % *COUNTER WEIGHT'S EFFECT ON RANGE AND EFFICIENCY* % % % % Launched on flat ground % Wind is negligible % Loss of energy due to surroundings (noise, friction, etc) % is unknown, therefor will be ignored
% *VELOCITY DUE TO Trebuchet PARAMETERS*
% Define variables g = 9.81; % Acceleration of gravity L_B = 10; % Beams total length L_P = 5; % Length between projectile and pivot point L_CW = L_B-L_P; % Length between counterweight and pivot point L_Cg = (L_B/2)-L_CW; % Length between center of gravity and pivot % point CW = 1:0.1:50; % Counter Weights mass h_p = 10; % Pivot height m_B = 1; % Beams mass m_P = 1; % Projectile mass r_P = 1; % Radius of a spherical projectile theta_i = 120; % Starting angle of L_CW and vertical axis theta_r = 45; % Release angle
% Define variables Vi = V; % Initial velocity of projectile theta_V = theta_r; % Initial angle of projectile Vy = Vi.*sind(theta_V); % Vertical initial velocity of projectile Vx = Vi.*cosd(theta_V); % Horizontal initial velocity of projectile h_g = h_p+L_P.*cosd(theta_r); % Height from ground when launched % Calculate time of projectile in air t_flight = (-Vy-sqrt((Vy.^2)-(4*(-g/2).*h_g)))/(2.*(-g/2));% Solves for time
% Calculate Range an Max Height
Range = Vx.*t_flight; Max_Height = ((Vy.^2)/(2.*g))+h_g;
% *ENERGY TRANSFER EFFICIENCY OF TREBUCHET*
V_CW = w.*L_CW; % Velocity of Counter Weight KE_CW = (CW./2).*(V_CW.^2); % Kinetic energy of Counter Weight KE_P = (m_P./2).*(V.^2); % Kinetic energy of Projectile eff = (KE_P./KE_CW).*100; % Efficiency
%Plot effect on Range and Efficiency
subplot(2,1,1) plot(Range,CW),xlabel('Range (m)'),... ylabel('Counter Weight Mass (kg)') subplot(2,1,2) plot(eff,CW),xlabel('Efficiency (%)'),... ylabel('Counter Weight Mass (kg)') % MODEL OF A "SEE-SAW" TREBUCHET % (Fixed Counter Weight and No Sling) % April 18, 2016 % By: Mitchell M. Jonas S. Darrin F. % % % % *STARTING ANGLE'S EFFECT ON RANGE AND EFFICIENCY* % % % % Launched on flat ground % Wind is negligible % Loss of energy due to surroundings (noise, friction, etc) % is unknown, therefor will be ignored
% *VELOCITY DUE TO Trebuchet PARAMETERS*
% Define variables g = 9.81; % Acceleration of gravity L_B = 10; % Beams total length L_P = 5; % Length between projectile and pivot point L_CW = L_B-L_P; % Length between counterweight and pivot point L_Cg = (L_B/2)-L_CW; % Length between center of gravity and pivot % point CW = 5; % Counter Weights mass h_p = 10; % Pivot height m_B = 1; % Beams mass m_P = 1; % Projectile mass r_P = 1; % Radius of a spherical projectile theta_i = 45:0.1:179.9; % Starting angle of L_CW and vertical axis theta_r = 45; % Release angle
% Define variables Vi = V; % Initial velocity of projectile theta_V = theta_r; % Initial angle of projectile Vy = Vi.*sind(theta_V); % Vertical initial velocity of projectile Vx = Vi.*cosd(theta_V); % Horizontal initial velocity of projectile h_g = h_p+L_P.*cosd(theta_r); % Height from ground when launched % Calculate time of projectile in air t_flight = (-Vy-sqrt((Vy.^2)-(4*(-g/2).*h_g)))/(2.*(-g/2));% Solves for time
% Calculate Range an Max Height
Range = Vx.*t_flight; Max_Height = ((Vy.^2)/(2.*g))+h_g;
% *ENERGY TRANSFER EFFICIENCY OF TREBUCHET*
V_CW = w.*L_CW; % Velocity of Counter Weight KE_CW = (CW./2).*(V_CW.^2); % Kinetic energy of Counter Weight KE_P = (m_P./2).*(V.^2); % Kinetic energy of Projectile eff = (KE_P./KE_CW).*100; % Efficiency
%Plot effect on Range and Efficiency
subplot(2,1,1) plot(Range,theta_i),xlabel('Range (m)'),... ylabel('Starting Angle (deg)') subplot(2,1,2) plot(eff,theta_i),xlabel('Efficiency (%)'),... ylabel('Starting Angle (deg)') % MODEL OF A "SEE-SAW" TREBUCHET % (Fixed Counter Weight and No Sling) % April 18, 2016 % By: Mitchell M. Jonas S. Darrin F. % % % % *RELEASE ANGLE'S EFFECT ON RANGE AND EFFICIENCY* % % % % Launched on flat ground % Wind is negligible % Loss of energy due to surroundings (noise, friction, etc) % is unknown, therefor will be ignored
% *VELOCITY DUE TO Trebuchet PARAMETERS*
% Define variables g = 9.81; % Acceleration of gravity L_B = 10; % Beams total length L_P = 5; % Length between projectile and pivot point L_CW = L_B-L_P; % Length between counterweight and pivot point L_Cg = (L_B/2)-L_CW; % Length between center of gravity and pivot % point CW = 5; % Counter Weights mass h_p = 10; % Pivot height m_B = 1; % Beams mass m_P = 1; % Projectile mass r_P = 1; % Radius of a spherical projectile theta_i = 120; % Starting angle of L_CW and vertical axis theta_r = -90:0.1:90; % Release angle
% Define variables Vi = V; % Initial velocity of projectile theta_V = theta_r; % Initial angle of projectile Vy = Vi.*sind(theta_V); % Vertical initial velocity of projectile Vx = Vi.*cosd(theta_V); % Horizontal initial velocity of projectile h_g = h_p+L_P.*cosd(theta_r); % Height from ground when launched % Calculate time of projectile in air t_flight = (-Vy-sqrt((Vy.^2)-(4*(-g/2).*h_g)))/(2.*(-g/2));% Solves for time
% Calculate Range an Max Height
Range = Vx.*t_flight; Max_Height = ((Vy.^2)/(2.*g))+h_g;
% *ENERGY TRANSFER EFFICIENCY OF TREBUCHET*
V_CW = w.*L_CW; % Velocity of Counter Weight KE_CW = (CW./2).*(V_CW.^2); % Kinetic energy of Counter Weight KE_P = (m_P./2).*(V.^2); % Kinetic energy of Projectile eff = (KE_P./KE_CW).*100; % Efficiency