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!
Best Answer