You are on page 1of 1

% (f) uniform flow with source at origin

clc;
clear;
[x,y]=meshgrid(-15:.01:15,-3:.01:3);
m=1;
u=1;
phi=-u*x-m*.5*log(x.^2+y.^2);
psi=-u*y-m*atan(y./x);
contour(x,y,psi,'r');
hold on
contour(x,y,phi,'g');
hold off
title('Uniform flow with source at origin');
legend('psi','phi');

You might also like