Hi, how can i plot the velocity profile for steady couette flow between two plates? d^2u/d^2y=(1/2*miu)*dp/dx for dp/dx=[_2,_1,0,1,2] , miu=1

2 件のコメント

Image Analyst
Image Analyst 2022 年 1 月 15 日
How about the plot function?
plot(velocity, 'b-');
Garland Garland
Garland Garland 2022 年 1 月 15 日
U(y)=1/2*miu*(dp/dx)*y^2+(U_1/2*miu*(dp/dx))y The upper plate moves by U=0.01m/s

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

 採用された回答

Torsten
Torsten 2022 年 1 月 15 日
編集済み: Torsten 2022 年 1 月 15 日

1 投票

Underlying equation is
d^2u/dy^2 = -G/mu with G = -dp/dx = const
function main
dpdx = [-2 -1 0 1 2];
mu = 1.0;
U = 0.01;
H = 0.05;
dy = 0.001;
np = numel(dpdx);
y = (0:dy:H).';
ny = numel(y);
u = zeros(ny,np);
for ip=1:np
u(:,ip) = -dpdx(ip)/(2*mu)*y.*(H-y) + U*y/H;
end
plot(y,u)
end

3 件のコメント

Garland Garland
Garland Garland 2022 年 1 月 15 日
Thank you very much this was very helpful
Torsten
Torsten 2022 年 1 月 15 日
編集済み: Torsten 2022 年 1 月 15 日
Maybe making the plot this way is better:
plot(u,y)
xlabel('Velocity u')
ylabel('Plate height h')
Garland Garland
Garland Garland 2022 年 1 月 15 日
Great

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeFluid Network Interfaces Library についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by