-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFuselage.m
More file actions
47 lines (39 loc) · 1.33 KB
/
Fuselage.m
File metadata and controls
47 lines (39 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
classdef Fuselage
%Fuselage Summary of this class goes here
% Detailed explanation goes here
properties
W_to; % take-off weight [lbm]
N = 6.6; % ultimate load factor
L; % length (ft)
D; % max diameter (ft)
Ve = 200; % equivalent max airspeed [mph]
getWeight; % get fuselage weight [lbm]
getLength; % get fuselage length [ft]
getRadius; % get fuselage radius [ft]
getSwet; % get wetted area [ft^2]
end
methods
% Constructor
function F = Fuselage(W_to,L,D)
if nargin ~= 3
error('Invailid Fuselarge Constructor. Consult page 32')
end
F.W_to = W_to;
F.L = L;
F.D = D;
end
% Getters
function getWeight = get.getWeight(F)
getWeight = 200*((F.W_to*F.N/100000)^.286 * (F.L/10)^.857 * (F.D + F.D)/10 * (F.Ve/100)^.338)^1.1;
end
function getLength = get.getLength(F)
getLength = F.L;
end
function getRadius = get.getRadius(F)
getRadius = F.D / 2;
end
function getSwet = get.getSwet(F)
getSwet = 3.4 * (F.L*F.D);
end
end
end