% Aircraft file to model a 150 passenger transport aircraft
%
% A. Trani
% Fall 2010

global A e S neng tsfc macht Cdoct 
global mass thrust_table mach_table lapse_rate_factor 
global Vclimb Vdescent altc g tcRatio sweepAngle

A = 19;                                    % aspect ratio
e = 0.86;                                   % Oswald's efficiency factor
S = 205;                                   % wing area in m^2
tcRatio = 0.10;                          % thickness to chord ratio (dimansionless)
sweepAngle = 25;                     % sweep angle of the wing (degrees)
g = 9.81;                                   % gravity constant
neng = 2;                                  % number of engines
tsfc = 0.000130;                       % TSFC in N/s / Newton

% Aircraft mass limitations

OEW = 40000;               % Operating empty mass (kg)
Max_fuel = 19000;          % Maximum fuel mass (kg)
Max_payload = 20000;	% Maximum payload (kg)
MTOGW = 72000;			% Maximum gross takeoff mass (kg)
mass = 70000;              % mass at operating point (kg) DTW

% Drag characterictics - CDO function (zero lift
% drag function)

Cdoct 	= [0.0175  0.0175  0.0190  0.0205 0.0215 0.0225 0.024 0.025 0.0280];
macht 	= [0.0        0.7000  0.7800  0.8000 0.8050 0.8100 0.8200 0.8350 0.8500];

% Thrust parameters for regional jet aircraft (at sea level) - per engine

thrust_table = [105000  65000];           % Thrust limits (sea level in Newtons)	
mach_table = [0.0 0.9];                         % mach number limits to bound thrust
lapse_rate_factor = 1.10;                            % thrust lapse rate factor - corrects thrust for altitude changes

% Computes the aircraft climb and descent profiles given altitude (VCAS given) - typical for
% a tyical 150 seat transport aircraft

Vclimb = [230 230 230 230 230];                 % knots indicated (near optiimum for ROC)
%Vclimb = [180 195 222 230 230];              % knots indicated
Vdescent = [200 220 240 240 210];           % knots indicated
altc = [ 0 1000 3000 6000 14000];             % meters