Abstract
A well-calibrated model of a water distribution network is necessary for monitoring, control, and operation. In this work, we address the problem of parameter estimation in water distribution networks (WDNs). Typical parameters to be estimated include the coefficients used to model major (pipes) and minor (joints, etc.) losses due to friction. The problem of parameter estimation is a nonlinear regression problem and is solved using the error-in-variables approach. The method is illustrated using data from an experimental facility.
1. Introduction
A well-calibrated model of a water distribution network is necessary for monitoring, control, and operation. In this work, we address the problem of parameter estimation in water distribution networks (WDNs). Typical parameters to be estimated include the coefficients used to model major (pipes) and minor (joints, etc.) losses due to friction. The head loss in pipes is nonlinearly related to the flow through them (according to the Hazen–Williams equation). The minor losses and the head loss in valves are also related to the flow nonlinearly. The problem of parameter estimation can be posed as a nonlinear regression problem. Since all measured variables are prone to error, the problem is solved using the error-in-variables [] approach. This is solved iteratively in two steps: in the outer step, the parameters are updated and in the inner step, the measured values are updated. This process is iterated until convergence. The method was validated using data generated from an experimental test facility. A Python-based software package was also made to automate the procedure.
2. Problem Formulation
The WDN system under consideration here is a branched network and does not contain any loops. Nodes could be sources, junction points, or demand nodes. The variables and parameters are related by linear (material balance) and nonlinear equations (pressure drop equations). We assume that all demand flows are measured and hence all flows in the branched network can be estimated from the demand flows. For each demand node, we can formulate a pressure drop equation starting from the reservoir to the tank via all the pipes.
Here, represents the variable and represents the parameters. We consistently regard measurements as the sum of true values and a certain error. Here, the error is assumed to have a zero mean and a known positive definite covariance matrix . In practical terms, all the values in the error are considered uncorrelated and so we consider as the identity matrix. If is the measured value, is the true value and is error in that measurement in the jth variable in the ith experiment:
Hence, we have = − and we can estimate the parameter b by minimizing the error norm function
subjected to constraints, i.e., pressure drop equations
3. Estimation Algorithm
The parameters to be estimated are the major and minor loss coefficients, which are denoted by and , respectively. We assume that all demand flows are measured and hence all flows in the branched network can be estimated. In the interest of clarity, we assume that the major and minor loss coefficients are the same for all the pipes and demand nodes. This is not a serious limitation and can be relaxed. The constraints in (1) arise from the nonlinear pressure drop equation, which are of the form:
where Hs is the source head, di is the measured outflow from the ith demand node, are the set of edges (pipes) occurring in the unique path from the source to the ith demand node, , , and are the diameter, length, and flows in the kth edge, respectively. The algorithm operates through an iterative two-stage procedure. Initially, it commences with an initial assumption for the parameters which are updated by solving a simplified least squares problem.
where fi = f(zi,b) and is the Jacobian with respect to variables . Subsequently, the estimates of the measured variables are updated as follows:
The procedure is repeated until convergence. The values obtained at convergence are then regarded as the final estimates for both flow rates and parameters. This iterative process can be facilitated through three distinct functions: one for managing the flow matrix, another for handling parameters, and a third for error calculation, which serves as the termination criterion. A web application developed in Python is under development.
4. Results
The method is demonstrated using data generated from an experimental facility []. The network topology is as shown in Figure 1. An overhead tank serves as the source and water is delivered to the demand nodes using a network of pipes by gravity. Continuous control valves, direct-acting solenoid valves and reverse-acting solenoid valves are employed to control the flow of water in the setup. The outflow from each of the demand nodes drains into tanks which are fitted with ultrasonic-level sensors. The outflow is estimated from the change in level of the water in the tanks. The inputs to the algorithm include the network topology and the estimated flow rates. The experiment is repeated for different valve configurations, i.e., some valves to the demand nodes are turned off. The results of the parameter estimation algorithm are presented in Table 1. The measured and predicted flow rates (for one valve configuration with all valves open) are shown in Table 2.
Figure 1.
This is an example of a network in the form of a tree. The red-colored nodes are the demand nodes and the black-colored nodes are the intermediate junctions. The black lines are the intermediate pipes and the dotted lines are the pipes containing valves.
Table 1.
Comparison of the initial guess of the parameters and the estimated parameter.
Table 2.
Comparison of flow rates.
5. Conclusions
This paper describes a computationally efficient method for estimating the parameters concerned with the water distribution system. The proposed approach addresses the challenges associated with errors in variables by implementing a systematic, iterative procedure. The algorithm is seamlessly automated through a Python-based software package. This work can be extended to loop networks, intermediate pressure measurements, and the partial opening of valves. Also, the parameters of pipes like the age, diameter, etc., of the pipe can be considered in the parameter estimation procedure.
Author Contributions
Conceptualization: E.R., S.S.P., and S.N.; methodology: E.R., S.S.P., and S.N.; software: A.V. and E.R.; validation: E.R., S.S.P., and S.N.; formal analysis: E.R. and S.N.; investigation: E.R., S.S.P., and S.N.; resources: S.H.P.R., R.M., and S.N.; data curation: E.R., S.S.P., and S.N.; writing—original draft preparation, E.R.; writing—review and editing: S.N.; visualization, E.R.; supervision: S.N.; project administration: E.R. and S.N.; funding acquisition: S.N. All authors have read and agreed to the published version of the manuscript.
Funding
This research was partially supported by the Department of Science and Technology (DST), Government of India, for funding this research activity through WATER-IC for SUTRAM of EASY WATER at Indian Institute of Technology Madras, grant number DST/TM/WTI/WIC/2K17/82(G) and IITM Pravartak Technologies Foundation, grant number PRA/21-22/005/SRID.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
Data may be made available on request.
Acknowledgments
The authors would like to thank the Department of Chemical Engineering, Indian Institute of technology Madras, for all the support provided during the work.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Valkó, P.; Vajda, S. An Extended Marquardt-Type Procedure for Fitting Error-in-Variables Models. Comput. Chem. Eng. 1987, 11, 37–43. [Google Scholar] [CrossRef]
- Mohandoss, P. Monitoring, Scheduling and Leak Detection in Water Distribution Networks. Master’s Thesis, Indian Institute of Technology Madras, Chennai, India, 2020. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).