Next Article in Journal
Forecasting Electric Vehicle Adaption Using System Dynamics: A Case Study of Regina, Saskatchewan
Previous Article in Journal
An Intelligent System for the Early Detection of Prostate Cancer
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Hydraulic Transient Data Assimilation in Pipe Networks Using the Kalman Filter †

School of Architecture and Civil Engineering, the University of Adelaide, Adelaide, SA 5005, Australia
*
Author to whom correspondence should be addressed.
Presented at the 3rd International Joint Conference on Water Distribution Systems Analysis & Computing and Control for the Water Industry (WDSA/CCWI 2024), Ferrara, Italy, 1–4 July 2024.
Eng. Proc. 2024, 69(1), 199; https://doi.org/10.3390/engproc2024069199
Published: 18 October 2024

Abstract

:
Hydraulic transient data assimilation in pipe networks plays a critical role in monitoring the network’s behaviours, thereby ensuring the efficiency and reliability of water supply systems. However, the existing Kalman filter-based methods integrated with traditional numerical models face a severe computational burden with a significant number of state variables due to the need to discretise pipes into multiple pipe segments. This paper presents a novel Kalman filter approach that implements an efficient hydraulic transient model that requires fewer pipe segments and is particularly suited when the frequency of the transient fluctuation is low. As the number of state variables is reduced, a faster estimation of the system hydraulic states is enabled, as is an enhanced accuracy of transient predictions. The proposed method was tested in two pipe network simulations with user demands: a 7-pipe network and a 51-pipe network. The results indicate that the method provides accurate transient predictions and robust estimation of transient states in real time, and has high performance and efficiency for large pipe networks.

1. Introduction

The modern management of water supply systems is increasingly dependent on the ability to accurately monitor and control the flow and pressure of water throughout the distribution network [1].
In recent years, hydraulic transient data assimilation has emerged as a vital tool, leveraging the power of real-time data and advanced modelling techniques to offer a more nuanced understanding and control of water distribution processes [2,3,4]. Despite its apparent benefits, the current implementation of transient data assimilation in water supply systems is significantly limited by the requirements of robust hydraulic models, advanced data assimilation techniques, and sufficient computational resources available for real-time processing and analysis.
This study introduces an innovative approach for real-time pressure and flow data assimilation within pipe networks, leveraging the extended Kalman filter (EKF) and the elastic water column (EWC) model. By integrating real-time data assimilation with advanced hydraulic modelling, the proposed approach provides a robust, computationally efficient solution capable of accurately predicting transient pressure and flow data in real time, offering a promising tool for improving the resilience and efficiency of water distribution systems.

2. Hydraulic Transient Data Assimilation

2.1. Elastic Water Column (EWC) Model

Assuming the flow is one-dimensional and slightly compressible in a pressurized pipe having linear elastic walls, the EWC model converts the continuity and momentum equations into a set of ordinary differential equations (ODEs). The final governing equations for hydraulic transients in pipe networks are presented in Equation (1), and a detailed mathematical derivation has been given in [5]:
d q d t = L 1 R q q + L 1 A I T h I + L 1 A R T h R d h I d t = ( 1 2 A I C ) 1 ( A I q D I h I )

2.2. Extend Kalman Filter (EKF) for Pressure and Flow Prediction

The EKF is implemented for the direct estimation of transient pressure and flow in this paper. Unlike the standard Kalman filter, which is designed for systems with linear equations, the EKF is capable of handling nonlinearities in both the process and measurement models.
Defining the transient state space  X ^  = [ q ^ T ,  h ^ I T ]T, the system equations (Equation (1)) can be simplified as follows:
d X / d t = M · X + B
in which  M  is a matrix involving parameters L, R, C, and A, and B is a matrix involving demands and reservoir levels.
The EKF process involves two main steps: prediction and update.
  • Prediction step
This step estimates the transient state space in the next time step k by linearizing the nonlinear EWC model (Equation (1)) around the current estimate:
X k = I + 0.5 t · M I 0.5 t · M · X k 1 + t · B I 0.5 t · M
Simplifying Equation (3) yields:
X k = F k · X ^ k 1 + G k
where  F k  is the transfer matrix of the linearized system equations using the second-order Taylor series expansion;  G k  is the external inference (e.g., demand change). The error covariance  P ^ k  is also estimated as follows:
P k = F k · P k 1 · F k T + Q k
where  Q k  is the process noise covariance and is set to zero in the numerical cases.
  • Update step
The update step calculates the Kalman gain  K k  first, which determines how much the predictions should be adjusted based on the measurements and noise levels:
K k = P k H k T ( H k P k H k T + R ) 1
where  H k  is the observation matrix and  R  is the measurement noise covariance. Once new measurements  z k  are available, the EKF updates its estimates and the corresponding error covariance to reflect the new information:
X ^ k = x ^ k + K k ( z k H k X k )
P k = ( I K k H k ) P k

3. Transient Data Assimilation: 7-Pipe Network

The accuracy and applicability of the proposed EKF-based transient data assimilation were evaluated through numerical tests on a simple seven-pipe network shown in Figure 1. This pipe network consists of two reservoirs, seven pipes, five internal nodes, and one demand node. The diameter of each pipe was assumed to be D = 0.2 m; the pipe length is 1000 m; the wave speed is a = 1000 m/s; the Darcy–Weisbach factor is f = 0.02; and the water level of the upstream reservoir and downstream reservoirs are Hup = 50 m and Hdown = 48 m, respectively. Two pressure sensors are placed at Node 1 and Node 2, respectively.
A transient event was generated by increasing the demand flow from 0 to 3 L/s in 0.5 s following a cos curve. Assuming the demand flow to be (a) Case 1.1 (from 0 to 3 L/s suddenly) or (b) Case 1.2 (zero), two EWC models were integrated into EKFs separately. Both Kalman filters with different assumptions of demand flow accurately predicted the pressure head at Node 5 (see Figure 2), indicating its ability to provide accurate real-time transient state estimation, even when subjected to sudden changes in demand.

4. Transient Data Assimilation: 51-Pipe Network

A larger-scale pipe network that contains 51 pipes is analysed. The pipe configuration shown in Figure 3 was employed for hydraulic transient modelling. The wave speed of all the pipes is assumed as 1000 m/s. The range of network parameters are [450, 994] m for the pipe lengths, [304.8, 1524] mm for the pipe diameters, and [0, 280] L/s for the nodal demands. Details of the network can be found in [6].
The transient is excited by halving the demand at Node 27 smoothly within a short time of Tv = 0.2 s. Three EKFs were performed with different random seeds. In Figure 4, the predicted heads at Node 25 for all three EKFs followed the ‘real’ hydraulic head values quite closely. The small discrepancies between the EKF estimations and the “real” measurements indicate the effectiveness and robustness of the proposed EKF-based approach.

5. Conclusions

The proposed approach integrated the EWC model into the EKF to estimate the transient state (pressure and flow) in pipe networks. The study’s outcomes demonstrated that the proposed method is capable of providing accurate, real-time transient state estimations, within both simple and complex pipe networks. A direction for further work is to validate the model’s applicability for real-world water distribution systems.

Author Contributions

Conceptualization, W.Z., J.Y. and A.Z.; methodology, W.Z. and J.Y.; resources, M.L; writing—original draft preparation, J.Y.; supervision, W.Z., N.C.D. and M.L.; project administration, M.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Australian Research Council via the Discovery Project (DP230101513).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Du, R. Wireless Sensor Networks in Smart Cities: The Monitoring of Water Distribution Networks Case. Ph.D. Thesis, KTH Royal Institute of Technology, Stockholm, Sweden, 2016. Volume 40. [Google Scholar]
  2. Jung, D.; Lansey, K. Water Distribution System Burst Detection Using a Nonlinear Kalman Filter. J. Water Resour. Plann. Manag. 2015, 141, 04014070. [Google Scholar] [CrossRef]
  3. Reddy, H.P.; Narasimhan, S.; Bhallamudi, S.M.; Bairagi, S. Leak Detection in Gas Pipeline Networks Using an Efficient State Estimator. Part-I: Theory and Simulations. Comput. Chem. Eng. 2011, 35, 651–661. [Google Scholar] [CrossRef]
  4. Ye, G.; Fenner, R.A. Kalman Filtering of Hydraulic Measurements for Burst Detection in Water Distribution Systems. J. Pipeline Syst. Eng. Pract. 2011, 2, 14–22. [Google Scholar] [CrossRef]
  5. Zeng, W.; Zecchin, A.C.; Lambert, M.F. Elastic Water Column Model for Hydraulic Transient Analysis of Pipe Networks. J. Hydraul. Eng. 2022, 148, 04022027. [Google Scholar] [CrossRef]
  6. Zecchin, A.C. Laplace-Domain Analysis of Fluid Line Networks with Applications to Time-Domain Simulation and System Parameter Identification. Ph.D. Thesis, University of Adelaide, Adelaide, Australia, 2010. [Google Scholar]
Figure 1. The 7-pipe network system with a demand node.
Figure 1. The 7-pipe network system with a demand node.
Engproc 69 00199 g001
Figure 2. The predicted pressure head at Node 5: (a) Case 1.1: assuming demand flow from 0 to 3 L/s; (b) Case 1.2: assuming demand flow to be zero.
Figure 2. The predicted pressure head at Node 5: (a) Case 1.1: assuming demand flow from 0 to 3 L/s; (b) Case 1.2: assuming demand flow to be zero.
Engproc 69 00199 g002
Figure 3. The 51-pipe network with 3 reservoirs, 51 edges, and 32 internal nodes [6].
Figure 3. The 51-pipe network with 3 reservoirs, 51 edges, and 32 internal nodes [6].
Engproc 69 00199 g003
Figure 4. The “real” pressure heads by EWC and estimated pressure heads at Node 25 by EKFs with different random seeds.
Figure 4. The “real” pressure heads by EWC and estimated pressure heads at Node 25 by EKFs with different random seeds.
Engproc 69 00199 g004
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.

Share and Cite

MDPI and ACS Style

Ye, J.; Zeng, W.; Lambert, M.; Zecchin, A.; Do, N.C. Hydraulic Transient Data Assimilation in Pipe Networks Using the Kalman Filter. Eng. Proc. 2024, 69, 199. https://doi.org/10.3390/engproc2024069199

AMA Style

Ye J, Zeng W, Lambert M, Zecchin A, Do NC. Hydraulic Transient Data Assimilation in Pipe Networks Using the Kalman Filter. Engineering Proceedings. 2024; 69(1):199. https://doi.org/10.3390/engproc2024069199

Chicago/Turabian Style

Ye, Jiawei, Wei Zeng, Martin Lambert, Aaron Zecchin, and Nhu Cuong Do. 2024. "Hydraulic Transient Data Assimilation in Pipe Networks Using the Kalman Filter" Engineering Proceedings 69, no. 1: 199. https://doi.org/10.3390/engproc2024069199

APA Style

Ye, J., Zeng, W., Lambert, M., Zecchin, A., & Do, N. C. (2024). Hydraulic Transient Data Assimilation in Pipe Networks Using the Kalman Filter. Engineering Proceedings, 69(1), 199. https://doi.org/10.3390/engproc2024069199

Article Metrics

Back to TopTop