Professional Documents
Culture Documents
Potential Flow
Potential Flow
508052003
Figure 2. Input Window fort the Strength of the Vortex (The default value which satisfies the
Kutta Condition is automatically calculated by the program. User can change this value).
KIVAN AL ANIL
508052003
KIVAN AL ANIL
508052003
KIVAN AL ANIL
508052003
Figure 8. Input Window fort the Strength of the Vortex (The default value which satisfies the
Kutta Condition is automatically calculated by the program. User can change this value).
KIVAN AL ANIL
508052003
Figure 10. Streamline Contours, Plotted Using the contour Command of MATLAB.
Figure 11. Direction and the Magnitude of the Velocity Vectors, Plotted Using the quiver
Command of MATLAB.
KIVAN AL ANIL
508052003
Figure 12. Streamline Contours, Plotted Using the contour Command of MATLAB.
Figure 13. Direction and the Magnitude of the Velocity Vectors, Plotted Using the quiver
Command of MATLAB.
KIVAN AL ANIL
508052003
Figure 14. Pressure Contours, Plotted Using the contourf Command of MATLAB.
Figure 15. Pressure Contours, Plotted Using the contourf Command of MATLAB.
KIVAN AL ANIL
508052003
If we set the the vortex strength to zero, The Kutta Condition is no more satisfied !.
Figure 16. Input Window fort the Strength of the Vortex (We set the the vortex strength to
zero, The Kutta Condition is no more satisfied).
Figure 17. Streamline Contours, Plotted Using the contour Command of MATLAB
(Potential Flow Around a Non-Rotating Circle).
KIVAN AL ANIL
508052003
Figure 18. Pressure Contours, Plotted Using the contourf Command of MATLAB (No lift
due to the cancellation of the pressures DAlambert Paradox).
Figure 19. Streamline Contours, Plotted Using the contour Command of MATLAB (The
flow does not satisfy the Kutta Condition).
KIVAN AL ANIL
508052003
KIVAN AL ANIL
508052003
Figure 23. Streamline Contours, Plotted Using the contour Command of MATLAB.
Figure 24. Direction and the Magnitude of the Velocity Vectors, Plotted Using the quiver
Command of MATLAB.
KIVAN AL ANIL
508052003
Figure 25. Pressure Contours, Plotted Using the contourf Command of MATLAB.
Figure 26. Streamline Contours, Plotted Using the contour Command of MATLAB.
KIVAN AL ANIL
508052003
Figure 27. Direction and the Magnitude of the Velocity Vectors, Plotted Using the quiver
Command of MATLAB.
Figure 28. Pressure Contours, Plotted Using the contourf Command of MATLAB.
KIVAN AL ANIL
508052003
Figure 31. Streamline Contours, Plotted Using the contour Command of MATLAB.
KIVAN AL ANIL
508052003
Figure 32. Pressure Contours, Plotted Using the contourf Command of MATLAB.
Page 1
3:30:40 PM
Page 2
3:30:40 PM
% --------------------------------------------circle
=
rsmak('circle',rc,[xc yc]);
figure(1)
fnplt(circle), axis equal, axis square, grid; hold on
plot(xc,yc,'or','linewidth',[3])
contour(x,y,psifreestr,200)
colormap(gray)
title(['\fontsize{15}\bf{Uniform Flow (Angle of Attack = }',num2str(alpha),'^o)']);
xlabel('\fontsize{15}\bf{x}');
ylabel('\fontsize{15}\bf{y}');
set(figure(1),'Position',[1,1,1400,950])
pause
% --------------------------------------------figure(2)
fnplt(circle), axis equal, axis square, grid; hold on
plot(xc,yc,'or','linewidth',[3])
contour(x,y,psidouble,200)
colormap(gray)
title(['\fontsize{15}\bf{Doublet (for Angle of Attack = }',num2str(alpha),'^o)']);
xlabel('\fontsize{15}\bf{x}');
ylabel('\fontsize{15}\bf{y}');
set(figure(2),'Position',[1,1,1400,950])
pause
% --------------------------------------------figure(3)
fnplt(circle), axis equal,
axis([-(a+2) (a+2) -(a+2) (a+2)])
axis square, grid; hold on
plot(xc,yc,'or','linewidth',[3])
contour(x,y,psipvortex,200)
colormap(gray)
title(['\fontsize{15}\bf{Point Vortex (Vortex Strength = }',num2str(Gamma),')']);
xlabel('\fontsize{15}\bf{x}');
ylabel('\fontsize{15}\bf{y}');
set(figure(3),'Position',[1,1,1400,950])
pause
% --------------------------------------------figure(4)
fnplt(circle), axis equal, axis square, grid; hold on
plot(xc,yc,'or','linewidth',[3])
plot(xs1,ys1,'or','linewidth',[1.5])
plot(xs2,ys2,'or','linewidth',[1.5])
[row col]
=
size(x);
contour(x,y,psi,200)
colormap(gray)
title(['\fontsize{15}\bf{Potential Flow Around A Circle (with Vortex Strength = }',num2st
r(Gamma),')']);
xlabel('\fontsize{15}\bf{x}');
ylabel('\fontsize{15}\bf{y}');
set(figure(4),'Position',[1,1,1400,950])
% ---------------------------------------------
Page 1
3:31:19 PM
Page 2
3:31:19 PM
r)).*sin(TH);
v
=
U*sin(alpha*pi/180)-U*sin(2*TH-alpha*pi/180).*(rc./r).^2 + (Gamma./(2*pi*
r)).*cos(TH);
Dphi
=
u - i*v;
Dzeta
=
4*(lamda^2)*(a^2)*(((z-a).^(lamda-1)).*((z+a).^(lamda-1)))./((((z+a).^lam
da)-((z-a).^lamda)).^2);
Dphizeta
=
Dphi./Dzeta;
uzeta
=
real(Dphizeta);
vzeta
=
-imag(Dphizeta);
q
=
(uzeta.^2+vzeta.^2).^.5; % abs(Dphizeta)
Cp
=
1-(q/U).^2;
Cpcircle
=
1-(((u.^2+v.^2).^.5)/U).^2;
% --------------------------------------------% Streamline
psifreestr =
U*((y-yc)*cos(alpha*pi/180)-(x-xc)*sin(alpha*pi/180));
psidouble
=
-U*((rc^2./r.^2).*((y-yc)*cos(alpha*pi/180)-(x-xc)*sin(alpha*pi/180)));
psipvortex =
(Gamma/(2*pi))*log(r);
psi
=
psifreestr+psidouble-psipvortex;
% --------------------------------------------% calculation of the stagnation points (with transformation)
stagplus
=
asin(Gamma/(4*pi*rc*U));
stag1
=
stagplus+alpha*pi/180;
if stagplus >= 0
stag2
=
(pi-stagplus)+alpha*pi/180;
else
stag2
=
(-pi-stagplus)+alpha*pi/180;
end
xs1
=
rc*cos(stag1)+xc;
ys1
=
rc*sin(stag1)+yc;
zs1
=
xs1 + i*ys1;
zetas1
=
lamda*a*(((zs1+a).^lamda)+((zs1-a).^lamda))./(((zs1+a).^lamda)-((zs1-a).^
lamda));
xis1
=
real(zetas1);
etas1
=
imag(zetas1);
xs2
=
rc*cos(stag2)+xc;
ys2
=
rc*sin(stag2)+yc;
zs2
=
xs2 + i*ys2;
zetas2
=
lamda*a*(((zs2+a).^lamda)+((zs2-a).^lamda))./(((zs2+a).^lamda)-((zs2-a).^
lamda));
xis2
=
real(zetas2);
etas2
=
imag(zetas2);
% --------------------------------------------figure(5)
circle
=
rsmak('circle',rc,[xc yc]);
fnplt(circle),
axis([-(a+2) (a+2) -(a+2) (a+2)])
axis equal,grid; hold on
plot(xc,yc,'or','linewidth',[3])
plot(xs1,ys1,'or','linewidth',[1.5])
plot(xs2,ys2,'or','linewidth',[1.5])
contour(x,y,psi,200)
colormap(gray)
title(['\fontsize{15}\bf{Potential Flow Around A Circle (with Vortex Strength = }',num2st
r(Gamma),')']);
xlabel('\fontsize{15}\bf{x}');
ylabel('\fontsize{15}\bf{y}');
set(figure(5),'Position',[1,1,1400,950])
Page 3
3:31:19 PM
Strength = }',num2st
Strength = }',num2st
}',num2str(tau),'^o)
}',num2str(tau),'^o)
Page 4
3:31:19 PM
ylabel('\fontsize{20}\bf{\eta}');
set(figure(9),'Position',[1,1,1400,950])
pause
% --------------------------------------------figure(10)
axis([-(a+2) (a+2) -(a+2) (a+2)])
axis equal, grid; hold on
contourf(xi,eta,Cp,20)
cmap = colormap;
cmap = flipud(cmap);
colormap(cmap)
colorbar
title(['\fontsize{15}\bf{Pressure Contours (Tail angle = }',num2str(tau),'^o)']);
xlabel('\fontsize{20}\bf{\xi}');
ylabel('\fontsize{20}\bf{\eta}');
set(figure(10),'Position',[1,1,1400,950])
pause
% --------------------------------------------figure(11)
subplot(2,1,1)
plot(x,y,'+')
axis equal
title(['\fontsize{15}\bf{Karman-Trefftz Transformation (mapping of the coordinates)}']);
xlabel('\fontsize{15}\bf{x}');
ylabel('\fontsize{15}\bf{y}');
grid
subplot(2,1,2)
plot(xi,eta,'+')
axis equal
xlabel('\fontsize{20}\bf{\xi}');
ylabel('\fontsize{20}\bf{\eta}');
grid
set(figure(11),'Position',[1,1,1400,950])
% ---------------------------------------------