Abstract
This paper analyzes the convergence of a pressure-driven analysis (PDA) model of a water distribution network solver based on Todini’s global gradient algorithm. The PDA model is constructed by embedding a pressure−demand relationship in the EPANET simulator code. To avoid spurious convergence, a residual-based convergence error was used. The introduction of pressure-dependent demands is shown to result in a far poorer convergence. The study of solver convergence as a function of the smoothness of the pressure−demand curve has demonstrated that, statistically, a smooth pressure−demand relationship gives a somewhat better convergence. To improve convergence, use was made of a quadratic approximation of the Hazen–Williams head loss−flow relationship in the vicinity of zero and the correct implementation of the Darcy−Weisbach formula in the solver. To further improve convergence, an iteration step control technique called the line search was used. The analysis of solver convergence for different line search variants has shown that the line search in its usual form is not efficient enough and may result in poorer convergence. A necessary error decrease algorithm, whose use in the line search improves solver convergence, is proposed. It is shown that due to the convergence improvement methods the convergence of the PDA solver is somewhat better than that of the demand-driven analysis solver and sufficient for direct problems such as design, for example.
Similar content being viewed by others
References
Ang WH, Jowitt PW (2006) Solution for water distribution systems under pressure-deficient conditions. J Water Resour Plann Manag, ASCE 132(3):175–182
Bhave PR (1991) Analysis of flow in water distribution networks. Technomic, Lancaster
Cheung PB, Van Zyl JE, Reis LFR (2005) Extension of EPANET for pressure driven demand modeling in water distribution system. CCWI2005 water management for the 21st century, Exeter, UK
Elhay S, Simpson AR (2011) Dealing with zero flows in solving the nonlinear equations for water distribution systems. J Hydraul Eng 137(10):1216–1224
Giustolisi O, Savic DA, Kapelan Z (2008) Pressure-driven demand and leakage simulation for water distribution networks. J Hydraul Eng 134(5):626–635
Gorev NB, Kodzhespirova IF, Kovalenko Y, Álvarez R, Prokhorov E, Ramos A (2011) Evolutionary testing of hydraulic simulator functionality. Water Resour Manag 25(8):1935–1947
Kelley CT (1987) Solving nonlinear equations with Newton’s method. Volume 1 of fundamentals of algorithms. SIAM, Philadelphia
Kovalenko Y, Gorev N, Kodzhespirova I, Alvarez R, Prokhorov E (2012) Zero flow problem in the EPANET solver. Proceedings of the 14th Annual Water Distribution Systems Analysis Conference, WDSA 2012, September 24–27, Adelaide, South Australia
Liu J, Yu G, Savic D (2011) Deficient-network simulation considering pressure-dependent demand. In: Sustainable solutions for water, sewer, gas, and oil pipelines (ICPTT 2011): 886–900. ASCE. doi:10.1061/41202(423)94
Press WH, Teukolsky SA, Vetterling WT, Flannery BP (1992) Numerical recipes in FORTRAN: The art of scientific computing. Cambridge University Press, New York
Rivera JJ, Kovalenko Y, Álvarez R, Ramos A, Gorev N, Kodzhespirova I, Prokhorov E (2010) Hydraulic simulator testing: Methods, tools, and results. Proceedings of the 12th Annual Water Distribution Systems Analysis Conference, WDSA 2010, September 12–15, Tucson, Arizona
Rossman L (2000) EPANET 2 users manual. U.S. Environmental Protection Agency, Risk Reduction Engineering Laboratory, Cincinnati
Siew C, Tanyimboh TT (2012) Pressure-dependent EPANET extension. Water Resour Manag 26(6):1477–1498
Simpson A, Elhay S (2010) Jacobian matrix for solving water distribution system equations with the Darcy-Weisbach head-loss model. J Hydraul Eng 137(6):696–700
Todini E (2003) A more realistic approach to the “extended period simulation” of water distribution networks. In: Maksimovic C, Butler D, Memon FA (eds) Advances in water supply management. Swets & Zeitlinger, Lisse, pp 173–184
Todini E, Pilati S (1988) A gradient algorithm for the analysis of pipe networks. In: Coulbeck B, Orr C-H (eds) Computer applications in water supply, vol 1. Research Studies Press, England
Wagner JM, Shamir U, Marks DH (1988) Water distribution reliability: simulation methods. J Water Resour Plann Manag, ASCE 114(3):276–294
Wu Z, Wang R, Walski T, Yang S, Bowdler D, Baggett C (2008) Efficient pressure dependent demand model for large water distribution system analysis. Proc Water Distrib Syst Anal Symp 2006:1–15. doi:10.1061/40941(247)39
Acknowledgements
This work was supported by the National Council of Science and Technology (CONACYT) of Mexico.
Author information
Authors and Affiliations
Corresponding author
Appendix
Appendix
1.1 Implementation of the Darcy−Weisbach Formula in the EPANET Solver
Using the Darcy−Weisbach formula, the frictional head loss ΔH for incompressible flow Q in a pipe can be written as (Bhave 1991)
where L is the pipe length, g is the gravitational acceleration, D is the pipe diameter, and f = f(Q) is the friction factor. As in EPANET, we introduce the resistance coefficient
Then the frictional head loss with the inclusion of the minor loss m in the pipe is
The calculation of the matrix D 11 in (2) calls for the calculation of the flow derivative of the head loss. With the inclusion of the flow dependence of the friction factor, the derivative of the head loss will be
According to the EPANET manual, the friction factor f is computed depending on the flow’s Reynolds Number (Re):
For laminar flow (Re < 2, 000) as
where \( Re=\frac{4Q}{\pi D\nu} \) is the Reynolds Number, and ν is the kinematic viscosity.
For fully turbulent flow (Re > 4, 000) as
For transitional flow (2, 000 < Re < 4, 000) the friction factor f 2 is calculated using a cubic interpolation from the Moody Diagram.
Let
where
The coefficients of the polynomial are determined from the continuity of the functions f 1(Q L ) = f 2(Q L ), f 2(Q R ) = f 3(Q R ) and their derivatives \( {\left.\frac{d{f}_1}{ dQ}\right|}_{Q_L}={\left.\frac{d{f}_2}{ dQ}\right|}_{Q_L} \), \( {\left.\frac{d{f}_2}{ dQ}\right|}_{Q_R}={\left.\frac{d{f}_3}{ dQ}\right|}_{Q_R} \) at the left (Q L = 500πνD) and right (Q R = 1000πνD) boundaries. The derivatives are
Then the coefficients will be
where \( c=\frac{\varepsilon }{3.7D}+\frac{5.74}{4000^{0.9}}. \)
However, the resulting expressions for the friction factor and its derivative as they are cannot be used in the EPANET solver. As is evident from Eqs. (A1) and (A5), zero flows will result in division by zero. To avoid this, the source code of the solver should be modified so that the functions return the products Q f(Q) and \( {Q}^2\frac{ df(Q)}{ dQ} \) instead of f(Q) and \( \frac{ df(Q)}{ dQ} \).
Rights and permissions
About this article
Cite this article
Kovalenko, Y., Gorev, N.B., Kodzhespirova, I.F. et al. Convergence of a Hydraulic Solver with Pressure-Dependent Demands. Water Resour Manage 28, 1013–1031 (2014). https://doi.org/10.1007/s11269-014-0531-4
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11269-014-0531-4