You are on page 1of 5

disp('Homework #3')

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('Pressure Difference P1-P2 in N/m^2');


p_12difference=((rho_1)/2)*(V_max^2)*((A_1/A_2)^2-1)

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.18 ')


%Given Data
A_1=20;
A_2=1; %Areas for test section in m
V_ts=80; %Velocity of Test Section in m/s

T_ts= 300; %Temperature of Test Section in Kelvin


p_ts_atm=1; %Test Section Pressure in atm
p_ts_pa=p_ts_atm*101325; %Test Section Pressure Converted to N/m^2
%Flow of speed is low, so Incompressible
rho_ts=p_ts_pa/(287*T_ts)

%Density of test section in kg/m^3


%Pressure Difference is needed in order to solve for Height of Mercury
p_12difference=((rho_ts/2)*(V_ts^2)*(1-((A_2/A_1)^2)));
%Mercury reading is measured in N/m^3
%From Pressure Difference, Change in Height can be found using Mercury
%Number
omega=1.33*10^5; %Mercury Coefficient measured in N/m^3
disp('Height Change in m:');
H_delta=p_12difference/omega %Height Change in m

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

%In order to find the Mach Number


gamma=1.4; %Specific Heat Ratio of air
a_1=(sqrt(gamma*287*T)); %In m/s speed of sound in calculated using universal
Gas Constant R
M_ach=V/a_1; %Mach Number from Velocity and Speed of sound
%From the Rayleigh Pitot Tube Equation with supersonic flow Pressure of tube can
be found
p_o=(((((gamma+1)^2)*M_ach^2)/((4*gamma*M_ach^2)-(2*(gamma1))))^(gamma/(gamma-1)))*((1-gamma+(2*gamma*M_ach^2))/(gamma+1))*p_1

You might also like