struggling to design a wing
Afficher commentaires plus anciens
Hi, i am trying to write a code where i will able to introduce inputs( chord, aspect ratio, taper ratio...) to get a 3d airplane wing , all i've managed to do is a 3d airfoil , does anyone help me improve my code to get the shape of a wing. this is my code :
clear
c=5;
t=0.2;
P=0.4;
M=0.02;
theta=pi/4;
y=linspace(0,c,100);
zt=(t*c/0.2)*(0.2969*sqrt(y/c)-0.1260*(y/c)-0.3516*(y/c).^2+0.2843*(y/c).^3-0.1036*(y/c).^4);%thickness
x=y;
if 0<=y<P
zc=(M/P.^2)*(2*P*y-y.^2)
elseif P<=y<=1
zc=(M/(1-P).^2)*(1-2*P+2*P*y-y.^2)
end
%upper surface
yu=y-zt*sin(theta)
zu=zc+zt*cos(theta)
%lower surface
yl=y+zt*sin(theta)
zl=zc-zt*cos(theta)
[X,Z1]=meshgrid(x,zu);
surf(x,yu,Z1);
hold on;
[X,Z2]=meshgrid(x,zl);
[X,Z3]=meshgrid(x,zc);
surf(x,yl,Z2);
surf(x,y,Z3);
xlabel('x');ylabel('y');zlabel('z');
1 commentaire
Maya Ghazal
le 19 Fév 2021
Just have a quick question as I am designing and analysing wing stuctures for my final year project, how can I change the camber of your design as I am supposed to have a symmetrical aerofoil? :)
Réponses (0)
Catégories
En savoir plus sur Robust Control Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!