equation fof streamline in flui mechanics

6 ビュー (過去 30 日間)
Feven Tamrat
Feven Tamrat 2019 年 5 月 8 日
コメント済み: Feven Tamrat 2019 年 5 月 8 日
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?

回答 (1 件)

KSSV
KSSV 2019 年 5 月 8 日
[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 件のコメント
Feven Tamrat
Feven Tamrat 2019 年 5 月 8 日
@ 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)?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeVector Fields についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by