Parametric spline interpolation for airfoil
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Splines 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!