Professional Documents
Culture Documents
Assignment II
Assignment II
Rollno: 076MSMDE008
Matlab Code For Non-lifting Cylinder
Introduction
Velocity Potential
Velocity potential function is a scalar function of space and time. If ‘phi’ is the
representation of velocity potential function, then the velocity function for a steady fluid
flow is given by the expression,
is a scalar function, whose negative derivative, with respect to any direction, gives the
velocity component in that direction.
Streamlines
Streamlines are defined as the lines along which the stream function is constant. In a flow
field, a tangent drawn at any point on the streamline gives the direction of velocity.
Hence the slope at any point on the streamline is given by dy/dx=v/u;
From the expressions of velocity potential function and stream function,
% Number of intervals
n =res*75;
b =res*2;
c =-res*2;
rad=sqrt(x.^2+y.^2);
theta=atan2(y,x);
z=Velocity.*sin(theta).*rad.*(1-(5./((2.*3.14.*Velocity.*rad.^2))));
n=50;
Xcircle = r.*cos(t);
Ycircle = r.*sin(t);
r=ones(1,n+1)*res;
t=[0:2*pi/n:2*pi];
xlabel('x \rightarrow');
ylabel('y \rightarrow');
axis square;
f=Velocity.*cos(theta).*rad.*(1+(5./((2.*3.14.*Velocity.*rad.^2))));
% Streamline Plot
title('Potential Function');
xlabel('x \rightarrow');
ylabel('y \rightarrow');
axis square;
%Calculating Radius
R=sqrt(K./(2.*3.14*Velocity));
t=[0:2*pi/n:2*pi];
Xcircle = R.*cos(t);
Ycircle = R.*sin(t);
contour(x,y,z,50);
colorbar;
hold on;
xlabel('x \rightarrow');
ylabel('y \rightarrow');
axis square;
Figure 1
Figure 2
Figure 3
Conclusion
The entire flow filed is symmetrical about the horizontal and vertical axes through the
center of cylinder as clearly seen by the streamline pattern. Hence, the pressure distribution is
also symmetrical about both axes. As a result, the pressure distribution over the top of the
cylinder is exactly balanced by the pressure distribution over the bottom of the cylinder (i. e.,
there is no net lift). Similarly, the pressure distribution over the front of the cylinder is exactly
balanced by the pressure distribution over the back of the cylinder (i. e., there is no net drag).