0% found this document useful (0 votes)
294 views

NASA/Langley/Somers-Maughmer NLF-1015 (Natural Laminar Flow) Airfoil

Analysis of the circulation around a NASA airfoil using MATLAB coding and circulation functions for a thin-cambered airfoil. Includes airfoil coordinates, original MATLAB code, output graphs and intermediate functions for various levels of accuracy.

Uploaded by

Harshini Aich
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
294 views

NASA/Langley/Somers-Maughmer NLF-1015 (Natural Laminar Flow) Airfoil

Analysis of the circulation around a NASA airfoil using MATLAB coding and circulation functions for a thin-cambered airfoil. Includes airfoil coordinates, original MATLAB code, output graphs and intermediate functions for various levels of accuracy.

Uploaded by

Harshini Aich
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

NASA/Langley/Somers-Maughmer NLF-1015 (natural laminar flow) airfoil

1. Airfoil surfaces (upper and lower), and camber line curve curve-fitting

MATLAB CODE:
[v,T,vT]=xlsread('coordinate.xlsx')
t=v(:,1);y=v(:,2);s=v(:,3);z=v(:,4);
%exporting coordinates
curvefit_upper=fit(t,y,'poly9')
curvefit_lower=fit(s,z,'poly9')
%curve-fitting of two surfaces

a=1:-0.05:-1;
b=transpose(0.5*(1-cos(acos(a))));
%cosine spacing variable
coordinate_c=(curvefit_upper(b)+ curvefit_lower(b))/2;
%camber-line is mid-line of two surfaces

plot(b,curvefit_upper(b),b,curvefit_lower(b),b,coordinate_c)
%complete airfoil plotted

yc_derivative=fit(b,differentiate(fit(b,coordinate_c,'poly5'),b),'po
ly4')
%{
d(yc)/dx for circulation calculation;
obtained by curve-fitiing camber-line coordinates, and
differentiating it.
Derivative values output are for discrete points, i.e. each value of
b,
and thus, curve-fitting is done again to obtain slope of camber-line
equation
%}
OUTPUT:

curvefit_lower =

Linear model Poly9:

curvefit_lower(x) = p1*x^9 + p2*x^8 + p3*x^7 + p4*x^6 + p5*x^5 + p6*x^4 + p7*x^3 + p8*x^2 +


p9*x + p10

Coefficients (with 95% confidence bounds):

p1 = -120.5 (-319.3, 78.32)

p2 = 563.3 (-332.4, 1459)

p3 = -1111 (-2798, 574.9)

p4 = 1206 (-514.7, 2926)

p5 = -785.4 (-1816, 244.8)

p6 = 315.3 (-51.15, 681.8)

p7 = -77.03 (-151.6, -2.418)

p8 = 11.04 (3.169, 18.91)

p9 = -0.8874 (-1.232, -0.5432)

p10 = 0.001909 (-0.00169, 0.005509)

curvefit_upper =

Linear model Poly9:

curvefit_upper(x) = p1*x^9 + p2*x^8 + p3*x^7 + p4*x^6 + p5*x^5 + p6*x^4 + p7*x^3 + p8*x^2 +


p9*x + p10

Coefficients (with 95% confidence bounds):

p1 = 63.01 (38.07, 87.96)

p2 = -307.2 (-420.2, -194.2)

p3 = 628.6 (414.5, 842.8)

p4 = -704 (-924.5, -483.4)

p5 = 472.6 (338.8, 606.4)

p6 = -196.6 (-245.1, -148.1)

p7 = 50.92 (40.76, 61.09)

p8 = -8.468 (-9.596, -7.341)

p9 = 1.102 (1.047, 1.157)

p10 = 0.006168 (0.005397, 0.006939)


curvefit_camber =

Linear model Poly9:

curvefit_camber(x) = p1*x^9 + p2*x^8 + p3*x^7 + p4*x^6 +

p5*x^5 + p6*x^4 + p7*x^3 + p8*x^2 + p9*x + p10

Coefficients (with 95% confidence bounds):

p1 = -28.75 (-28.75, -28.75)

p2 = 128 (128, 128)

p3 = -241.4 (-241.4, -241.4)

p4 = 250.8 (250.8, 250.8)

p5 = -156.4 (-156.4, -156.4)

p6 = 59.35 (59.35, 59.35)

p7 = -13.05 (-13.05, -13.05)

p8 = 1.286 (1.286, 1.286)

p9 = 0.1073 (0.1073, 0.1073)

p10 = 0.004039 (0.004039, 0.004039)


x/c upper lower camber
0 0.006168 0.001909 0.004039
0.025 0.029149 -0.01446 0.007342
0.05 0.04537 -0.02275 0.011311
0.075 0.057449 -0.02673 0.015359
0.1 0.067025 -0.02868 0.019171
0.125 0.075069 -0.02985 0.022612
0.15 0.082112 -0.03081 0.025653
0.175 0.088408 -0.03175 0.028327
0.2 0.09406 -0.03268 0.030688
0.225 0.099094 -0.0335 0.032798
0.25 0.103512 -0.0341 0.034707
0.275 0.107319 -0.03441 0.036454
0.3 0.110531 -0.0344 0.038065
0.325 0.113182 -0.03408 0.03955
0.35 0.115316 -0.03349 0.040913
0.375 0.116974 -0.03267 0.042152
0.4 0.118196 -0.03167 0.043262
0.425 0.119003 -0.03053 0.044238
0.45 0.119399 -0.02925 0.045076
0.475 0.119369 -0.02782 0.045773
0.5 0.11888 -0.02622 0.046329
0.525 0.117886 -0.02441 0.04674
0.55 0.116334 -0.02233 0.047001
0.575 0.114176 -0.01996 0.047106
0.6 0.111373 -0.01729 0.047039
0.625 0.107906 -0.01434 0.046784
0.65 0.103781 -0.01115 0.046316
0.675 0.099029 -0.00781 0.045608
0.7 0.09371 -0.00444 0.044633
0.725 0.087906 -0.00118 0.043365
0.75 0.081708 0.001857 0.041782
0.775 0.07521 0.004533 0.039871
0.8 0.068486 0.006764 0.037625
0.825 0.061577 0.008507 0.035042
0.85 0.054474 0.00976 0.032117
0.875 0.047102 0.010546 0.028824
0.9 0.03932 0.010865 0.025093
0.925 0.030927 0.0106 0.020763
0.95 0.021689 0.009376 0.015533
0.975 0.011396 0.006345 0.008871
1 -5.45E-05 -0.00012 -8.79E-05
PLOT:
2. Circulation plotting

CODE:
syms x;syms n real;
p=0.5*(1-cos(x));
%cosine spacing variable
camber_slope=@(x)(-0.8977*(p)^4 + 0.7221*(p)^3 + 0.1621*(p)^2 -
0.4721*(p) + 0.1786)*diff(p);
%equation obtained from previous code
a0=(int(camber_slope,x,0,pi))/pi;
an=(int((camber_slope*cos(n*x)),x,0,pi))*(2/pi);
%fourier cofficients;
%an formula can be used for infinite summation if needed
A1=(int((camber_slope*cos(1*x)),x,0,pi))*(2/pi)*sin(1*x);
A2=(int((camber_slope*cos(2*x)),x,0,pi))*(2/pi)*sin(2*x);
A3=(int((camber_slope*cos(3*x)),x,0,pi))*(2/pi)*sin(3*x);
A4=(int((camber_slope*cos(4*x)),x,0,pi))*(2/pi)*sin(4*x);
%four fourier sine series coefficients computed
x=0:5:180;
circulation=2*(0.000774*(1+cosd(x))/sind(x) +0.040136*sind(x) -
0.007793*sind(2*x) );
% γ(θ)=2*[(-A0)((1+cosθ)/sinθ) + Σan sin(n θ) ) ] formula used;
%unit free-stream velocity and zero angle of attack;
%Σ (an sin(nx)) restricted to n=1 & n=2
plot(0.5*(1-cosd(x)),circulation)
%circulation variation with x/c and θ plotted

OUTPUT

a0 =-0.000774

A1 = 0.040136

A2 = -0.007793

PLOT:

Circulation vs. θ (degrees)


Circulation vs. (x/c)(n=2 accuracy for ∑∞
𝒏=𝟏(𝒂𝒏 𝐬𝐢𝐧 𝐧𝛉))
Circulation vs. (x/c) (n=4 accuracy for ∑∞
𝒏=𝟏(𝒂𝒏 𝐬𝐢𝐧 𝐧𝛉))

1+𝑐𝑜𝑠𝜃
γ(θ)=2[(-A0)( ) + ∑∞
𝑛=1(𝑎𝑛 sin 𝑛𝑥)]
𝑠𝑖𝑛𝜃

a0 = -1459/(600000*pi)= 7.7402e-4 = 0.00077

You might also like