Next Article in Journal
Multi-Hop Relay Selection Based on Fade Durations
Previous Article in Journal
Degradation Cost Analysis of Li-Ion Batteries in the Capacity Market with Different Degradation Models
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Blockage Detection in Pipeline Based on the Extended Kalman Filter Observer

by
Raheleh Jafari
1,*,
Sina Razvarz
2,
Cristóbal Vargas-Jarillo
2 and
Alexander Gegov
3
1
School of design, university of Leeds, Leeds LS2 9JT, UK
2
Departamento de Control Automatico, CINVESTAV-IPN (National Polytechnic Institute), Mexico City 07360, Mexico
3
School of Computing, University of Portsmouth, Buckingham Building, Portsmouth PO13HE, UK
*
Author to whom correspondence should be addressed.
Electronics 2020, 9(1), 91; https://doi.org/10.3390/electronics9010091
Submission received: 10 December 2019 / Revised: 25 December 2019 / Accepted: 26 December 2019 / Published: 1 January 2020
(This article belongs to the Section Systems & Control Engineering)

Abstract

:
Currently numerous approaches with various applicability have been generated in order to detect damage in pipe networks. Pipeline faults such as leaks and partial or complete blockages usually create serious problems for engineers. The model-based leak, as well as block detection methods for the pipeline systems gets more and more attention. Among these model-based methods, the state observer and state feedback based methods are usually used. While the observability, as well as controllability, are taken to be the prerequisites for utilizing these techniques. In this work, a new technique based on the extended Kalman filter observer is proposed in order to detect and locate the blockage in the pipeline. Furthermore, the analysis of observability and controllability in the pipe networks is investigated. Important theorems are given for testing the observability as well as controllability of the pipeline system.

1. Introduction

Leaks, as well as partial or complete blockages, can be considered as a usual fault arising in pipelines that creates troubles [1,2,3,4]. Leaks result in loss of fluid that causes a loss in pressure, efficiency as well as economic expense, also on occasions it may impact the environment. Blockage barricade flow, which causes a loss in pressure, and so enhances the required pumping expenses in order to dominate the loss in pressure, also occasionally blockage results in absolute termination of functioning [5,6]. Advanced diagnosis, as well as an exact place of leaks or blockages, can help in avoiding the troubles created by such faults and also develop the correct timing decision in order to deal with faults for preventing or diminishing production/performance suspension [7,8,9,10,11].
Blockages have been classified based on their physical extent related to the entire length of the system. Localized contractions, which are taken to be point discontinuities, are defined as discrete blockages. Blockages that contain remarkable length related to the entire pipe length are defined as extended blockages [12]. Dissimilar to the leaks inside piping systems, blockages do not produce obvious exterior indicators for their location to be mentioned as the release and agglomeration of fluids surrounding the pipe. Oftentimes intrusive approaches, utilizing devices the insertion of a closed-circuit camera or a robotic PIG (pipeline intervention gadget), are needed in order to specify the place of blockages. Insertion of a camera or robotic pig can lead to several uncertainties related to the speed of travel and the distance of travel in the midst of the insertion point and the blockage such that on many occasions cases the camera or the robotic pig is trapped into the blockage and leads to greater trouble in this case compared with the appearance of the blockage solely.
Recently, flow analysis is developed on the basis of efficient methods in order to identify blockages. The developed techniques utilize fluid transients according to the responding of the system to an injected transient in order to detect, locate, as well as to measure blockages, which have demonstrated a promising development. In [13,14] a time reflection technique is suggested in order to detect partial blockage of discrete and extended types in a single pipeline for different numbers of blockages. In [15] an impulse response technique is proposed in order to detect leaks as well as partial blockages of discrete type in a single pipeline, and also the technique is tested numerically. In [16] the authors used the damping of fluid transients on the basis of the analytical solution as well as experimental verifications in order to detect partial single discrete blockage in a single pipeline. In [17] the numerical outcomes with laboratory experiments are compared and concluded that the blockage location can be identified with nearly no error, whilst the size identification contains some errors.
The recent published research findings are more dependent on designing the observer, controller or fault identification approaches [18,19,20,21,22,23,24]. In this work, a novel method is proposed in order to analyse pipeline system, generally for identification and location of blockage using model-based techniques and extended Kalman filter observer. The modelling process is based on discretization with the finite-difference technique of classical mass as well as continuity equations. The discretization results in a system of ordinary differential equations with boundary conditions, which demonstrate faults as well as pipeline accessories. The states of the produced system are flows, pressure heads, the blockage and a parameter concerned with the blockage intensity. In continuous-time, a nonlinear system is used for designing observers. Observers are commonly on the basis of a conversion of the treated system into a triangular observable form accordingly, the variables that are straightly estimated correlate with the output derivatives. Furthermore, in this paper, the observability and the controllability of the pipe networks are investigated.

2. Pipeline Modelling

Here, we neglected the convective variation in velocity, also the compressibility in the line of length ( Γ ) . The liquid density ( ρ ), the flow rate ( Φ ) and also pressure ( Ρ ) at the entry and exit of the pipe can be measured for evaluation. The cross-sectional region ( Θ ) related to the pipe was taken to be fixed all over the pipe system. The feature of the pipe is illustrated in Figure 1.
For acquiring the mass and momentum in hydrodynamics utilizing Newton’s second law ( F = m a ) to a control volume in the continuum and body force pipe [25] (ρ = f 2 δ v ) the below-mentioned equation can be developed,
v t + 1 ρ p λ + f 2 δ v = 0 .
By substituting v = Φ Θ and p = ρ g Π in (1) the following relation is gotten,
( Φ Θ ) t + 1 ρ ( ρ g Π ) λ + f 2 δ ( Φ Θ ) = 0 ,
which may be simplified as
( Φ ) Θ t + ρ g ρ ( Π ) λ + f 2 δ Θ Φ = 0 .
This equation may be written as
Φ t + Θ g λ H + f Φ 2 δ = 0 ,
where Π is taken to be the pressure head ( m ) , Φ is taken to be the flow rate ( m 3 / s ), λ is considered as the length coordinate ( m ) , t is considered as the time coordinate ( s ) , g is taken to be the gravity ( m / s 2 ) , Θ is taken to be the section area ( m 2 ) , δ is taken to be the diameter ( m ) and f is considered as the friction coefficient.
In most work the friction coefficient is fixed, even if it is sometimes updated known to depend on the so-called Reynolds number ( R e ) and the roughness friction coefficient of the pipe ( e ) . The Swamee–Jain equation [26] describes this friction coefficient value for a pipe with a circular section of diameter ( δ ) as:
f = ( 0.5   ln [ 0.27 ( e δ ) + 5.74 1 R e 0.9 ] ) 2 .
Such that,
R e = 4 ρ Φ π δ μ = ρ v δ μ ,
where ρ is the fluid density and μ is the fluid viscosity. Equation (5) is valid for 10 8 < e δ < 0.01 and 5000 < R e < 10 8 .
The continuity equation can be defined as follows for the pipeline system,
p t + ρ a 2 v λ = 0 .
Replacing the pressure head ( Π ) as well as the flow rate ( Φ ) in Equation (7), we have,
Π t + a 2 g Θ Φ λ = 0 .
Such that a is taken to be the velocity of the pressure wave ( m / s ) .
The pressure head ( Π ) and flow rate ( Φ ) are taken to be functions of position and time as Π ( x ,   t ) and Φ ( x ,   t ) , such that λ   [ 0 , Γ ] , where Γ is the pipe length.
If a system has minor variations we have,
Φ t + Θ g λ Π + f Φ δ Θ = 0 .

3. Blockage Modelling

Blockages have been considered as usual faults in pipes as well as pipeline networks. They can be generated because of the agglomeration of the transported fluid or the partial block of a valve. A blocked is a reduced cross-sectional area of the pipe with significant length γ . For modelling the blocked stretch (see Figure 2), the blockage region, displayed by Θ b , is expressed as a percentage of the pipe region Θ . The subscript b signifies the blockage.
Pressure H 1 varies due to the blockage and this changed pressure is displayed by H 1 b .
A mathematical expression for a blockage can be deduced from the Bernoulli’s equation, which relates the pressure difference between the pipeline inside and outside. Bernoulli’s equation applies under the following considerations [27].
  • Non viscous flow;
  • Continuous flow;
  • Through the pipe line;
  • Constant density.
By applying Bernoulli’s principle as well as continuity equations among point 1 (before the blockage) and point 1b (in the blockage), we have [27],
Π 1 + V 1 2 2 g + Z 1 + h w 1 = Π 1 b + V 1 b 2 2 g + Z 1 b + h w 1 b + ε ,
where Π denotes the pressure head of the fluid, V denotes the velocity of the fluid flow, ρ is considered to be the density of the fluid, Z is taken to be the elevation at points blockage, h w denotes energy inputs with pumps or turbines and also ε is the pressure losses in the pipe sector. Since In horizontal pipe levels Z 1 , as well as Z 1 b , are equivalent, and also energy inputs with pumps and/or turbines are zero (in this case), so we have
Π 1 + V 1 2 2 g = Π 1 b + V 1 b 2 2 g + ε .
According to the continuity of conservation of mass we have
ρ V 1 Θ = ρ V 1 b Θ 1 b ,
where   Θ is taken to be the cross-sectional area of the pipeline, also Θ b   is taken to be the cross-sectional area at the blockage. Hence,
V 1 b = V 1 Θ Θ b .
By substituting Equation (13) in Equation (11) the following relation is extracted
Π 1 b = Π 1 + V 1 2 2 g ( 1 ( Θ Θ b ) 2 ) ε .
Assume   ε to be very small, as it is taken to be a function of the flow as well as the blockage geometry. Hence, the below-mentioned relation, which contains a discharge coefficient η ,   is utilized:
η = 1 ε V 1 2 2 g ( 1 ( Θ Θ b ) 2 ) .
By substituting Equation (15) in Equation (14) the following relation is extracted
Π 1 b = Π 1 + η Θ b 2 V 1 2 Θ 2 V 1 2 2 g Θ b 2 ,
which, stated in regards to the volumetric flow Q = V Θ , becomes
Π 1 b = Π 1 + η Θ b 2 Φ 1 2 Θ 2 Φ 1 2 2 g Θ 2 Θ b 2 .
This model considers the two circumstances happening at the two edges of the blocked sector: a constriction happening upstream of the blockage (from Θ to Θ b ) and a distension happening downstream (from Θ b to Θ ).
The following equations describe the dynamics of pressures head and flows before blockage ( Π 1 , Φ 1 ) and after it ( Π 1 b , Φ 1 b ) respectively.
Φ ˙ 0 = Θ g Π 1 Π 0 λ f 2 δ Φ 0 , Φ ˙ 1 = Θ g Π 1 Π 0 λ f 2 δ Φ 1 , Φ ˙ 2 b = Θ b g ( Π 2 b Π 1 b ) γ f b 2 δ Φ 2 b , Φ ˙ n = Θ g ( Π n Π 2 ) ( Γ λ γ ) f 2 δ Φ n , Π ˙ 0 = a 2 g Θ Φ 1 Φ 0 λ , Π ˙ 1 = a 2 g Θ Φ 1 Φ 0 λ , Π ˙ 2 b = a 2 g Θ b ( Φ 2 b Φ 1 b ) γ ,
where Π 1 b and Π 2 are calculated using Bernoulli’s and continuity Equations [27] as below
Π 1 b = Π 1 + η Θ b 2 Φ 1 2 Θ 2 Φ 1 2 2 g Θ 2 Θ b 2 ,     Π 2 = Π 2 b + η Θ 2 Φ 2 b 2 Θ b 2 Φ 2 b 2 2 g Θ 2 Θ b 2 ,
and at the point of the blockage, the flow rates are equal such that Φ 1 = Φ 1 b and   Φ 2 b = Φ 2 . In Equations (18) and (19), Π 0 , Π 1 , Π 1 b ,   Π 2 , Π 2 b   and   Π n are the pressure head variables and Φ 0 , Φ 1 , Φ 1 b , Φ 2 , Φ 2 b   and   Φ n are the flow rate variables. In this work, we aimed to construct observer and controller for the systems stated in Equation (8) as well as Equation (9). A nonlinear model can be expressed as follows
d x i d t = f ( x i , t ) + g ( x i , t , u ) ,
y = h ( x i , t , u ) ,
such that x is taken to be the state vector, which has i unknown flow perturbation quantities at every point.
Several numerical methods are available for the solution of Ordinary differential equations (ODEs) Equations (20) and (21). Here the finite-difference approach is used for its simplicity, and because it is suitable for simulation and non-linear observer design [28]. Control variables in the different cases can be presented by the pressures head and flow rates at the beginning and end of the pipe. The solution of the discretized model, using any technique needs boundary conditions that present known values of the variables at the edge of the researched area. Boundary conditions may just be pressures head, just flows, or combining both. The selection of boundary conditions alters the construction of the models, also may change the quantity of equations wherein the discretized model is subdivided. In real systems, boundary conditions can be defined using the elements existing in the hydraulic system. Figure 3 represents the possible boundary conditions in a scheme of a discretized pipeline. We had six cases for the modelling, based on choosing the control variables.
Case 1: The controllable initial as well as boundary conditions are taken to be pressure heads at the start and ending of the pipe, see Figure 3A. The input conditions can be stated as
{ Π ( 0 , t ) = Π i n ( t ) Π ( L , t ) = Π o u t ( t ) ,
and output values are
{ Φ ( 0 , t ) = Φ i n ( t ) Φ ( L , t ) = Φ o u t ( t ) .
The vectors u ( t ) and   y ( t ) are the inputs and outputs of the system respectively. We have x = ( Φ 0   Φ 1   Φ 2 b   Φ n   Π 1   Π 2 b   γ   λ   Θ b ) T , u : = [ Π i n   Π o u t ] T = ( Π 0   Π n ) T and y = ( Φ 0   Φ n ) T . Hence,
Φ ˙ 0 = Θ g Π 1 Π 0 λ f 2 δ Φ 0 , Φ ˙ 1 = Θ g Π 1 Π 0 λ f 2 δ Φ 1 , Φ ˙ 2 b = Θ b g ( Π 2 b Π 1 b ) γ f b 2 δ Φ 2 b , Φ ˙ n = Θ g ( Π n Π 2 ) ( Γ λ γ ) f 2 δ Φ n , Π ˙ 1 = a 2 g Θ Φ 1 Φ 0 λ , Π ˙ 2 b = a 2 g Θ b ( Φ 2 b Φ 1 b ) γ , γ ˙ = 0 , λ ˙ = 0 , Θ ˙ b = 0 ,
where Π 1 b and Π 2 are calculated using Bernoulli’s and continuity Equations as below,
Π 1 b = Π 1 + η Θ b 2 Φ 1 2 Θ 2 Φ 1 2 2 g Θ 2 Θ b 2 . Π 2 = Π 2 b + η Θ 2 Φ 2 b 2 Θ b 2 Φ 2 b 2 2 g Θ 2 Θ b 2 .
Case 2: The controllable boundary conditions are taken to be flow rate and pressure head at the start and ending of the pipe, respectively, see Figure 3B. The input conditions can be stated as
{ Π ( 0 , t ) = Π i n ( t ) Φ ( L , t ) = Φ o u t ( t ) ,
and output values are
{ Φ ( 0 , t ) = Φ i n ( t ) Π ( L , t ) = Π o u t ( t ) .
The vectors u ( t ) and   y ( t ) are the inputs and outputs of the system respectively. We have x = ( Φ 0 Φ 1   Φ 2 b   Π 1   Π 2 b Π n   γ   λ   Θ b ) T , u : = [ Φ i n   Π o u t ] T = ( Φ n   Π 0 ) T and y : = [ Φ i n   Π o u t ] T = ( Φ 0   Π n ) T . Hence,
Φ ˙ 0 = Θ g Π 1 Π 0 λ f 2 δ Φ 0 , Φ ˙ 1 = Θ g Π 1 Π 0 λ f 2 δ Φ 1 , Φ ˙ 2 b = Θ b g ( Π 2 b Π 1 b ) γ f b 2 δ Φ 2 b , Π ˙ 1 = a 2 g Θ Φ 1 Φ 0 λ , Π ˙ 2 b = a 2 g Θ b ( Φ 2 b Φ 1 b ) γ , Π ˙ n = a 2 g Θ ( Φ n Φ 2 ) ( Γ λ γ ) , γ ˙ = 0 , λ ˙ = 0 , Θ ˙ b = 0 ,
where Π 1 b   and Π 2 are calculated using Bernoulli’s and continuity equations as below,
Π 1 b = Π 1 + η Θ b 2 Φ 1 2 Θ 2 Φ 1 2 2 g Θ 2 Θ b 2 . Π 2 = Π 2 b + η Θ 2 Φ 2 b 2 Θ b 2 Φ 2 b 2 2 g Θ 2 Θ b 2 .
Case 3: The controllable initial and boundary conditions are taken to be flow rate and pressure head at the start of the pipe, see Figure 3C. The input conditions can be stated as
{ Π ( 0 , t ) = Π i n ( t ) Φ ( 0 , t ) = Φ i n ( t ) ,
and output values are
{ Φ ( L , t ) = Φ o u t ( t ) Π ( L , t ) = Π o u t ( t ) .
The vectors u ( t ) and   y ( t ) are the inputs and outputs of the system respectively. We have x = ( Φ 1   Φ 2 b   Φ n   Π 1   Π 2 b     Π n   γ   λ   Θ b ) T , u : = [ Φ i n   Π i n ] T = ( Φ 0   Π 0 ) T and y : = ( Φ n   Π n ) T . Hence,
Φ ˙ 1 = Θ g Π 1 Π 0 λ f 2 δ Φ 1 , Φ ˙ 2 b = Θ b g ( Π 2 b Π 1 b ) γ f b 2 δ Φ 2 b , Φ ˙ n = Θ g ( Π n Π 2 ) ( Γ λ γ ) f 2 δ Φ n , Π ˙ 1 = a 2 g Θ Φ 1 Φ 0 λ , Π ˙ 2 b = a 2 g Θ b ( Φ 2 b Φ 1 b ) γ , Π ˙ n = a 2 g Θ ( Φ n Φ 2 ) ( Γ λ γ ) , γ ˙ = 0 , λ ˙ = 0 , Θ ˙ b = 0 ,
where Π 1 b and Π 2 are calculated using Bernoulli’s and continuity equations as below,
Π 1 b = Π 1 + η Θ b 2 Φ 1 2 Θ 2 Φ 1 2 2 g Θ 2 Θ b 2 . Π 2 = Π 2 b + η Θ 2 Φ 2 b 2 Θ b 2 Φ 2 b 2 2 g Θ 2 Θ b 2 .
Case 4: The controllable initial and boundary conditions are taken to be flow rate at the start and pressure head at the ending of the pipe, see Figure 3D. The input conditions can be stated as
{ Π ( L , t ) = Π o u t ( t ) Φ ( 0 , t ) = Φ i n ( t ) ,
and output values are
{ Φ ( L , t ) = Φ o u t ( t ) Π ( 0 , t ) = Π i n ( t ) .
The vectors u ( t ) and   y ( t ) are the inputs and outputs of the system respectively. We have x = ( Φ 1   Φ 2 b   Φ n   Π 0   Π 1   Π 2 b   γ   λ   Θ b ) T , u : = [ Φ i n   Π o u t ] T = ( Φ 0   Π n ) T and y : = ( Φ n   Π 0 ) T . Hence,
Φ ˙ 1 = Θ g Π 1 Π 0 λ f 2 δ Φ 1 , Φ ˙ 2 b = Θ b g ( Π 2 b Π 1 b ) γ f b 2 δ Φ 2 b , Φ ˙ n = Θ g ( Π n Π 2 ) ( Γ λ γ ) f 2 δ Φ n , Π ˙ 0 = a 2 g Θ Φ 1 Φ 0 λ , Π ˙ 1 = a 2 g Θ Φ 1 Φ 0 λ , Π ˙ 2 b = a 2 g Θ b ( Φ 2 b Φ 1 b ) γ , γ ˙ = 0 , λ ˙ = 0 , Θ ˙ b = 0 ,
where Π 1 b and Π 2 are calculated using Bernoulli’s and continuity equations as below,
Π 1 b = Π 1 + η Θ b 2 Φ 1 2 Θ 2 Φ 1 2 2 g Θ 2 Θ b 2 .     Π 2 = Π 2 b + η Θ 2 Φ 2 b 2 Θ b 2 Φ 2 b 2 2 g Θ 2 Θ b 2 .
Case 5: The controllable initial and boundary conditions are taken to be flow rate at the start and ending of the pipe, see Figure 3E. The input conditions can be stated as
{ Φ ( 0 , t ) = Φ i n ( t ) Φ ( L , t ) = Φ o u t ( t ) ,
and output values are
{ Π ( 0 , t ) = Π i n ( t ) Π ( L , t ) = Π o u t ( t ) .
The vectors u ( t ) and   y ( t ) are the inputs and outputs of the system respectively. We have x = ( Φ 1   Φ 2 b   Π 0   Π 1   Π 2 b   Π n   γ   z   Θ b ) T , u : = [ Φ i n   Φ o u t ] T = ( Φ 0   Φ n ) T and y : = ( Π 0   Π n ) T . Hence,
Φ ˙ 1 = Θ g Π 1 Π 0 λ f 2 δ Φ 1 , Φ ˙ 2 b = Θ b g ( Π 2 b Π 1 b ) γ f b 2 δ Φ 2 b , Π ˙ 0 = a 2 g Θ Φ 1 Φ 0 λ , Π ˙ 1 = a 2 g Θ Φ 1 Φ 0 λ , Π ˙ 2 b = a 2 g Θ b ( Φ 2 b Φ 1 b ) γ , Π ˙ n = a 2 g Θ ( Φ n Φ 2 ) ( Γ λ γ ) , γ ˙ = 0 , λ ˙ = 0 , Θ b = 0 ,
where Π 1 b and Π 2 are calculated using Bernoulli’s and continuity equations as below,
Π 1 b = Π 1 + η Θ b 2 Φ 1 2 Θ 2 Φ 1 2 2 g Θ 2 Θ b 2 .     Π 2 = Π 2 b + η Θ 2 Φ 2 b 2 Θ b 2 Φ 2 b 2 2 g Θ 2 Θ b 2 .
Case 6: The controllable boundary conditions are taken to be pressure heads and flow rate at the start and ending of the pipe, respectively, see Figure 3F. The input conditions can be stated as
{ Φ ( L , t ) = Φ o u t ( t ) Π ( L , t ) = Π o u t ( t ) ,
and output values are
{ Φ ( 0 , t ) = Φ i n ( t ) Π ( L , t ) = Π i n ( t ) .
The vectors u ( t ) and   y ( t ) are the inputs and outputs of the system respectively. We have x = ( Φ 1   Φ 2 b   Φ n   Π 0   Π 1   Π 2 b   γ   λ   Θ b ) T , u : = [ Φ o u t   Π o u t ] T = ( Φ n   Π n ) T and y : = ( Φ 0   Π 0 ) T . Hence,
Φ ˙ 0 = Θ g Π 1 Π 0 λ f 2 δ Φ 0 , Φ ˙ 1 = Θ g Π 1 Π 0 λ f 2 δ Φ 1 , Φ ˙ 2 b = Θ b g ( Π 2 b Π 1 b ) γ f b 2 δ Φ 2 b , Π ˙ 0 = a 2 g Θ Φ 1 Φ 0 λ , Π ˙ 1 = a 2 g Θ Φ 1 Φ 0 λ , Π ˙ 2 b = a 2 g Θ b ( Φ 2 b Φ 1 b ) γ , γ ˙ = 0 , λ ˙ = 0 , Θ ˙ b = 0 ,
where Π 1 b and Π 2 are calculated using Bernoulli’s and continuity equations as below,
Π 1 b = Π 1 + η Θ b 2 Φ 1 2 Θ 2 Φ 1 2 2 g Θ 2 Θ b 2 .     Π 2 = Π 2 b + η Θ 2 Φ 2 b 2 Θ b 2 Φ 2 b 2 2 g Θ 2 Θ b 2 .

4. Observer Design by Using the Extended Kalman Filter

In estimation theory, the extended Kalman filter (EKF) is the nonlinear version of the Kalman filter, which linearizes about an estimate of the current mean and covariance. The extended Kalman filter was introduced to solve the problem of non-linearity in Kalman filter. The standard extended Kalman filter is commonly derived from a first order Taylor expansion of the state dynamics and measurement model. There is a version of the extended Kalman filter that extends this concept to include also an approximation of the second order Taylor term. The extended Kalman filter resembles the Kalman filter in that they both intend to get correct first order moments. The extended Kalman filter makes the non linear function into linear function using Taylor Series, it helps in getting the linear approximation of a non linear function. However, one common idea considered in this paper for the aim of blockage identification problem is the blockage parameter approximation λ ,   γ as well as Θ b , utilizing an extended Kalman filter. For this aim, the model proposed in Equations (18) and (19) has been developed by the dynamics of these parameters, also a nonlinear observer has been made for the developed system [29]. For different cases it has been assumed to measure only pressures head, or only flow rates or combination of both at the beginning or end of the pipeline. For case 1, flow rates at the start and ending of the pipe are considered as outputs which are directly measured as follows,
y = [ Φ 0   Φ n ] T ,
and the pressure heads at the start and ending of the pipe considered as known inputs are
u = [ Π 0   Π n ] T .
Also,
λ ˙ = 0 ;   γ ˙ = 0 ;   Θ ˙ b = 0 .
The derivatives of blockage parameters z ,   λ and   Θ b have been taken zero as their alterations are minute. Therefore Equations (18) and (19) can be extended as below,
[ Φ ˙ 0 Φ ˙ 1 Φ ˙ 2 b Φ ˙ n Π ˙ 1 Π ˙ 2 b γ ˙ λ ˙ Θ ˙ b ] = [ Θ g Π 1 Π 0 λ f 2 δ Φ 0 Θ g Π 1 H 0 λ f 2 δ Φ 1 Θ b g ( Π 2 b Π 1 b ) γ f b 2 δ Φ 2 b A g ( Π n H 2 ) ( L λ γ ) f 2 δ Φ n a 2 g Θ Φ 1 Φ 0 λ a 2 g Θ b ( Φ 2 b Φ 1 b ) γ 0 0 0 ] ,
where Π 1 b and Π 2 are computed as below [27],
Π 1 b = Π 1 + η Θ b 2 Φ 1 2 Θ 2 Φ 1 2 2 g Θ 2 Θ b 2 .     Π 2 = Π 2 b + η Θ 2 Φ 2 b 2 Θ b 2 Φ 2 b 2 2 g Θ 2 Θ b 2 .
Accordingly, Equation (49) can be formulated as below,
x ˙ = ϕ ( x , u ) ,
where x = ( Φ 1   Φ 2 b   Φ n   Π 0   Π 1   Π 2 b   γ   λ   Θ b ) T and ϕ ( x , u ) is taken as a nonlinear function.
Now, to estimate the block parameters λ ,   γ and   A 0 , a discrete-time extended Kalman filter is designed for the nonlinear model described in Equation (49). To do that, this model is discretized by using Heun’s method. In this method, the solution for the initial value problem is given by [30],
x ˙ = ϕ ( x ( t ) , u ( t ) ) ,   x ( t 0 ) =   x 0 .
Therefore,
x i + 1 = x i + Δ t 2 [ ϕ ( x i , u i ) + ϕ ( x i + Δ t ϕ ( x i , u i ) , u i + 1 ) ] ,
where Δ t is taken to be the time step also, i is taken to be the index of discrete-time. Applying Equation (53) into Equation (49) the following are extracted,
Φ 0 i + 1 = Φ 0 i + Δ t 2 ( Θ g Π 1 i Π 0 i z i f 2 δ Φ 0 i Θ g Π ^ 1 i + 1 Π 0 i + 1 z i + 1 ) f 2 δ Φ ^ 0 i + 1 , Φ 1 i + 1 = Φ 1 i + Δ t 2 ( A g Π 1 i Π 0 i z i f 2 δ Φ 1 i A g Π ^ 1 i + 1 Π 0 i + 1 z i + 1 ) f 2 δ Φ ^ 1 i + 1 , Φ 2 b i + 1 = Φ 2 b i + Δ t 2 ( Θ b g Π ^ 2 b i Π ^ 1 b i λ i f b 2 δ Φ 2 b i A g Π ^ 2 b i + 1 Π ^ 1 b i + 1 γ i + 1 ) f 2 δ Φ ^ 2 b i + 1 , Φ n i + 1 = Φ n i + Δ t 2 ( Θ g Π ^ n i Π ^ 2 i ( Γ λ i γ i ) f 2 δ Φ n i A g Π ^ n i + 1 Π ^ 2 i + 1 ( Γ λ i + 1 γ i + 1 ) ) f 2 δ Φ ^ n i + 1 , Π 1 i + 1 = Π n i + Δ t 2 ( a 2 g Θ Φ 1 i Φ 0 i λ i a 2 g Θ Φ ^ 1 i + 1 Φ ^ 0 i + 1 λ i + 1 ) , Π 2 b i + 1 = Π 2 b i + Δ t 2 ( a 2 g A b Φ 1 i Φ 0 i γ i a 2 g Θ Φ ^ 1 i + 1 Φ ^ 0 i + 1 λ i + 1 ) , γ i + 1 = γ i , λ i + 1 = λ i , Θ b i + 1 = Θ b i ,
in compact form:
x i + 1 = ϕ ( x i , u i + 1 , u i ) ;   y i = H x i .
where
x i = [ Φ 0 i   Φ 1 i   Φ 2 b i   Φ n i   Π n i   Π 2 b i   γ i   λ i   Θ b i ] T   ; u i = [ Π 0 i   Π n i ] T H = [ 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 ] .

Observer Approach

A the discrete-time extended Kalman filter as a state observer for the system Equation (49) is defined as below [31],
x ^ i = x ^ i ˜ + κ i ( y i H x ^ i ˜ ) ,
where   x ^ i ˜ is the priori estimate of x i :
x ^ i ˜ = ϕ ( x ^ i 1 , u i 1 ) .
κ i is the Kalman gain:
κ i = P i ˜ H T ( H P i ˜ H T + R ) 1 .
P i ˜   is the priori covariance matrix:
P i ˜ = J i P i 1 ( J i ) T + Q .
P i   is the posteriori covariance matrix:
P i = ( I K i H ) P i ˜ .
J i is the Jacobian matrix:
J i = ϕ ( x , u ) x | x = x ^ i .
Finally, R and Q are known as the covariance matrices of measure and process noises, respectively. Notice that:
x ^ i = ( Φ ^ 1 i   Φ ^ 2 b i   Φ ^ n i   Π ^ 0 i   Π ^ 1 i   Π ^ 2 b i   γ ^ i   λ ^ i   Θ ^ b i ) ,
with P 0 ˜ = ( P 0 ˜ ) T > 0 ,   R = R T > 0   and Q = Q T > 0 .

5. Simulation Results

Here, simulations were carried out in Matlab for one case for the model shown in Figure 1. The model was realized on the pipeline with the following physical parameters:
The length of the pipeline was Γ = 120   m , the diameter of the pipe was δ = 0.08   m , the cross-section was Θ = 5.03   ×   10 3   m 2 , density was ρ = 1000   kg / m 3 , gravity was g = 9.81   m / s 2 , the friction factor of the pipe was f = 0.006 , the friction factor of the blockage part was f b = 0.016 and the wave speed was a = 1250   m / s .
Control variables are the pressures head at the start and ending of the pipeline ( Π 0   and Π n ). In addition, the flow rates ( Φ 0   and Φ n ) are taken to be outputs of the system.
The covariance matrices of measure and process noises introduced by expressions respectively
R ˇ = Diagonal   Matrix   [ 2.25   ×   10 5 ,   5.5   ×   10 2 , 2.25   ×   10 5 , 1000 , 10 7 ]
Q ˇ = Diagonal   Matrix   [ 2.25   ×   10 5 , 2.25   ×   10 5 ]
The initialization of the state is given in Table 1. The model, the observer, as well as the state feedback construction are demonstrated in Figure 4.
Figure 4 and Figure 5 demonstrate the simulated pressure head at the inlet   ( H ( i n ) = H 0 = 14   m )   and outlet ( H ( o u t ) = H n = 7.3   m ) of the pipe.
Figure 6, Figure 7 and Figure 8 shows the estimation of the position, length and the area of blockage in the pipeline. Where the Position of blockage was 80 m from initial of pipe and length of blockage was 12.2 m and cross section area in blockage was 3.5   ×   10 3   m 2 .

6. Conclusions

The second order extended Kalman filter (SEKF) is based on a second order Taylor expansion of a nonlinear system, in contrast to the more common (first order) extended Kalman filter (EKF) that is based on a second order Taylor expansion of a nonlinear system. The objective of this paper was to analyse and model the blockage in the pipe networks. We utilized the finite difference technique since it is an uncomplicated approach for designing a more appropriate model for observing and controlling the construction of the nonlinear system. This technique partitions the whole pipe into N sectors. Flow and pressure head estimations were well estimated in the presence of a blockage. Some theorems were presented in order to detect blockage in the system. In future we will investigate the estimation of multi blockages in the pipe networks.

Author Contributions

All authors contributed equally to this work. All authors have read and agreed to the published version of the manuscript.

Funding

This paper is funded by, Electronics-MDPI as part of 2019 Travel Award sponsored by Electronics.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Verde, C. Multi-leak detection in fluid pipelines. Control Eng. Pract. 2001, 9, 673–682. [Google Scholar] [CrossRef]
  2. Verde, C.; Visairo, N. Multi-leak isolation in a pipeline by unsteady state test. In Proceedings of the CDC-ECC’05 Conference, Sevilla, Spain, 12–15 December 2005. [Google Scholar]
  3. Kowalczuk, Z.; Gunawickrama, K. Leak detection and isolation for transmission pipelines via nonlinearstate estimation. IFAC Proc. Vol. 2000, 33, 943–948. [Google Scholar]
  4. Garc Tirado, J.F.; Leon, B.; Begovich, O. Validation of a semi physical pipeline model for multi leak diagnosis purposes. In Proceedings of the 20th IASTED International Conference. Modelling and Simulation, Banff, AB, Canada, 6–8 July 2009. [Google Scholar]
  5. Ghazali, M.F.; Beck, S.B.; Shucksmith, J.D.; Boxall, J.B.; Staszewski, W.J. Comparative study of instantaneous frequency based methods for leak detection in pipeline networks. Mechan. Syst. Signal Proc. 2012, 29, 187–200. [Google Scholar] [CrossRef]
  6. Mpesha, W.; Chaudry, M.N.; Gassman, S. Leak detection in pipes by frequency responcy response method. J. Hydraul. Eng. 2001, 127, 137–147. [Google Scholar] [CrossRef]
  7. Covas, D.; Ramos, H. Standing wave difference method for leak detection in pipeline systems. J. Hydraul. Eng. 2005, 131, 1106–1116. [Google Scholar] [CrossRef]
  8. Billman, L.; Isermann, R. Leak detection methods for pipelines. In Proceedings of the 8th IFAC Congress: A Bridge between Control Science and Technology, Budapest, Hungary, 2–6 July 1984; Volume 17, pp. 1813–1818. [Google Scholar]
  9. Verde, C.; Torres, L.; Gonzalez, O. Decentralized scheme for leaks location in branched pipeline. J. Loss Prev. Process Ind. 2016, 43, 18–28. [Google Scholar] [CrossRef]
  10. Razvarz, S.; Jafari, R.; Vargas-jarillo, C. Modelling and Analysis of Flow Rate and Pressure Head in Pipelines. In Proceedings of the 16th International Conference on Electrical Engineering, Computing Science and Automatic Control (CCE), Mexico City, Mexico, 11–13 September 2019; IEEE: Piscataway, NJ, USA, 2019; Volume 1, pp. 1–6. [Google Scholar] [CrossRef]
  11. Razvarz, S.; Jafari, R. Experimental Study of Al2O3 Nanofluids on the Thermal Efficiency of Curved Heat Pipe at Different Tilt Angle. J. Nanomater. 2018, 2018, 1591247. [Google Scholar] [CrossRef]
  12. Duan, H.F.; Lee, P.J.; Ghidaoui, M.S.; Tung, Y.K. Extended Blockage Detection in Pipelines by Using the System Frequency Response Analysis. J. Water Resour. Plan. Manag. 2012, 138, 55–62. [Google Scholar] [CrossRef]
  13. Adewumi, M.A.; Eltohami, E.S.; Ahmed, W.H. Pressure Transients across Constrictions. J. Energy Resour. Technol. 2000, 122, 34–41. [Google Scholar] [CrossRef]
  14. Adewumi, M.A.; Eltohami, E.S.; Solaja, A. Possible Detection of Multiple Blockages Using Transients. J. Energy Resour. Technol. 2003, 125, 154–159. [Google Scholar] [CrossRef]
  15. Vitkovsky, J.P.; Lee, P.J.; Stephens, M.L.; Lambert, M.F.; Simpson, A.R.; Liggett, J.A. Leak and Blockage Detection in Pipelines Via an Impulse Response Method. Pumps, Electromechanical Devices and Systems Applied to Urban Water Management. In Proceedings of the International Conference, Valencia, Spain, 22–25 April 2003. [Google Scholar]
  16. Wang, X.J.; Lambert, M.F.; Simpson, A.R. Detection and Location of a Partial Blockage in a Pipeline Using Damping of Fluid Transients. J. Water Resour. Plan. Manag. 2005, 131, 244–249. [Google Scholar] [CrossRef]
  17. Sattar, A.M.; Chaudhry, M.H.; Kassem, A.A. Partial Blockage Detection in Pipelines by Frequency Response Method. J. Hydraul. Eng. 2008, 134, 76–89. [Google Scholar] [CrossRef]
  18. Razvarz, S.; Vargas-Jarillo, C.; Jafari, R. Pipeline Monitoring Architecture Based on Observability and Controllability Analysis. In Proceedings of the 2019 IEEE International Conference on Mechatronics (ICM), llmenau, Germany, 18–20 March 2019; Volume 1, pp. 420–423. [Google Scholar]
  19. Jafari, R.; Razvarz, S.; Vargas-Jarillo, C.; Yu, W. Control of Flow Rate in Pipeline Using PID Controller. In Proceedings of the 16th IEEE International Conference on Networking, Sensing and Control, (IEEE ICNSC 2019), Banff, AB, Canada, 9–11 May 2019; Volume 1, pp. 293–298. [Google Scholar]
  20. Razvarz, S.; Vargas-jarillo, C.; Jafari, R.; Gegov, A. Flow Control of Fluid in Pipelines Using PID Controller. IEEE Access 2019, 7, 25673–25680. [Google Scholar] [CrossRef]
  21. Yu, W.; Jafari, R. Fuzzy Modeling and Control of Uncertain Nonlinear Systems (IEEE Press Series on Systems Science and Engineering), 1st ed.; Wiley-IEEE Press: New York, NY, USA, 2019; ISBN 978-1119491552. [Google Scholar]
  22. Keshavarz Moraveji, M.; Razvarz, S. Experimental investigation of aluminum oxide nanofluid on heat pipe thermal performance. Int. Commun. Heat Mass Transfer 2012, 39, 1444–1448. [Google Scholar] [CrossRef]
  23. Jafari, R.; Razvarz, S. Solution of fuzzy differential equations using fuzzy sumudu transforms. Math. Comput. Appl. 2018, 23, 5. [Google Scholar] [CrossRef] [Green Version]
  24. Jafari, R.; Razvarz, S.; Gegov, A. Neural Network Approach to Solving Fuzzy Nonlinear Equations using Z-Numbers. IEEE Trans. Fuzzy Syst. 2019, 1. [Google Scholar] [CrossRef] [Green Version]
  25. Brown, G. The Darcy-Weisbach Equation; Oklahoma State University publication: Stillwater, OK, USA, 2002. [Google Scholar]
  26. Swamee, P.K.; Ain, A.K. Explicit equations for pipe-flow problems. J. Hydraul. Div. 1976, 102, 657–664. [Google Scholar]
  27. Batchelor, G.K. An Introduction to Fluid Dynamics; Cambridge University Press: Cambridge, UK, 2000. [Google Scholar]
  28. Chaudhry, H.M. Applied Hydraulic Transients; Springer: New York, NY, USA, 2014. [Google Scholar]
  29. Besancon, G. Nonlinear Observers and Applications; E. LNCIS-363; Springer: Berlin/Heidelberg, Germany, 2007. [Google Scholar]
  30. Golub, G.H.; Ortega, J.M. Scientific Computing and Differential Equation: An Introduction to Numerical Methods; Academic Press: Cambridge, MA, USA, 1992. [Google Scholar]
  31. Simon, D. Optimal State Estimation, 1st ed.; John Wiley and Sons: Hoboken, NJ, USA, 2006. [Google Scholar]
Figure 1. Schematic pipeline.
Figure 1. Schematic pipeline.
Electronics 09 00091 g001
Figure 2. Blockage in the pipeline.
Figure 2. Blockage in the pipeline.
Electronics 09 00091 g002
Figure 3. Different condition for boundary conditions.
Figure 3. Different condition for boundary conditions.
Electronics 09 00091 g003
Figure 4. Construction of model, observer and state feedback.
Figure 4. Construction of model, observer and state feedback.
Electronics 09 00091 g004
Figure 5. Pressure head in pipeline.
Figure 5. Pressure head in pipeline.
Electronics 09 00091 g005
Figure 6. Position of blockage.
Figure 6. Position of blockage.
Electronics 09 00091 g006
Figure 7. Length of blockage.
Figure 7. Length of blockage.
Electronics 09 00091 g007
Figure 8. Pipe Cross section area in blockage.
Figure 8. Pipe Cross section area in blockage.
Electronics 09 00091 g008
Table 1. Initialization second order extended Kalman filter (SEKF).
Table 1. Initialization second order extended Kalman filter (SEKF).
CEKFValueUnits
Φ ^ 1 7.75   ×   10 3 ( m 3 / s )
Π ^ l e a k 8.32 ( m )
Φ ^ 2 7.75   ×   10 3 ( m 3 / s )
λ ^ 45.42 ( m )
γ ^ 0 ( m 5 2 / s )

Share and Cite

MDPI and ACS Style

Jafari, R.; Razvarz, S.; Vargas-Jarillo, C.; Gegov, A. Blockage Detection in Pipeline Based on the Extended Kalman Filter Observer. Electronics 2020, 9, 91. https://doi.org/10.3390/electronics9010091

AMA Style

Jafari R, Razvarz S, Vargas-Jarillo C, Gegov A. Blockage Detection in Pipeline Based on the Extended Kalman Filter Observer. Electronics. 2020; 9(1):91. https://doi.org/10.3390/electronics9010091

Chicago/Turabian Style

Jafari, Raheleh, Sina Razvarz, Cristóbal Vargas-Jarillo, and Alexander Gegov. 2020. "Blockage Detection in Pipeline Based on the Extended Kalman Filter Observer" Electronics 9, no. 1: 91. https://doi.org/10.3390/electronics9010091

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop