A MODULAR PYTHON-BASED FRAMEWORK FOR AUTOMATED HYDRAULIC FLOW BALANCING IN LOOPED PIPE NETWORKS USING THE HARDY CROSS METHOD
DOI:
https://doi.org/10.60787/tnamp.v24.686Keywords:
Hydraulic pipe networks, Hardy Cross method, Darcy–Weisbach equation, Hazen–Williams equationAbstract
The hydraulic analysis of looped pipe networks is a core yet computationally intensive task in civil and water resources engineering. Although the Hardy Cross method is valued for its simplicity, manual application becomes inefficient and error-prone for complex multi-loop systems. This study presents a modular Python-based framework for automated hydraulic flow balancing using an enhanced Hardy Cross algorithm. The model incorporates both Darcy–Weisbach and Hazen–Williams equations, with friction factors computed dynamically via the Swamee–Jain equation, removing the need for predefined resistance coefficients. It systematically handles multi-loop interactions and shared pipe corrections through an iterative convergence scheme with user-defined tolerance. Validation was performed using four benchmark pipe network cases and comparison with established solutions. Results show strong agreement, with coefficients of determination (R²) above 0.999 and minimal errors. The framework demonstrates improved efficiency, scalability, and flexibility, making it valuable for engineering applications and academic use.
Downloads
References
White, F. M. (2011). Fluid Mechanics (7th ed.). McGraw-Hill.
Round, G. F. (2019). Analysis of flow in pipe networks. Canadian Journal of Civil Engineering, 10(1), 19–28.
Cross, H. (1936). Analysis of flow in networks of conduits or conductors. Bulletin No. 286, University of Illinois Engineering Experiment Station, III
Jha, K., & Mishra, M. K. (2020). Object-oriented integrated algorithms for efficient water pipe network analysis using modified Hardy Cross method. Journal of Computational Design and Engineering, 7(1), 56–64.
Dumka, P., Samaiya, N., Gandhi, S., & Mishra, D. R. (2023). Modelling of Hardy Cross method for pipe networks. SSRG International Journal of Mechanical Engineering, 10(2), 1–8.
Ainullah, M., Lutfullah, S., & Mujeebullah, M. (2024). Comparison of Newton–Raphson and Hardy Cross methods for looped water supply networks. Journal of Natural Science Review, 2(2).
Todini, E., & Rossman, L. A. (2012). Unified framework for water distribution network analysis. Journal of Hydraulic Engineering, 139(5), 511–526.
Sheikh, M. R., & Coulibaly, P. (2024). Review of recent developments in hydrologic forecasting techniques. Water, 16(2), 301.
Obura, D., Kimera, D., & Khaldi, A. (2022). A Hardy Cross approach for hydraulic modelling of water pipe networks. East African Journal of Engineering, 5(1), 28–56.
Silvia, C. S., Safriani, M., Ikhsan, M., & Rauza, U. (2022). Analysis of water distribution systems using the Hardy Cross method. IOP Conference Series: Earth and Environmental Science, 955(1), 012029.
Al-Shamisi, M.H., Assi, A.H. and Hejase, H.A.N., 2011. Using MATLAB to develop artificial neural network models for predicting global solar radiation in Al Ain City – UAE. In: InTech.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 The Transactions of the Nigerian Association of Mathematical Physics

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

