Parametric spline interpolation for airfoil

조회 수: 5 (최근 30일)
Alessandro Masullo
Alessandro Masullo 2012년 10월 5일
Hi! I have a set of points from an airfoil:
x = [0 ... 1]
yUp = [ ... ] Leading edge -> trailing edge
yLow = [ ... ] Leading edge -> trailing edge
I would like to interpolate them on a finer mesh that is a Tchebycheff mesh. I easily created my mesh with:
N = 140;
xx = zeros(1, N);
for i = 1:N
theta = (i-1)*pi/(N-1);
xx(i) = 0.5*(1-cos(theta));
end
Now I would like to interpolate both upper and lower side of the airfoil with the same spline, starting from the trailing edge (x=1), to the leading edge (x=0) and back to the trailing edge (x=1). I should use a parametric spline, so I created these two vectors:
xt = [fliplr(x) x]; % 1-->0-->1
yt = [fliplr(yL) yU];
The question is, which mesh should I use in the interp1 function?
xn = interp1( ?? , xt, xx?, 'spline');
yn = interp1( ?? , yt, xx?, 'spline');
Should I use a curve length parameter? If so, how? Thank you for your help!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Splines에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by