원시데이터 수집 시스템
선정목록으로

Applied Pipe Roughness Identification of Water Networks: Consideration of All Flow Regimes

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Stefan Kaltenbacher — Institute of Automation and Control, Graz University of Technology, Graz, Austria
  2. Martin Steinberger — Institute of Automation and Control, Graz University of Technology, Graz, Austria
  3. Martin Horn — Christian Doppler Laboratory for Model Based Control of Complex Test Bed Systems, Institute of Automation and Control, Graz University of Technology, Graz, Austria
DOI
10.1109/tcst.2022.3193786
저널
IEEE Transactions on Control Systems Technology
발행년도
2022
발행기관
Institute of Electrical and Electronics Engineers
피인용수
4
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/tcst.2022.3193786
토픽
High voltage insulation and dielectric phenomena
OpenAlex ID
W4289656085

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

This article presents a mathematically rigorous unification of the pipe roughness identification problem of water distribution networks considering all Reynolds regimes, i.e., laminar, turbulent, as well as transitional flow regimes. Although the identification procedure is based on steady-state hydraulic network equations, the identified roughness parameters are also key for dynamic models that can be used for model-based controller and observer designs. While a three-cycle network simulation example serves to illustrate the presented problem formulation and solution in an extensive manner, the application on a real-world drinking water network is in focus. In addition, vital aspects, such as topology simplifications of the underlying network and the importance of the generation and selection of independent measurement sets, are addressed. We apply root-finding methods instead of methods based on optimization and thereby show that the pipe roughness identification problem may actually be applicable to identify as well as locate leakages.

본문 98,645자

본문 펼치기
## Applied Pipe Roughness Identification of Water Networks: Consideration of All Flow Regimes Stefan Kaltenbacher, Martin Steinberger, _Member,_ _IEEE_, and Martin Horn, _Member,_ _IEEE_ _Abstract_ —This article presents a mathematically rigorous unification of the pipe roughness identification problem of water distribution networks considering all Reynolds regimes, i.e., laminar, turbulent, as well as transitional flow regimes. Although the identification procedure is based on steady-state hydraulic network equations, the identified roughness parameters are also key for dynamic models that can be used for model-based controller and observer designs. While a three-cycle network simulation example serves to illustrate the presented problem formulation and solution in an extensive manner, the application on a real-world drinking water network is in focus. In addition, vital aspects, such as topology simplifications of the underlying network and the importance of the generation and selection of independent measurement sets, are addressed. We apply rootfinding methods instead of methods based on optimization and thereby show that the pipe roughness identification problem may actually be applicable to identify as well as locate leakages. _Index_ _Terms_ —Laminar flow, pipe roughness identification, roughness calibration, transitional flow, turbulent flow, water distribution networks. I. INTRODUCTION RINKING water networks are of utmost importance for society all over the world. However, the share of # D nonrevenue water, i.e., water that never reaches a registered consumer, accounts for 25%–50% of the total amount of supplied water when put into a global measure (and up to 75% in the emerging markets) as stated by the International Water Association [1]. Consequently, the potential contributions of control system technologies to water distribution systems are manifold and cover, e.g., the coordinated control of distributed actuators (valves and pumps), and the detection of leakages in the water networks [2]. The basis for advanced techniques is usually formed by mathematical modeling of the underlying distribution network. In the literature, two classical modeling approaches are widely used. 1) A description based on the Navier–Stokes equations allows to account for the full transient case [3] with Manuscript received 21 November 2021; revised 29 March 2022; accepted 18 July 2022. Date of publication 3 August 2022; date of current version 23 February 2023. Recommended by Associate Editor M. Abbaszadeh. _(Corresponding_ _author:_ _Martin_ _Steinberger.)_ Stefan Kaltenbacher and Martin Steinberger are with the Institute of Automation and Control, Graz University of Technology, 8010 Graz, Austria (e-mail: s.kaltenbacher@gmail.com; martin.steinberger@tugraz.at). Martin Horn is with the Christian Doppler Laboratory for Model Based Control of Complex Test Bed Systems, Institute of Automation and Control, Graz University of Technology, 8010 Graz, Austria (e-mail: martin.horn@tugraz.at). Color versions of one or more figures in this article are available at https://doi.org/10.1109/TCST.2022.3193786. Digital Object Identifier 10.1109/TCST.2022.3193786 the goal to model effects as detailed as possible. The underlying partial differential equations are, e.g., solved by the method of characteristics or the method of finite differences (see [3]). 2) A second modeling approach uses the relations for the conservation of mass and energy to deduce a description of the main properties under steady-state conditions, as, for example, described in [2]. The latter approach is particularly useful for networks with a large number of pipes and nodes to keep the modeling complexity low. Consequently, the steady-state modeling is well suited for tasks such as pressure control, calibration, consumer demand prediction, and leakage detection in large hydraulic networks and is, thus, also implemented in standard simulation tools for water distribution networks such as EPANET [4], [5] provided by the United States Environmental Protection Agency. In both cases, pipe roughnesses and pressure head losses are essential for the mathematical description of the water network because the water flow distributes along the networks’ branches according to the principle of least actions. The corresponding pressure drop due to friction at the pipe’s inner surface strongly depends on the flow regime, i.e., on the laminar, turbulent, or transitional (intermediate) regime with the corresponding flow dynamics, see [2], [6], [7] for details as well as [3], [8] for additional aspects of steady- and unsteady-state friction losses, which are usually neglected. Kaltenbacher _et_ _al._ [9], [10] formulated dynamic models based on the rigid water column theory. This can be seen as an extension of steady-state relations mentioned in 2) to account for the dynamics in pipe flows, depending on the friction along the pipes (head losses), the pressure heads at the nodes (also at source nodes), and the actual nodal consumption. However, the modeling complexity is still low when compared to the approaches in 1) since ordinary differential equations are utilized for the mathematical description of the fluid flows and pressure heads in the network. Pressure-driven [9] and demand-driven versions [10] exist, depending on how consumer nodes are handled in the mathematical formulation (see [11] for an in-depth description). It is also shown in [10] that the dynamical model’s equilibrium is equivalent to the steady-state equations used in EPANET. For dynamical models as well as for steady-state models, the identification of the friction/roughness coefficients is crucial since it provides the foundation of model-based techniques for the control and observation of nodal pressures and flows [7], [12]–[14], [15]. For example, Kumar and Kumar [16] compared different controllers for water distribution networks and This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/ Terra _et_ _al._ [17] presented an _H_ ∞ controller design for such applications. It is shown in [11] that an observer for the considered water distribution networks specified by the pressure-driven dynamical model exists if the pressure head losses along pipes (and thus also the pipe roughnesses/friction parameters) and the nodal consumption are known. The analysis is based on the concept of the strong zero detectability (see [18], [19], and references therein). In the linear case, strong zero detectability is equivalent to strong <sup>∗</sup> detectability in the sense of Hautus [20]. As a result, the identification of the roughnesses is also necessary for techniques of fault (or leakage) detection and isolation, where the actual behavior of the system under investigation is compared to the nominal one. However, observer design and fault detection techniques are not the focus of this actual work. To sum up, the identification of pipe roughnesses (and consequently also the friction losses) has a significant role in many domains of control system technologies. Nevertheless, the identification of hydraulic friction parameters is especially challenging because only a very limited number of sensors is present. A vast amount of sensor data is important, e.g., for the localization of leakages that may have a similar impact on the steady-state behavior as increased friction parameters [21]. A positive aspect of the underlying problem is that the roughnesses, i.e., the pressure head loss coefficients, change very slowly over time in real applications. As a result, real-time requirements are not the main issue and the reidentification of the parameters can be triggered if, e.g., new independent measurement sets are available. This is detailed for the real-world drinking water system described in the following. One way to tackle the identification task is to formulate an optimization problem with a certain (e.g., quadratic) cost to be minimized subject to constraints provided by the model description as, e.g., covered in early works as in [22] and later on in [2]. The underlying steady-state equations for the turbulent region are often not used directly but collapsed into a scalar relation in such approaches. As a result, the components of the gradients of the cost function are not independent any more as it is the case for the original steady-state equations, which makes it harder to find the global minimum. Consequently, solvers, e.g., based on genetic algorithms, are widely applied [23], [24]. The main goal for such algorithms is to reproduce certain signals of interest in the network rather than the true pipe roughnesses. This is often referred to as calibration of water networks in the literature (see [23] and references therein). In [25], different approaches to directly use the underlying steady-state equations instead of formulating an optimization problem are presented. A comparison of Newton–Raphsontype approaches and successive approximation approaches led to similar results for the considered algorithms, where only the turbulent region is considered. This work was one of the starting points for the present work. In [26], we primarily focus on the formulation of the problem and deduce concrete conditions that allow to uniquely solve the identification task. Instead of merely calibrating the network, the emphasis is on the identification of the true pipe roughnesses and not measured pressure heads. A set of assumptions [26, Table 1] has thereby been introduced and solution algorithms have been proposed in [26] and extended in [27]. The roughness identification problem formulation in those papers assumes that each pipe flow in the network has to be in the turbulent regime. This restriction is overcome in this present article using the results of Kaltenbacher _et_ _al._ [28], where they mathematically formulate the transitional Reynolds region between laminar and turbulent flow in steady state. The existence of an explicit function of the steady-state water flow _γ_ in the transitional region [28], satisfying the boundary and gradient conditions [28, eqs. (i)–(iv)] to the other flow regimes, is exploited in the following. In particular, the satisfaction of gradient conditions at the boundaries enables one to propose a root-finding algorithm for the roughness parameter identification task to autonomously decide whether a pipe flow (in the corresponding measurement set) is in the laminar, turbulent, or even transitional regime. In contrast, EPANET applies a simple cubic interpolation for the transitional region [29] only, resulting in nonsmooth transitions (particularly with respect to the roughnesses) between the flow regions as explained in [28] and does not provide any possibility to identify the parameters. The authors’ previous work about the smooth description of the transitional flow together with the introduced algorithms makes it possible to come up with an advanced identification approach for real water distribution networks, where the actual flow regimes in the considered pipes can be reconstructed. The present work provides the following main contributions. 1) A roughness identification procedure is introduced that allows to account for all three, i.e., laminar, transitional, and turbulent, flow regimes. This is essential for real-world applications in which flow directions are not known _a_ _priori_ in cycled networks. Hence, all flow regimes might be traversed in a smooth way in the course of the solution finding the pipe roughnesses and not measured pressure heads. 2) Two algorithms, based on Newton’s method and the tensor approach, are introduced for the underlying identification task. A simulation example of a water network with low complexity is presented to provide insights to the algorithms. 3) The applicability to the real-world drinking water distribution network of Graz-Ragnitz, Austria, is shown. It illustrates the steps to follow for the roughness parameter identification by utilizing the proposed root-finding approach considering all flow regimes. Practical issues related to topology simplifications of the considered water distribution network as well as the importance of the generation and selection of independent measurement sets are discussed in detail. Consequently, the proposed identification procedure forms the basis for advanced model-based control techniques and fault detection and isolation approaches, which consider all three flow regimes. _Notation:_ Vectors and matrices are highlighted bold and italic and are symbolized using lower and upper case letters, respectively. Symbols 1 _x_ and 0 _x_ represent a matrix or vector filled with ones or zeros, i.e., 1 3 = [1 1 1] <sup>_T_</sup> and 0 0 0 0 2×3 = 0 0 0 . Size _x_ is only provided if it is not clear where _A_ ∈ Z{−1 _,_ 0 _,_ 1} <sup>denotes</sup> <sup>the</sup> <sup>incidence</sup> <sup>matrix</sup> <sup>related</sup> <sup>to</sup> the inner nodes I. In contrast, the complete incidence matrix _(n j_ + _ns_ _)_ × _n_ [− _A_ <sup>_T_</sup> _C_ <sup>˜</sup> _s_ ] <sup>_T_</sup> ∈ Z{−1 _,_ 0 _,_ 1} also considers source nodes S with _n j_ × _n_ where _A_ ∈ Z from the context. Empty entries in block matrices can be filled with 0 _x_ of appropriate size _x_ . Operator [ _A_ ] _i j_ = _Ai j_ applied on _A_ ∈ K <sup>_n_</sup> <sup>×</sup> <sup>_m_</sup> of a number field K, e.g., K = R or K = C, selects element _Ai j_ of matrix _A_ in row _i_ ∈{1 _,_ 2 _, . . ., n_ } and column _j_ ∈{1 _,_ 2 _, . . ., m_ }. The unity vector _e_ _i_ with _i_ ∈ N is defined such that _e_ _i_ = [0 - · · 0 1 0 - · · 0] <sup>_T_</sup> with appropriate size where [ _e_ _i_ ] _j_ = 0 ∀ _i_ ̸ = _j_ and [ _e_ _i_ ] _i_ = 1. In the set of integers Z{−1 _,_ 0 _,_ 1}, the subscript {−1 _,_ 0 _,_ 1} emphasizes that a subset {−1 _,_ 0 _,_ 1} instead of all integers is used. Rounding to the next higher integer is denoted by the ceil operator ⌈· . The definition of derivatives of scalar, vector, or matrix functions with respect to vectors follow [27, Appendix A]. The Hadamard product [26], [30] of _A_ _,_ _B_ ∈ C <sup>_n_</sup> <sup>×</sup> <sup>_m_</sup> is defined by [ _A_ _B_ ] _i j_ = _Ai j Bi j_ for all 1 ≤ _i_ ≤ _n_ and 1 ≤ _j_ ≤ _m_ . It is also utilized to show elementwise exponentiations in a more compact form, e.g., [ _A_ <sup>2</sup> ] _i j_ = _A_ <sup>2</sup> _i j_ <sup>and</sup> <sup>[</sup> <sup>_A_</sup> <sup>1</sup> <sup>_/_</sup> <sup>2]</sup> <sup>_i j_</sup> <sup>=</sup> <sup>_A_</sup> _i j_ <sup>1</sup> <sup>_/_</sup> <sup>2</sup> for all 1 ≤ _i_ ≤ _n_ and 1 ≤ _j_ ≤ _m_ . Inversions are written as [ _A_ <sup>−1</sup> ] _i j_ = _A_ <sup>−</sup> _i j_ <sup>1,</sup> <sup>where</sup> <sup>[</sup> <sup>_A_</sup> <sup>]</sup> <sup>_i j_</sup> <sup>=</sup> <sup>_Ai j_</sup> <sup≯</sup> <sup>= 0</sup> <sup>∀</sup> <sup>_i,_</sup> <sup>_j_</sup> <sup>.</sup> _(n j_ + _ns_ _)_ × _n_ _(n j_ + _ns_ _)_ × _n_ [− _A_ <sup>_T_</sup> _C_ <sup>˜</sup> _s_ ] <sup>_T_</sup> ∈ Z{−1 _,_ 0 _,_ 1} also considers source nodes S with respect to _C_ <sup>˜</sup> _s_ . Influent flows to inner nodes I are counted positively and effluent flows to inner nodes I are counted negatively in (2). However, flows effluent of source nodes S are counted positively for _C_ <sup>˜</sup> _s_ because they are influent to the I inner nodes by definition. Examples how to build those matrices can be found, e.g., in [26, Secs. 2 and 6]. One also has to account for _nc_ = _n_ - _n j_ linear independent cycles in the network’s graph by considering the cycle matrix One also has to account for _nc_ = _n_ _(n_ - _n j_ _)_ × _n_ _S_ ∈ Z _S_ ∈ Z{−1 _,_ 0 _,_ 1} (see [26, Sec. 2]). If [26, Assumption 1] applies, cycle matrix _S_ and the transposed incidence matrix _A_ <sup>_T_</sup> are orthogonal, i.e., _SA_ <sup>_T_</sup> = 0, where rank _(_ _S_ _)_ = _n_ - _n j_ . _B._ _Colebrook–White’s_ _Turbulent_ _Flow_ <sup>2</sup> _i j_ <sup>and</sup> <sup>[</sup> <sup>_A_</sup> <sup>1</sup> <sup>_/_</sup> <sup>2]</sup> <sup>_i j_</sup> <sup>=</sup> <sup>_A_</sup> _i j_ <sup>1</sup> <sup>_/_</sup> <sup>2</sup> Turbulent pipe friction is considered via the Darcy–Weisbach formula together with Colebrook–White’s implicit friction factor for a Reynolds number of Re ≥ 4000 (see [26]). Minor losses are neglected [26, Assumption 3] for the actual problem formulation. The inversion of the steady-state hydraulic network [26, Assumption 6] relations with respect to the pipe parameter to be identified _ϵ_ ∈ R <sup>_n_</sup> ≥0 yields <sup>−</sup> _i j_ <sup>1,</sup> <sup>where</sup> <sup>[</sup> <sup>_A_</sup> <sup>]</sup> <sup>_i j_</sup> <sup>=</sup> <sup>_Ai j_</sup> <sup≯</sup> <sup>= 0</sup> <sup>∀</sup> <sup>_i,_</sup> <sup>_j_</sup> <sup>.</sup> II. PRELIMINARIES This section summarizes preliminary definitions and relations relevant for the identification problem. Details can be found in [26] and [27]. _A._ _Network_ _Hydraulics_ One distinguishes between I = {1 _,_ 2 _, . . ., n j_ } inner nodes/vertices and S = { _n j_ + 1 _, . . ., n j_ + _ns_ } source nodes of the network, which is represented by a connected graph [26, Assumption 1]. The intersection I ∩ S = {} is empty and the combination I ∪ S = N = {1 _,_ 2 _, . . ., n j_ + _ns_ } yields the entire set N of all nodes. Source nodes characterize nodes, where the associated pressure heads [ _h_ _s_ ] _i_ = _h(i_ + _n j_ _)_ for _i_ = 1 _,_ 2 _, . . ., ns_ (in m) are known, as it is the case for reservoirs and pumps. Vector [ _h_ ] _i_ = _hi_ ∈I (in m) combines all nodal pressure heads at the inner nodes. They can be split into _n p_ (out of _n j_ ) measured heads | _�h_ | 2 _Q_ = _ft_ _(ϵ, �h)_ = −sign _(�h)_ ln _(_ 10 _)_ ⎛ 2 _Q_ = _ft_ _(ϵ, �h)_ = −sign _(�h)_ ln _(_ 10 _)_ ⎞ _k_ _ϵ_ _k_ 3 _._ 7 _d_ <sup>+ 2</sup> <sup>_._</sup> <sup>51</sup> <sup>_η_</sup> _ρ_ <sup>_A_</sup> _d_ | _�h_ | _ℓ(ϵ,�h)_ _,_ for Re ≥ 4000 _._ (3) ⎟⎟⎟⎟⎠ × ln ⎜⎜⎜⎜⎝ _ϵ_ 3 _._ 7 _d_ <sup>+ 2</sup> <sup>_._</sup> <sup>51</sup> <sup>_η_</sup> _ρ_ <sup>_A_</sup> _d_ It expresses the turbulent flow in each pipe P as a function of the corresponding roughness _ϵ_ and the head loss _�h_ . Please note that _ϵ, �h_, pipes diameter _d_, cross section _A_, _k_ = _(l/(_ 2 _dgA_ <sup>2</sup> _))_, and length _l_ may differ for each individual pipe. The pipe indices are omitted in (3) to improve readability. The gravitational acceleration is denoted by _g_ ≈ 9 _._ 81 m/s <sup>2</sup> . The water density _ρ_ and the dynamic water viscosity _η_ are assumed to be constant although they may vary with temperature. _C._ _Laminar_ _Flow_ A smooth distribution of the velocity profile over the pipe’s cross-sectional area can be seen in the laminar flow condition. Applying the relation of Hagen–Poiseuille for the laminar friction factor, one obtains the laminar flow _n p_ × _n j_ - _T_ ∈ Z{0 _,_ 1} (1) _y_ _h_ = _C_ _h_ _h_ _,_ _C_ _h_ = - _e_ _p_ 1 _e_ _p_ 2 - · · _e_ _pn p_ and not measured heads _h_ _N_ = _C_ ¯ _h_ _h_ with matrix _C_ _h_ = _(n j_ - _n p)_ × _n j_ [ _e_ ¯ _p_ 1 _e_ ¯ _p_ 2 - · · _e_ ¯ _pn j_ - _n p_ ] <sup>_T_</sup> ∈ Z{0 _,_ 1} and its complemen _(n j_ - _n p)_ × _n j_ [ _e_ ¯ _p_ 1 _e_ ¯ _p_ 2 - · · _e_ ¯ _pn j_ - _n p_ ] <sup>_T_</sup> ∈ Z{0 _,_ 1} and its complemen tary part _C_ ¯ _h_ consists of unity vectors _e_ _i_ ∈ Z _n_ {0 _j,_ 1} <sup>with</sup> tary part _C_ ¯ _h_ consists of unity vectors _e_ _i_ ∈ Z _n_ {0 _j,_ 1} <sup>with</sup> indices _i_ ∈ _P_ = { _p_ 1 _, p_ 2 _, . . ., pn p_ } ⊆ I and _i_ ∈ _P_ ¯ = { ¯ _p_ 1 _,_ _p_ ¯2 _, . . .,_ _p_ ¯ _n j_ - _n p_ } ⊆ I, respectively, while respecting _P_ ∩ _P_ ¯ = {} and _P_ ∪ _P_ ¯ = I. As a result, _C_ _h_ <sup>_T_</sup> <sup>_C_</sup> <sup>_h_</sup> <sup>+</sup> <sup>_C_</sup> <sup>¯</sup> _hT_ <sup>_C_</sup> <sup>¯</sup> <sup>_h_</sup> <sup>=</sup> <sup>_I_</sup> <sup>_n_</sup> _j_ <sup>has</sup> to hold (see [10, Lemma 1]). In addition, the geographical elevation at each inner node [ _z_ ] _i_ = _zi_ ∈I (in m) has to be considered such that the source (pressure) heads _h_ _s_ are increased by the nodal elevation at the corresponding source nodes S. _d_ <sup>2</sup> _gA_ _,_ for Re ≤ 2000 (4) _l_ _h_ <sup>_T_</sup> <sup>_C_</sup> <sup>_h_</sup> <sup>+</sup> <sup>_C_</sup> <sup>¯</sup> _ρ_ _Q_ = _w�h_ with _w_ = <sup>1</sup> 32 _η_ _P_ ¯ = {} and _P_ ∪ _P_ ¯ = I. As a result, _C_ _h_ <sup>_T_</sup> The nodal consumption [ _q_ ¯ ] _i_ = _qi_ ∈I actually is volumetric flow rates (in m <sup>3</sup> /s) and is a linear combination of P = {1 _,_ 2 _, . . ., n_ } edge/pipe flows (i.e., volumetric flow rates) symbolized by [ _x_ _Q_ ] _i_ = _Qi_ ∈P so that _Ax_ _Q_ = _q_ ¯ (2) which is an exact mathematical result stemming from the fluid equations of motion [6]. _D._ _Transitional_ _Flow_ The authors derived an explicit function [28, Eq. (14) and (43)] <sup>1</sup> _Q_ = _γ (ϵ, �h),_ for 2000 _<_ Re _<_ 4000 (5) 1Please mind that the order of the arguments in function _γ (ϵ, �h)_, i.e., _ϵ, �h_, has been changed compared to [28]. depending on the pipe’s roughness _ϵ_ and the head loss _�h_ along the pipe, which not only satisfies the boundary conditions to the turbulent and laminar flow but also the corresponding gradients to a sufficient degree of accuracy in the physical relevant range where the relative roughness remains between 0 ≤ _ϵ/d_ ≤ 5% according to the Moody chart. Detailed instructions to obtain _γ_ can be found in [28, Sec. 6] and are not included here due to space limitations. Using abbreviation _b_ = 4000 _(Aη/ρd)_, the boundary from laminar to transitional flow is located at _�h_ = _b/w_ and thus constant over _�h_ and _ϵ_, whereas the boundary from the transitional to turbulent flow is described by the curve _�h_ = q _(ϵ)_ by means of function q : [0 _,_ 0 _._ 05 × _ϵ/d_ ] → R≥0. This curve satisfies Re = <sup>|</sup> <sup>_Q_</sup> <sup>|</sup> <sup>_ρd_</sup> _Aη_ (3)= | _ft_ _(ϵ, �h)_ | <sup>_ρd_</sup> (6) _Aη_ <sup>= 4000</sup> _q_ ¯ <sup>_(i)_</sup> along the measurement sets _i_ ∈ M, where the hydraulic network has to be in steady state [26, Assumption 6]. In summary, the following holds. _Assumption_ _1_ _(Properties_ _of_ _Network_ _and_ _Measurements):_ It is assumed that the following conditions hold. 1(a) The network’s graph is connected and has no self-loops. 1(b) The hydraulic friction functions are continuous and strictly monotonically increasing. 1(c) Minor losses are negligible. 1(d) Pipe dimensions, source pressure, and consumption are known. 1(e) Also, a sufficient number of independent measurement sets is available. 1(f) Those measurements are in (hydraulic) steady state. 1(g) Mean-free, white measurement noise with a magnitude smaller than the head loss along each pipe is considered. All assumptions related to the identification problem are more detailed in [26, Table 1], where the same numbering is used. Assumptions 1(a), 1(b), 1(d), and 1(g) are not very restrictive and Assumption 1(c) is usually presumed in calibration methods. However, providing steady-state measurements [Assumption 1(f)] might be challenging in real applications with a large number of pipes. Hence, the proposed identification procedure should be successively applied to different sections of a water distribution network. This is possible by closing valves to isolate a specific section of the network as explained for a real water distribution system in Section VI. The most challenging assumption to be fulfilled is Assumption 1(e), which is related to the number of independent measurement sets. To satisfy Assumption 1(e), additional outflows of the water distribution network can be initiated by using hydrants (which are distributed over the network) to obtain enough independent measurement sets in a steady state (see Section VI for details). III. PROBLEM STATEMENT CONSIDERING ALL FLOW REGIMES In this section, the overall parameter identification problem is formulated. We thereby distinguish flow regimes for individual pipes combined in vectors for all _�h_ and _ϵ/d_ ∈[0 _,_ 5%]. Using abbreviation _a_ = 4000 _(Aη/ρd)_, it can be shown that _ft_ _(ϵ,_ q _(ϵ))_ = _ft_ _(_ q <sup>−1</sup> _(�h), �h)_ ≈ _a_ (7) for all _�h_ and _ϵ/d_ ∈[0 _,_ 5%] with _�h_ = q _(ϵ)_ = _(_ q0 _(ϵ_ + q1 _))_ <sup>4</sup> <sup>_/_</sup> <sup>7</sup> (8) utilizing parameters q0 _,_ q1 ∈ R that are determined as indicated in [28, Sec. 6]. _E._ _Combined_ _Flow_ Given (3)–(8) while using abbreviation _b_ = 2000 _(Aη/ρd)_, the steady-state flow through the pipe can be explicitly expressed by ⎧ ⎪⎨ ⎪⎩ _w_ | _�h_ | _,_ _�h_ ≤ _b/w_ _γ (ϵ,_ | _�h_ | _),_ _b/w < �h_ _<_ q _(ϵ)_ _ft_ _(ϵ,_ | _�h_ | _),_ _�h_ ≥ q _(ϵ)._ _Q(ϵ, �h)_ = sign _(�h)_ (9) Function (9) is central for the considered roughness identification problem. The mathematical descriptions in the laminar and turbulent flow regime have been validated separately in the literature. In the laminar flow regime, the results are exact representations based on dynamic fluid equations (partial differential equations) as, e.g., detailed in [2] and [3]. The equations by Colebrook–White have been validated for the turbulent region as stated, for example, in [28]. It was shown in [28] for the transitional water flow that the introduced mathematical description improves the existing formulations (e.g., by using cubic functions as in [4]) with respect to the gradient on the boundaries to the laminar and turbulent regime. _F._ _Network_ _and_ _Sensor_ _Configuration_ In order to identify a large number of unknown roughnesses _ϵ_ ∈ R <sup>_n_</sup> ≥0 <sup>and</sup> <sup>the</sup> <sup>not-measured</sup> <sup>pressure</sup> <sup>heads</sup> <sup>_h_</sup> <sup>_(_</sup> _N_ <sup>_i)_</sup> <sup>∈</sup> <sup>R</sup> _n_ ≥ _j_ 0− _n p_ (10a) [ _ϵ_ ] _j_ _,_ [ _�_ _h_ <sup>_(i)_</sup> ] _j_ [ _f_ _t_ _(_ _ϵ_ _, �_ _h_ <sup>_(i)_</sup> _)_ ] _j_ [ _γ_ _(_ _ϵ_ _, �_ _h_ <sup>_(i)_</sup> _)_ ] _j_ [ _w_ ] _j_ (3)= _ft, j_ (4)= 1 _ρ_ 32 _η_ (5)= _γ j_ �[ _ϵ_ ] _j_ _,_ [ _�_ _h_ _(i)_ ] _j_ (10b) _d_ <sup>2</sup> _j_ <sup>_gA j_</sup> _l j_ (10c) _ϵ_ ∈ R <sup>_n_</sup> ≥0 <sup>and</sup> <sup>the</sup> <sup>not-measured</sup> <sup>pressure</sup> <sup>heads</sup> <sup>_h_</sup> <sup>_(_</sup> _N_ <sup>_i)_</sup> <sup>∈</sup> <sup>R</sup> _n_ ≥ _j_ 0− _n p_ for all _i_ ∈ M = {1 _,_ 2 _, . . ., nm_ }, several sets of linear independent measurements [26, Assumption 5] denoted by M are necessary. The minimal number of measurements is - _nm,_ min = _n_ _/n p_ [26, eq. (14)] leading to as many equations for all _j_ ∈ P and _i_ ∈ M to specify the turbulent flow (10a), the transitional flow (10b), and the proportionality factor (10c) for the laminar flow for all pipes. Entities _γ j_ and _ft, j_ did receive a dedicated index in (10) to highlight that all relations in (10) involve parameters that also vary along P. Also, note that _γ_ _(_ _ϵ_ _, �_ _h_ <sup>_(i)_</sup> _)_ has to be replaced with sign _(�_ _h_ <sup>_(i)_</sup> _)_ _γ_ _(_ _ϵ_ _,_ | _�_ _h_ <sup>_(i)_</sup> | _)_ for negative _�_ _h_ <sup>_(i)_</sup> (see [28, Remark 2]). One has to ensure that each pipeflow is unique among each measurement set. Hence, the corresponding sets of pipe flow indices <sup>_n_</sup> ≥0 <sup>and</sup> <sup>the</sup> <sup>not-measured</sup> <sup>pressure</sup> <sup>heads</sup> <sup>_h_</sup> <sup>_(_</sup> _N_ <sup>_i)_</sup> <sup>_(_</sup> _N_ <sup>_i)_</sup> <sup>∈</sup> <sup>R</sup> (11a) ��� | _�_ _h_ <sup>_(i)_</sup> | _j_ <sup>≥</sup> <sup>_(_</sup> <sup>q0</sup> <sup>_, j_</sup> <sup>_(ϵ j_</sup> <sup>+ q1</sup> <sup>_, j_</sup> <sup>_))_</sup> <sup>4</sup> <sup>_/_</sup> <sup>7�</sup> M are necessary. The minimal number of measurements is - _nm,_ min = _n_ _/n p_ [26, eq. (14)] leading to as many equations as unknowns. Linear independency can be achieved by the variation of the source heads _h_ _s_ <sup>_(i)_</sup> <sup>and/or the nodal consumption</sup> _n_ _/n p_ _j_ ∈ P _t_ 1 <sup>_(i)_</sup> 1 <sup>_(i), t_</sup> 2 <sup>_(i), . . ., t_</sup> _n_ <sup>_(i(_</sup> _t_ <sup>_i))_</sup> _s_ <sup>_(i)_</sup> <sup>and/or the nodal consumption</sup> _T_ <sup>_(i)_</sup> = = _t_ _j_ <sup>_< (_</sup> <sup>q0</sup> <sup>_, j_</sup> <sup>_(ϵ j_</sup> <sup>+ q1</sup> <sup>_, j_</sup> <sup>_))_</sup> <sup>4</sup> <sup>_/_</sup> <sup>7�</sup> _G_ <sup>_(i)_</sup> = = _L_ <sup>_(i)_</sup> = _j_ ∈ P _j_ ∈ P One does not have to take the flow regime case separation into account explicitly, and the consideration of matrices _R_ _l_ <sup>_(i)_</sup> _l_ <sup>_(i),_</sup> <sup>_R_</sup> _γ_ <sup>_(i)_</sup> _g_ 1 <sup>_(i),_</sup> - ��� _b j_ _/w j_ _<_ | _�_ _h_ <sup>_(i)_</sup> | _nγ_ - ��� | _�_ _h_ <sup>_(i)_</sup> | 1 <sup>_(i), g_</sup> 1 <sup>_(i), . . ., g_</sup> _n_ <sup>_(i(_</sup> _γ_ <sup>_)i)_</sup> = _γ_ <sup>_(i),_</sup> <sup>_R_</sup> _t_ <sup>_(i)_</sup> _j_ <sup>≤</sup> <sup>_b j_</sup> <sup>_/w j_</sup> (11b) _l_ 1 <sup>_(i)_</sup> 1 <sup>_(i),_</sup> <sup>_l_</sup> 2 <sup>_(i), . . .,_</sup> <sup>_l_</sup> _n_ <sup>_(i(_</sup> _L_ <sup>_i))_</sup> _γ_ _L_ (11c) _R_ _l_ <sup>_(i),_</sup> <sup>_R_</sup> _γ_ <sup>_(i),_</sup> <sup>_R_</sup> _t_ <sup>_(i)_</sup> is sufficient. The consideration of all flow regimes facilitates the transition between laminar and turbulent flow regimes in the solving of problem _�_ (14). This allows individual pipe flows in P, in principle, to never become turbulent (or even transitional) in any of the _i_ ∈ M measurement sets. Hence, the following assumption is imposed in addition to Assumption 1. _Assumption_ _2:_ All individual pipe flows [ _x_ <sup>_(_</sup> _Q_ <sup>_i)_</sup> <sup>]</sup> <sup>_j_</sup> <sup>must</sup> <sup>at</sup> least once be in the turbulent regime in any of the _i_ ∈ M measurement sets, i.e., ∃ _i_ ∈ M | _t_ <sup>_(i)_</sup> <sup>(11a)</sup> = _j_ ∈ _T_ <sup>_(i)_</sup> ∀ _j_ ∈ P. In the following, numerical algorithms are introduced to solve (14) while incorporating the different flow regimes. have to fulfill _T_ <sup>_(i)_</sup> ∩ _G_ <sup>_(i)_</sup> = {} ∧ _T_ <sup>_(i)_</sup> ∩ _L_ <sup>_(i)_</sup> = {} ∧ _G_ <sup>_(i)_</sup> ∩ _L_ <sup>_(i)_</sup> = {} _, T_ <sup>_(i)_</sup> ∪ _G_ <sup>_(i)_</sup> ∪ _L_ <sup>_(i)_</sup> = P ∀ _i_ ∈ M to separate the flow vector [ _x_ <sup>_(_</sup> _Q_ <sup>_i)_</sup> <sup>]</sup> <sup>_j_</sup> <sup>=</sup> <sup>_Q(_</sup> _j_ <sup>_i)(ϵ, �h)_</sup> <sup>along</sup> <sup>the</sup> <sup>flow</sup> <sup>regimes.</sup> <sup>To</sup> <sup>be</sup> <sup>able</sup> <sup>to</sup> _Assumption_ _2:_ All individual pipe flows [ _x_ <sup>_(_</sup> _Q_ <sup>_i)_</sup> <sup>_(_</sup> _Q_ <sup>_i)_</sup> <sup>]</sup> <sup>_j_</sup> <sup>=</sup> <sup>_Q(_</sup> _j_ <sup>_i)_</sup> [ _x_ <sup>_(_</sup> _Q_ <sup>_i)_</sup> <sup>]</sup> <sup>_j_</sup> <sup>=</sup> <sup>_Q(_</sup> _j_ <sup>_i)(ϵ, �h)_</sup> <sup>along</sup> <sup>the</sup> <sup>flow</sup> <sup>regimes.</sup> <sup>To</sup> <sup>be</sup> <sup>able</sup> <sup>to</sup> formulate the problem in a unified and compact fashion for all flow regimes, flow separation matrices _l_ 1 <sup>_(i)_</sup> _t_ 1 <sup>_(i)_</sup> _g_ 1 <sup>_(i)_</sup> ⎤ ⎥⎥⎥⎥⎥⎥⎦ (12) ⎤ _,_ ⎥⎥⎥⎥⎥⎥⎦ _,_ _R_ _l_ <sup>_(i)_</sup> _l_ <sup>_(i)_</sup> = ⎤ ⎥⎥⎥⎥⎥⎥⎦ _,_ _R_ _γ_ <sup>_(i)_</sup> <sup>=</sup> _,_ _R_ _γ_ <sup>_(i)_</sup> _e_ <sup>_T_</sup> _g_ 1 <sup>_(i_</sup> _e_ <sup>_T_</sup> _R_ <sup>_(_</sup> _t_ <sup>_i)_</sup> = ⎡ ⎢⎢⎢⎢⎢⎢⎣ _..._ 2 _e_ <sup>_T_</sup> _e_ <sup>_T_</sup> _t_ 1 <sup>_(i)_</sup> _e_ <sup>_T_</sup> _t_ <sup>_(i)_</sup> ⎡ ⎢⎢⎢⎢⎢⎢⎣ _..._ 2 _e_ <sup>_T_</sup> _g_ <sup>_(i)_</sup> ⎡ ⎢⎢⎢⎢⎢⎢⎣ _e_ <sup>_T_</sup> _l_ 1 <sup>_(i_</sup> _e_ <sup>_T_</sup> _l_ <sup>_(i_</sup> _..._ 2 _e_ <sup>_T_</sup> _l_ <sup>_(i)_</sup> _t_ <sup>_(i)_</sup> _n_ <sup>_(_</sup> _t_ <sup>_i)_</sup> _g_ <sup>_(i)_</sup> _n_ <sup>_(_</sup> _γ_ <sup>_i)_</sup> _l_ <sup>_(i)_</sup> _n_ <sup>_(i)_</sup> _L_ _t_ and flow separation vectors _t_ <sup>_(i)_</sup> _n_ <sup>_(i)_</sup> _e_ _j_ _,_ _r_ _γ_ <sup>_(i)_</sup> <sup>=</sup> _g_ <sup>_(i)_</sup> _n_ <sup>_(_</sup> _γ_ <sup>_i)_</sup> _e_ _j_ _,_ _r_ _l_ <sup>_(i)_</sup> = _l_ <sup>_(i)_</sup> _n_ <sup>_(i)_</sup> _r_ <sup>_(_</sup> _t_ <sup>_i)_</sup> = # _n_ <sup>_(_</sup> _t_ <sup>_i)_</sup> # _n_ <sup>_(_</sup> _L_ <sup>_i)_</sup> # _n_ <sup>_(_</sup> _γ_ <sup>_i)_</sup> _e_ _j_ (13) _j_ = _t_ 1 <sup>_(i)_</sup> _j_ = _g_ 1 <sup>_(i)_</sup> _j_ = _l_ 1 <sup>_(i)_</sup> are introduced. They are constructed from unity vectors _e_ _j_ ∈ Z <sup>_n_</sup> {0 _,_ 1} <sup>∀</sup> <sup>_j_</sup> <sup>∈</sup> <sup>P using the number of pipes of measurement set</sup> <sup>_i_</sup> in the turbulent _n_ <sup>_(_</sup> _t_ <sup>_i)_</sup> <sup>,</sup> <sup>transitional</sup> <sup>_n_</sup> _γ_ <sup>_(i)_</sup> <sup>,</sup> <sup>and</sup> <sup>laminar</sup> <sup>_n(_</sup> _L_ <sup>_i)_</sup> <sup>region.</sup> The number of pipes in the different flow regimes may vary between all _i_ ∈ M. Consequently, it follows that _R_ <sup>_(_</sup> _t_ <sup>_i)T_</sup> _R_ <sup>_(_</sup> _t_ <sup>_i)_</sup> + _γ_ <sup>_(i)_</sup> <sup>,</sup> <sup>and</sup> <sup>laminar</sup> <sup>_n(_</sup> _L_ <sup>_i)_</sup> <sup>_(_</sup> _t_ <sup>_i)_</sup> <sup>,</sup> <sup>transitional</sup> <sup>_n_</sup> _γ_ <sup>_(i)_</sup> <sup>,</sup> between all _i_ ∈ M. Consequently, it follows that _R_ <sup>_(_</sup> _t_ <sup>_i)T_</sup> _R_ <sup>_(_</sup> _t_ <sup>_i)_</sup> + _R_ <sup>_(_</sup> _γ_ <sup>_i)T_</sup> _R_ <sup>_(_</sup> _γ_ <sup>_i)_</sup> <sup>+</sup> <sup>_R_</sup> _l_ <sup>_(i)T_</sup> _R_ _l_ <sup>_(i)_</sup> = _I_ _n_ _,_ ∀ _i_ ∈ M, where _I_ _n_ is the identity matrix with dimension _nt_ <sup>_(i)_</sup> <sup>+</sup> <sup>_n_</sup> _γ_ <sup>_(i)_</sup> <sup>+</sup> <sup>_n(_</sup> _L_ <sup>_i)_</sup> <sup>=</sup> <sup>_n_</sup> in which _nt_ _, nγ, n_ _L_ <sup>_(_</sup> _γ_ <sup>_i)_</sup> <sup>+</sup> <sup>_R_</sup> _l_ <sup>_(i)T_</sup> _t_ <sup>_(i)_</sup> <sup>+</sup> <sup>_n_</sup> _γ_ <sup>_(i)_</sup> <sup>_(_</sup> _t_ <sup>_i)T_</sup> _R_ <sup>_(_</sup> _t_ <sup>_i)_</sup> <sup>_(_</sup> _γ_ <sup>_i)T_</sup> _R_ <sup>_(_</sup> _γ_ <sup>_i)_</sup> _l_ <sup>_(i)T_</sup> _R_ _l_ <sup>_(i)_</sup> _l_ <sup>_(i)_</sup> = _I_ _n_ _,_ ∀ _i_ ∈ M, where _I_ _n_ _γ_ <sup>_(i)_</sup> <sup>+</sup> <sup>_n(_</sup> _L_ <sup>_i)_</sup> <sup>_(_</sup> _L_ <sup>_i)_</sup> <sup>=</sup> <sup>_n_</sup> matrix with dimension _nt_ <sup>_(i)_</sup> <sup>+</sup> <sup>_n_</sup> _γ_ <sup>_(i)_</sup> <sup>+</sup> <sup>_n(_</sup> _L_ <sup>_i)_</sup> <sup>=</sup> <sup>_n_</sup> in which _nt_ _, nγ, n_ _L_ may also vary in each measurement set. Please do not confuse the number of pipes _n_ with the number of laminar flows _n_ _L_ in the _i_ th measurement set. Although the flow separation matrices actually depend on the variables _ϵ_ and _h_ <sup>_(_</sup> _N_ <sup>_i)_</sup> <sup>,</sup> <sup>they</sup> <sup>are</sup> only comprised of zeros and ones, i.e., their derivative always yields the zero matrix. Finally, applying (10) and the flow separation matrices (12), one receives the equation set & _ϵ_ <sup>∗</sup> <sup>_T_</sup> _h_ <sup>_(_</sup> _N_ <sup>1</sup> <sup>_)_</sup> <sup>∗</sup> <sup>_T_</sup> <sup>_(_</sup> _N_ <sup>1</sup> <sup>_)_</sup> <sup>∗</sup> <sup>_T_</sup> _h_ <sup>_(_</sup> _N_ <sup>2</sup> <sup>_)_</sup> <sup>∗</sup> <sup>_T_</sup> <sup>_(_</sup> _N_ <sup>2</sup> <sup>_)_</sup> <sup>∗</sup> <sup>_T_</sup> - · · _h_ <sup>_(_</sup> _N_ <sup>_nm_</sup> <sup>_)_</sup> <sup>∗</sup> <sup>_T_</sup> ' _h_ <sup>_T_</sup> <sup>_y_</sup> _h_ <sup>_(i)_</sup> $ <sup>_(_</sup> _t_ <sup>_i)T_</sup> _R_ _t_ <sup>_(i)_</sup> _t_ <sup>_(i)_</sup> _f_ _t_ _(_ _ϵ_ _, �_ _h_ <sup>_(i)_</sup> _)_ _Ax_ _Q(_ _ϵ_ _, �_ _h_ <sup>_(i)_</sup> _)_ = _A_ _R_ <sup>_(_</sup> _t_ <sup>_i)T_</sup> _γ_ <sup>_γ_</sup> <sup>_(_</sup> <sup>_ϵ_</sup> <sup>_, �_</sup> <sup>_h_</sup> <sup>_(i))_</sup> _l_ <sup>_(i)_</sup> diag _(_ _w_ _)�_ _h_ <sup>_(i)_</sup> <sup>%</sup> _γ_ <sup>_(i)_</sup> <sup>_γ_</sup> <sup>_(_</sup> <sup>_ϵ_</sup> <sup>_, �_</sup> <sup>_h_</sup> <sup>_(i))_</sup> _�_ : ⎧ ⎪⎪⎪⎪⎪⎪⎪⎨ ⎪⎪⎪⎪⎪⎪⎪⎩ + _R_ <sup>_(_</sup> _γ_ <sup>_i)T_</sup> + _R_ _l_ <sup>_(i)T_</sup> <sup>_(_</sup> _γ_ <sup>_i)T_</sup> _R_ _γ_ <sup>_(i)_</sup> _l_ <sup>_(i)T_</sup> _R_ _l_ <sup>_(i)_</sup> (14) IV. SOLUTION ALGORITHMS This section briefly introduces the algorithms presented in [26] and [27] and their extensions to solve problem _�_ (14). However, an in-depth description of these algorithms can be found in [27, Sec. 7.1] and [26, Secs. 5 and 6]. It is important to emphasize that the authors use numerical root-finding methods on the basis of Newton–Raphson algorithms rather than optimization-based methods that are very common in this research area [13], [31], [32]. This is possible due to the actual formulation providing, at least, as many unknowns as equations. Generally, two different types of algorithms have to be distinguished. Type (I) algorithms handle the classical Newtonian iterative solution of a nonlinear yet smooth equation set with step length variation as proposed in [26, Algorithm 1]. Since these algorithms of type (I) still require to start in &the vicinity of the real' root, denoted by _x_ <sup>∗</sup> <sup>_T_</sup> = _ϵ_ <sup>∗</sup> <sup>_T_</sup> _h_ <sup>_(_</sup> _N_ <sup>1</sup> <sup>_)_</sup> <sup>∗</sup> <sup>_T_</sup> _h_ <sup>_(_</sup> _N_ <sup>2</sup> <sup>_)_</sup> <sup>∗</sup> <sup>_T_</sup> - · · _h_ <sup>_(_</sup> _N_ <sup>_nm_</sup> <sup>_)_</sup> <sup>∗</sup> <sup>_T_</sup>, for convergence, a type (II) algorithm then launches the type (I) algorithm (e.g., [26, Algorithm 1]) several times with different initial values. This also accounts for the nonconvexity of the flow (9), which is not a specific feature of the proposed approach but a direct consequence of the considered physical phenomena (see [28]). The intermediate best result in terms of the residual _v(_ _x_ _)_ = || _f_ _(_ _x_ _)_ || _L_ 1 along the different initial values is denoted by _x_ <sup>+</sup> . In this context, function _f_ _(_ _x_ _)_ follows from (2) and (14) such that: % ⎤ $ $ _q_ <sup>_T_</sup> <sup>_q_</sup> <sup>_(i)_</sup> _h_ <sup>_(i)_</sup> <sup>−</sup> <sup>_A_</sup> <sup>_T_</sup> <sup>_C_</sup> <sup>¯</sup> = _R_ _q_ <sup>_T_</sup> ⎡ ⎢⎢⎢⎣ _x_ _Q_ _q_ ¯ <sup>_(_</sup> <sup>1</sup> <sup>_)_</sup> _..._ _q_ ¯ <sup>_(nm_</sup> <sup>_)_</sup> _..._ _ϵ_ _,_ _h_ <sup>_(_</sup> _N_ <sup>1</sup> <sup>_)_</sup> _ϵ_ _,_ _h_ <sup>_(_</sup> _N_ <sup>1</sup> <sup>_)_</sup> ⎤ ⎥⎦ = 0 _._ (15) _�_ _h_ <sup>_(i)_</sup> = _C_ <sup>˜</sup> _s_ _h_ _s_ <sup>_(i)_</sup> <sup>−</sup> <sup>_A_</sup> <sup>_T_</sup> <sup>_C_</sup> _h_ <sup>_T_</sup> _x_ _Q_ <sup>_(_</sup> _N_ <sup>_i)_</sup> <sup>−</sup> <sup>_A_</sup> <sup>_T_</sup> <sup>_z_</sup> _A_ _hT_ <sup>_h_</sup> <sup>_(_</sup> _N_ <sup>_i)_</sup> <sup>−</sup> <sup>_A_</sup> <sup>_T_</sup> <sup>_z_</sup> ⎡ ⎢⎣ %⎥⎥⎥⎦ ⎤ ⎥⎦ _A_ ⎡ ⎢⎣ for all _i_ ∈{1 _,_ 2 _, . . ., nm_ } = M to be solved under the Assumption 1. Equation set (14) is nothing but a set of nodal Kirchhoff equations considering all flow regimes, where flows in each component of the network are expressed as functions of the roughness _ϵ_ and the not-measured pressured heads _h_ <sup>_(_</sup> _N_ <sup>_i)_</sup> at nodes with no sensors in measurement sets _i_ ∈ M that are the unknowns to be found. Please note that the flow (9) is a nonconvex function by nature, whenever all three flow regimes are considered. The variation of initial conditions primarily intends to relax Assumptions 1(e)–1(g), while it also helps to handle the nonconvex nature of function (9) as explained in detail next. _f_ _(_ _x_ _)_ = _..._ ⎥⎥⎥⎦ _ϵ_ _,_ _h_ <sup>_(_</sup> _N_ <sup>_nm_</sup> <sup>_)_</sup> _N_ The combination of these two different kinds of algorithms is necessary for solving _�_ as exemplified in the authors’ previous publications on the full turbulent case [26], [27] to relax the necessity to start close to real root of _�_ . Referring to [27], the extension of second-order derivatives in the determination of a search direction is studied. Using the iteration index _k_ to denote steps in the iterative solution finding, a Taylor series is truncated after the linear term in the Newton–Raphson Algorithm 1 Type (I) Algorithm: Modified Line Search With Step Length Variation (Newton or Tensor Approach) Algorithm 2 Type (II) Algorithm: Variation of Initial Values a customized method to vary the step length _μ_ in _x_ _k_ +1 = _x_ _k_ + _μ�_ _x_ _k_ is applied. Our previous results from [26] and [27] can be extended to the actual problem formulation, i.e., the solution of (14), by replacing partial turbulent flow derivatives _p_ <sup>_(_</sup> _X_ <sup>_i)_</sup> <sup>(according</sup> to the definition in [27] as vector) with respect to _X_ ∈ { _ϵ, �h, ϵ_ <sup>2</sup> _, ϵ�h, �h_ <sup>2</sup> } with <sup>_(_</sup> _�_ <sup>_i)_</sup> _h_ <sup>←</sup> <sup>_r_</sup> _t_ <sup>_(i)T_</sup> _p_ <sup>_(_</sup> _�_ <sup>_i)_</sup> _h_ _p_ <sup>_(_</sup> _�_ <sup>_i)_</sup> _h_ _p_ <sup>_(_</sup> _X_ <sup>_i)_</sup> _t_ <sup>_(i)T_</sup> _p_ <sup>_(_</sup> _X_ <sup>_i)_</sup> <sup>_(_</sup> _�_ <sup>_i)_</sup> _h_ <sup>+</sup> <sup>_r_</sup> _γ_ <sup>_(i)T_</sup> _γ_ <sup>_(_</sup> _�_ <sup>_i)_</sup> _h_ <sup>_(_</sup> _X_ <sup>_i)_</sup> <sup>←</sup> <sup>_r_</sup> _t_ <sup>_(i)T_</sup> <sup>_(_</sup> _X_ <sup>_i)_</sup> <sup>+</sup> <sup>_r_</sup> _γ_ <sup>_(i)T_</sup> _γ_ <sup>_(i)T_</sup> _γ_ <sup>_(_</sup> _X_ <sup>_i)_</sup> <sup>_(_</sup> _�_ <sup>_i)_</sup> _h_ <sup>+</sup> <sup>_r_</sup> _l_ <sup>_(i)T_</sup> _w_ (17a) <sup>_(_</sup> _X_ <sup>_i)_</sup> (17b) where _X_ ∈{ _ϵ, ϵ�h, �h_ <sup>2</sup> _, ϵ_ <sup>2</sup> }. In addition, the partial derivatives _γ_ _ϵ(_ _ϵ_ _, �_ _h_ <sup>_(i)_</sup> _)_ and _γ_ _�h(_ _ϵ_ _, �_ _h_ <sup>_(i)_</sup> _)_ have to be replaced by _γ_ _ϵ(_ _ϵ_ _, �_ _h_ <sup>_(i)_</sup> _)_ ← sign _(�_ _h_ <sup>_(i)_</sup> _)_ _γ_ _ϵ(_ _ϵ_ _,_ | _�_ _h_ <sup>_(i)_</sup> | _)_ (18a) _γ_ _�h(_ _ϵ_ _, �_ _h_ <sup>_(i)_</sup> _)_ ← _γ_ _�h(_ _ϵ_ _,_ | _�_ _h_ <sup>_(i)_</sup> | _)_ (18b) algorithm to obtain a search direction _�_ _x_ _k_, i.e., _f_ _(_ _x_ _k_ +1 _)_ ≈ _f_ _(_ _x_ _k)_ + _J_ _k(_ _x_ _k_ +1 − _x_ _k)_ and _�_ _x_ _k_ = _x_ _k_ +1 − _x_ _k_ = − _J_ <sup>−</sup> _k_ <sup>1</sup> _f_ _(_ _x_ _k)_ + _J_ _k(_ _x_ _k_ +1 − _x_ _k)_ and _�_ _x_ _k_ = _x_ _k_ +1 − _x_ _k_ = − _J_ <sup>−</sup> _k_ <sup>1</sup> _f_ _(_ _x_ _k)_ . Matrix _J_ <sup>−</sup> _k_ <sup>1</sup> denotes a generalized inverse of the Jacobian of _f_ _(_ _x_ _k)_, i.e., _J_ _k_ = _(∂_ _f_ _/∂_ _x_ _)_ evaluated at point _x_ _k_ . In contrast, the tensor equation as presented in [27, eq. (12)] for the full turbulent case also considers the second derivatives in the Taylor series so that for all _i_ ∈ M to also consider negative head losses, i.e., _�_ _h_ <sup>_(i)_</sup> _<_ 0 . The gradient of _γ_ with respect to _ϵ_ depends on the sign of _�h_ <sup>_(i)_</sup> as can be seen in (9), which is not the case for _γ_ _�h_ . Consequently, one can consider all three flow regimes in the proposed identification approach although the actual regime (per pipe) is not known _a_ _priori_ . Explicit relations for the first and second derivatives needed for the Newton and tensor method are stated in the Appendix. The algorithms used in this article follow from the algorithms in [26] and [27], where (17) and (18) as well as the additional relations stated in the Appendix are implemented to account for all three flow regimes. These extended forms are stated in Algorithms 1 and 2. Either the Newton–Raphson approach (15) or the tensor approach (16) is utilized for equation set (14). This results in different search directions _d_ _k_ = − _(_ _J_ _k_ <sup>_T_</sup> <sup>_J_</sup> <sup>_k)_</sup> <sup>−1</sup> <sup>_J_</sup> _k_ <sup>_T_</sup> <sup>_f_</sup> _k_ <sup>and</sup> <sup>_d_</sup> <sup>_k_</sup> <sup>steaming from [27, eqs. (7.59)</sup> - _�_ _x_ _k_ _�_ _x_ _k_ <sup>_T_</sup> <sup>_H_</sup> <sup>_(_</sup> <sup>[</sup> <sup>_f_</sup> <sup>_(_</sup> <sup>_x_</sup> <sup>_k)_</sup> <sup>]1</sup> <sup>_)�_</sup> <sup>_x_</sup> <sup>_k_</sup> _f_ _(_ _x_ _k)_ + _J_ _k�_ _x_ _k_ + ⎡ ⎢⎣ _..._ _�_ _x_ _k_ <sup>_T_</sup> <sup>_H_</sup> <sup>�[</sup> <sup>_f_</sup> <sup>_(_</sup> <sup>_x_</sup> <sup>_k)_</sup> <sup>]</sup> <sup>_n_</sup> _m_ <sup>_n_</sup> _j_ ⎤ ⎥⎦ = 0 (16) where _H_ _(_ [ _f_ _(_ _x_ _k)_ ] _i_ _)_ denotes the Hessian of the _i_ th component of function _f_ _(_ _x_ _)_ (15). Although performance improvements could be achieved with respect to the residual _v(_ _x_ _)_ = || _f_ _(_ _x_ _)_ || _L_ 1, this involves considerable effort in terms of the implementation and computational demand. This is particularly true since (16) is also solved iteratively with the MATLAB built-in _fsolve_ (.) function in this work. Details of this tensor method are provided in [27], whereas also, _d_ _k_ = − _(_ _J_ _k_ <sup>_T_</sup> <sup>_J_</sup> <sup>_k)_</sup> <sup>−1</sup> <sup>_J_</sup> _k_ <sup>_T_</sup> <sup>_f_</sup> _k_ <sup>and</sup> <sup>_d_</sup> <sup>_k_</sup> <sup>steaming from [27, eqs. (7.59)</sup> and (7.60)], respectively. In the latter case, _d_ _k_ ← −0 _._ 1 _(_ _J_ _k_ <sup>_T_</sup> <sup>_J_</sup> <sup>_k)_</sup> <sup>−1</sup> <sup>_J_</sup> _k_ <sup>_T_</sup> <sup>_f_</sup> _k_ <sup>is used as initial condition. Minimal and</sup> maximal parameter values are denoted as, e.g., _h_ _N_ and _h_ _N_ in the algorithms. _k_ <sup>_T_</sup> <sup>_J_</sup> <sup>_k)_</sup> <sup>−1</sup> <sup>_J_</sup> _k_ <sup>_T_</sup> _k_ <sup>_T_</sup> <sup>_J_</sup> <sup>_k)_</sup> <sup>−1</sup> <sup>_J_</sup> _k_ <sup>_T_</sup> Fig. 1. Hydraulic network with one reservoir, eight pipes, three cycles, and pressure sensors at nodes _k_ = 2 _,_ 3 _,_ 4 (red), see [26], [27]. Fig. 2. Consumption pattern to produce five independent measurement sets. The presented algorithms are first applied to a three-cycle network for illustration purposes and then to the real-world water distribution system of Graz-Ragnitz in the following. V. THREE-CYCLE NETWORK EXAMPLE A hydraulic network with low complexity is used to show the main steps to apply the algorithms described in Section IV for solving equation set _�_ (14). _A._ _Configuration_ The network shown in Fig. 1 consists of a reservoir, i.e., _ns_ = 1, that provides the source head _hs_, _n_ = 8 pipes, Fig. 3. Measured nodal heads _y_ _h_ + _C_ _h_ _z_ and source _h_ _s_ . Fig. 4. Reynolds numbers over time showing laminar steady-state flows _Q_ <sup>_(_</sup> 5 <sup>3</sup> <sup>_)_</sup> 5 and _Q_ <sup>_(_</sup> 8 <sup>4</sup> <sup>_)_</sup> in set _i_ = 3 _,_ 4 and no transitional (steady state) flows. <sup>_(_</sup> 8 <sup>4</sup> <sup>_)_</sup> in set _i_ = 3 _,_ 4 and no transitional (steady state) flows. _ns_ = 1, that provides the source head _hs_, _n_ = 8 pipes, _n j_ = 5 nodes ( _n p_ = 3 pressure nodes), and _nc_ = 3 cycles. Consumer nodes 2, 3, and 4 are equipped with pressure sensors. The roughnesses of the pipes are given by _ϵ_ = [0 _._ 25 0 _._ 5 0 _._ 75 1 1 _._ 25 1 _._ 5 1 _._ 75 2] <sup>_T_</sup> mm. For analysis purposes, two measurement� �sets additional to the minimal required _nm,_ min = _n_ _/n p_ = 3 linear For analysis purposes, two measurement� �sets additional to the minimal required _nm,_ min = _n_ _/n p_ = 3 linear independent measurement sets M were generated to investigate performance improvements by accounting for more than _nm,_ min measurement sets. In addition, (mean-free white) measurement noise is added to the pressure sensors and the consumption data _q_ 2, _q_ 3, and _q_ 4 (e.g., records of _fireflows_ ). Fig. 2 shows the consumer pattern that is chosen for the simulation example. Steady-state simulation results of the dynamic PD _u_ model, as presented in detail in [11], are taken as artificial measurement sets. This dynamic model applies a pressure-driven consumption approach, where the consumer demand is determined by the pressure at respective nodes instead of _a_ _priori_ values for the consumption (cf. Fig. 3). The set of “measured” values in the steady-state time frames shown in Figs. 2 and 3 is utilized for the subsequent pipe roughness identification by averaging with the aim to mitigate noise effects, which should also be done when using realworld data. Steady-state pipe flow 5 in measurement set 3, i.e., _Q_ <sup>_(_</sup> <sup>3</sup> <sup>_)_</sup> 5 <sup>,</sup> <sup>as</sup> <sup>well</sup> <sup>as</sup> <sup>steady-state</sup> <sup>pipe</sup> <sup>flow</sup> <sup>8</sup> <sup>in</sup> <sup>measurement</sup> set 4, i.e., _Q_ <sup>_(_</sup> 8 <sup>4</sup> <sup>_)_</sup> <sup>, are laminar as can be seen in the zoom window</sup> in Fig. 4. All other flows are in the turbulent regime. See Figs. 2 and 3 for the time windows that correspond to the different measurement sets _i_ . Two particular reasons, which render this current configuration interesting, shall be highlighted. First, it will be clarified if the derived transitional flow _γ_ (5) is eligible to provide the transition from turbulent to laminar flow in solving _�_ (14). Second, insight will be given to which extent mean-free measurement noise in _y_ _h_ and _q_ interferes with the roughness identification. _B._ _Results_ _and_ _Discussion_ Tables I–VI represent the results of the roughness identification, i.e., the solution of equation set _�_ (14) using either the Newton approach (see [26, Algorithm 1] in combination with [26, Algorithm 2]) or the tensor approach (see [27, Algorithm 3] in combination with [27, Algorithm 4]). Works [26, Algorithm 2] and [27, Algorithm 4] are called for a fixed number of 13 times. Works [26, Algorithm 1] and [27, Algorithm 3], which vary _n_ _/n p_ TABLE I THREE-CYCLE NETWORK: TENSOR RESULTS FOR _nm_ = 3 ( _ϵ_ [mm], _h_ [ _m_ ], _v(_ _x_ <sup>+</sup> _)_ [10 <sup>7</sup> m <sup>3</sup> _/_ s]). COMPUTATIONAL DURATION: 280.0 s TABLE II THREE-CYCLE NETWORK: NEWTON RESULTS FOR _nm_ = 3 ( _ϵ_ [mm], _h_ [ _m_ ], _v(_ _x_ <sup>+</sup> _)_ [10 <sup>7</sup> m <sup>3</sup> _/_ s]). COMPUTATIONAL DURATION 7.2 s TABLE III THREE-CYCLE NETWORK: TENSOR RESULTS FOR _nm_ = 4 ( _ϵ_ [mm], _h_ [ _m_ ], _v(_ _x_ <sup>+</sup> _)_ [10 <sup>7</sup> m <sup>3</sup> _/_ s]). COMPUTATIONAL DURATION: 143.6 s TABLE IV THREE-CYCLE NETWORK: NEWTON RESULTS FOR _nm_ = 4 ( _ϵ_ [mm], _h_ [ _m_ ], _v(_ _x_ <sup>+</sup> _)_ [10 <sup>7</sup> m <sup>3</sup> _/_ s]). COMPUTATIONAL DURATION: 4.4 s TABLE V THREE-CYCLE NETWORK: TENSOR-RESULTS FOR _nm_ = 5 ( _ϵ_ [mm], _h_ [ _m_ ], _v(_ _x_ <sup>+</sup> _)_ [10 <sup>7</sup> m <sup>3</sup> _/_ s]). COMPUTATIONAL DURATION: 164.8 s the initial conditions, are evaluated 50 times (see [26], [27] for a detailed description of the algorithms). The computational duration stated in the tables result for an implementation of the proposed algorithms in MATLAB <sup>2</sup> on a low-power notebook from 2015 with an Intel dual-core i5 processor and 8-GB RAM. The focus is not on real-time requirements since the roughness parameters change very slowly over time. Thus, the use of a standard notebook is sufficient in the present case to point out the main properties of the proposed approach. The intermediate best result in terms of the residual _v(_ _x_ <sup>+</sup> _)_ is highlighted in Table VI. The initial values _x_ 0 <sup>_T_</sup> <sup>= [</sup> <sup>_ϵ_</sup> 0 <sup>_T_</sup> <sup>_x_</sup> _h_ <sup>_T_</sup> _N,_ 0 <sup>] are</sup> highlighted in Table VI. The initial values _x_ 0 <sup>_T_</sup> <sup>= [</sup> <sup>_ϵ_</sup> 0 <sup>_T_</sup> <sup>_x_</sup> _h_ <sup>_T_</sup> _N,_ 0 <sup>] are</sup> chosen as _ϵ_ 0 = 0 _._ 0004 · 1 _n_ and _x_ _h_ <sup>_T_</sup> _N,_ 0 <sup>=</sup> <sup>[70</sup> <sup>_._</sup> <sup>53</sup> <sup>55</sup> <sup>_._</sup> <sup>08</sup> <sup>52</sup> <sup>_._</sup> <sup>08</sup> and _x_ _h_ <sup>_T_</sup> chosen as _ϵ_ 0 = 0 _._ 0004 · 1 _n_ and _x_ _h_ <sup>_T_</sup> _N,_ 0 <sup>=</sup> <sup>[70</sup> <sup>_._</sup> <sup>53</sup> <sup>55</sup> <sup>_._</sup> <sup>08</sup> <sup>52</sup> <sup>_._</sup> <sup>08</sup> 26 _._ 69 49 _._ 02 22 _._ 68 43 _._ 82 14 _._ 81 41 _._ 16 10 _._ 85]. Initial values _x_ _h_ <sup>_T_</sup> _N,_ 0 <sup>are</sup> <sup>the</sup> <sup>estimated</sup> <sup>mean</sup> <sup>values</sup> <sup>for</sup> <sup>the</sup> <sup>pressure</sup> <sup>heads,</sup> where the knowledge of the source, the pressure sensors, as well as the network structure (Fig. 1) are exploited. In Tables I–VI, different numbers of measurement sets are used to show their impact on the identification of the pipe roughnesses and not measured head losses _h_ _N,_ 1 and _h_ _N,_ 5 at nodes 1 and 5 (see Fig. 1) in different measurement sets, respectively. One can see that the results are noticeably consistent, cf. values of the identified parameters in the columns with the lowest values for _v(_ _x_ <sup>+</sup> _)_, which are marked in green. The residual of the results is approximately two orders of magnitude smaller than the one of the real root _v(_ _x_ <sup>∗</sup> _)_ (especially in Tables I and II) as the exact solution of _�_ without measurement noise. 2https://www.mathworks.com/ (accessed on 02.11.2021). TABLE VI THREE-CYCLE NETWORK: NEWTON RESULTS FOR _nm_ = 5 ( _ϵ_ [mm], _h_ [ _m_ ], _v(_ _x_ <sup>+</sup> _)_ [10 <sup>7</sup> m <sup>3</sup> _/_ s]). COMPUTATIONAL DURATION: 7.0 s Concerning the regime case separation, the tensor as well as Newton method managed to successfully identify _Q_ <sup>_(_</sup> 5 <sup>3</sup> <sup>_)_</sup> (in case of _nm_ = 3) as well as _Q_ <sup>_(_</sup> 5 <sup>3</sup> <sup>_)_</sup> and _Q_ <sup>_(_</sup> 8 <sup>4</sup> <sup>_)_</sup> (in case of _nm_ = {4 _,_ 5}) as <sup>_(_</sup> 5 <sup>3</sup> <sup>_)_</sup> and _Q_ <sup>_(_</sup> 8 <sup>4</sup> <sup>_)_</sup> of _nm_ = 3) as well as _Q_ <sup>_(_</sup> 5 <sup>3</sup> <sup>_)_</sup> and _Q_ <sup>_(_</sup> 8 <sup>4</sup> <sup>_)_</sup> (in case of _nm_ = {4 _,_ 5}) as laminar and all other steady-state flows as turbulent by evaluating (9) for _x_ <sup>+</sup> or by checking the flow separation vectors (13). This underpins the applicability of the transitional flow characteristics _γ_ (5) for the complete roughness identification problem _�_ (14). Note that the consideration of laminar flows improves the reconstructability of original roughnesses as the known linear (laminar) terms indeed facilitate solving _�_ . This can be seen when comparing tables considering _nm_ = 3 with ones considering _nm_ = 4 measurement sets as the results in the former ones are much closer to the original root. In addition, the inclusion of measurement set _i_ = 5 in the problem setup aggravates the solution finding as additionally uncertainties come into play. Comparing tensor with Newton results for all _nm_, no significant improvements could be achieved when considering the second-order derivatives concerning the tensor method. Actually, a slightly smaller residual was found by the Newton method for _nm_ = 5 as can be seen by comparing Table V with Table VI. This has three reasons. First, the second derivatives of _γ_ (see the Appendix) are neglected in the solution finding of the search direction via the tensor equation (16). Second, when solving (16) iteratively with the MATLAB built-in _fsolve_ (.) function, it occasionally happens that a search direction is taken, which has a comparably high residual measurement set _i_ in solving iteration _k_ of _�_ . In this context, one can observe that the tensor method indeed takes more iterations on average to converge or abort. Third, as long as measurement sets are sufficiently independent, the application of the Newton method might presumably suffice in combination with [27, Algorithm 4] to obtain a solution that features an even smaller residual _v(_ _x_ <sup>+</sup> _)_ than the original root _v(_ _x_ <sup>∗</sup> _)_ . In view of the results in Tables I–VI, the comparably high deviation in the solution of the not-measured pressure head at node 1, i.e., _h_ <sup>_(_</sup> _N_ <sup>_i)_</sup> _,_ 1 <sup>∀</sup> <sup>_i_</sup> <sup>∈</sup> <sup>M, is also noteworthy. The deviation in</sup> node 1, i.e., _h_ <sup>_(_</sup> _N_ <sup>_i)_</sup> _,_ 1 <sup>∀</sup> <sup>_i_</sup> <sup>∈</sup> <sup>M, is also noteworthy. The deviation in</sup> _h_ <sup>_(i)_</sup> _N,_ 1 <sup>is</sup> <sup>inherently</sup> <sup>connected</sup> <sup>with</sup> <sup>the</sup> <sup>deviation</sup> <sup>in</sup> <sup>the</sup> <sup>rough-</sup> ness of the first pipe. Although the estimated roughness of the first pipe, i.e., _ϵ_ 1, is close to the original one _ϵ_ 1 <sup>∗</sup> <sup>in all the above</sup> tables (particularly for the case _nm_ = 4), the error in _h_ <sup>_(_</sup> _N_ <sup>_i)_</sup> _,_ 1 <sup>∀</sup> <sup>_i_</sup> <sup>∈</sup> tables (particularly for the case _nm_ = 4), the error in _h_ <sup>_(_</sup> _N_ <sup>_i)_</sup> _,_ 1 <sup>∀</sup> <sup>_i_</sup> <sup>∈</sup> M is visible. The major reason for this can again be found in the nonlinear friction relation, where comparably small differences in roughness lead to a substantial deviation in the head loss and thus in the nodal head due to the high flow in pipe 1. In sum, the collection of suitable measurement sets is key for the reconstruction of the pipes’ roughness. The best indicator for the quality of the measurement sets is given by the differences among _y_ _h_ + _C_ _h_ _z_ (cf. Fig. 3) and the differences in the consumption _q_ (see Fig. 2). However, when considering minor losses (violating the assumption about the minor losses), i.e., nonzero minor loss parameters [9], and measurement noise that features a nonzero mean, solving _�_ becomes substantially more challenging in a sense that one commonly receives estimated roughnesses outside their physical range (above 5% of the pipe’s diameter). These solutions, which lie outside the considered physical range, sometimes indeed have comparably low residuals, due to the aggressive search by [27, Algorithm 4]. Nevertheless, in the opinion of the authors, solving problem _�_ (14) offers the best chance to reconstruct individual roughnesses per pipe. However, it is very common to group pipes’ roughnesses for the solution finding, meaning to assign a single roughness value to multiple pipes in order to compensate for additional unknowns. The three-cycle network example gives valuable insights about the applicability of the presented roughness identification scheme as follows. 1) Adverse effects due to measurement noise have been studied. Fig. 5. Original graph representing the water distribution network of Graz-Ragnitz with about 9 _._ 1 km of total pipe length. Nodes with pressure sensors, hydrants, and the source (a reservoir-like water basin) are highlighted. 2) The consideration of laminar flows turns out to facilitate the solving of _�_ . 3) The functionality of _γ_ (5) to allow a transition from turbulent to laminar flow (or vice versa) in the solution finding of _�_ has been demonstrated. 4) The analysis of considering more than _nm,_ min measurement sets reveals that it does not always facilitate solving _�_, but a careful selection of measurement sets may be necessary. In Section VI, the proposed approaches are applied to realworld measurement data. VI. ROUGHNESS IDENTIFICATION ON A REAL NETWORK The application of the proposed roughness identification approach is now shown for the real-world drinking water distribution network of Graz-Ragnitz, Austria [33]. The measurements used for this analysis were conducted prior to the involvement of the authors with the help of the local water utility in the course of a project with the Institute of Urban Water Management, Graz University of Technology. _A._ _Topology_ _and_ _Its_ _Simplification_ During the time frame where measurements have been recorded, the network according to Fig. 5 was isolated by valves from other parts connecting itself to a larger distribution network. The topology of this isolated network (part) as presented in Fig. 5 consists of the elements stated in Table VII. Hence, given the number of _n_ = 627 pipes and Table VII. Hence, given the number of _n_ = 627 pipes and _n p_ = 13 pressure sensors, one would need to produce at least _nm,_ min = <sup>�</sup> _n_ _/n p_ - = 48 independent measurement sets with _n p_ = 13 pressure sensors, one would need to produce at least _nm,_ min = <sup>�</sup> _n_ _/n p_ - = 48 independent measurement sets with only _nq_ = 4 fireflows. It is reasonable to assume that there is no way to produce so many independent measurement sets, especially on a high fireflow level necessary to produce enough head loss. The only chance is to simplify the topology to the highest extent possible and thereby reduce the number of _nm,_ pipesmin = and <sup>�</sup> _n_ _/_ nodes _n p_ �. This is explained in detail in the following.in order to result in a sufficiently small _/n p_ �. This is explained in detail in the following.in order to result in a sufficiently small TABLE VII CHARACTERIZATION OF THE ORIGINAL TOPOLOGY (FIG. 5) Fig. 6. Result of combining adjoining pipes with the same diameter. Nodes with more than two connections, which are used to simplify the topology, are highlighted in green. _1)_ _Dead_ _Ends:_ The first step of the topology simplification involves the removal of dead ends, which also include nodes that represent real consumers (not hydrants) in the original topology. However, as it has to be assumed that they do not retrieve water during the identification measurements (at night), they have to be removed as no corresponding roughness values can be identified. _2)_ _Combine_ _Adjoining_ _Pipes_ _With_ _the_ _Same_ _Diameter:_ The next step involves the detection and then combination of adjoining pipes with the same diameter by removing the node in between, i.e., the new combined pipe’s length has to be adjusted. Pressure and hydrant nodes have to be excluded from this removal. In Fig. 6, one can see the result of the iterative rejoining of pipes with the same diameter. In this process, the _x_ - and _y_ -coordinates of the original nodes have been preserved, which causes, for instance, the small cycle at “HG3933” seen in Fig. 5 to seemingly disappear in Fig. 6. This cycle is still present in the graph of Fig. 6 at this point of simplification, and however, one would have to zoomed-in view substantially. _3)_ _Remapping_ _Pressure_ _Nodes_ _and_ _Hydrant_ _Nodes:_ This section lists four measures to simplify the graph’s topology. 1) As pressure nodes with no hydrants on the same link do not have any head loss along this link, it is feasible to remap the pressure nodes to the next respective junction, i.e., a node with more than two connections. In the course of this process, one has to carefully consider the difference in elevation between the pressure node and the final junction node as the height difference has to be considered in the corresponding pressure readings. Thus, the pressure nodes, i.e., the nodes with pressure sensors, are moved to the green junctions in Fig. 6. _/n p_ Fig. 7. Final graph obtained by the topology simplification of the graph in Fig. 6. 2) It turned out that two deployed pressure sensors, namely, “HG3445” and “HG4215,” are redundant for all measurements sets, i.e., “HG3420” and “HG3445” or “HG4162” and “HG4215” have the same pressure readings as there is no flow in the links of these two sensor pairs. Hence, the corresponding nodes are removed from the graph. This then enables to move pressure nodes “HG3420” and “HG4215” to the next higher junction with more than two connections. 3) In analogy to 2), the (small) cycle (seen in Fig. 6) enclosing pressure node “HG3933” does not have any hydrant to cause water to flow into this network part. As a result, there should be no head loss in this entire cycle, leading to a uniform head distribution up to the next junction. As side note, this is of course only feasible if no background consumption/leakage occurs there. Effectively, the pressure readings of “HG3933” are moved to the next higher junction also accounting for differences in nodal elevation. 4) Similar to 1), as hydrants are also located on dead-endlike links, they are moved to the next higher junctions that are colored in green. This is only feasible due to the assumption to take the measurements in steady state only. _4)_ _Final_ _Graph:_ The final graph’s topology used for the roughness identification is shown in Fig. 7. Mind that the identifiers (IDs), e.g., “HG3537,” are actually used to denote individual nodes of the original graph in Fig. 5, meaning that the highlighted pressure and hydrant nodes of the final graph in Fig. 7 do have different names, i.e., IDs, internally. However, in order to not confuse the reader, the original IDs have been preserved to support identifiability with the corresponding sensors. Effectively, one can see that the graph has been simplified substantially in comparison to the original one in Fig. 5,�as shown� in Table VIII. Given the simplified graph, at least _n_ _/n p_ = 7 independent measurement sets are one in Fig. 5,�as shown� in Table VIII. Given the simplified graph, at least _n_ _/n p_ = 7 independent measurement sets are needed to reconstruct suitable roughness values for _n_ = 74 �as _n_ _/n p_ needed to reconstruct suitable roughness values for _n_ = 74 (combined) pipes in the drinking water distribution network. TABLE VIII CHARACTERIZATION OF THE FINAL TOPOLOGY (FIG. 7) Fig. 8. Head readings of all (relevant) pressure sensors according to the graph in Fig. 7. The steady-state time frames used for averaging are highlighted with black dashed lines at the starting and end points. For instance, the fourth time frame can be found between _t_ ∈[5080 _,_ 5140] s. This is a significant improvement compared to _nm,_ min = 48 when considering the original topology in Fig. 5. _B._ _Sensor_ _Readings_ _and_ _First_ _Assessments_ Generally, hydrants are equipped with flow sensors in order to record the fireflow, treated as “consumption” _q_, while the pressure sensors record the nodal pressure heads _y_ _h_ during the minimum night flow where the real, unknown consumption (also including losses) is lowest. In Fig. 9, one can see the individual fireflow measurements at the _nq_ = 4 hydrants, whereas Fig. 10 compares the sum of all fireflows of the four hydrants with the total network’s inflow that was measured separately at the link where the source connects to the rest of the network (cf. topology in Fig. 7). Counting the peaks in Fig. 9, one can see that there are potentially 15 measurement sets available. However, it will turn out that approximately half of these sets are not suitable for identification. In Fig. 8, one can see all relevant head readings of the pressure sensors with respect to the IDs found in the graph of Fig. 7. Considering Figs. 8 and 9, observations and the applied approaches are summarized in reference to the assumptions made in this work: 1) Assumptions 1(a), 1(b), and 1(d) are fulfilled for the current application. 2) It is, in principle, possible to cause sufficiently large head loss by fireflows to satisfy Assumption 1(g) and thereby provide sufficiently independent sets, see Assumption 1(e). 3) Referring to head readings, Assumption 1(f) to only measure in steady state does seem legitimate yet in very small time frames only. The numerous occurrences of oscillating heads and peaks indicate frequent transient events. Fig. 9. Fireflow readings over all measurement sets. Fig. 10. Comparison of the measured inflow via the source pipe (blue) and the sum of all fireflows (red). 4) No assessment can be made about the validity of Assumption 1(c) or if all pipes are at least once in the turbulent regime. 5) Fig. 10 shows the presumably major issue of these measurements as the unknown background consumption, i.e., the difference between blue and red curve, makes up to approximately 40% (between _t_ ≈[2900 _,_ 2960] s) of the total consumption in the corresponding measurement set. The only possibility to circumvent this is to avoid high-erroneous measurement sets, with respect to the background consumption, from _�_ (14) and to take only those were the error is smallest, e.g., the first time frame at _t_ ≈[2380 _,_ 2450] s, as shown in Figs. 8 and 10. 6) Three time frames of comparably small fireflows around _t_ ≈ 6000 _,_ 7000 _,_ 12000 s at a level of 1 l/s in Fig. 9 actually do not cause any notable head loss as shown in Fig. 8 and are therefore completely unsuitable for the consideration in _�_ . 7) The chosen _nm_ = 8 time frames, i.e., measurement sets, for the averaging of measurements had to be chosen considerably small to avoid any possibly transient events, see time frames between the dashed lines in Fig. 8. 8) The minimum night flow, which gives a good estimate of the total water loss, can be identified in the range of 1 _._ 2 l/s according to Fig. 10. These background losses are potentially problematic for any identification scheme that is based on the satisfaction of nodal Kirchhoff equations, see _�_ (14). However, this is a general problem with all sorts of roughness identification algorithms as these background losses at the time of the identification measurements ultimately lead to mistakenly increased friction parameters. One can hardly detect and localize leakages in an uncalibrated hydraulic network, meaning that all leakages prior to the identification (identification of friction parameters) are likely to remain invisible to the observer. This certainly depends on the size of the leakage nonetheless. If it exceeds a critical size, the detection and localization become feasible at some point. _C._ _Initial_ _Values_ A crucial point for the considered problem is the selection of the measurement sets and the stochastic variation of the initial values for the launch of the roughness identification concerning _�_ (14) as described in Section IV. This is due to the fact (see also [28]) that the considered flow (over all three regimes) is characterized by a nonconvex relation (9) due to the underlying physical principles. In particular, the selection of suitable initial values for the nodal pressure head values at nodes with no sensors _n j_ - _n p_ concerning _h_ <sup>_(_</sup> _N_ <sup>_i)_</sup> ∈ R≥0 for all _i_ ∈ M = {1 _,_ 2 _, . . .,_ 8} _n j_ - _n p_ concerning _h_ <sup>_(_</sup> _N_ <sup>_i)_</sup> ∈ R≥0 for all _i_ ∈ M = {1 _,_ 2 _, . . .,_ 8} is challenging and leaves a lot of potential variables to be adjusted. However, the stochastic variation of initial values as explained in Section IV helps to relax the requirement of already starting with values close to the ones to find. Similar to the three-cycle network in Section VI-B, the initial values for _h_ _N_ are chosen by means of averaging heads between pressure nodes. Details about the choice of initial conditions can be found in [11]. As in the previous example, the initial roughness values for launching the identification are selected as 1% of the corresponding pipe’s diameter. Mind that according to the proposed algorithm, these initial roughnesses are already varied before launching Newton or tensor algorithms. _D._ _Results_ _and_ _Discussion_ The obtained roughness results are presented when applying a few iterations of [27, Algorithm 4], which itself launches [27, Algorithm 3]. This process is then stopped after a few iterations because a clear trend can be observed, which will be subject to discussion. To begin with, the equation set _�_ (14) to be solved features 576 (nodal) equations and 562 variables from which only 74 elements are the roughness values of particular interest. The residual could be reduced from a total error of _v(_ _x_ 0 _)_ = 33 _._ 2020 m <sup>3</sup> _/_ s to _v(_ _x_ <sup>+</sup> _)_ = 8 _._ 4101 m <sup>3</sup> _/_ s at the 576 nodes considered in solving. Looking at the average error on each node over all eight measurement sets, a presumably more distinctive value for analysis, the error could be reduced from 57 _._ 6 to 14 _._ 6 l/s. Considering that the fireflows never exceed the 16 l/s mark (see Fig. 10), the error is in a range, which raises questions about the quality of the data. To put the residual in a different perspective, 20.7 nodes exceed the 5-l/s error and 29.1 nodes exceed the 1-l/s error from the total of _n j_ = 74 on average over all eight measurement sets. Fig. 11 shows the results for the obtained relative roughness values directly on the corresponding pipes and highlights 32 pipes that have a relative roughness greater or equal to <sup>_(_</sup> _N_ <sup>_i)_</sup> ∈ R Fig. 11. Obtained relative roughness values in percent along the pipes of the simplified network’s graph highlighting in red those which are greater or equal to _ϵ/d_ = 6%. Nodes with an error greater or equal than 10 l/s in one of the eight measurement sets are highlighted in red. Nonpressure nodes, whose head values are not inside their considered range in the respective measurement set (cf. Fig. 8), are mentioned in the legend. _ϵ/d_ = 6% (red lines). Fig. 11 also highlights nodes with an error greater or equal than 10 l/s in one of the eight measurement sets (red dots). One can clearly see that there is a correlation between high-erroneous nodes and unrealistically high roughness values. Please note that we aim to find the roughness parameters for all pipes in the considered water distribution system. However, the real roughness values, which would allow a comparison to the identified values, cannot be found for real applications with a reasonable effort. Under the assumption that leakages can be present at each of the _n j_ inner nodes, one would need _n j_ pressure sensors and _nℓ_ flow sensors. In the other extreme case, where no leakages are present, one would need _n j_ pressure sensors and _nc_ flow sensors. Neither case is realistic in real water distribution networks. Effectively, two major issues make it difficult to solve _�_ and obtain a smaller residual. First, the occurrence of the comparably high background consumption/leakage seen in Fig. 10 causes inherently higher than actual roughnesses. Due to the nonlinear friction relations, an unrealistically high roughness might be necessary to compensate for the unaccounted flow at respective nodes. Second, it turned out that apart from the background leakage, a valve in the lower left corner in Fig. 11 was closed partially during the measurement. Interestingly, however, one can actually see that the exact area of the partially closed valve was identified by the presented roughness identification scheme. This demonstrates that the developed approach may also be suitable to identify network parts inconsistent with the measurement data, e.g., due to leakages. The area close to pressure sensor “HG3933” happens to be red-colored because of the significant background leakage/consumption in the removed cycle. Nevertheless, this cycle had to be removed as no hydrant was opened in this cycle during the measurements. The results for _h_ _N_ remain in their physical range, except at nodes that are highlighted in Fig. 11 in the respective measurement set (see legend). This range violation is very minor for the yellow and orange colored nodes, for instance, the orange colored nonpressure node results in _h_ _N_ + _z_ = 497 _._ 9588 m, which exceeds the identified upper limit _h_ _N_ + _z_ = 497 _._ 9061 m by a mere 5 _._ 27 cm. Also, regarding the orange and yellow nonpressure nodes of Fig. 11, heads _h_ _N_ tend to leave their intended range at exactly those nodes adjacent to pipes with very high roughness values, which indicates a correlation between them. The red-colored node of Fig. 11 has _h_ _N_ + _z_ = 476 _._ 3744 m but should actually be above _h_ _N_ + _z_ = 480 _._ 7406 m. Knowing that there was a partially closed valve as shown in Fig. 11, the developed identification algorithm is able to confidently find discrepancies in the measurement data. When taking the results as initial value for the next iteration of, e.g., [27, Algorithm 3] and relax the requirement for the not-measured pressure heads _h_ _N_ to remain inside their selected limits _x_ _h_ _N_ ∈[ _h_ _N_ _,_ _h_ _N_ ], one indeed manages to obtain smaller residuals. However, the roughnesses exceedingly leave their physical range and therefore do not represent results, which can be seriously applied. The effect of nonzero minor losses thereby violating the assumption about negligible minor losses may be of particular interest in this context. _1)_ _Flow_ _Regimes:_ For the considered water distribution network, there are _n_ _nm_ = 592 pipe flows to be categorized - _2)_ _Linear_ - _Independency:_ Recall that _nm_ ≥ _nm,_ min = _n_ _/n p_ is only a necessary condition to satisfy the assump tion about the number of linear independent measurements. Apart from that, the best indication about the linear independency is given by the rank of the Jacobian, which is a function of the solution in the iteration step _k_, i.e., _J_ _(_ _x_ _k)_ . network, there are _n_ _nm_ = 592 pipe flows to be categorized among the three flow regimes. Thereby, only 238 pipe flows have been identified to be in the turbulent regime, 219 in the transitional regime, and hence 135 in the laminar regime. This result underlines the importance to distinguish among the three flow regimes in the solving process of _�_ . Violating Assumption 2 [1(a)], pipes have flows, which never reach the turbulent regime in any of the eight measurement sets. According to the results of the roughness identification, there is only a single pipe whose flows never become turbulent nor transitional in any of the measurement sets. As shown in Fig. 11, the obtained roughness of this pipe then also exceeds the physically reasonable values, as the variation of this roughness value has no effect on the residual of _�_ in the solving process. Looking at Fig. 7 for instance, it is clear why this pipe can neither have turbulent nor transitional flow as there cannot be any flow between “HG4118” (a hydrant) and “HG4150” (a pressure sensor) according to the hydrant configuration. This is a remarkable result nonetheless and proves the applicability of _γ_ (5) with respect to _�_ to properly distinguish among flow regimes. In analogy, the pipe whose flow never reaches the turbulent regime in Fig. 11 has a very high relative roughness of 43.3% according to Fig. 11. Knowing that the smoothness and validity of _γ_ are only preserved in the range of _ϵ/d_ ∈[0 _,_ 5]% of the pipe’s diameter (see [28]), the root-finding algorithm for _�_ particularly struggles to handle roughness values greater 5% when being in the transitional regime. Once in the transitional regime and outside the physical limitation, the algorithm cannot again converge to the turbulent regime. - _2)_ _Linear_ - _Independency:_ Recall that _nm_ ≥ _nm,_ min = _n_ _/n p_ is only a necessary condition to satisfy the assump _/n p_ This Jacobian has size _J_ ∈ R <sup>576×562</sup> for the eight measurement sets. One obtains rank _(_ _J_ _(_ _x_ 0 _))_ = 545 in _x_ 0, and in the solution corresponding to the roughness values in Fig. 11, it reaches rank _(_ _J_ _(_ _x_ <sup>+</sup> _))_ = 549, i.e., its deficiency concerns at least 13 variables among _n_ + _nm(n j_ - _n p)_ = 562. This has two and _∂γ j_ _∂�h j_ _q_ 0 _(ϵ_ + _q_ 1 _)_ 13 variables among _n_ + _nm(n j_ - _n p)_ = 562. This has two reasons. First, as discussed previously, there are pipes whose flows are never in the turbulent regime making it impossible to find the corresponding roughnesses. Second, although there is, in principle, enough head loss along some pipes according to the final graph in Fig. 7, this presumably does not apply to all _n_ = 74 pipes when inspecting Fig. 8. Mind the = _γ�h, j_ = − <sup>1</sup> _wb_ <sup>−</sup> <sup>1</sup> 4 _w_ <sup>1</sup> 4 _(_ 445 _bq_ −0 _(ϵ_ 385 + _q a_ 1 _)�)_ _h_ <sup>1</sup> <sup>_/_</sup> <sup>4</sup> )7 _/_ 4 × _wb_ <sup>+</sup> <sup>7</sup> 4 <sup>1</sup> 89 _b_ - 77 _a_ 2 _�h_ <sup>3</sup> <sup>_/_</sup> <sup>2</sup> <sup>7</sup> 4 26 _� b_ - _h_ <sup>11</sup> 22 <sup>_/_</sup> <sup>4</sup> _a_ ( _b_ <sup>1</sup> 445 _b_ - 385 _a_ 4 _q_ 0 _�h_ <sup>6</sup> _(ϵ_ + _q_ 1 _)_ ) <sup>27</sup> 4 ) <sup>27</sup> _a_ + 434 _b)�h_ <sup>3</sup> <sup>_/_</sup> <sup>4</sup> + <sup>1</sup> _q_ 0 _(ϵ_ + _q_ 1 _)_ 4 ( _b_ _w_ to all _n_ = 74 pipes when inspecting Fig. 8. Mind the assumption about the measurement noise in this context. The only possibility to improve on this is to consider further and/or different measurement sets with other fireflow configurations, whereas additional fireflows provided by other than the _nq_ hydrants may be particularly valuable in this regard. + <sup>1</sup> <sup>1</sup> _(_ −378 _a_ + 434 _b)�h_ <sup>3</sup> <sup>_/_</sup> <sup>4</sup> 4 _q_ 0 _(ϵ_ + _q_ 1 _)_ <sup>1</sup> 217 _b_ - 189 _a_ 2 _q_ 0 _(ϵ_ + _q_ 1 _)_ ) <sup>77</sup> - <sup>1</sup> ( _b_ 12 _�h_ <sup>−</sup> <sup>17</sup> 3 ) ) <sup>489</sup> 620 <sup>,</sup> _w_ + <sup>489</sup> 620 <sup>,</sup> × ) <sup>57</sup> 26 1 ( _b_ _�h_ 31 - _�h_ 20 _w_ 26 1 ( _b_ _�h_ 31 - _�h_ 20 + _c_ 5 57 31 ( 1 _ϵ_ + _q_ 1 _q_ 0 _�h_ <sup>7</sup> <sup>_/_</sup> <sup>4</sup> 57 ( _b_ _�h_ 31 + × ) <sup>489</sup> 620 ) <sup>489</sup> VII. CONCLUSION The basic applicability of the developed roughness identification on a real drinking water distribution network was demonstrated, considering all three flow regimes. The difficulties and uncertainties when using real-world data were discussed, whereas the problems in the solution finding and results could be traced back to inconsistencies in the data and, for instance, background consumption. The legitimacy of Assumptions 1 and 2 have been studied and turn out to be attainable to a large extent. Nevertheless, the validity of the neglection of minor losses concerning Assumption 1(c) has yet to be verified in greater detail. In short, the authors believe the developed identification scheme not only to be eligible for roughness identification but for the detection and localization of leakages in water distribution systems, which is subject to further research. APPENDIX DERIVATIVES OF THE COMBINED FLOW _A._ _First_ _Derivatives_ The derivatives of turbulent flow are given in [26]. In addition, the partial derivatives of the transitional water flow _γ_ (5) with respect to the roughness _ϵ_, i.e., [ _γ_ _ϵ_ ] _j_, and its derivative with respect to the pressure head loss, i.e., [ _γ_ _�h_ ] _j_, are shown in + <sup>7</sup> _q_ 0 4 <sup>_c_</sup> <sup>5</sup> _�h_ <sup>11</sup> <sup>_/_</sup> <sup>4</sup> _r_ <sup>_(_</sup> _t_ <sup>_i)_</sup> 31 - <sup>380</sup> 217 ( _b_ _w_ ∀ _j_ ∈ P (20) _w_ 21 ( _b_ _�h_ 20 _w_ 21 ( _b_ _�h_ 20 ) <sup>21</sup> 20 <sup>21</sup> 20 <sup>,-</sup> respectively. Please note that the indices in _q_ 0 _, q_ 1 _, a, b,_ and _w_ along _G_ <sup>_(i)_</sup> ⊆ P are neglected. One can write _∂_ _γ_ <sup>_(i)_</sup> - _γ_ _ϵ(_ _ϵ_ _, �_ _h_ <sup>_(i)_</sup> _)_ _ϵ_ = diag _∂_ _ϵ_ _)_ = diag - _γ_ <sup>_(_</sup> _ϵ_ <sup>_i)_</sup> (21) _∂_ _γ_ <sup>_(i)_</sup> _∂_ _h_ <sup>_(_</sup> _N_ <sup>_i)_</sup> $ = - diag _γ_ _�h(_ _ϵ_ _, �_ _h_ <sup>_(i)_</sup> <sup>�</sup> - _γ_ _�h(_ _ϵ_ _, �_ _h_ <sup>_(i)_</sup> <sup>�</sup> _T_ _h_ _A_ <sup>_T_</sup> _C_ <sup>¯</sup> % <sup>_(_</sup> _�_ <sup>_i)_</sup> _h_ _T_ _h_ (22) _A_ <sup>_T_</sup> _C_ <sup>¯</sup> = - diag _γ_ <sup>_(_</sup> _�_ <sup>_i)_</sup> for all _i_ ∈ M for the first transitional flow derivatives where, again, the main information can be stored in vectors _γ_ _ϵ(_ _ϵ_ _, �_ _h_ _)_ and _γ_ _�h(_ _ϵ_ _, �_ _h_ _)_ that are functions of _ϵ_ and _�_ _h_ . Concerning the Jacobian (according to the definition in [27]), one gets _∂_ _x_ _Q(_ _ϵ_ _, �_ _h_ <sup>_(i)_</sup> _)_ $ <sup>_(_</sup> _t_ <sup>_i)_</sup> <sup>_p_</sup> <sup>_(_</sup> _ϵ_ <sup>_i)_</sup> <sup>_(_</sup> _ϵ_ <sup>_i)_</sup> <sup>+</sup> <sup>_R_</sup> _γ_ <sup>_(i)T_</sup> <sup>_(_</sup> _γ_ <sup>_i)_</sup> <sup>_γ_</sup> <sup>_(_</sup> _ϵ_ <sup>_i)_</sup> _γ_ <sup>_(i)T_</sup> _R_ <sup>_(_</sup> _γ_ <sup>_i)_</sup> % = diag _∂_ _ϵ_ _R_ <sup>_(_</sup> _t_ <sup>_i)T_</sup> $ <sup>_(_</sup> _t_ <sup>_i)_</sup> _p_ <sup>_(_</sup> _ϵ_ <sup>_i)_</sup> <sup>_(_</sup> _t_ <sup>_i)T_</sup> _R_ <sup>_(_</sup> _t_ <sup>_i)_</sup> _ϵ_ <sup>_(_</sup> _ϵ_ <sup>_i)_</sup> <sup>+</sup> <sup>_r_</sup> _γ_ <sup>_(i)_</sup> _γ_ <sup>_(i)_</sup> <sup>_γ_</sup> <sup>_(_</sup> _ϵ_ <sup>_i)_</sup> _ϵ_ % = diag _r_ <sup>_(_</sup> _t_ <sup>_i)_</sup> (23) _∂_ _x_ _Q(_ _ϵ_ _, �_ _h_ <sup>_(i)_</sup> _)_ _∂_ _h_ <sup>_(_</sup> _N_ <sup>_i)_</sup> = - diag = - diag <sup>_(_</sup> _t_ <sup>_i)_</sup> <sup>_p_</sup> <sup>_(_</sup> _�_ <sup>_i)_</sup> _h_ <sup>_(_</sup> _�_ <sup>_i)_</sup> _h_ <sup>+</sup> <sup>_R_</sup> _γ_ <sup>_(i)T_</sup> _R_ <sup>_(_</sup> _γ_ <sup>_i)_</sup> <sup>_(_</sup> _γ_ <sup>_i)_</sup> <sup>_γ_</sup> <sup>_(_</sup> _�_ <sup>_i)_</sup> _h_ _�h_ $ $ _R_ <sup>_(_</sup> _t_ <sup>_i)T_</sup> _r_ <sup>_(_</sup> _t_ <sup>_i)_</sup> _p_ <sup>_(_</sup> _�_ <sup>_i)_</sup> _h_ <sup>_(_</sup> _t_ <sup>_i)T_</sup> _R_ <sup>_(_</sup> _t_ <sup>_i)_</sup> _T_ _h_ + _R_ _l_ <sup>_(i)T_</sup> _l_ <sup>_(i)_</sup> <sup>_w_</sup> _l_ <sup>_(i)T_</sup> _R_ _l_ <sup>_(i)_</sup> % _A_ <sup>_T_</sup> _C_ <sup>¯</sup> % <sup>_(_</sup> _�_ <sup>_i)_</sup> _h_ <sup>+</sup> <sup>_r_</sup> _l_ <sup>_(i)_</sup> <sup>_(_</sup> _�_ <sup>_i)_</sup> _h_ <sup>+</sup> <sup>_r_</sup> _γ_ <sup>_(i)_</sup> <sup>_γ_</sup> <sup>_(_</sup> _�_ <sup>_i)_</sup> _h_ _T_ _h_ (24) _∂γ j_ _∂ϵ j_ _wb_ <sup>−</sup> _q_ <sup>26</sup> 0 _(ϵ_ <sup>_b_</sup> <sup>−</sup> + _q_ <sup>22</sup> 1 <sup>_a_</sup> _)_ <sup>2</sup> _w_ _A_ <sup>_T_</sup> _C_ <sup>¯</sup> _T_ = _γϵ, j_ = <sup>_(_</sup> <sup>89</sup> <sup>_b_</sup> <sup>−</sup> <sup>77</sup> <sup>_a)�h_</sup> <sup>5</sup> <sup>_/_</sup> <sup>4</sup> _q_ 0 _(ϵ_ + _q_ 1 _)_ <sup>2</sup> _q_ 0 _(ϵ_ + _q_ 1 _)_ <sup>2</sup> ( _b_ ) <sup>7</sup> 4 _w_ ) <sup>27</sup> 4 - <sup>_(_</sup> <sup>62</sup> <sup>_b_</sup> <sup>−</sup> <sup>54</sup> <sup>_a)�h_</sup> <sup>7</sup> <sup>_/_</sup> <sup>4</sup> <sup>1</sup> 89 _b_ - 77 _a_ 4 _q_ 0 _�h_ <sup>5</sup> _(ϵ_ + _q_ 1 _)_ <sup>2</sup> ( _b_ <sup>_b_</sup> <sup>−</sup> <sup>54</sup> <sup>_a)�h_</sup> <sup>7</sup> <sup>_/_</sup> <sup>4</sup> + <sup>1</sup> _q_ 0 _(ϵ_ + _q_ 1 _)_ <sup>2</sup> 4 _w_ ) <sup>77</sup> <sup>1</sup> −162 _a_ + 186 _b_ 8 _�h_ <sup>14</sup> <sup>_/_</sup> <sup>3</sup> _q_ 0 _(ϵ_ + _q_ 1 _)_ <sup>2</sup> ( _b_ - <sup>1</sup> ( _b_ 12 _c_ 5 _(ϵ_ + _q_ 1 _)_ <sup>2</sup> 57 ( _b_ _�h_ 31 ) <sup>57</sup> for all _i_ ∈ M, where the flow separation vectors _r_ allow to write and implement the relations in a compact form. _B._ _Second_ _Derivatives_ For the application of the tensor method, the secondtransitional-flow derivatives are needed. As the contribution of the laminar, thus linear, flow vanishes, only the second derivatives _γϵ_ <sup>_(_</sup> <sup>2</sup> <sup>_i_</sup> _,_ <sup>_)_</sup> _j_ <sup>_, γ (_</sup> _�_ <sup>_i_</sup> _h_ <sup>_)_</sup> <sup>2</sup> _, j_ <sup>,</sup> <sup>and</sup> <sup>_γ (_</sup> _ϵ�_ <sup>_i)_</sup> _h, j_ <sup>concerning</sup> _ϵ_ <sup>_(_</sup> <sup>2</sup> <sup>_i_</sup> _,_ <sup>_)_</sup> _j_ <sup>_, γ (_</sup> _�_ <sup>_i_</sup> _h_ <sup>_)_</sup> <sup>_(_</sup> _�_ <sup>_i_</sup> _h_ <sup>_)_</sup> <sup>2</sup> _, j_ <sup>,</sup> <sup>and</sup> <sup>_γ (_</sup> _ϵ�_ <sup>_i)_</sup> _h, j_ <sup>concerning</sup> ) <sup>21</sup> 20 <sup>,-</sup> _w_ ) <sup>489</sup> 620 <sup>489</sup> 620 <sup>+</sup> 21 ( _b_ _�h_ 20 × _w_ _ϵ_ <sup>_(_</sup> <sup>2</sup> <sup>_i_</sup> _,_ <sup>_)_</sup> _j_ <sup>_e_</sup> <sup>_j_</sup> <sup>_e_</sup> <sup>_T_</sup> _j_ <sup>_T_</sup> _j_ <sup>_,_</sup> 31 - <sup>380</sup> 217 _w_ _∂_ <sup>2</sup> _γ_ _j_ <sup>_(i)_</sup> _w_ _T_ _h_ (25a) <sup>_T_</sup> _j_ <sup>_C_</sup> <sup>¯</sup> _∂_ <sup>2</sup> _γ_ _j_ <sup>_(i)_</sup> _∂_ _h_ <sup>_(_</sup> _N_ <sup>_i)_</sup> <sup>2</sup> = _γ�_ <sup>_(i_</sup> _h_ <sup>_)_</sup> _�_ <sup>_(i_</sup> _h_ <sup>_)_</sup> <sup>2</sup> _, j_ <sup>_C_</sup> <sup>¯</sup> _hT_ <sup>_a_</sup> <sup>_j_</sup> <sup>_a_</sup> <sup>_T_</sup> _j_ ∀ _j_ ∈ P (19) _j_ = _γϵ_ <sup>_(_</sup> <sup>2</sup> <sup>_i_</sup> _,_ <sup>_)_</sup> _∂_ _ϵ_ <sup>2</sup> _∂_ <sup>2</sup> _γ_ _j_ <sup>_(i)_</sup> _∂_ _ϵ_ _∂_ _h_ <sup>_(_</sup> _N_ <sup>_i)_</sup> [22] E. Todini and S. Pilati, “A gradient algorithm for the analysis of pipe networks,” in _Computer_ _Applications_ _in Water_ _Supply:_ _Systems_ _Analysis_ _and_ _Simulation_, vol. 1. London, U.K.: Wiley, 1988, pp. 1–20. [23] D. A. Savic, Z. S. Kapelan, and P. M. R. Jonkergouw, “Quo vadis water distribution model calibration?” _Urban Water_ _J._, vol. 6, no. 1, pp. 3–22, Mar. 2009. [24] D. B. Steffelbauer, “Model-based leak localization in water distribution systems,” Ph.D. dissertation, Inst. Urban Water Manage., Fac. Civil Eng. Sci., Graz Univ. Technol., Graz, Austria, 2018. [25] E. Todini and L. A. Rossman, “Unified framework for deriving simulta neous equation algorithms for water distribution networks,” _J. Hydraulic_ _Eng._, vol. 139, no. 5, pp. 511–526, May 2013. [26] S. Kaltenbacher, M. Steinberger, and M. Horn, “Pipe roughness identi fication of water distribution networks: The full turbulent case,” _Appl._ _Math._ _Model._, vol. 80, pp. 879–894, Apr. 2020. [27] S. Kaltenbacher, M. Steinberger, and M. Horn, “Pipe roughness identi fication of water distribution networks: A tensor method,” _Appl._ _Math._ _Comput._, vol. 413, Jan. 2022, Art. no. 126601. [28] S. Kaltenbacher, M. Steinberger, and M. Horn, “Transitional water flow in steady-state,” _Appl._ _Math._ _Model._, vol. 77, pp. 478–490, Jan. 2020. [29] E. J. Dunlop, “WADI users manual,” Local Government Comput. Services Board, Dublin, Ireland, 1991. [30] E. Million, _The Hadamard Product_ . Mountain View, CA, USA: Creative Commons, 2007. [31] D. A. Savic and G. A. Walters, “Genetic algorithm techniques for calibrating network models,” Centre Syst. Control Eng., Univ. Exeter, Exeter, U.K., Tech. Rep. 95/12, 1995. [32] D. B. Steffelbauer, “Model-based leak localization in water distribution systems,” Ph.D. dissertation, Inst. Urban Water Manage., Fac. Civil Eng. Sci., Graz Univ. Technol., Graz, Austria, 2018. [33] J. P. Lippacher, D. B. Steffelbauer, G. Arbesser-Rastburg, and D. Fuchs-Hanusch, “The impact of hydraulic model calibration on model-based leak localization accuracy: Conclusions drawn from a real-world case study,” in _Proc._ _World_ _Environ._ _Water_ _Resour._ _Congr.,_ _Hydraulics,_ _Waterways,_ _Water_ _Distrib._ _Syst._ _Anal._ Reston, VA, USA: ASCE, 2019, pp. 520–527. Stefan Kaltenbacher received the master’s degree in electrical engineering and the Ph.D. degree in technical sciences from the Graz University of Technology, Graz, Austria, in 2016 and 2019, respectively. He is currently with Infineon Technologies AG, Villach, Austria. His academic research area focuses on drinking water distribution networks with a control-theoretical assessment toward steady-state and dynamic modeling, pressure control, and leakage localization as well as detection. Martin Steinberger (Member, IEEE) received the master’s degree in electrical engineering and the Ph.D. degree in technical sciences from the Graz University of Technology, Graz, Austria, in 2005 and 2011, respectively. During his time as a PostDoc at Klagenfurt University, Klagenfurt, Austria, he participated in several projects in the automotive industry. He has been an Assistant Professor with the Institute of Automation and Control, Graz University of Technology, since 2016. His research is mainly focused on sliding mode control and networked control. Martin Horn (Member, IEEE) received the Ph.D. degree in electrical engineering and the Habilitation degree in system dynamics and control, Graz University of Technology, Graz, Austria, in 1998 and 2003, respectively. From 2003 to 2008, he was an Associate Professor with the Institute of Automation and Control, Graz University of Technology. In 2008, he was appointed as a Full Professor of control and measurement systems at the Faculty of Technical Sciences, Klagenfurt University, Klagenfurt, Austria. Since 2014, he has been the Head of the Institute of Automation and Control, Graz University of Technology. His main research interests include robust control theory and networked control. He is currently the Head of the Christian Doppler Laboratory on Model Based Control of Complex Testbed Systems. Dr. Horn serves as a member for European Control Association (EUCA), Austria. = _∂_ <sup>2</sup> _γ_ _j_ <sup>_(i)_</sup> _j_ _∂_ _h_ <sup>_(_</sup> _N_ <sup>_i)_</sup> <sup>_(_</sup> _N_ <sup>_i)∂_</sup> <sup>_ϵ_</sup> = − _γϵ�_ <sup>_(i)_</sup> _h, j_ <sup>_A_</sup> <sup>_T_</sup> <sup>_C_</sup> <sup>¯</sup> _T_ _h_ (25b) for all _j_ ∈ _G_ <sup>_(i)_</sup> ⊆ P ∧ _i_ ∈ M are considered, where _A_ = [ _a_ 1 _a_ 2 - · · _a_ _n_ ] in this context. As first-order _γ_ -derivatives [ _a_ 1 _a_ 2 - · · _a_ _n_ ] in this context. As first-order _γ_ -derivatives (19) and (20) are already complex expressions, the secondorder _γ_ -derivatives, i.e., _γX_ <sup>_(i_</sup> _,_ <sup>_)_</sup> _j_ <sup>for</sup> <sup>_X_</sup> <sup>∈{</sup> <sup>_ϵ_</sup> <sup>2</sup> <sup>_, ϵ�h, �h_</sup> <sup>2},</sup> <sup>have</sup> order _γ_ -derivatives, i.e., _γX_ <sup>_(i_</sup> _,_ <sup>_)_</sup> _j_ <sup>for</sup> <sup>_X_</sup> <sup>∈{</sup> <sup>_ϵ_</sup> <sup>2</sup> <sup>_, ϵ�h, �h_</sup> <sup>2},</sup> <sup>have</sup> been neglected in this work. Details can be found in [27], where _p_ (in the sense of [27], i.e., _p_ only applies for the turbulent regime) has to be replaced by _γ_ . REFERENCES [1] International Water Association. (2015). _Reduction_ _of_ _Non-Revenue_ _Water_ _Around_ _the_ _World_ . Accessed: Nov. 2, 2021. [Online]. Available: https://iwa-network.org/reduction-of-non-revenue-water-around-theworld/ [2] T. M. Walski, D. V. Chase, D. A. Savic, W. Grayman, S. Beckwith, and E. Koelle, _Advanced Water Distribution Modeling and Management_ . Exton, PA, USA: Bentley Institute Press, 2007. [3] M. H. Chaudhry, _Applied_ _Hydraulic_ _Transients_, 3rd ed. New York, NY, USA: Springer, 2014. [4] L. A. Rossman, _EPANET_ _2_ _Users_ _Manual_ . Washington, DC, USA: United States Environmental Protection Agency, 2000. [5] D. G. Eliades, M. Kyriakou, S. Vrachimis, and M. M. Polycarpou, “EPANET-MATLAB toolkit: An open-source software for interfacing EPANET with MATLAB,” in _Proc._ _14th_ _Int._ _Conf._ _Comput._ _Con-_ _trol_ _Water_ _Ind._ _(CCWI)_ . Amsterdam, The Netherlands: Univ. Cyprus, Department of Electrical and Computer Engineering, KIOS Research Center for Intelligent Systems and Networks, Nov. 2016, p. 8, doi: [10.5281/zenodo.831493.](http://dx.doi.org/10.5281/zenodo.831493) [6] F. M. White, _Fluid_ _Mechanics_, 8th ed. New York, NY, USA: McGraw-Hill, 2016. [7] P. R. Bhave, “Calibrating water distribution network models,” _J. Environ._ _Eng._, vol. 114, no. 1, pp. 120–136, Feb. 1988. [8] D. Covas and H. Ramos, “Hydraulic transients used for leakage detection in water distribution systems,” in _Proc._ _4th_ _Conf._ _Water_ _Pipeline_ _Syst.,_ _Manag._ _Pipeline_ _Assets_ _Evolving_ _Market_, 2001, pp. 227–241. [9] S. Kaltenbacher, D. Steffelbauer, M. Cattani, D. Fuchs-Hanusch, M. Horn, and K. Roemer, “A dynamic model for smart water distribution networks,” in _Proc._ _Comput._ _Control_ _Water_ _Ind._, Sheffield, U.K., 2017, p. 67. [10] S. Kaltenbacher, M. Steinberger, and M. Horn, “Modeling hydraulic networks for control: How to deal with consumption?” _IEEE_ _Control_ _Syst._ _Lett._, vol. 2, no. 4, pp. 671–676, Oct. 2018. [11] S. Kaltenbacher, “Water distribution networks: Modeling, observation, roughness identification and its application,” Ph.D. dissertation, Inst. Automat. Control, Fac. Elect. Inf. Eng., Graz Univ. Technol., Graz, Austria, 2019. [Online]. Available: https://diglib.tugraz.at/water-distributionnetworks-2019 [12] S. Díaz, R. Mínguez, and J. González, “Calibration via multi-period state estimation in water distribution systems,” _Water_ _Resour._ _Manage._, vol. 31, no. 15, pp. 4801–4819, Dec. 2017. [13] Z. Kapelan, “Calibration of water distribution system hydraulic models,” Ph.D. dissertation, School Eng., Comput. Sci. Math., Dept. Eng., Univ. Exeter, Exeter, U.K., 2002. [14] T. M. Walski, “Technique for calibrating network models,” _J._ _Water_ _Resour._ _Planning_ _Manage._, vol. 109, no. 4, pp. 360–372, Oct. 1983. [15] P. F. Boulos and D. J. Wood, “Explicit calculation of pipe-network para meters,” _J. Hydraulic_ _Eng._, vol. 116, no. 11, pp. 1329–1344, Nov. 1990. [16] M. P. Kumar and M. S. M. Kumar, “Comparative study of three types of controllers for water distribution networks,” _J._ _Amer._ _Water_ _Works_ _Assoc._, vol. 101, no. 1, pp. 74–86, Jan. 2009. [17] M. H. Terra, J. A. T. Reis, F. H. Chaundry, and R. S. de Souza, “Control of transients in water distribution networks by _H_ ∞ control,” _J._ _Brazilian_ _Soc._ _Mech._ _Sci._, vol. 24, pp. 286–292, Nov. 2002. [18] W. Levine, _The Control Handbook: Control System Applications_, 2nd ed. Boca Raton, FL, USA: CRC Press, 2010. [19] E. Sontag, “Input to state stability: Basic concepts and results,” in _Nonlinear_ _and_ _Optimal_ _Control_ _Theory_ . Berlin, Germany: Springer, 2004. [20] M. Hautus, “Strong detectability and observers,” _Linear_ _Algebra_ _Appl._, vol. 50, pp. 353–368, Apr. 1983. [21] M. Jelali and A. Kroll, _Hydraulic_ _Servo-Systems:_ _Modelling,_ _Identifica-_ _tion_ _and_ _Control_ . London, U.K.: Springer-Verlag, 2003.

섹션 본문 99문단 · 54,461자

(제목 없음)

1This article presents a mathematically rigorous unification of the pipe roughness identification problem of water distribution networks considering all Reynolds regimes, i.e., laminar, turbulent, as well as transitional flow regimes. Although the identification procedure is based on steady-state hydraulic network equations, the identified roughness parameters are also key for dynamic models that can be used for model-based controller and observer designs. While a three-cycle network simulation example serves to illustrate the presented problem formulation and solution in an extensive manner, the application on a real-world drinking water network is in focus. In addition, vital aspects, such as topology simplifications of the underlying network and the importance of the generation and selection of independent measurement sets, are addressed. We apply rootfinding methods instead of methods based on optimization and thereby show that the pipe roughness identification problem may actually be applicable to identify as well as locate leakages.

I. INTRODUCTION

2D RINKING water networks are of utmost importance for society all over the world. However, the share of nonrevenue water, i.e., water that never reaches a registered consumer, accounts for 25%-50% of the total amount of supplied water when put into a global measure (and up to 75% in the emerging markets) as stated by the International Water Association [1]. Consequently, the potential contributions of control system technologies to water distribution systems are manifold and cover, e.g., the coordinated control of distributed actuators (valves and pumps), and the detection of leakages in the water networks [2].

3The basis for advanced techniques is usually formed by mathematical modeling of the underlying distribution network. In the literature, two classical modeling approaches are widely used.

41) A description based on the Navier-Stokes equations allows to account for the full transient case [3] with the goal to model effects as detailed as possible. The underlying partial differential equations are, e.g., solved by the method of characteristics or the method of finite differences (see [3]). 2) A second modeling approach uses the relations for the conservation of mass and energy to deduce a description of the main properties under steady-state conditions, as, for example, described in [2]. The latter approach is particularly useful for networks with a large number of pipes and nodes to keep the modeling complexity low. Consequently, the steady-state modeling is well suited for tasks such as pressure control, calibration, consumer demand prediction, and leakage detection in large hydraulic networks and is, thus, also implemented in standard simulation tools for water distribution networks such as EPANET [4], [5] provided by the United States Environmental Protection Agency. In both cases, pipe roughnesses and pressure head losses are essential for the mathematical description of the water network because the water flow distributes along the networks' branches according to the principle of least actions. The corresponding pressure drop due to friction at the pipe's inner surface strongly depends on the flow regime, i.e., on the laminar, turbulent, or transitional (intermediate) regime with the corresponding flow dynamics, see [2], [6], [7] for details as well as [3], [8] for additional aspects of steady-and unsteady-state friction losses, which are usually neglected.

5Kaltenbacher et al. [9], [10] formulated dynamic models based on the rigid water column theory. This can be seen as an extension of steady-state relations mentioned in 2) to account for the dynamics in pipe flows, depending on the friction along the pipes (head losses), the pressure heads at the nodes (also at source nodes), and the actual nodal consumption. However, the modeling complexity is still low when compared to the approaches in 1) since ordinary differential equations are utilized for the mathematical description of the fluid flows and pressure heads in the network. Pressure-driven [9] and demand-driven versions [10] exist, depending on how consumer nodes are handled in the mathematical formulation (see [11] for an in-depth description). It is also shown in [10] that the dynamical model's equilibrium is equivalent to the steady-state equations used in EPANET.

6For dynamical models as well as for steady-state models, the identification of the friction/roughness coefficients is crucial since it provides the foundation of model-based techniques for the control and observation of nodal pressures and flows [7], [12]- [14], [15]. For example, Kumar and Kumar [16] compared different controllers for water distribution networks and This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/ Terra et al. [17] presented an H ∞ controller design for such applications.

7It is shown in [11] that an observer for the considered water distribution networks specified by the pressure-driven dynamical model exists if the pressure head losses along pipes (and thus also the pipe roughnesses/friction parameters) and the nodal consumption are known. The analysis is based on the concept of the strong zero detectability (see [18], [19], and references therein). In the linear case, strong zero detectability is equivalent to strong * detectability in the sense of Hautus [20]. As a result, the identification of the roughnesses is also necessary for techniques of fault (or leakage) detection and isolation, where the actual behavior of the system under investigation is compared to the nominal one. However, observer design and fault detection techniques are not the focus of this actual work.

8To sum up, the identification of pipe roughnesses (and consequently also the friction losses) has a significant role in many domains of control system technologies. Nevertheless, the identification of hydraulic friction parameters is especially challenging because only a very limited number of sensors is present. A vast amount of sensor data is important, e.g., for the localization of leakages that may have a similar impact on the steady-state behavior as increased friction parameters [21]. A positive aspect of the underlying problem is that the roughnesses, i.e., the pressure head loss coefficients, change very slowly over time in real applications. As a result, real-time requirements are not the main issue and the reidentification of the parameters can be triggered if, e.g., new independent measurement sets are available. This is detailed for the real-world drinking water system described in the following.

9One way to tackle the identification task is to formulate an optimization problem with a certain (e.g., quadratic) cost to be minimized subject to constraints provided by the model description as, e.g., covered in early works as in [22] and later on in [2]. The underlying steady-state equations for the turbulent region are often not used directly but collapsed into a scalar relation in such approaches. As a result, the components of the gradients of the cost function are not independent any more as it is the case for the original steady-state equations, which makes it harder to find the global minimum. Consequently, solvers, e.g., based on genetic algorithms, are widely applied [23], [24]. The main goal for such algorithms is to reproduce certain signals of interest in the network rather than the true pipe roughnesses. This is often referred to as calibration of water networks in the literature (see [23] and references therein).

10In [25], different approaches to directly use the underlying steady-state equations instead of formulating an optimization problem are presented. A comparison of Newton-Raphsontype approaches and successive approximation approaches led to similar results for the considered algorithms, where only the turbulent region is considered. This work was one of the starting points for the present work.

11In [26], we primarily focus on the formulation of the problem and deduce concrete conditions that allow to uniquely solve the identification task. Instead of merely calibrating the network, the emphasis is on the identification of the true pipe roughnesses and not measured pressure heads. A set of assumptions [26, Table 1] has thereby been introduced and solution algorithms have been proposed in [26] and extended in [27]. The roughness identification problem formulation in those papers assumes that each pipe flow in the network has to be in the turbulent regime.

12This restriction is overcome in this present article using the results of Kaltenbacher et al. [28], where they mathematically formulate the transitional Reynolds region between laminar and turbulent flow in steady state. The existence of an explicit function of the steady-state water flow γ in the transitional region [28], satisfying the boundary and gradient conditions [28, eqs. (i)-(iv)] to the other flow regimes, is exploited in the following. In particular, the satisfaction of gradient conditions at the boundaries enables one to propose a root-finding algorithm for the roughness parameter identification task to autonomously decide whether a pipe flow (in the corresponding measurement set) is in the laminar, turbulent, or even transitional regime. In contrast, EPANET applies a simple cubic interpolation for the transitional region [29] only, resulting in nonsmooth transitions (particularly with respect to the roughnesses) between the flow regions as explained in [28] and does not provide any possibility to identify the parameters.

13The authors' previous work about the smooth description of the transitional flow together with the introduced algorithms makes it possible to come up with an advanced identification approach for real water distribution networks, where the actual flow regimes in the considered pipes can be reconstructed. The present work provides the following main contributions.

141) A roughness identification procedure is introduced that allows to account for all three, i.e., laminar, transitional, and turbulent, flow regimes. This is essential for real-world applications in which flow directions are not known a priori in cycled networks. Hence, all flow regimes might be traversed in a smooth way in the course of the solution finding the pipe roughnesses and not measured pressure heads. 2) Two algorithms, based on Newton's method and the tensor approach, are introduced for the underlying identification task. A simulation example of a water network with low complexity is presented to provide insights to the algorithms. 3) The applicability to the real-world drinking water distribution network of Graz-Ragnitz, Austria, is shown. It illustrates the steps to follow for the roughness parameter identification by utilizing the proposed root-finding approach considering all flow regimes. Practical issues related to topology simplifications of the considered water distribution network as well as the importance of the generation and selection of independent measurement sets are discussed in detail. Consequently, the proposed identification procedure forms the basis for advanced model-based control techniques and fault detection and isolation approaches, which consider all three flow regimes.

15Notation: Vectors and matrices are highlighted bold and italic and are symbolized using lower and upper case letters, respectively. Symbols 1 x and 0 x represent a matrix or vector filled with ones or zeros, i.e., 1 3 = [1 1 1] T and [26], [30]

16It is also utilized to show elementwise exponentiations in a more compact form, e.g.,

II. PRELIMINARIES

17This section summarizes preliminary definitions and relations relevant for the identification problem. Details can be found in [26] and [27].

A. Network Hydraulics

18One distinguishes between I = {1, 2, . . . , n j } inner nodes/vertices and S = {n j + 1, . . . , n j + n s } source nodes of the network, which is represented by a connected graph [26,Assumption 1]. The intersection I ∩ S = {} is empty and the combination I ∪ S = N = {1, 2, . . . , n j + n s } yields the entire set N of all nodes. Source nodes characterize nodes, where the associated pressure heads [h s ] i = h (i+n j ) for i = 1, 2, . . . , n s (in m) are known, as it is the case for reservoirs and pumps. Vector [h] i = h i∈I (in m) combines all nodal pressure heads at the inner nodes. They can be split into n p (out of n j ) measured heads

19and not measured heads

20and its complementary partC h consists of unity vectors e i ∈ Z n j {0,1} with indices i ∈ P = {p 1 , p 2 , . . . , p n p } ⊆ I and i ∈P = {p 1 ,p 2 , . . . ,p n j −n p } ⊆ I, respectively, while respecting P ∩ P = {} and P ∪P = I. As a result, C T h C h +C T hC h = I n j has to hold (see [10,Lemma 1]). In addition, the geographical elevation at each inner node [z] i = z i∈I (in m) has to be considered such that the source (pressure) heads h s are increased by the nodal elevation at the corresponding source nodes S.

21The nodal consumption [q] i = q i∈I actually is volumetric flow rates (in m 3 /s) and is a linear combination of P = {1, 2, . . . , n } edge/pipe flows (i.e., volumetric flow rates) symbolized by [x Q ] i = Q i∈P so that

22where A ∈ Z n j ×n {−1,0,1} denotes the incidence matrix related to the inner nodes I. In contrast, the complete incidence matrix

23also considers source nodes S with respect toC s . Influent flows to inner nodes I are counted positively and effluent flows to inner nodes I are counted negatively in (2). However, flows effluent of source nodes S are counted positively forC s because they are influent to the I inner nodes by definition. Examples how to build those matrices can be found, e.g., in [26,Secs. 2 and 6].

24One also has to account for n c = n −n j linear independent cycles in the network's graph by considering the cycle matrix S ∈ Z (n −n j )×n {−1,0,1} (see [26,Sec. 2]). If [26,Assumption 1] applies, cycle matrix S and the transposed incidence matrix A T are orthogonal, i.e., S A T = 0, where rank(S) = n − n j .

B. Colebrook-White's Turbulent Flow

25Turbulent pipe friction is considered via the Darcy-Weisbach formula together with Colebrook-White's implicit friction factor for a Reynolds number of Re ≥ 4000 (see [26] yields

26It expresses the turbulent flow in each pipe P as a function of the corresponding roughness and the head loss h. Please note that , h, pipes diameter d, cross section A, k = (l/(2dg A 2 )), and length l may differ for each individual pipe. The pipe indices are omitted in (3) to improve readability. The gravitational acceleration is denoted by g ≈ 9.81 m/s 2 . The water density ρ and the dynamic water viscosity η are assumed to be constant although they may vary with temperature.

C. Laminar Flow

27A smooth distribution of the velocity profile over the pipe's cross-sectional area can be seen in the laminar flow condition. Applying the relation of Hagen-Poiseuille for the laminar friction factor, one obtains the laminar flow

28which is an exact mathematical result stemming from the fluid equations of motion [6].

D. Transitional Flow

29The authors derived an explicit function [28,Eq. (14) and (43)

30depending on the pipe's roughness and the head loss h along the pipe, which not only satisfies the boundary conditions to the turbulent and laminar flow but also the corresponding gradients to a sufficient degree of accuracy in the physical relevant range where the relative roughness remains between 0 ≤ /d ≤ 5% according to the Moody chart. Detailed instructions to obtain γ can be found in [28,Sec. 6] and are not included here due to space limitations. Using abbreviation b = 4000(Aη/ρd), the boundary from laminar to transitional flow is located at h = b/w and thus constant over h and , whereas the boundary from the transitional to turbulent flow is described by the curve h = q() by means of function

31for all h and /d ∈ [0, 5%]. Using abbreviation a = 4000(Aη/ρd), it can be shown that

32for all h and /d ∈ [0, 5%] with

33utilizing parameters q 0 , q 1 ∈ R that are determined as indicated in [28,Sec. 6].

E. Combined Flow

34Given (3)-(8) while using abbreviation b = 2000(Aη/ρd), the steady-state flow through the pipe can be explicitly expressed by

35Function (9) is central for the considered roughness identification problem. The mathematical descriptions in the laminar and turbulent flow regime have been validated separately in the literature. In the laminar flow regime, the results are exact representations based on dynamic fluid equations (partial differential equations) as, e.g., detailed in [2] and [3]. The equations by Colebrook-White have been validated for the turbulent region as stated, for example, in [28]. It was shown in [28] for the transitional water flow that the introduced mathematical description improves the existing formulations (e.g., by using cubic functions as in [4]) with respect to the gradient on the boundaries to the laminar and turbulent regime.

F. Network and Sensor Configuration

36In order to identify a large number of unknown roughnesses ∈ R n ≥0 and the not-measured pressure heads h (i)

37for all i ∈ M = {1, 2, . . . , n m }, several sets of linear independent measurements [26, Assumption 5] denoted by M are necessary. The minimal number of measurements is n m,min = n /n p [26, eq. (14)] leading to as many equations as unknowns. Linear independency can be achieved by the variation of the source heads h (i) s and/or the nodal consumptionq (i) along the measurement sets i ∈ M, where the hydraulic network has to be in steady state [26,Assumption 6]. In summary, the following holds.

Assumption 1 (Properties of Network and Measurements):

38It is assumed that the following conditions hold. 1(a) The network's graph is connected and has no self-loops. 1(b) The hydraulic friction functions are continuous and strictly monotonically increasing. 1(c) Minor losses are negligible. 1(d) Pipe dimensions, source pressure, and consumption are known. 1(e) Also, a sufficient number of independent measurement sets is available. 1(f) Those measurements are in (hydraulic) steady state. 1(g) Mean-free, white measurement noise with a magnitude smaller than the head loss along each pipe is considered. All assumptions related to the identification problem are more detailed in [26, Table 1], where the same numbering is used. Assumptions 1(a), 1(b), 1(d), and 1(g) are not very restrictive and Assumption 1(c) is usually presumed in calibration methods. However, providing steady-state measurements [Assumption 1(f)] might be challenging in real applications with a large number of pipes. Hence, the proposed identification procedure should be successively applied to different sections of a water distribution network. This is possible by closing valves to isolate a specific section of the network as explained for a real water distribution system in Section VI. The most challenging assumption to be fulfilled is Assumption 1(e), which is related to the number of independent measurement sets. To satisfy Assumption 1(e), additional outflows of the water distribution network can be initiated by using hydrants (which are distributed over the network) to obtain enough independent measurement sets in a steady state (see Section VI for details).

III. PROBLEM STATEMENT CONSIDERING

39ALL FLOW REGIMES In this section, the overall parameter identification problem is formulated. We thereby distinguish flow regimes for individual pipes combined in vectors

40for all j ∈ P and i ∈ M to specify the turbulent flow (10a), the transitional flow (10b), and the proportionality factor (10c) for the laminar flow for all pipes. Entities γ j and f t, j did receive a dedicated index in (10) to highlight that all relations in (10) involve parameters that also vary along P. Also, note that γ (, h (i) ) has to be replaced with sign(h (i) ) γ (, |h (i) |) for negative h (i) (see [28,Remark 2]). One has to ensure that each pipeflow is unique among each measurement set. Hence, the corresponding sets of pipe flow indices

41along the flow regimes. To be able to formulate the problem in a unified and compact fashion for all flow regimes, flow separation matrices

42. .

43and flow separation vectors

44are introduced. They are constructed from unity vectors e j ∈ Z n {0,1} ∀ j ∈ P using the number of pipes of measurement set i in the turbulent n (i) t , transitional n (i) γ , and laminar n (i) L region. The number of pipes in the different flow regimes may vary between all i ∈ M. Consequently, it follows that

45where I n is the identity matrix with dimension n (i) t +n (i) γ +n (i) L = n in which n t , n γ , n L may also vary in each measurement set. Please do not confuse the number of pipes n with the number of laminar flows n L in the i th measurement set. Although the flow separation matrices actually depend on the variables and h (i) N , they are only comprised of zeros and ones, i.e., their derivative always yields the zero matrix.

46Finally, applying (10) and the flow separation matrices (12), one receives the equation set at nodes with no sensors in measurement sets i ∈ M that are the unknowns to be found. Please note that the flow (9) is a nonconvex function by nature, whenever all three flow regimes are considered. The variation of initial conditions primarily intends to relax Assumptions 1(e)-1(g), while it also helps to handle the nonconvex nature of function (9) as explained in detail next.

47One does not have to take the flow regime case separation into account explicitly, and the consideration of matrices

48is sufficient. The consideration of all flow regimes facilitates the transition between laminar and turbulent flow regimes in the solving of problem (14). This allows individual pipe flows in P, in principle, to never become turbulent (or even transitional) in any of the i ∈ M measurement sets. Hence, the following assumption is imposed in addition to Assumption 1.

49Assumption 2: All individual pipe flows [x (i) Q ] j must at least once be in the turbulent regime in any of the i ∈ M measurement sets, i.e.,

50In the following, numerical algorithms are introduced to solve (14) while incorporating the different flow regimes.

IV. SOLUTION ALGORITHMS

51This section briefly introduces the algorithms presented in [26] and [27] and their extensions to solve problem (14). However, an in-depth description of these algorithms can be found in [27,Sec. 7.1] and [26,Secs. 5 and 6]. It is important to emphasize that the authors use numerical root-finding methods on the basis of Newton-Raphson algorithms rather than optimization-based methods that are very common in this research area [13], [31], [32]. This is possible due to the actual formulation providing, at least, as many unknowns as equations.

52Generally, two different types of algorithms have to be distinguished. Type (I) algorithms handle the classical Newtonian iterative solution of a nonlinear yet smooth equation set with step length variation as proposed in [26,Algorithm 1]. Since these algorithms of type (I) still require to start in the vicinity of the real root, denoted by

53, for convergence, a type (II) algorithm then launches the type (I) algorithm (e.g., [26,Algorithm 1]) several times with different initial values. This also accounts for the nonconvexity of the flow (9), which is not a specific feature of the proposed approach but a direct consequence of the considered physical phenomena (see [28]).

54The intermediate best result in terms of the residual v(x) = || f (x)|| L 1 along the different initial values is denoted by x + . In this context, function f (x) follows from (2) and (14) such that:

55. . .

56The combination of these two different kinds of algorithms is necessary for solving as exemplified in the authors' previous publications on the full turbulent case [26], [27] to relax the necessity to start close to real root of . Referring to [27], the extension of second-order derivatives in the determination of a search direction is studied. Using the iteration index k to denote steps in the iterative solution finding, a Taylor series is truncated after the linear term in the Newton-Raphson Algorithm 1 Type (I) Algorithm: Modified Line Search With

57Step Length Variation (Newton or Tensor Approach) algorithm to obtain a search direction

58In contrast, the tensor equation as presented in [27, eq. (12)] for the full turbulent case also considers the second derivatives in the Taylor series so that

59where H([ f (x k )] i ) denotes the Hessian of the i th component of function f (x) (15). Although performance improvements could be achieved with respect to the residual v(x) = || f (x)|| L 1 , this involves considerable effort in terms of the implementation and computational demand. This is particularly true since (16) is also solved iteratively with the MATLAB built-in fsolve(.) function in this work. Details of this tensor method are provided in [27], whereas also, Algorithm 2 Type (II) Algorithm: Variation of Initial Values a customized method to vary the step length μ in x k+1 = x k + μx k is applied.

60Our previous results from [26] and [27] can be extended to the actual problem formulation, i.e., the solution of (14), by replacing partial turbulent flow derivatives p (i) X (according to the definition in [27] as vector) with respect to X ∈ {, h, 2 , h, h 2 } with

61where X ∈ {, h, h 2 , 2 }. In addition, the partial derivatives γ (, h (i) ) and γ h (, h (i) ) have to be replaced by

62for all i ∈ M to also consider negative head losses, i.e., h (i) < 0. The gradient of γ with respect to depends on the sign of h (i) as can be seen in (9), which is not the case for γ h . Consequently, one can consider all three flow regimes in the proposed identification approach although the actual regime (per pipe) is not known a priori. Explicit relations for the first and second derivatives needed for the Newton and tensor method are stated in the Appendix. The algorithms used in this article follow from the algorithms in [26] and [27], where (17) and (18) Hydraulic network with one reservoir, eight pipes, three cycles, and pressure sensors at nodes k = 2, 3, 4 (red), see [26], [27]. The presented algorithms are first applied to a three-cycle network for illustration purposes and then to the real-world water distribution system of Graz-Ragnitz in the following.

63V. THREE-CYCLE NETWORK EXAMPLE A hydraulic network with low complexity is used to show the main steps to apply the algorithms described in Section IV for solving equation set (14).

A. Configuration

64The network shown in Fig. 1 consists of a reservoir, i.e., n s = 1, that provides the source head h s , n = 8 pipes, n j = 5 nodes (n p = 3 pressure nodes), and n c = 3 cycles. For analysis purposes, two measurement sets additional to the minimal required n m,min = n /n p = 3 linear independent measurement sets M were generated to investigate performance improvements by accounting for more than n m,min measurement sets. In addition, (mean-free white) measurement noise is added to the pressure sensors and the consumption data q 2 , q 3 , and q 4 (e.g., records of fireflows). Fig. 2 shows the consumer pattern that is chosen for the simulation example. Steady-state simulation results of the dynamic PD u model, as presented in detail in [11], are taken as artificial measurement sets. This dynamic model applies a pressure-driven consumption approach, where the consumer demand is determined by the pressure at respective nodes instead of a priori values for the consumption (cf. Fig. 3). The set of "measured" values in the steady-state time frames shown in Figs. 2 and 3 is utilized for the subsequent pipe roughness identification by averaging with the aim to mitigate noise effects, which should also be done when using realworld data. Steady-state pipe flow 5 in measurement set 3, i.e., Q (3) 5 , as well as steady-state pipe flow 8 in measurement set 4, i.e., Q (4) 8 , are laminar as can be seen in the zoom window in Fig. 4. All other flows are in the turbulent regime. See Figs. 2 and 3 for the time windows that correspond to the different measurement sets i .

65Two particular reasons, which render this current configuration interesting, shall be highlighted. First, it will be clarified if the derived transitional flow γ (5) is eligible to provide the transition from turbulent to laminar flow in solving (14). Second, insight will be given to which extent mean-free measurement noise in y h and q interferes with the roughness identification.

B. Results and Discussion

66Tables I-VI represent the results of the roughness identification, i.e., the solution of equation set (14) using either the Newton approach (see [26,Algorithm 1] in combination with [26, Algorithm 2]) or the tensor approach (see [27,Algorithm 3] [26], [27] for a detailed description of the algorithms). The computational duration stated in the tables result for an implementation of the proposed algorithms in MATLAB 2 on a low-power notebook from 2015 with an Intel dual-core i5 processor and 8-GB RAM. The focus is not on real-time requirements since the roughness parameters change very slowly over time. Thus, the use of a standard notebook is sufficient in the present case to point out the main properties of the proposed approach.

67The intermediate best result in terms of the residual v(x + ) is highlighted in x T h N ,0 are the estimated mean values for the pressure heads, where the knowledge of the source, the pressure sensors, as well as the network structure ( Fig. 1) are exploited.

68In Tables I-VI, different numbers of measurement sets are used to show their impact on the identification of the pipe roughnesses and not measured head losses h N,1 and h N,5 at nodes 1 and 5 (see Fig. 1) in different measurement sets, respectively.

69One can see that the results are noticeably consistent, cf. values of the identified parameters in the columns with the lowest values for v(x + ), which are marked in green. The residual of the results is approximately two orders of magnitude smaller than the one of the real root v(x * ) (especially in Tables I and II) as the exact solution of without measurement noise. Concerning the regime case separation, the tensor as well as Newton method managed to successfully identify Q (3) 5 (in case of n m = 3) as well as Q (3) 5 and Q (4) 8 (in case of n m = {4, 5}) as laminar and all other steady-state flows as turbulent by evaluating (9) for x + or by checking the flow separation vectors (13). This underpins the applicability of the transitional flow characteristics γ (5) for the complete roughness identification problem (14). Note that the consideration of laminar flows improves the reconstructability of original roughnesses as the known linear (laminar) terms indeed facilitate solving . This can be seen when comparing tables considering n m = 3 with ones considering n m = 4 measurement sets as the results in the former ones are much closer to the original root. In addition, the inclusion of measurement set i = 5 in the problem setup aggravates the solution finding as additionally uncertainties come into play.

70Comparing tensor with Newton results for all n m , no significant improvements could be achieved when considering the second-order derivatives concerning the tensor method. Actually, a slightly smaller residual was found by the Newton method for n m = 5 as can be seen by comparing Table V with Table VI. This has three reasons. First, the second derivatives of γ (see the Appendix) are neglected in the solution finding of the search direction via the tensor equation (16). Second, when solving (16) iteratively with the MATLAB built-in fsolve(.) function, it occasionally happens that a search direction is taken, which has a comparably high residual measurement set i in solving iteration k of . In this context, one can observe that the tensor method indeed takes more iterations on average to converge or abort. Third, as long as measurement sets are sufficiently independent, the application of the Newton method might presumably suffice in combination with [27,Algorithm 4] to obtain a solution that features an even smaller residual v(x + ) than the original root v(x * ). Tables I-VI, the comparably high deviation in the solution of the not-measured pressure head at node 1, i.e., h (i) N,1 ∀i ∈ M, is also noteworthy. The deviation in h (i) N,1 is inherently connected with the deviation in the roughness of the first pipe. Although the estimated roughness of the first pipe, i.e., 1 , is close to the original one * 1 in all the above tables (particularly for the case n m = 4), the error in h (i) N,1 ∀i ∈ M is visible. The major reason for this can again be found in the nonlinear friction relation, where comparably small differences in roughness lead to a substantial deviation in the head loss and thus in the nodal head due to the high flow in pipe 1.

In view of the results in

71In sum, the collection of suitable measurement sets is key for the reconstruction of the pipes' roughness. The best indicator for the quality of the measurement sets is given by the differences among y h + C h z (cf. Fig. 3) and the differences in the consumption q (see Fig. 2). However, when considering minor losses (violating the assumption about the minor losses), i.e., nonzero minor loss parameters [9], and measurement noise that features a nonzero mean, solving becomes substantially more challenging in a sense that one commonly receives estimated roughnesses outside their physical range (above 5% of the pipe's diameter). These solutions, which lie outside the considered physical range, sometimes indeed have comparably low residuals, due to the aggressive search by [27,Algorithm 4]. Nevertheless, in the opinion of the authors, solving problem (14) offers the best chance to reconstruct individual roughnesses per pipe. However, it is very common to group pipes' roughnesses for the solution finding, meaning to assign a single roughness value to multiple pipes in order to compensate for additional unknowns.

72The three-cycle network example gives valuable insights about the applicability of the presented roughness identification scheme as follows.

731) Adverse effects due to measurement noise have been studied. 2) The consideration of laminar flows turns out to facilitate the solving of .

743) The functionality of γ (5) to allow a transition from turbulent to laminar flow (or vice versa) in the solution finding of has been demonstrated. 4) The analysis of considering more than n m,min measurement sets reveals that it does not always facilitate solving , but a careful selection of measurement sets may be necessary. In Section VI, the proposed approaches are applied to realworld measurement data.

VI. ROUGHNESS IDENTIFICATION ON A REAL NETWORK

75The application of the proposed roughness identification approach is now shown for the real-world drinking water distribution network of Graz-Ragnitz, Austria [33]. The measurements used for this analysis were conducted prior to the involvement of the authors with the help of the local water utility in the course of a project with the Institute of Urban Water Management, Graz University of Technology.

A. Topology and Its Simplification

76During the time frame where measurements have been recorded, the network according to Fig. 5 was isolated by valves from other parts connecting itself to a larger distribution network. The topology of this isolated network (part) as presented in Fig. 5 consists of the elements stated in Table VII. Hence, given the number of n = 627 pipes and n p = 13 pressure sensors, one would need to produce at least n m,min = n /n p = 48 independent measurement sets with only n q = 4 fireflows. It is reasonable to assume that there is no way to produce so many independent measurement sets, especially on a high fireflow level necessary to produce enough head loss. The only chance is to simplify the topology to the highest extent possible and thereby reduce the number of pipes and nodes in order to result in a sufficiently small n m,min = n /n p . This is explained in detail in the following. 6. Result of combining adjoining pipes with the same diameter. Nodes with more than two connections, which are used to simplify the topology, are highlighted in green.

1) Dead Ends:

77The first step of the topology simplification involves the removal of dead ends, which also include nodes that represent real consumers (not hydrants) in the original topology. However, as it has to be assumed that they do not retrieve water during the identification measurements (at night), they have to be removed as no corresponding roughness values can be identified.

782) Combine Adjoining Pipes With the Same Diameter: The next step involves the detection and then combination of adjoining pipes with the same diameter by removing the node in between, i.e., the new combined pipe's length has to be adjusted. Pressure and hydrant nodes have to be excluded from this removal. In Fig. 6, one can see the result of the iterative rejoining of pipes with the same diameter. In this process, the x-and y-coordinates of the original nodes have been preserved, which causes, for instance, the small cycle at "HG3933" seen in Fig. 5 to seemingly disappear in Fig. 6. This cycle is still present in the graph of Fig. 6 at this point of simplification, and however, one would have to zoomed-in view substantially.

3) Remapping Pressure Nodes and Hydrant Nodes:

79This section lists four measures to simplify the graph's topology.

801) As pressure nodes with no hydrants on the same link do not have any head loss along this link, it is feasible to remap the pressure nodes to the next respective junction, i.e., a node with more than two connections. In the course of this process, one has to carefully consider the difference in elevation between the pressure node and the final junction node as the height difference has to be considered in the corresponding pressure readings. Thus, the pressure nodes, i.e., the nodes with pressure sensors, are moved to the green junctions in Fig. 6. 2) It turned out that two deployed pressure sensors, namely, "HG3445" and "HG4215," are redundant for all measurements sets, i.e., "HG3420" and "HG3445" or "HG4162" and "HG4215" have the same pressure readings as there is no flow in the links of these two sensor pairs. Hence, the corresponding nodes are removed from the graph. This then enables to move pressure nodes "HG3420" and "HG4215" to the next higher junction with more than two connections. 3) In analogy to 2), the (small) cycle (seen in Fig. 6) enclosing pressure node "HG3933" does not have any hydrant to cause water to flow into this network part.

81As a result, there should be no head loss in this entire cycle, leading to a uniform head distribution up to the next junction. As side note, this is of course only feasible if no background consumption/leakage occurs there. Effectively, the pressure readings of "HG3933" are moved to the next higher junction also accounting for differences in nodal elevation. 4) Similar to 1), as hydrants are also located on dead-endlike links, they are moved to the next higher junctions that are colored in green. This is only feasible due to the assumption to take the measurements in steady state only.

4) Final Graph:

82The final graph's topology used for the roughness identification is shown in Fig. 7. Mind that the identifiers (IDs), e.g., "HG3537," are actually used to denote individual nodes of the original graph in Fig. 5, meaning that the highlighted pressure and hydrant nodes of the final graph in Fig. 7 do have different names, i.e., IDs, internally. However, in order to not confuse the reader, the original IDs have been preserved to support identifiability with the corresponding sensors. Effectively, one can see that the graph has been simplified substantially in comparison to the original one in Fig. 5, as shown in Table VIII. Given the simplified graph, at least n /n p = 7 independent measurement sets are needed to reconstruct suitable roughness values for n = 74 (combined) pipes in the drinking water distribution network. (FIG. 7) Fig. 8. Head readings of all (relevant) pressure sensors according to the graph in Fig. 7. The steady-state time frames used for averaging are highlighted with black dashed lines at the starting and end points. For instance, the fourth time frame can be found between t ∈ [5080, 5140] s. This is a significant improvement compared to n m,min = 48 when considering the original topology in Fig. 5.

B. Sensor Readings and First Assessments

83Generally, hydrants are equipped with flow sensors in order to record the fireflow, treated as "consumption" q, while the pressure sensors record the nodal pressure heads y h during the minimum night flow where the real, unknown consumption (also including losses) is lowest. In Fig. 9, one can see the individual fireflow measurements at the n q = 4 hydrants, whereas Fig. 10 compares the sum of all fireflows of the four hydrants with the total network's inflow that was measured separately at the link where the source connects to the rest of the network (cf. topology in Fig. 7). Counting the peaks in Fig. 9, one can see that there are potentially 15 measurement sets available. However, it will turn out that approximately half of these sets are not suitable for identification. In Fig. 8, one can see all relevant head readings of the pressure sensors with respect to the IDs found in the graph of Fig. 7. Considering Figs. 8 and 9, observations and the applied approaches are summarized in reference to the assumptions made in this work: 1) Assumptions 1(a), 1(b), and 1(d) are fulfilled for the current application. 2) It is, in principle, possible to cause sufficiently large head loss by fireflows to satisfy Assumption 1(g) and thereby provide sufficiently independent sets, see Assumption 1(e). 3) Referring to head readings, Assumption 1(f) to only measure in steady state does seem legitimate yet in very small time frames only. The numerous occurrences of oscillating heads and peaks indicate frequent transient events. Fig. 10 shows the presumably major issue of these measurements as the unknown background consumption, i.e., the difference between blue and red curve, makes up to approximately 40% (between t ≈ [2900, 2960] s) of the total consumption in the corresponding measurement set. The only possibility to circumvent this is to avoid high-erroneous measurement sets, with respect to the background consumption, from (14) and to take only those were the error is smallest, e.g., the first time frame at t ≈ [2380, 2450] s, as shown in Figs. 8 and 10. 6) Three time frames of comparably small fireflows around t ≈ 6000, 7000, 12 000 s at a level of 1 l/s in Fig. 9 actually do not cause any notable head loss as shown in Fig. 8 and are therefore completely unsuitable for the consideration in . 7) The chosen n m = 8 time frames, i.e., measurement sets, for the averaging of measurements had to be chosen considerably small to avoid any possibly transient events, see time frames between the dashed lines in Fig. 8. 8) The minimum night flow, which gives a good estimate of the total water loss, can be identified in the range of 1.2 l/s according to Fig. 10. These background losses are potentially problematic for any identification scheme that is based on the satisfaction of nodal Kirchhoff equations, see (14). However, this is a general problem with all sorts of roughness identification algorithms as these background losses at the time of the identification measurements ultimately lead to mistakenly increased friction parameters. One can hardly detect and localize leakages in an uncalibrated hydraulic network, meaning that all leakages prior to the identification (identification of friction parameters) are likely to remain invisible to the observer. This certainly depends on the size of the leakage nonetheless. If it exceeds a critical size, the detection and localization become feasible at some point.

C. Initial Values

84A crucial point for the considered problem is the selection of the measurement sets and the stochastic variation of the initial values for the launch of the roughness identification concerning (14) as described in Section IV. This is due to the fact (see also [28]) that the considered flow (over all three regimes) is characterized by a nonconvex relation (9) due to the underlying physical principles.

85In particular, the selection of suitable initial values for the nodal pressure head values at nodes with no sensors concerning h (i)

86for all i ∈ M = {1, 2, . . . , 8} is challenging and leaves a lot of potential variables to be adjusted. However, the stochastic variation of initial values as explained in Section IV helps to relax the requirement of already starting with values close to the ones to find.

87Similar to the three-cycle network in Section VI-B, the initial values for h N are chosen by means of averaging heads between pressure nodes. Details about the choice of initial conditions can be found in [11]. As in the previous example, the initial roughness values for launching the identification are selected as 1% of the corresponding pipe's diameter. Mind that according to the proposed algorithm, these initial roughnesses are already varied before launching Newton or tensor algorithms.

D. Results and Discussion

88The obtained roughness results are presented when applying a few iterations of [27,Algorithm 4], which itself launches [27,Algorithm 3]. This process is then stopped after a few iterations because a clear trend can be observed, which will be subject to discussion.

89To begin with, the equation set (14) to be solved features 576 (nodal) equations and 562 variables from which only 74 elements are the roughness values of particular interest. The residual could be reduced from a total error of v(x 0 ) = 33.2020 m 3 /s to v(x + ) = 8.4101 m 3 /s at the 576 nodes considered in solving. Looking at the average error on each node over all eight measurement sets, a presumably more distinctive value for analysis, the error could be reduced from 57.6 to 14.6 l/s. Considering that the fireflows never exceed the 16 l/s mark (see Fig. 10), the error is in a range, which raises questions about the quality of the data. To put the residual in a different perspective, 20.7 nodes exceed the 5-l/s error and 29.1 nodes exceed the 1-l/s error from the total of n j = 74 on average over all eight measurement sets. Fig. 11 shows the results for the obtained relative roughness values directly on the corresponding pipes and highlights 32 pipes that have a relative roughness greater or equal to Fig. 11. Obtained relative roughness values in percent along the pipes of the simplified network's graph highlighting in red those which are greater or equal to /d = 6%. Nodes with an error greater or equal than 10 l/s in one of the eight measurement sets are highlighted in red. Nonpressure nodes, whose head values are not inside their considered range in the respective measurement set (cf. Fig. 8), are mentioned in the legend. /d = 6% (red lines). Fig. 11 also highlights nodes with an error greater or equal than 10 l/s in one of the eight measurement sets (red dots). One can clearly see that there is a correlation between high-erroneous nodes and unrealistically high roughness values. Please note that we aim to find the roughness parameters for all pipes in the considered water distribution system. However, the real roughness values, which would allow a comparison to the identified values, cannot be found for real applications with a reasonable effort. Under the assumption that leakages can be present at each of the n j inner nodes, one would need n j pressure sensors and n flow sensors. In the other extreme case, where no leakages are present, one would need n j pressure sensors and n c flow sensors. Neither case is realistic in real water distribution networks.

90Effectively, two major issues make it difficult to solve and obtain a smaller residual. First, the occurrence of the comparably high background consumption/leakage seen in Fig. 10 causes inherently higher than actual roughnesses. Due to the nonlinear friction relations, an unrealistically high roughness might be necessary to compensate for the unaccounted flow at respective nodes. Second, it turned out that apart from the background leakage, a valve in the lower left corner in Fig. 11 was closed partially during the measurement. Interestingly, however, one can actually see that the exact area of the partially closed valve was identified by the presented roughness identification scheme. This demonstrates that the developed approach may also be suitable to identify network parts inconsistent with the measurement data, e.g., due to leakages. The area close to pressure sensor "HG3933" happens to be red-colored because of the significant background leakage/consumption in the removed cycle. Nevertheless, this cycle had to be removed as no hydrant was opened in this cycle during the measurements.

91The results for h N remain in their physical range, except at nodes that are highlighted in Fig. 11 in the respective measurement set (see legend). This range violation is very minor for the yellow and orange colored nodes, for instance, the orange colored nonpressure node results in h N + z = 497.9588 m, which exceeds the identified upper limit h N +z = 497.9061 m by a mere 5.27 cm. Also, regarding the orange and yellow nonpressure nodes of Fig. 11, heads h N tend to leave their intended range at exactly those nodes adjacent to pipes with very high roughness values, which indicates a correlation between them. The red-colored node of Fig. 11 has h N + z = 476.3744 m but should actually be above h N + z = 480.7406 m. Knowing that there was a partially closed valve as shown in Fig. 11, the developed identification algorithm is able to confidently find discrepancies in the measurement data.

92When taking the results as initial value for the next iteration of, e.g., [27,Algorithm 3] and relax the requirement for the not-measured pressure heads h N to remain inside their selected limits x h N ∈ [h N , h N ], one indeed manages to obtain smaller residuals. However, the roughnesses exceedingly leave their physical range and therefore do not represent results, which can be seriously applied. The effect of nonzero minor losses thereby violating the assumption about negligible minor losses may be of particular interest in this context.

1) Flow Regimes:

93For the considered water distribution network, there are n n m = 592 pipe flows to be categorized among the three flow regimes. Thereby, only 238 pipe flows have been identified to be in the turbulent regime, 219 in the transitional regime, and hence 135 in the laminar regime. This result underlines the importance to distinguish among the three flow regimes in the solving process of . Violating Assumption 2 [1(a)], pipes have flows, which never reach the turbulent regime in any of the eight measurement sets. According to the results of the roughness identification, there is only a single pipe whose flows never become turbulent nor transitional in any of the measurement sets. As shown in Fig. 11, the obtained roughness of this pipe then also exceeds the physically reasonable values, as the variation of this roughness value has no effect on the residual of in the solving process. Looking at Fig. 7 for instance, it is clear why this pipe can neither have turbulent nor transitional flow as there cannot be any flow between "HG4118" (a hydrant) and "HG4150" (a pressure sensor) according to the hydrant configuration.

94This is a remarkable result nonetheless and proves the applicability of γ (5) with respect to to properly distinguish among flow regimes.

95In analogy, the pipe whose flow never reaches the turbulent regime in Fig. 11 has a very high relative roughness of 43.3% according to Fig. 11. Knowing that the smoothness and validity of γ are only preserved in the range of /d ∈ [0, 5]% of the pipe's diameter (see [28]), the root-finding algorithm for particularly struggles to handle roughness values greater 5% when being in the transitional regime. Once in the transitional regime and outside the physical limitation, the algorithm cannot again converge to the turbulent regime.

962) Linear Independency: Recall that n m ≥ n m,min = n /n p is only a necessary condition to satisfy the assumption about the number of linear independent measurements. Apart from that, the best indication about the linear independency is given by the rank of the Jacobian, which is a function of the solution in the iteration step k, i.e., J (x k ). This Jacobian has size J ∈ R 576×562 for the eight measurement sets. One obtains rank( J (x 0 )) = 545 in x 0 , and in the solution corresponding to the roughness values in Fig. 11, it reaches rank( J (x + )) = 549, i.e., its deficiency concerns at least 13 variables among n + n m (n j − n p ) = 562. This has two reasons. First, as discussed previously, there are pipes whose flows are never in the turbulent regime making it impossible to find the corresponding roughnesses. Second, although there is, in principle, enough head loss along some pipes according to the final graph in Fig. 7, this presumably does not apply to all n = 74 pipes when inspecting Fig. 8. Mind the assumption about the measurement noise in this context. The only possibility to improve on this is to consider further and/or different measurement sets with other fireflow configurations, whereas additional fireflows provided by other than the n q hydrants may be particularly valuable in this regard.

VII. CONCLUSION

97The basic applicability of the developed roughness identification on a real drinking water distribution network was demonstrated, considering all three flow regimes. The difficulties and uncertainties when using real-world data were discussed, whereas the problems in the solution finding and results could be traced back to inconsistencies in the data and, for instance, background consumption. The legitimacy of Assumptions 1 and 2 have been studied and turn out to be attainable to a large extent. Nevertheless, the validity of the neglection of minor losses concerning Assumption 1(c) has yet to be verified in greater detail. In short, the authors believe the developed identification scheme not only to be eligible for roughness identification but for the detection and localization of leakages in water distribution systems, which is subject to further research.

A. First Derivatives

98The derivatives of turbulent flow are given in [26]. In addition, the partial derivatives of the transitional water flow γ (5) with respect to the roughness , i.e., [γ ] j , and its derivative with respect to the pressure head loss, i.e., [γ h ] j , are shown in

99for all j ∈ G (i) ⊆ P ∧ i ∈ M are considered, where A = [a 1 a 2 · · · a n ] in this context. As first-order γ -derivatives (19) and (20) are already complex expressions, the secondorder γ -derivatives, i.e., γ (i) X , j for X ∈ { 2 , h, h 2 }, have been neglected in this work. Details can be found in [27], where p (in the sense of [27], i.e., p only applies for the turbulent regime) has to be replaced by γ.

참고문헌 22건

  1. Input to State Stability: Basic Concepts and Results Lecture notes in mathematics · Springer Nature · 2008 10.1007/978-3-540-77653-6_3
  2. Advanced Water Distribution Modeling and Management 2003
  3. Control System Applications CRC Press eBooks · Informa · 2018 10.1201/9781315214061
  4. Comparative study of three types of controllers for water distribution networks American Water Works Association · Wiley · 2009 10.1002/j.1551-8833.2009.tb09825.x
  5. Technique for Calibrating Network Models Journal of Water Resources Planning and Management · American Society of Civil Engineers · 1983 10.1061/(asce)0733-9496(1983)109:4(360)
  6. Strong detectability and observers Linear Algebra and its Applications · Elsevier BV · 1983 10.1016/0024-3795(83)90061-7
  7. Explicit Calculation of Pipe‐Network Parameters Journal of Hydraulic Engineering · American Society of Civil Engineers · 1990 10.1061/(asce)0733-9429(1990)116:11(1329)
  8. Control of transients in water distribution networks by H&lt;FONT FACE=Symbol&gt;¥&lt;/FONT&gt; Control Journal of the Brazilian Society of Mechanical Sciences · SciELO · 2002 10.1590/s0100-73862002000400006
  9. Calibrating Water Distribution Network Models Journal of Environmental Engineering · American Society of Civil Engineers · 1988 10.1061/(asce)0733-9372(1988)114:1(120)
  10. Quo vadis water distribution model calibration? Urban Water Journal · Taylor & Francis · 2009 10.1080/15730620802613380
  11. Unified Framework for Deriving Simultaneous Equation Algorithms for Water Distribution Networks Journal of Hydraulic Engineering · American Society of Civil Engineers · 2012 10.1061/(asce)hy.1943-7900.0000703
  12. A Users Manual Palgrave Macmillan eBooks · Palgrave Macmillan · 2014 10.1057/9781137002419.0006
  13. Hydraulic Servo-systems Advances in industrial control · Springer Nature · 2003 10.1007/978-1-4471-0099-7
  14. Calibration via Multi-period State Estimation in Water Distribution Systems Water Resources Management · Springer Science+Business Media · 2017 10.1007/s11269-017-1779-2
  15. Calibration of Water Distribution System Hydraulic Models 2010
  16. Modeling Hydraulic Networks for Control: How to Deal With Consumption? IEEE Control Systems Letters · Institute of Electrical and Electronics Engineers · 2018 10.1109/lcsys.2018.2846414
  17. Transitional water flow in steady-state Applied Mathematical Modelling · Elsevier BV · 2019 10.1016/j.apm.2019.07.041
  18. The Impact of Hydraulic Model Calibration on Model-Based Leak Localization Accuracy: Conclusions Drawn from a Real-World Case Study World Environmental and Water Resources Congress 2011 · 2019 10.1061/9780784482353.049
  19. Pipe roughness identification of water distribution networks: The full turbulent case Applied Mathematical Modelling · Elsevier BV · 2019 10.1016/j.apm.2019.11.011
  20. Pipe roughness identification of water distribution networks: A Tensor method Applied Mathematics and Computation · Elsevier BV · 2021 10.1016/j.amc.2021.126601
  21. Applied Hydraulic Transients Springer eBooks · Springer Nature · 2013 10.1007/978-1-4614-8538-4
  22. Model-based leak localization in water distribution systems TUGraz OPEN Library (Graz University of Technology) · Graz University of Technology · 2022 10.3217/7jpk6-etg57