-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcalcAeroCoeffs.m
More file actions
38 lines (30 loc) · 1 KB
/
calcAeroCoeffs.m
File metadata and controls
38 lines (30 loc) · 1 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
function [Cd, Cl, Cm] = calcAeroCoeffs(alpha)
% ALPHA IN RADS
% Using coefficients found in Baumback, 2010 (based on frisebee throw)
% Baumback, Kathleen (2010) "The Aerodynamics of Frisbee Flight," Undergraduate Journal of Mathematical Modeling: One + Two: Vol.3: Iss. 1, Article 19
% Cm from Hummel Thesis (1997)
% Consts
Clo = 0.15; Cl_alpha = 1.4;
Cdo = 0.08; Cd_alpha = 2.72;
Cmo = -0.08; Cm_alpha = 0.43;
alpha_o = -4*pi/180; % in rads
Cd = Cdo + Cd_alpha*(alpha - alpha_o).^2;
Cl = Clo + Cl_alpha*alpha;
Cm = Cmo + Cm_alpha*alpha;
end
% figure, plot(alpha, Cd, 'LineWidth', 3);
% xlabel('Angle of Attack (rad)');
% ylabel('Cd');
% title('Cd vs Angle of Attack');
% saveas(gcf, 'Cd.png')
%
% figure, plot(alpha, Cl, 'LineWidth', 3);
% xlabel('Angle of Attack (rad)');
% ylabel('Cl');
% title('Cl vs Angle of Attack');
% saveas(gcf, 'Cl.png')
% figure, plot(alpha, Cm, 'LineWidth', 3);
% xlabel('Angle of Attack (rad)');
% ylabel('Cm');
% title('Cm vs Angle of Attack');
% saveas(gcf, 'Cm.png')