Next Article in Journal
Investigation of Bluff Body Size Effects on Piezoelectric Performance Using Flow-Induced Vibration
Previous Article in Journal
Incorporating KPIs in the Quantification of Overall Efficiency of Rolling Stock of Railways
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

First- and Second-Order Sensitivities of Steady-State Solutions to Water Distribution Systems †

1
INRAE, AQUA Division, UR ETTIS, 50 Av. de Verdun, F-33612 Cestas, France
2
School of Architecture and Civil Engineering, University of Adelaide, Adelaide, SA 5005, Australia
3
School of Computer and Mathematical Sciences, University of Adelaide, Adelaide, SA 5005, Australia
4
3S Consult GmbH, 30827 Garbsen, Germany
*
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), 165; https://doi.org/10.3390/engproc2024069165
Published: 19 September 2024

Abstract

:
First-order approximations have been used with some success for criticality analysis; sensitivity analysis of physical networks, such as water distribution systems; and uncertainty propagation of model parameters. Certain limitations have been reported regarding the accuracy of the results, particularly when non-linearity is dominant. In this paper, we show how to efficiently derive the first- and second-order sensitivities with respect to variation in their parameters. This makes it possible to improve the first-order estimate when necessary. The method is illustrated on a small example system.

1. Introduction

Water distribution systems (WDSs) are complex and aging. They need to be protected and made more resilient to natural and man-made disasters. There are considerable preservation, health and safety, and sustainability issues at stake in being able to properly manage and understand the operation of such systems.
Modelling tools can be very useful for handling such complex systems and for making sustainable management and crisis response decisions. Nevertheless, this may require solving optimization problems using large hydraulic digital models and may prove impossible to solve due to the curse of dimensionality. In response, some authors have suggested (1) using first-order estimates (e.g., the graph Laplacian matrix) [1,2], or (2) using graph partitioning and reduced-order models [3,4] to make these problems tractable. Depending on the problem under consideration, sub-optimality or some kind of limitation may be reported, particularly when precision is required for decision-making and non-linearity is important.
In addition, uncertainty in the input parameters requires the digital model to be combined with real-time observations to reduce the uncertainty of the output. Consequently, three main challenges in real-time modeling are (1) reducing the computational time, (2) quantifying uncertainties, and (3) coupling numerical models with observations. The sensitivity of steady-state solutions to variations in the model parameters provides a way to solve the first two challenges [5,6,7].
In this research, we show how to derive the first- and second-order sensitivities of model outputs to variations in the parameters by solving linear systems additional to the global gradient algorithm solution. First, we derive explicit formulae for the first- and second-order sensitivities to the parameters. Next, we describe an efficient and low-cost implementation, which uses the Cholesky decomposition of the Schur matrix to calculate the sensitivities. Finally, an illustrative example is used to show the potential application of hydraulic modeling to water distribution networks.

2. Methods

The method consists of observing that the following general conservation form system can be used to calculate the first- and second-order sensitivities of q (flow rate) and h (head) with respect to the parameters
F q x y A h x y = x ,
A T q x y E h x y = y .
F = q ξ R n p , n p is the Jacobian of the head loss function   ξ ; A R n p , n j is the junction node-arc incidence matrix; E = h c R n j , n j is the Jacobian of the pressure outflow relationship (POR) function c (for the demand-driven modeling (DDM) case, E = 0 ); x R n p , n x and y R n j , n y are appropriate vectors or matrices that are specified in Table 1; and q x y are the flow-rate related quantities, h x y are the head-related quantities).
Indeed, system (1–2) is generic, as can be seen in Table 1. If we choose x = e and y = 0 n j , system (1–2) is the linearized system of pressure-driven modeling (PDM) equations, and q x y and h x y are the estimates of q and h when the head loss and POR models are linear. Likewise, if x = 0 n p , n j and y = d c , then q x y = d q and h x y = d h (see [7] for the derivation). Also, for differentiation with respect to   θ j = r j   or   D j   or   ε j / D j ( r j = the resistance factor; D j = the pipe diameter; ε j / D j = the relative roughness of pipe j), the first-order sensitivities with respect to θ are solutions of (1–2). Just choose x = θ ξ and y = 0 n j , n y (also derived in [7]).
We now consider double scalar differentiation with d m and then d n (respectively, θ m and then θ n ); system (1–2) can then be used to calculate the second-order sensitivities with appropriate choices of x and y, as shown in Table 1. The meaning behind this property is that the flows and heads with their derivatives share similar spatial structures or patterns.
Multiplying Equation (1) by A T F 1 and adding it to Equation (2) gives
h x y = A T F 1 A + E 1 ( A T F 1 x + y ) ,
It follows from (1) that
q x y = F 1 ( A h x y + x ) .
Equations (3) and (4) provide a solution template for a linearized estimate of q and h and the corresponding first-order and second-order sensitivities.
Equation (3) requires the solution of a symmetric matrix equation with the form
A T F 1 A + E z = w .
This is true for the calculation of all the sensitivities discussed here. If the sensitivities of the solutions to more than one parameter are required, then a significant computational economy can be made. Suppose a first solution is computed using the Cholesky factorization L L T = A T F 1 A + E . Sensitivity calculations for any other parameters can be solved with about 2 n 2 floating-point operations each rather than the full Cholesky cost of O n 3 / 6 if the same L factor is used with forward and backward substitutions. In addition, further savings can be made by exploiting the sparsity of the Cholesky factor.
The solution of Equations (3) and (4) in this paper was coded with Matlab 2023b. The first- and second-order sensitivities can be calculated for a specific component vector or selected values of interest. This is what we propose in the results. Meanwhile, it is possible to organize the calculation if we are interested in obtaining an overall view. For example, for the second-order sensitivities of q with respect to all the demands, there are nj symmetrical matrices V d k q , each with dimensions of n p × n j . Each matrix gives the second-order sensitivities of all the flows with respect to all the demands and one single demand. Thus, for example, the matrix for the sensitivities of flows q 1 ,   q 2 , , q n j to d k and all of d 1 , d 2 , , d n j has the following structure:
V d k q = 2 q 1 d k d 1 2 q 1 d k d k 1 2 q 1 d k 2 2 q 1 d k d k + 1 2 q 1 d k d n j 2 q 2 d k d 1 2 q 2 d k d k 1 2 q 2 d k 2 2 q 2 d k d k + 1 2 q 2 d k d n j 2 q n p d k d 1 2 q n p d k d k 1 2 q n p d k 2 2 q n p d k d k + 1 2 q n p d k d n j

3. Results

The network used to illustrate the application is shown in Figure 1. The Darcy–Weisbach head loss model and the one-side regularized Wagner POR model with a regularization parameter = 1/10 from [7] were used. The demand at node 1 was increased by 5, 10, 20, and 40 L/s. The second-order Taylor polynomial approximations to q and h around point d 1 are given by X d 1 + δ = X d 1 + X d 1 δ + 1 2 ! 2 X d 1 2 δ 2 . The results for the heads at the junction nodes and the flow rates are reported in Table 2. We can see the second-order estimates are not significantly different from the exact values in column 3.

4. Discussion and Conclusions

In this paper, the same generic conservative-form system is used to derive linearized estimates of the flow and head and the first-order and, for the first time, second-order sensitivities. The right-hand sides of the governing equations change appropriately. Explicit formulae are given, and the fact that the same Cholesky factor and sparse solution matrix are shared explains why significant savings can be made in the calculation. It is possible to extend the method to higher-order sensitivities.
The development presented in this paper is useful for assessing the probability distributions for link flow rates and nodal piezometric heads. Additionally, it permits Taylor approximation for q and h around known working points. This opens the way to solving difficult problems using quadratic approximation or to speeding up extended-period simulations by improving the initial guesses.

Author Contributions

Conceptualization and methodology, all authors; software and investigation, S.E. and O.P.; validation, S.E.; formal analysis, O.P., S.E., and J.W.D.; original draft preparation, O.P.; writing—review and editing, all; funding acquisition, O.P. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the French National Research Agency (ANR), grant number ANR-22-CE39-0010, project CoRREau (from 2024 to 2027).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Conflicts of Interest

Author Jochen W. Deuerlein was employed by the company 3S Consult GmbH. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

References

  1. Abraham, E.; Blokker, E.J.M.; Stoianov, I. Network Analysis, Control Valve Placement and Optimal Control of Flow Velocity for Self-Cleaning Water Distribution Systems. Procedia Eng. 2017, 186, 576–583. [Google Scholar] [CrossRef]
  2. Steffelbauer, D.B.; Deuerlein, J.; Gilbert, D.; Abraham, E.; Piller, O. Pressure-Leak Duality for Leak Detection and Localization in Water Distribution Systems. J. Water Resour. Plan. Manag. 2022, 148, 04021106. [Google Scholar] [CrossRef]
  3. Elhay, S.; Deuerlein, J.; Piller, O.; Simpson, A.R. Graph Partitioning in the Analysis of Pressure Dependent Water Distribution Systems. J. Water Resour. Plan. Manag. 2018, 144, 1–13. [Google Scholar] [CrossRef]
  4. Pecci, F.; Abraham, E.; Stoianov, I. Model Reduction and Outer Approximation for Optimizing the Placement of Control Valves in Complex Water Networks. J. Water Resour. Plan. Manag. 2019, 145, 04019014. [Google Scholar] [CrossRef]
  5. Fu, G.; Kapelan, Z.; Reed, P. Reducing the Complexity of Multiobjective Water Distribution System Optimization through Global Sensitivity Analysis. J. Water Resour. Plan. Manag. 2012, 138, 196–207. [Google Scholar] [CrossRef]
  6. Hutton, C.; Kapelan, Z.; Vamvakeridou-Lyroudia, L.; Savić, D. Dealing with Uncertainty in WDS Models: A Framework for Real-Time Modeling and Data Assimilation. J. Water Resour. Plan. Manag. 2014, 140, 169–183. [Google Scholar] [CrossRef]
  7. Piller, O.; Elhay, S.; Deuerlein, J.; Simpson, A. Local Sensitivity of Pressure-Driven Modeling and Demand-Driven Modeling Steady-State Solutions to Variations in Parameters. J. Water Resour. Plan. Manag. 2017, 143, 12. [Google Scholar]
Figure 1. Example system with 2 tanks (nodes 3 and 4), 2 junction nodes (nodes 1 and 2) and 3 pipes. Pipe lengths are 1000 m; diameters are 250 mm; pipe roughnesses are 0.25 mm; source heads are both 100 m; junction node elevations are all 0; initial demand at node 1 (and, respectively, node 2) is 60 L/s (resp., 50 L/s).
Figure 1. Example system with 2 tanks (nodes 3 and 4), 2 junction nodes (nodes 1 and 2) and 3 pipes. Pipe lengths are 1000 m; diameters are 250 mm; pipe roughnesses are 0.25 mm; source heads are both 100 m; junction node elevations are all 0; initial demand at node 1 (and, respectively, node 2) is 60 L/s (resp., 50 L/s).
Engproc 69 00165 g001
Table 1. The right-hand sides for system (1–2) and their application.
Table 1. The right-hand sides for system (1–2) and their application.
Applicationxy q x y h x y
Hydraulic state from the linearized system e a 0 n j qlinhlin
1st-order sensitivities with respect to demand 0 n p , n j d c d q d h
1 st - order   sensitivities   with   respect   to   θ , defined in b θ ξ 0 n j , n y θ q θ h
2nd-order sensitivities with respect to demand 2 ξ j q j 2 q j d m q j d n 2 c i h i 2 h i d m h i d n + E i i d i δ i n h i d m + δ i m h i d n 2 q j d m d n 2 h i d m d n
2nd-order sensitivities with respect to theta 2 ξ j q j 2 q j θ m q j θ n F j j r j r j θ n q j θ m + r j θ m q j θ n 2 c i h i 2 h i θ m h i θ n 2 q j θ m θ n 2 h i θ m θ n
a Vector e represents the energy available from the source and resource nodes. It is defined as e = A 0 h 0 . b where θ j is a characteristic parameter of pipe j, such as resistance factor, diameter, or relative roughness.
Table 2. First- and second-order estimates for the example network with a demand perturbation of 40 L/s.
Table 2. First- and second-order estimates for the example network with a demand perturbation of 40 L/s.
Nameh(d1)h(d1 + 40) X / d 1 2 X / d 1 2 1st order Est.Error in m2nd order Est.Error in m
Node 194.6489.72−0.099382−0.00122390.67−0.9589.690.03
Node 294.7090.71−0.089746−0.00045091.11−0.4090.75−0.04
q (d1)q (d1 + 40) X / d 1 2 X / d 1 2 1st order Est.Error in L/s2nd order Est.Error in L/s
Pipe 155.1476.940.5242180.00161776.110.8377.41−0.47
Pipe 2−4.86−23.06−0.4757820.001617−23.890.83−22.59−0.47
Pipe 3−54.86−73.06−0.4757820.001617−73.890.83−72.59−0.47
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

Piller, O.; Elhay, S.; Deuerlein, J.W.; Simpson, A.R. First- and Second-Order Sensitivities of Steady-State Solutions to Water Distribution Systems. Eng. Proc. 2024, 69, 165. https://doi.org/10.3390/engproc2024069165

AMA Style

Piller O, Elhay S, Deuerlein JW, Simpson AR. First- and Second-Order Sensitivities of Steady-State Solutions to Water Distribution Systems. Engineering Proceedings. 2024; 69(1):165. https://doi.org/10.3390/engproc2024069165

Chicago/Turabian Style

Piller, Olivier, Sylvan Elhay, Jochen W. Deuerlein, and Angus R. Simpson. 2024. "First- and Second-Order Sensitivities of Steady-State Solutions to Water Distribution Systems" Engineering Proceedings 69, no. 1: 165. https://doi.org/10.3390/engproc2024069165

Article Metrics

Back to TopTop