Escolar Documentos
Profissional Documentos
Cultura Documentos
DOI 10.1002/aic.15760
Published online in Wiley Online Library (wileyonlinelibrary.com)
Modeling the flow dynamics of leaks in water pipe networks is an extremely difficult problem due to the complex
entangled network structure and hydraulic phenomenon. A mathematical model for leak dynamics in water pipe net-
works based on consensus algorithm and water hammer theory is proposed. The resulting model is a simple and linearly
interconnected system even though the dynamics of water pipe networks has considerable complexity. The model is then
validated using experimental data obtained from real pipe network. A comparative study demonstrates the proposed
model can describe the real system with high qualitative and quantitative accuracy and it can be used to develop
model-based leak detection and location algorithm based on state estimation. To show applicability of the proposed
model, we apply cooperative H1 estimation to the developed model. The results demonstrate the consensus-based
pipe model can be potentially used for leak detection and location with state estimation. V
C 2017 American Institute of
2 DOI 10.1002/aic Published on behalf of the AIChE 2017 Vol. 00, No. 00 AIChE Journal
Figure 1. Pipeline nodes k51; ; N including a leak node kl with velocity .
N 5N node [ N junction [ N sensor 5fn1 ; ; nN g (1) pipe networks, we use deviation variables of fluid velocity and
water pressure with the nominal values since the velocity and
where nk 2 N ðk51; ; NÞ represents the kth node. A N pressure values are different for each pipeline.
3N is the set of edges and represents pipe segments between
nodes
Flow dynamics based on consensus algorithm
A5Apipeseg 5fðnj ; nk Þjk51; ; N; j 2 N k g (2)
From the above consensus algorithm, we propose a flow
where N k 5fj : ðnj ; nk Þ 2 Ag is the set of nodes that the node dynamics model of water pipe networks when a leak occurs.
k receives measurement information from and called the The consensus algorithm can be applied to describe the propa-
neighborhood of the node k. Equation 2 models the informa- gation of a NPW in water pipe networks because the phenom-
tion or physical flow, i.e., the kth node is coupled to the jth ena of the signal transfer to neighboring nodes are similar in
node if and only if ðnj ; nk Þ 2 A. The flow in an arc (nj, nk) is both systems. Therefore, the consensus algorithm can be
defined to be positive when it is directed from j to k; other- applied to fluid velocity as follows
wise, it is negative or possibly zero. The flow is always non- dvk X
negative in arcs where only one direction is possible. 5Kkj ðvj 2vk Þ; k 2 N (4)
dt j2N k
Modeling Procedure
where vk is the fluid velocity at node k and Kkj is the consensus
In this section, we propose a fundamental model of flow gain of node k. The gain Kkj can be varied with the network
dynamics in water pipe networks when a pipe leak occurs. The characteristics.
proposed model is based on the consensus algorithm and clas- When a leak occurs in the pipeline, the transient signal
sical water hammer theory, which will be described in the fol- propagates in the upstream and downstream, and it will affect
lowing subsections. Then, the dynamics at the leak point is the velocities of adjacent nodes. Figure 1 shows an example of
described based on the concepts of the water hammer effect, a pipeline with a leak.
and the complete model is summarized in the last subsection. Equation 4 should be modified to reflect the leak velocity at
Consensus algorithm the nodes adjacent to the leak node, kl. When the water flows
from left to right in the pipeline, Eq. 4 is changed as follows:
We use a consensus algorithm to model the flow dynamics at node k which is on the left side of the leak kl
in water pipe networks because the nodes in water pipe net-
dvk X
works reach a common value of state (on their own). 5Kkj ðvj 2vk 1Þ; k5kl 21 (5)
When multiple nodes (agents) agree on the value of a vari- dt j2Nk
able of interest, they are said to have reached consensus. To
achieve consensus, there must be a shared variable of interest, and at node k, which is on the right side of the leak kl
called the state, as well as appropriate algorithmic methods for dvk X
negotiating to reach consensus on the value of that variable, 5Kkj ðvj 2vk 2Þ; k5kl 11 (6)
called consensus algorithms. Consensus algorithms are dt j2N k
AIChE Journal 2017 Vol. 00, No. 00 Published on behalf of the AIChE DOI 10.1002/aic 3
@V 1 @P dvkl
1 50 (7) 52Mðpkl 2pkl 21 Þ (16)
@x qa2 @t dt
@V 1 @P 4 where M51=qDx and pkl and vkl are the pressure and velocity
1 1 sw 50 (8)
@t q @x qD at the leak point, respectively.
where V is the cross-sectional average velocity, q is the fluid Complete model
density, a is the acoustic water hammer wave speed, P is the We summarize the complete model of the leak dynamics of
water pressure, D is the pipe diameter, sw is the shear stress at water pipe networks in this section. The developed model con-
the pipe wall, x is the spatial coordinate along the pipeline, sists of Eqs. 4–6 and 13–16 and it is formulated as a state
and t is the temporal coordinate. The water hammer wave space model as follows
speed can be calculated using the following formula
sffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi _
x5Ax1Bu1m (17)
K
a5
q
(9) y5Cx1g (18)
11/ KE De
where x5½p1 ; v1 ; ; pkl ; vkl ; ; pN ; vN > 2 R2N is the state
where K is the bulk modulus of elasticity of the fluid, E is of the system, u 5 is the unknown input, y 2 Rm is the mea-
Young’s modulus of elasticity, e is the pipe wall thickness, surement vector, A 2 R2N32N is the system matrix, B 2 R2N31
and / is a parameter that depends on the pipe anchoring. is the input matrix, C 2 Rm32N is the measurement matrix,
From the literature,13 we know that friction in the pipe and m 2 R2N and g 2 Rm are the noise vectors. The measure-
becomes negligible and sw can be safely set to zero in some ment C is defined by sensor number and location in the net-
cases. For example, wall friction is irrelevant as long as the works, with 1 for elements of Cð1; k1 Þ; ; CðNs ; kNs Þ where
simulation time is significantly smaller than 4L=a. Then, the Ns is the sensor number and zero for all other entries. The
classical water hammer model given by Eqs. 7 and 8 becomes noise should be included in the model to portray the real sys-
@V 1 @P tem since the real water pipe network possesses many uncer-
1 50 (10) tainties. The system matrices, A and B, can be represented as
@x qa2 @t 2 3
@V 1 @P 0 L 0 2L 0 0
1 50 (11) 6 7
@t q @x 6 7
6 0 2K1 0 K1 0 0 7
6 7
By using the mass balance of Eq. 10, we can obtain the rela- 6 7
6 7
tionship between fluid velocity and water pressure in the pipe 6 .. 7
6 . 7
network. At node k, Eq. 10 is changed into the following form 6 7
6 7
6 7
@vk 1 @pk 6 0 0 L 0 2L 0 0 7
1 50; k2N (12) 6 7
@x qa2 @t A56 6
7
7
6 0 M 0 2M 0 0 0 7
The partial derivative of vk with respect to x in Eq. 12 should 6 7
6 7
be discretized to solve it, and we apply a backward finite dif- 6 7
6 .. 7
ference method (FDM) since the variable does not consider- 6 . 7
6 7
ably change in a short length in the pipeline. Using the first- 6 7
6 7
order FDM, Eq. 12 can be expressed for pressure as follows 60 0 L 0 2L 7
6 7
4 5
dpk
52Lðvk 2vk21 Þ; k2N (13) 0 0 KN 0 2KN
dt
(19)
where L5qa2 =Dx and Dx is the length between nodes.
When a leak occurs, Eq. 13 should be modified at the nodes and
adjacent to the leak node kl B5½ 0 0 Kkl 21 0 2Kkl 11 0 0 L 0 L 0 0 >
dpk (20)
52Lðvk 2vk21 2Þ; k5kl 61 (14)
dt
A and B can differ depending on the network topology and the
For the water pressure variable, it does not distinguish the location of the leak.
flow direction because the NPW is considerably faster than the It is worthwhile to note that the presented model has a form
fluid velocity. of simple and linear interconnected equations even though
the system has highly complex dynamics. This is attributed to
Dynamics at leak point the form of consensus algorithm applied to this system and the
first-order FDM of water hammer equation. The first-order
The flow dynamics at the leak point can be described by the
FDM is appropriate because the fluid velocity does not change
water hammer effect explained in the previous section because
much in the short length less than 10 m.
the propagation of a pressure wave is similar except for the
negativeness or positiveness of the pressure wave. Then, the
pressure and flow at leak node kl have the following dynamics Validation of the Developed Model
dpkl In this section, the developed dynamic model is validated
52Lðvkl 2vkl 21 Þ (15) using experimental data obtained from a real water pipe
dt
4 DOI 10.1002/aic Published on behalf of the AIChE 2017 Vol. 00, No. 00 AIChE Journal
Figure 2. Water pipe network of test area with 50 nodes and 48 links.
[Color figure can be viewed at wileyonlinelibrary.com]
network as explained in Ref. 2. First, we introduce geometry network, it is sufficient to serve as a field test for validation
information of the water pipe network and present steady- since it includes sufficient pipe length and two junctions to
state and unsteady-state water pressures measured from characterize the network system.
sensors in the test area. Second, the developed dynamic Link over 10 m are divided by the node division strategy
model is compared with the experimental data, and the proposed in Ref. 2. After the node division, the final node
related residuals and errors are calculated in the following matrix A0 has dimensions of 50 3 50, and the minimum and
subsection. maximum step sizes of arcs are 9.4841 and 9.6410 m, respec-
tively. The final 50 network nodes are marked on the network
Experiments displayed in the black box of Figure 2.
The developed dynamic model was validated using the field Here, the fire hydrants were used to generate a leak by open-
data obtained from a real water pipe network in South Korea. ing valves. This process could simulate a pipe leak by sud-
Without any households or factories near the test area, the denly discharging water, leading to a NPW in the pipe
experiment could be controlled for sensors to capture the leak network. Figure 3 shows the pressure measurement station
incident only. used in the test and the water discharge of the hydrant while
The overall pipe network topology is shown in Figure 2. conducting the experiment.
The experimental pipe network of the test area includes three Pressure transients are measured by three pressure sensors,
pressure sensors and two fire hydrants. The total pipeline named UNIK 5000 (GE). They are connected to a PC
length covered by these three sensors is 452 m. Although the equipped with 12 bit A/D and D/A converters. The sampling
pipe network is not as complex as a real-life water pipe frequency of the pressure sensor is 250 Hz; that is, the pressure
Figure 3. (a) Measurement station of pressure and (b) water discharge by opening hydrant valve (photographs pro-
vided by Hun-joo Cha of Samchully Co., Ltd.).
[Color figure can be viewed at wileyonlinelibrary.com]
AIChE Journal 2017 Vol. 00, No. 00 Published on behalf of the AIChE DOI 10.1002/aic 5
obviously distinguished and they are commonly used for leak
detection and location of pipe networks.2,6,14
We obtained a total of ten experimental data sets, which
were generated at Hydrant 1. The water flow was discharged
at approximately 3 L/s at Hydrant 1, and the normal flow rate
of this network continuously varied from 4.17 to 8.33 L/s.
6 DOI 10.1002/aic Published on behalf of the AIChE 2017 Vol. 00, No. 00 AIChE Journal
Application of Cooperative Estimation to Water
Pipe Networks
Distributed and cooperative estimation proposed in Wu
et al.12 is applied to the developed model for fault detection
and location. The estimation is appropriate for large-scale
interconnected system such as the developed water pipe net-
work model. Especially, the fact that dimensions of local esti-
mators do not grow with the network size can be more useful
for larger system such as water pipe network. Furthermore,
another important point of this estimator is that it does not
require local detectability of subsystems and this is particu-
larly suitable for systems with insufficient sensors.
The cooperative estimator is designed to guarantee h1 -
performance for a class of linear interconnected systems where
system uncertainty can be modeled as an additive unknown
disturbance term in the dynamic equation. Therefore, it can
give asymptotically stable state estimates in application to the
developed water pipe network model that includes disturbance
terms.
The above points justify practical use of cooperative estima-
tion12 for water pipe networks.
AIChE Journal 2017 Vol. 00, No. 00 Published on behalf of the AIChE DOI 10.1002/aic 7
2 3
A1 A12 A1N
6 7
6 7
6 A21 A2 ⯗ 7
6 7
6 7
A56 7 (23)
6 .. 7
6 ⯗ . ⯗ 7
6 7
4 5
AN1 AN
>
B5 B>1 B>
N (24)
2 3
C1 C12 C1N
6 7
6 7
6 C21 C2 ⯗ 7
6 7
6 7
C56 7 (25)
6 .. 7
6 ⯗ . ⯗ 7
6 7
4 5
CN1 CN
> >
by using the stacked vectors x5½x>
1 ; ; xN ;
> > > > > >
m5½m1 ; ; mN , and g5½g1 ; ; gN .
The state should be repartitioned for designing local estima-
tors. We follow repartitioning policy presented in Wu et al.12
For all k51; ; N, the global interconnected system of Eqs.
17 and 18 can be written as
2 ðkÞ 3 2 ðkÞ 32 ðkÞ 3 2 ðkÞ 3 2 ðkÞ 3
x_ AðkÞ A~ x B m
4 55 4 54 51 4 5u14 5
ðkÞ ðkÞ ðkÞ ðkÞ
x_ ðkÞ
c A~
c A
ðkÞ
c x c B c m c
(26)
ðkÞ ðkÞ
yk 5C x 1gk (27)
8 DOI 10.1002/aic Published on behalf of the AIChE 2017 Vol. 00, No. 00 AIChE Journal
2 ðjÞ 3
Theorem 1. The problem admits
21a solution in theform21 of pj Pn21 0 0
estimators Eq. 28 with LðkÞ 5 PðkÞ GðkÞ and K ðkÞ 5 PðkÞ 6 k ðk1;j Þ 7
6 7
FðkÞ if the matrices F(k), G(k), and P(k) for k51; ; N are a 6 7
ðkÞ 6
0 7
ðjÞ
solution of the following LMIs Uj 56 0 pj Pn21 7 (35)
6 k ðk2;j Þ 7
2 ðkÞ ðkÞ
3 6 7
QðkÞ 1W ðkÞ 2GðkÞ PðkÞ BðkÞ SðkÞ Tj1 ;k Tjs ;k 4 5
6 k
7 ..
6 7 0 0 .
6 7
6 2GðkÞ> 2cI 0 0 0 0 0 7
6 7 where fkkj kj ðkÞ
\ I ðjÞ .
6 7 1 ; k2 ; g5I
6 7 The proof is provided in the literature.12 The cooperative esti-
6 PðkÞ BðkÞ > 0 2xI 0 0 0 0 7
6 7 mator determines a collection of estimates x^ðkÞ ðtÞ; k51; ; N,
6 7
6 7 that provides guaranteed h1 -performance in the sense that
6 S ðkÞ>
0 0 R ðkÞ
0 0 0 7
6 7 N ð1 N ð1
6 7 X X
6 7 ðkÞ> W ðkÞ ðkÞ dt x2 jjmjj2 1c2 jjgk jj2 dt1I0
6 ðkÞ> ðkÞ 7
6 Tj1 ;k 0 0 0 Uj1 ;k 0 0 7 0 0
6 7 k51 k51
6 7 (36)
6 7
6 .. 7
6 ⯗ 0 0 0 0 . 0 7 (k)
6 7 for a positive semidefinite weighting matrix W . Here, I0 5
4 5 PN ðkÞ> ðkÞ
ðkÞ>
Tj1 ;k 0 0 0 0 0 Uj1 ;k
ðkÞ k51 x0 PðkÞx0 is the cost due to the observer’s uncer-
tainty about the initial conditions of the subsystems and ðkÞ
<0
is the local estimation error vector defined as ðkÞ 5xðkÞ 2^ x ðkÞ
(29) > > > > > rk
x nk ð1Þ ; ; xnk ðrk Þ 2^
5½xnk ð1Þ 2^ x nk ðrk Þ 2 R . When m 5 0 and
with fj1;k ; j2;k ; ; jsk ;k g5Nk . The matrices are defined as g 5 0, the estimation errors exponentially decay so that ðkÞ
follows ! 0 for all k51; ; N.
To apply the state estimation of Eq. 28, we first identify
where the leak occurs, i.e., leak node kl. By comparing pres-
! sure measurements with the proposed model for kl 51; ; M
X X where M is the node number of the network, we can find the
ðkÞ
N 5 en21 ðkÞ e>
n21 ðkÞ
(30)
j2Nk
leak node kl such that the difference between the model and
k2I ðkÞ \I ðjÞ
> measurement is minimized. Now we can identify all the states
QðkÞ 5PðkÞ AðkÞ 1AðkÞ> PðkÞ 2GðkÞ CðkÞ 2 GðkÞ CðkÞ of the network with cooperative and distributed estimation. If
> faults occur in the pipe network, a NPW is generated and
2FðkÞ N ðkÞ 2 FðkÞ N ðkÞ propagates from the leak point to the entire network. There-
2 ðkÞ 3 fore, the NPW signals would appear in order of distance and
qðk; nk ð1ÞÞP1 0 0 this distance difference is also displayed on the pressure sen-
6 7
6 7 sors as in Figure 6. After all the states are estimated, the leak
6 7
6 . 7 location is easily identified since the node having the steepest
1a1 pk 6 0 . . 0 7 Pk
6 7 pressure drop should be nearest to the leak point. This method
6 7
4 5 does not require any fault location algorithm unlike the previ-
ðkÞ ous works.2,3 We set up edges between nodes are all less than
0 0 qðk; nk ðrk ÞÞPrk
|fflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflffl{zfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflfflffl
ffl} 10 m according to the node division strategy so that the loca-
(31) tion error range is within 10 m.
Now we propose the following algorithm.
ðkÞ (k)
where Pi 2 R is the ith diagonal element of P , pk and a Data: AðkÞ ; BðkÞ ; CðkÞ for subsystem xðkÞ ; k51; ; N
are positive constants, and pðkÞ is the diagonal element of Result: Fault location
PðfðkÞÞ which corresponds to xk and Compute L(k) and K(k) offline;
h i h i Read pressure measurements;
ðkÞ ðkÞ ~ðkÞ ðkÞ ~ðkÞ
S 5 P A ðkÞ
P A ðkÞ
(32) if Fault occurs then
k1 k2 for j51; ; M do
2
3 Calculate leak dynamics x using Eqs. 17–20 for kl 5 j;
ðkÞ
pfðkðkÞ Þ p k1 0 0 P
Ns
6 1 7 Find j such that min j jjxl ðkl 5jÞ2ym;l jj2 ;
6 7
6
7 l51
6 ðkÞ 7
RðkÞ 56 0 pfðkðkÞ Þ p k2 0 7 (33) end
6 1 7 kl j;
6 7
4 5 Implement estimator Eq. 28 and find x^ðkÞ ; k51; ; N;
.. Give fault location;
0 0 .
else
ðkÞ ðkÞ ðkÞ Give no fault sign;
for fk1 ; k2 ; g5Ic and
end
Algorithm 1. Fault detection and location algorithm
h i N and Ns is the subsystem and sensor numbers, respectively,
ðkÞ ðkÞ
Tj 5 F en21 FðkÞ en21 ðk2;j Þ (34) and xl ðkl 5jÞ is the dynamics at sensor l when kl 5 j, and ym,l
k ðk1;j Þ k
AIChE Journal 2017 Vol. 00, No. 00 Published on behalf of the AIChE DOI 10.1002/aic 9
the initial estimated state is not accurate compared to the case
where the error is zero. Should the initial estimation error be
greater than 2%, it would affect the leak identification result
as shown in Figure 10b; it is difficult to determine which node
is closest to the leak node because the slopes of the pressure
drop are similar due to the initial estimation error. However,
the initial estimation error is determined as the average value
of the nominal state obtained from the experimental data mea-
sured in the test area. It is found from the measurement data
that the initial estimation error does not exceed 2% of the
actual initial state in the presence of noise and model-plant
mismatch.
We conclude the estimation section with some remarks.
REMARK 1. It is found that (A(1), C(1)), (A(2), C(2)), and
(A , C(3)) defined in Eqs. 26 and 27 are undetectable. We
(3)
10 DOI 10.1002/aic Published on behalf of the AIChE 2017 Vol. 00, No. 00 AIChE Journal
network increases, more pressure sensors are needed to for Developing Eco-Innovation Technologies (GT-11-G-02-
ensure scalability. 001-5).
AIChE Journal 2017 Vol. 00, No. 00 Published on behalf of the AIChE DOI 10.1002/aic 11