Distribution graph velocity : how to make simple paraboloid of revolution?
Ältere Kommentare anzeigen
Hello Guys,
I have a simple problem. You remember the mechanics of fluids? To calculate the velocity distribution in a circular tube (actual fluid) use the equation "u" and then to further develop the known Hagen-Poiseuille equation. If we consider the tube without inclination have this equation:
u = (-N 2 - R 2) / 4 * mi
if I assign values to 'r' and 'mi', we have a paraboloid of revolution that describes the velocity distribution of the fluid in the tube. How can I make this chart in matlab?
See the example:
a = [-50:50];
u = -((a.^2-(0.001^2))/(4*1.485));
plot(u,a)
or
syms x
ezplot(-((a^2-0.001^2)/(4*1.485)))
I put an fig in attach
Thank you in advance for all the help!
Akzeptierte Antwort
Weitere Antworten (3)
Artur M. G. Lourenço
am 25 Mai 2013
0 Stimmen
Youssef Khmou
am 25 Mai 2013
hi here is an example before staring to answer the problem :
the veolcity is defined as :
V(r)= Vmax*(1-r²/R²), R is the radius of the tube :
R=.50 ; %radius in meters:
r=linspace(-R,R,30); % varying radius
Vmax=20 ; % suppose that the maximum velocity of fluid is 20 m/s
V=Vmax*(1-r.^2/R^2);
figure, bar(r,V);
figure, plot(V,r); xlabel(' Velocity'),ylabel(' varying radius')
6 Kommentare
Artur M. G. Lourenço
am 25 Mai 2013
Youssef Khmou
am 25 Mai 2013
hi can you explain more the issue? you mean 3D paraboloid like in the figure?
Artur M. G. Lourenço
am 25 Mai 2013
Youssef Khmou
am 25 Mai 2013
Bearbeitet: Youssef Khmou
am 25 Mai 2013
ok try this way first :
R=.50 ; %radius in meters:
r=linspace(-R,R,30); % varying radius
Vmax=20 ; % suppose that the maximum velocity of fluid is 20 m/s
V=Vmax*(1-r.^2/R^2);
VV=sqrt(V'*V);
figure, surf(r,r,VV), shading interp,
Artur M. G. Lourenço
am 26 Mai 2013
Artur M. G. Lourenço
am 26 Mai 2013
Artur M. G. Lourenço
am 26 Mai 2013
0 Stimmen
Kategorien
Mehr zu Labels and Annotations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!