Está en la página 1de 10

Ejercicios

Graficar los siguientes campos de velocidades, así como su línea de corriente.

1  1
a) 2  x2
S  (  1)i1  e i2

1  2 x1
b) 2  2 x2
S  2e 2 i1  3e 2 i2
1  t
c)
2  1
x1
1 
d)
1 t
x
2  2
1  2t
x1
1  V0
e)
L
x2
2  V0
L
1  x1 (1  2 t)
f)
2  x2
1  x12  x22
g)
2  2 x1 x2
Códigos en Matlab
a)

[x,y] = meshgrid(-2:0.2:2,-2:0.2:2); u =3*x.^0;

u =x.^0; v =y.^0;

v =y;

figure

figure quiver(x,y,u,v)

quiver(x,y,u,v) startx = -2:0.2:2;

startx = -2:0.2:2; starty = ones(size(startx));

starty = ones(size(startx)); streamline(x,y,u,v,startx,starty)

streamline(x,y,u,v,startx,starty) xlabel('-2 < X1 < 2')

xlabel('-2 < X1 < 2') ylabel('-2 < X2 < 2')

ylabel('-2 < X2 < 2') title('Campo de velocidades y linea de


corriente t=3')
title('Campo de velocidades y linea de
corriente') grid on

grid on

d)

[x,y] = meshgrid(-2:0.2:2,-2:0.2:2);

b)

u =x/(1+t);

[x,y] = meshgrid(-5:0.2:5,-5:0.2:5); v =y/(1+2t);

u = 2*x;

v = -2*y; figure

quiver(x,y,u,v)

figure startx = -2:0.2:2;

quiver(x,y,u,v) starty = ones(size(startx));

startx = -2:0.2:2; streamline(x,y,u,v,startx,starty)

starty = ones(size(startx)); xlabel('-2 < X1 < 2')

streamline(x,y,u,v,startx,starty) ylabel('-2 < X2 < 2')

xlabel('-5 < X1 < 5') title('Campo de velocidades y linea de


corriente t=3')
ylabel('- < X2 < 5')
grid on
title('Campo de velocidades y linea de
corriente')

grid on e)

c) [x,y] = meshgrid(-2:0.2:2,-2:0.2:2);

[x,y] = meshgrid(-2:0.2:2,-2:0.2:2);
u =Vo*x/L; figure

v =-Vo*y)/L; quiver(x,y,u,v)

startx = -2:0.2:2;

figure starty = ones(size(startx));

quiver(x,y,u,v) streamline(x,y,u,v,startx,starty)

startx = -2:0.2:2; xlabel('-2 < X1 < 2')

starty = ones(size(startx)); ylabel('-2 < X2 < 2')

streamline(x,y,u,v,startx,starty) title('Campo de velocidades y linea de


corriente t=2')
xlabel('-2 < X1 < 2')
grid on
ylabel('-2 < X2 < 2')
g)
title('Campo de velocidades y linea de
corriente Vo=5,L=2') [x,y] = meshgrid(-2:0.2:2,-2:0.2:2);

grid on u =x.^2-y.^2;
v =-2*x*y;

figure
f) quiver(x,y,u,v)
startx = -2:0.2:2;
starty = ones(size(startx));
streamline(x,y,u,v,startx,starty)
[x,y] = meshgrid(-2:0.2:2,-2:0.2:2); xlabel('-2 < X1 < 2')
ylabel('-2 < X2 < 2')
title('Campo de velocidades y linea de
corriente')
u =x(1+2t); grid on
v =y;

También podría gustarte