PDA

View Full Version : Why one should not be a rocket scientist



Karl Valten
Apr 21st, 2009, 11:19:46 PM
HAHAHAHAHAHAHHAHHAHAHAAAAAAAAAAAAAAAAAAAAAA....... heheh.....hurrrrrr..





I figured it out BITCHES!


[MATLAB SCRIPT]
% Problem 6.5
% Find the maximum rate of climb for a Fairchild Republic A-10 Thunderbolt II twin-jet attack aircraft at sea-level and
% at an altitude of 5km given the following information

format compact


%RC_max at sea-level
% Parameters

S = 47; % wing area
Cd_o = .032; % zero-lift drag coefficient
AR = 6.5; % aspect ration
e = .87; % oswald efficiency factor
X = ones(1,101); % ones row array for Weight array calculations
W = 103047*X; % weight array
T = 2*40298; % static thrust for both engines
Rho_sea = 1.2250; % air density at sea-level

% solve for lift coefficient

V_inf = 0:4:400;
Cl = W ./ (.5.*Rho_sea.*V_inf.^2.*S);
Cd = Cd_o + Cl.^2 ./ (pi*e*AR);

% calculate required thrust to maintain level flight

T_required = W ./ (Cl ./ Cd);

%Calculate and plot Power Required curve to maintain level flight

P_required = T_required .* V_inf;
plot(V_inf , P_required)

% Calculate and plot power available

hold all
P_available = T.* V_inf;
plot(V_inf , P_available)
hold off

% Calculate excess power

P_excess = P_available - P_required;

% Calculate and plot rate of climb

RC = P_excess ./ W;
plot(V_inf , RC)

RC_max = max(RC) % maximum rate of climb at sea level


% RC_max for altitude of 5km


Rho_five = .73643;

Cl_five = W ./ (.5.*Rho_five.*V_inf.^2.*S);
Cd_five = Cd_o + Cl_five.^2 ./ (pi*e*AR);

T_required_five = W ./ (Cl_five ./ Cd_five);

P_required_five = T_required_five .* V_inf;

P_available_five = P_available*(.73643/1.225); % power available is proportional to ambient density

plot(V_inf , P_required_five)
hold all
plot(V_inf , P_available_five)
hold off

P_excess_five = P_available_five - P_required_five;

RC_five = P_excess_five ./ W;
plot(V_inf , RC_five)

RC_max_five = max(RC_five)
[/MATLAB SCRIPT]

http://i10.photobucket.com/albums/a105/Hockeyman506/Crazy%20shit/ExcessPowerProblem5.jpg
http://i10.photobucket.com/albums/a105/Hockeyman506/Crazy%20shit/RateofClimbProblem5.jpg

http://i10.photobucket.com/albums/a105/Hockeyman506/Crazy%20shit/ExcessPowerfivekmProblem5.jpg
http://i10.photobucket.com/albums/a105/Hockeyman506/Crazy%20shit/RateofClimbfivekmProblem5.jpg

RC_max (sea-level) = 87.8658 meters / second
RC_max (5 kilometers) = 51.5777 meters / second

Karl Valten
Apr 21st, 2009, 11:20:55 PM
Never.....ever...ever.....EVER.....EVER willingly choose to be an aerospace engineer.

[/ end of freak-out]

Captain Untouchable
Apr 21st, 2009, 11:44:45 PM
So glad I didn't pick that module. >_<

Dasquian Belargic
Apr 22nd, 2009, 05:20:54 AM
Graphs.. graphs scare me.

Shadow Storm
Apr 22nd, 2009, 12:47:32 PM
Never.....ever...ever.....EVER.....EVER willingly choose to be an aerospace engineer.

[/ end of freak-out]

So...you work for Fairchild I take it?

Estelle Russard
Apr 22nd, 2009, 07:46:58 PM
That looks very horrible.

Lilaena De'Ville
Apr 22nd, 2009, 07:51:32 PM
My eyes glazed over and I think I blacked out after the first few lines of numbers... :eek

Hobgoblin
Apr 22nd, 2009, 08:09:53 PM
LOOK GUYS THEY'RE JUST NUMBERS. NUMBERS DONT BITE FOR SERIOUS.

Out of curiosity, how high a level of statistics have you taken crazy nerf soldier?

Karl Valten
Apr 22nd, 2009, 09:49:52 PM
Never.....ever...ever.....EVER.....EVER willingly choose to be an aerospace engineer.

[/ end of freak-out]

So...you work for Fairchild I take it?

Nope, still just a student. That was one of our homework problems.....out of 20....took me 2 and a half hours to figure that one out.





LOOK GUYS THEY'RE JUST NUMBERS. NUMBERS DONT BITE FOR SERIOUS.

Out of curiosity, how high a level of statistics have you taken crazy nerf soldier?

Yeah.....I tested out of statistics so all I have under my belt is AP Stats back in high school.

Nathanial K'cansce
Apr 23rd, 2009, 05:23:20 AM
MATLAB itself is fickle /hate MATLAB.

I actually rather enjoyed my aerospace class I took while I was in undergrade, and if my university had offered it as a major, I'd have concentrated in it. Of course, I got "average" grades in the course, because I was sick for half the semester, and the professor was actually quite boring. But I loved it for the most part.

Lykaios
Apr 25th, 2009, 09:03:42 PM
Numbers are the shizzah!

I miss Vector Calculus :(

Crusader
Apr 27th, 2009, 09:29:30 AM
I feel tempted to type this into matlab in order to see how it really works :)
<---loves MATLAB

Karl Valten
Apr 27th, 2009, 01:10:24 PM
Yeah, the aerospace community at the UofM has a real love for MATLAB and Simulink. I'd rather just throw the stuff into a C++ compiler.