how to plot random points in airfoil wing

I want to plot random points on the airfoil wing of naca 4415. How can i approach this problem. I want these points in order to run an optimizations for locating points of a fixtures? please help

4 个评论

@Rakesh Make your question be specific and clear, if require frame out the specific question with example.
@kalyan
my question is i have an airfoil wing and i want to locate random points say like around 100 random points but with in the dimension of the airfoil. I want this points inorder to place locators , supporting units and clampers for a fixture.
hi rakesh,
are the points on the surface of the wing or inside the cross section?
Hi David,
the points are on the surface of the wing.

请先登录,再进行评论。

 采纳的回答

Check this demo example. I have coded it keeping in mind how your data is. It is like you are provided with upper and lower curve of foil.
[X,Y,Z] = cylinder(1) ;
n = size(X,2) ;
m = 10 ;
t = linspace(0,1,m) ;
L = zeros(3,m,n) ;
% Draw line between points
for i = 1:n
P1 = [X(1,i) Y(1,i) Z(1,i)]' ;
P2 = [X(2,i) Y(2,i) Z(2,i)]' ;
L(:,:,i) = P1+(P2-P1).*t ;
end
XX = squeeze(L(1,:,:)) ;
YY = squeeze(L(2,:,:)) ;
ZZ = squeeze(L(3,:,:)) ;
% Select random p points
p = 100 ;
idx = randperm(numel(XX),p) ;
% display
surf(X,Y,Z)
hold on
plot3(XX(idx),YY(idx),ZZ(idx),'.r')

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Airfoil tools 的更多信息

产品

版本

R2018a

标签

Community Treasure Hunt

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

Start Hunting!

Translated by