Professional Documents
Culture Documents
disp('Adrian McHargh')
disp('Question 4.7')
%Given Data
V_max=90; % Velocity given in m/s
rho_1=1.225; % Density given in kg/m^3
A_1=1.3;
A_2=1; %Areas measured in m
%Equations used
%Bernoulli's Equation Combined with Area and Velocity Equation
V_2=V_max*(A_1/A_2); %Velocity and Area Equation in terms of Area
p_12difference=((rho_1)/2)*((V_2^2)-(V_max)^2);
%Bernoullis Equation
%which calls for Pressure Difference P1-P2
p_12difference=((rho_1)/2)*(V_max^2)*((A_1/A_2)^2-1);
%Bernoullis Equation when Velocity and
%Area Equation is substituted as the velocity difference
%in the standard equation
disp('Question 4.11')
%Given Data
M_flow=1.5; %Mass flow in lbm/s
T_initial=1000; %Intial Temperature measured in Rankine
C_pressure=6000; %Pressure Coefficient used in Energy Equation
gamma=1.4; %Specific Heat Ration for air
% Coefficient measured in ft.lb/slug*R
V_exit=1500; %Exit Velocity in ft/s
p_exit=7; %Exit pressure in atm
p_exit_psf=p_exit*2116.2; %Exit Pressure converted to lb/ft^2
%Energy Equation
T_exit=(T_initial-((V_exit^2)/(2*C_pressure)))
%Find reservoir Density
rho_initial=p_exit_psf/((1716)*(T_initial)) %Reservoir Density in slug/ft^3
%Using Isentropic Relation Equation
rho_exit=((rho_initial)*((T_exit/T_initial)^(1/(gamma-1)))) % Exit Density in
slug/ft^3
%Continuity Equation with Mass Flow rate
M_flow_rate=M_flow/32.2; %Convert lb to slugs in the Mass Flow Rate
%Finding Exit Area
disp('Exit Area of Supersonic Nozzle in ft^2')
A_exit=((M_flow_rate)/((rho_exit)*(V_exit)))
disp('Question 4.19')
%Given Data
V_mph=200; %Velocity in tunnel in mph
V=V_mph*(88/60); %Velocity converted to ft/s
A_cross=20; %Area of Initial Cross section in ft^2
A_cross_2=4; %Area of text section in ft^2
A_diffuser=18; %Area of test section with diffuser in ft^2
%Part A
%From Bernoulli's Equation
%From Velocity and Area Equation
%Finding Pressure Difference between Intial Cross Section and Test Section
V_1=(A_cross_2/A_cross)*V;
%Manipulation of Continuity Equation
rho=.002377; %Standard Density used
%Incompressible Flow Bernoulli's Equation
disp('Pressure Difference P1-P2 No diffuser')
p_12difference=(((1/2)*(rho*(V^2)))-((1/2)*(rho*((A_cross_2/A_cross)^2)*(V^2))))
disp('Part B')
%Same Bernoulli Equation except there is a relationship between
%the initial pressure with no diffuser and pressure after diffuser
V_3=(A_cross_2/A_diffuser)*V;
%Manipulation with the Continuity Equation includes diffuser
disp('Pressure Difference P1-P3 With diffuser')
p_13difference=(((1/2)*(rho*((A_cross_2/A_diffuser)^2)*(V^2)))((1/2)*(rho*((A_cross_2/A_cross)^2)*(V^2))))
%Pressures are in lb/ft^2
disp('The Wind-tunnel with the diffuser requires a smaller overall pressure
difference. The diffuser improves the aerodynamic efficiency on the subsonic wind
tunnel.')
disp('Question 4.27')
%Given Data
P_altitude=10; %Pressure at altitude of 10km/Appendix A
p_1=2.65*10^4; %Pressure at altitude 10km in N/m^2
V=596; %Velocity in m/s
T=220; % Temperature in kelvin
%The speed of sound formula must be used