-
Notifications
You must be signed in to change notification settings - Fork 0
/
runAF_UT_sweep.m
65 lines (39 loc) · 985 Bytes
/
runAF_UT_sweep.m
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
clear all
format compact
close all
% Airfoil type
% 1 NACA 4-digit
% 2 VR12
% 3 VKT
aftype = 2;
R = 1.108;
C = 0.08;
r = 0.75 * R / C;
alpha = 8;
ysep = 0.73;
ysep = 0.3;
n=501;
phis = linspace( -90, 90, n );
xsep = -r * phis*pi/180;
xsep = [-2:.25:2];
phis = -( xsep / r ) * 180 / pi;
n=length(xsep);
for i = 1 : n
[CLi, CDi] = runAF_fun( xsep(i), ysep, alpha, true, aftype );
CLis(i,:) = cell2mat( CLi );
CDis(i,:) = cell2mat( CDi );
figure(25)
print('-dpng','-r300',['Cp_UT_Sweep_' num2str(i) '.png'])
end
figure(11)
plot( phis, CLis, phis, sum(CLis,2)/2.0);
figure(12)
plot( phis, sum(CLis,2)/2.0/6.0/2.0, 'Color', [30 119 180]./255, 'LineWidth', 1.5 );
hold on
plot( phis, CLis(:,1)/6.0/2.0, 'Color',[255 127 15]./255, 'LineWidth', 1.5 )
plot( phis, CLis(:,2)/6.0/2.0, 'Color', [43 160 43]./255, 'LineWidth', 1.5 )
hold off
legend('Total','Lower','Upper')
xlabel('Index Angle [deg]')
ylabel('C_T/\sigma')
axis([-90 90 0.0 0.16])