Está en la página 1de 4

TRABAJO DE FLUJO POTENCIAL

PROFESOR: ING QUIJANO


TRABAJO: FLUJO CORRIENTE Y POTENCIAL
INTEGRANTES:
 ROJAS CANALES FRANK 10130153
 HUAMAN ZAVALA EMERSON 15130070
 DIAZ VARGAS ANGELICA 13130099
Función corriente
clear all;
close all;
% condiciones de frontera
lx=100; ly=100; ny=10; nx=10; u=100; a=5; b=10; c=0; e=0;
dx=lx/(nx-1);
dy=ly/(ny-1);
X=[-lx:dx:lx];
Y=[-ly:dy:ly];
% crear grilla
[x y]=meshgrid(X,Y);
% funcion corriente
for phi=1:nx
ff=x.^2/(cos(phi))^2-y.^2/(sin(phi))^2-1;
%graficar flujo
contourf(ff,'d')
hold on
end
quiver(x,y,u,v,'d')
Función corriente y potencial

clear all;
close all;
% condiciones de frontera
lx=100; ly=100; ny=10; nx=10; u=100; a=5; b=10; c=0; e=0;
dx=lx/(nx-1);
dy=ly/(ny-1);
X=[-lx:dx:lx];
Y=[-ly:dy:ly];
% crear grilla
[x y]=meshgrid(X,Y);
% funcion corriente y potencial
d=((x-e).(x-e)+(y-e).(y-e)).^0.5;
phi=u*acos((x-e)./d)+b*(x.*cos(c)+y.*sin(c));
eps=(-1/2)log(d.^2)+a+b(y.*cos(c)-x.*sin(c));
%condicion de frontera
u=-((y-e)./d.^2);
v=((x-e)./d.^2);
%graficar flujo
contourf(x,y,phi)
hold on
contour(x,y,eps)
hold on
quiver(x,y,u,v,'d')
colorbar
xlabel('longitud de x')
ylabel('longitud de y')
title('vortice Eliptico')
axis equal tight;
q=-u/(2*pi*b);
q=ceil(q);
eY=find(round(X)<=e);
x1=eY(end)+q:eY(end)-q;
y1=eY(end)+q:eY(end)-q;
plot(x(x1,y1),y(x1,y1),'or')

También podría gustarte