About:
Calculate the friction loss in a pipe, with uniform flow and turbulent regime according to the Hazen Williams equation. \begin{equation} f = \frac{10.67 \times Q^{1.85}}{C^{1.85}\times d^{4.87}} \end{equation}
Module:
UniformPressurizedFlow
Function:
UPF_hw_f(q,c,d)
Definition of variables:
q
, flow - m3/s;c
, friction factor;d
, internal diameter - m.
Sample code:
from UniformPressurizedFlow import*
q= 1.0 #(m3/s)
c= 100.
d= 0.75 #(m)
f = UPF_hw_f(q,c,d)
print("f:",f,"m/m")
Results:
f: 0.00864203591232 m/m