flow in the pipe
이전 댓글 표시
Hi i want simulation of flow in the pipe.
but my script shows something wrong. T_T
I want to show second images like this Image.

how can i do more?
dbstop if error
Ps=10;
Pf=50;
mu=8.94e-4;
R=0.10;
l=1.00;
if Ps==Pf
disp(' Same pressure dont show Velocity in pipe.');
end
N=100;
r=linspace(-R,R,N);
S=pi*R^2;
Vmax=(abs(Ps-Pf))*(R^2)/(4*mu*l);
Vmean=Vmax/2;
V=Vmax*(1-(r.^2)/R^2);
Q=Vmean*S;
subplot(2, 1, 1)
plot(V,r,'b.');
grid on, xlabel(' Velocity (m/s)'), ylabel(' Radius (m)');
T=100*ones(100,R*2)
for iter = 1:100
for t=1:100
va=V*t
end
subplot(2, 1, 2)
imagesc(va')
drawnow
end
댓글 수: 2
Amit
2014년 12월 9일
Which line you get error? Also can you use the '{} code' to post your complete code?
Image Analyst
2014년 12월 12일
a's "Flag" of this comment moved here, and the flag removed:
well... my english is poor. I want to show flow's displacement using V in second plot. like animation second plot means pipe. starting point velocity in pipe is 0. but t=0,1...,100 , flow is moving. velocity is side velocity slower than the center. velocity slows the farther away from the center. Do you understand?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Fluid Dynamics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

