equation fof streamline in flui mechanics

18 visualizzazioni (ultimi 30 giorni)
Feven Tamrat
Feven Tamrat il 8 Mag 2019
Commentato: Feven Tamrat il 8 Mag 2019
Given the steady two-dimensional velocity distribution
u =Kx and v=-Ky where K is a positive constant, how do we compute and plot the streamlines of the flow?

Risposte (1)

KSSV
KSSV il 8 Mag 2019
[x,y] = meshgrid(0:0.1:1,0:0.1:1);
k = 1 ;
u = k*x;
v = -k*y;
figure
quiver(x,y,u,v)
startx = 0.1:0.1:1;
starty = ones(size(startx));
streamline(x,y,u,v,startx,starty)
  1 Commento
Feven Tamrat
Feven Tamrat il 8 Mag 2019
@ KSSV thanks but is there a way where i can first integrate both sides to obtain the hyperbola equation then plot the graph using the commands? i commenced the comand as follows
%% dx/u=dy/v
dx/kx=-dy/ky
syms x y
c=1;
z1(x)=int(1/x,x);
z2(y)=int(1/y,y);
how do i proceed from here to find the result xy=c ( its mathamtical calculation by hand after integrating both sides is lnx=-lny+lnc how do we obtain the result xy=c which is a hyperbola)?

Accedi per commentare.

Categorie

Scopri di più su Vector Fields in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by