You are on page 1of 1

close all;

clear all;
V_i = input(' Enter veocity V_0 [m/s] = ');
A = input (' Enter the angle of attack [degree] = ');
G = input(' Circulation Value G [rad/s] [Anti-clockwise] = ');
a=1;
x=[-a*2:a/3:a*2];
[x]=meshgrid(x);
y=x';
r=sqrt(x.^2+y.^2);
theta=atan2(y,x);
ur=V_i*cos(theta).*(1-a^2./(r.^2));
ut=-V_i*sin(theta).*(1+a^2./(r.^2))+G./(2*pi*r);
u=ur.*cos(theta)-ut.*sin(theta);
V_i=ur.*sin(theta)+ut.*cos(theta);
t=0:.1:2*pi;
cp = 1 - 4*sin(t).^2 + 2* G / (pi*a*V_i) *sin(t) - (2* G/ (pi*a*V_i) )^2 ;
cp_sim = 1 - 4*sin(t).^2 ;
figure(1);
plot(t,cp,t,cp_sim,'--r');
axis([0 2*pi min(cp) max(cp_sim)]);

A_i = A/(2*pi);
Gamma=4*pi*a*V_i*sin(A_i);
th=[0:1:360]/(2*pi);
z=a*(cos(th)+1i*sin(th));
zeta=z+(a*a./z);
v_translational=(V_i*(z.^2)*exp(-1i*A_i)V_i*(a^2)*exp(1i*A_i)+Gamma*z.*1i/(2*pi))./(z.^2-a^2);
re_velocity=real(v_translational);
figure(1);
plot(zeta,re_velocity);
%axis([-2.2 2.2 -25 50];
grid on;
figure(2);
Cp=1-(re_velocity.^2/V_i^2);
plot(zeta,Cp);

You might also like