About:
Calculate the friction loss in a pipe, with uniform flow and turbulent regime according to the Darcy Weisbach equation.
\begin{equation}
fl = \frac{f}{d} \times \frac{Q^2}{2 \times g \times A^2}
\end{equation}Module:
UniformPressurizedFlow
Function:
UPF_dw_f(q,f,d)
Definition of variables:
q
, flow - m3/s;f
, Darcy friction factor;d
, internal diameter - m.
Sample code:
from UniformPressurizedFlow import*
q= 1.0 #(m3/s)
f= 0.025
d= 0.75 #(m)
fl = UPF_dw_f(q,f,d)
print("fl:",fl,"m/m")
Result:
fl: 0.00870769598078 m/m