<< #Friction #HeadLoss #GUI #Python >> <<
This is a small code with a proper GUI which allows one to calculate the friction factor and the head loss of a pipeline: the flowing fluid can be either water either air, the section of the duct can be circular, rectangular or irregular. The estimation of the skin friction factor is done considering a multi-parametric formula (Díaz‐Damacillo and Plascencia, 2019).
The model is based on assuming the residual stresses due to the laminar to turbulent flow transition by two distinct contributions: the first is attributed to the flow velocity (Reynolds number) and the second to the duct roughness. Compared to other models, this new equation gives the best fit with respect of Nikuradse’s results.
Then the head loss along the pipeline is estimated by using the Darcy–Weisbach equation.
To run on Linux change the extension in *.py; To run on windows os just double click on the code icon, but be sure the extention of the file is .pyw
Procedure to install Python MSI https://www.python.org/download/releases/2.4/msi/ Go here to install Python 3.4.4.amd64.msi https://www.python.org/ftp/python/3.4.4/python-3.4.4.amd64.msi
DíaznDamacillo, L. and Plascencia, G. (2019), A new six parameter model to estimate the friction factor. AIChE J, 65: 1144-1148. https://doi.org/10.1002/aic.16535