equation fof streamline in flui mechanics

6 vues (au cours des 30 derniers jours)
Feven Tamrat
Feven Tamrat le 8 Mai 2019
Commenté : Feven Tamrat le 8 Mai 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?

Réponses (1)

KSSV
KSSV le 8 Mai 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 commentaire
Feven Tamrat
Feven Tamrat le 8 Mai 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)?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Vector Fields dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by