[go: up one dir, main page]

CN119103487B - Water supply network leakage position identification method and storage medium - Google Patents

Water supply network leakage position identification method and storage medium

Info

Publication number
CN119103487B
CN119103487B CN202411424491.2A CN202411424491A CN119103487B CN 119103487 B CN119103487 B CN 119103487B CN 202411424491 A CN202411424491 A CN 202411424491A CN 119103487 B CN119103487 B CN 119103487B
Authority
CN
China
Prior art keywords
leakage
pressure
water supply
supply network
cosine similarity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202411424491.2A
Other languages
Chinese (zh)
Other versions
CN119103487A (en
Inventor
黄玉彪
张佳庆
丁彦铭
胡俊杰
过羿
刘睿
丁国成
王刘芳
孙韬
汪书苹
何灵欣
程宜风
田梦洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China University of Geosciences Wuhan
Electric Power Research Institute of State Grid Anhui Electric Power Co Ltd
Original Assignee
China University of Geosciences Wuhan
Electric Power Research Institute of State Grid Anhui Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China University of Geosciences Wuhan, Electric Power Research Institute of State Grid Anhui Electric Power Co Ltd filed Critical China University of Geosciences Wuhan
Priority to CN202411424491.2A priority Critical patent/CN119103487B/en
Publication of CN119103487A publication Critical patent/CN119103487A/en
Application granted granted Critical
Publication of CN119103487B publication Critical patent/CN119103487B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F17STORING OR DISTRIBUTING GASES OR LIQUIDS
    • F17DPIPE-LINE SYSTEMS; PIPE-LINES
    • F17D5/00Protection or supervision of installations
    • F17D5/02Preventing, monitoring, or locating loss
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F17STORING OR DISTRIBUTING GASES OR LIQUIDS
    • F17DPIPE-LINE SYSTEMS; PIPE-LINES
    • F17D1/00Pipe-line systems
    • F17D1/08Pipe-line systems for liquids or viscous products
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F17STORING OR DISTRIBUTING GASES OR LIQUIDS
    • F17DPIPE-LINE SYSTEMS; PIPE-LINES
    • F17D3/00Arrangements for supervising or controlling working operations
    • F17D3/01Arrangements for supervising or controlling working operations for controlling, signalling, or supervising the conveyance of a product
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A20/00Water conservation; Efficient water supply; Efficient water use
    • Y02A20/15Leakage reduction or detection in water storage or distribution

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Water Supply & Treatment (AREA)
  • Examining Or Testing Airtightness (AREA)

Abstract

The invention discloses a water supply network leakage position identification method and a storage medium, wherein the method comprises the steps of monitoring pressure flow data of different positions of a water supply network in real time, using the right end residual error item of a lattice Boltzmann parallel solving pressure flow relation equation as a real-time monitoring residual error item, determining the water supply network leakage position corresponding to the real-time monitoring residual error item according to the mapping relation between the pre-constructed leakage position and the residual error item, and obviously improving the equation solving efficiency by using the lattice Boltzmann parallel solving pressure and flow relation equation, and avoiding the complex process of feature extraction by establishing the mapping relation between the leakage position and the residual error item.

Description

Water supply network leakage position identification method and storage medium
Technical Field
The invention relates to the technical field of monitoring and diagnosing faults of a fire-fighting water supply network, in particular to a water supply network leakage position identification method and a storage medium.
Background
The water supply network plays a vital role in the fire-fighting water supply system, and is an important component of the fire-fighting system and is responsible for conveying water sources to various fire extinguishing points so as to provide necessary water sources for extinguishing fire. Second, the water supply network needs to maintain a high enough pressure to support the fire extinguishing operation on the fire scene. Once the water supply network leaks, enough water sources cannot be provided in time to extinguish the fire source, the fire rapidly spreads, property loss and casualties are caused, and the rapid and accurate identification of the leakage position of the water supply network is important.
Flow and pressure sensors are often arranged in a water supply network to monitor the running state of the network, and the distribution of pressure and flow data at different positions of the water supply network is obviously different under the normal working condition (no leakage) and the leakage working condition of the water supply network and for different leakage positions. The change of the water supply pressure and flow of the pipe network is the main form of water supply pipe network leakage signal detection.
In the related art, a real-time model method is described in the "research on a ship pipe network leakage detection and positioning method, feng Kai" of the Shuoshi thesis, namely, an accurate pipeline real-time model accurately calculated by a computer is constructed and is executed synchronously with an actual pipeline. And comparing the pressure and flow equivalent with the value calculated by the theoretical model by timing, so as to judge the position of the leakage point. The method is too dependent on the accuracy of the initial model and software, however, the positioning mechanism of the leakage point is based on a pressure gradient method, so that the method has great limitation.
Therefore, how to quickly and accurately identify the leakage position of the water supply network by monitoring the changes of pressure and flow data at different positions of the water supply network is a problem to be solved at present.
Disclosure of Invention
The invention aims to solve the technical problem of how to quickly and accurately identify the leakage position of a water supply network.
The invention solves the technical problems by the following technical means:
The invention provides a water supply network leakage position identification method, which comprises the following steps:
monitoring pressure flow data of different positions of the water supply network in real time;
The right end residual error item of the pressure flow relation equation is solved in parallel by using the lattice Boltzmann as a real-time monitoring residual error item;
and determining the leakage position of the water supply network corresponding to the real-time monitoring residual error item according to the pre-constructed mapping relation between the leakage position and the residual error item.
Further, the construction process of the mapping relation between the leakage position and the residual error item comprises the following steps:
Acquiring pressure flow data at different positions of a water supply network under a normal working condition, and parallelly solving a right end residual term of a pressure flow relation equation under the normal working condition by using Boltzmann as a residual term under the normal working condition;
setting a set number of leakage positions, and collecting pressure flow data at different positions of a water supply network at different leakage positions;
For each leakage position, using the Boltzmann of the lattice to solve the right end residual error item of the pressure flow relation equation under the leakage working condition in parallel as the residual error item under the leakage working condition;
And establishing mapping relations between different leakage positions and residual items according to all leakage positions and corresponding residual items under the leakage working condition to form a leakage position-residual item mapping relation comparison table, wherein the mapping relation comparison table comprises the leakage positions, the residual items and pressure flow data of different positions of the water supply network under the working condition.
Further, the leak locations are uniformly or non-uniformly arranged.
Further, the right-end residual error term of the parallel solving pressure flow relation equation by using the Boltzmann of the lattice is
Wherein delta is the right residual term, phi is the pressure, f is the fluid velocity,F = Σ icihi/∑ihi,ci is the model discrete velocity, h i is the discrete distribution function, i is the discrete velocity index,Is a gradient operator.
Further, the pressure-flow relation equation is:
and (3) using the lattice Boltzmann to solve a pressure flow relation equation in parallel, wherein the equation of the collision step is expressed as:
The migration step formula is expressed as:
The statistical pressure data and the flow data are respectively:
In the formula, For the post-collision discrete distribution function, h i (x, t) is the discrete distribution function at position x and time t, Ω i (h) is the collision operator, x is the position index, and t is the time index.
Further, after determining the water supply network leakage position corresponding to the real-time monitoring residual term according to the mapping relation between the pre-constructed leakage position and the residual term, the method further comprises:
Calculating non-local cosine similarity between pressure flow data of different positions of the real-time monitoring water supply network and pressure flow data under historical leakage working conditions;
When the non-local cosine similarity is larger than a set similarity threshold, determining that the recognized pipe network leakage position is correct;
And when the non-local cosine similarity is smaller than or equal to a set similarity threshold, determining that the identified pipe network leakage position is wrong.
Further, the calculation formula of the non-local cosine similarity is as follows:
Where cos α Φ is the non-local cosine similarity of the pressure data, Φ is the pressure vector monitored at the current moment, and Φ 0 is the pressure vector under the historical leakage working condition.
Similarly, the calculation formula of the flow data non-local cosine similarity is as follows:
In the formula, cos alpha F is the non-local cosine similarity of flow data, F is the flow data monitored at the current moment, and F 0 is the flow data under the history leakage working condition.
Further, the calculating the non-local cosine similarity between the pressure flow data of different positions of the real-time monitoring water supply network and the pressure flow data under the historical leakage working condition includes:
calculating first non-local cosine similarity between pressure flow data of different positions of the real-time monitoring water supply network and pressure flow data under the historical leakage working condition according to the vector length of n;
judging whether the first non-local cosine similarity is in a set range or not;
If yes, comparing the non-local cosine similarity with the similarity threshold value, and determining whether the pipe network leakage position identification result is accurate;
if not, resetting the vector length to 2n, and calculating a second non-local cosine similarity between the pressure flow data of different positions of the water supply network and the pressure flow data under the historical leakage working condition.
Further, after calculating the second non-local cosine similarity, the method further comprises:
and calculating the difference value between the second non-local cosine similarity and the first non-local cosine similarity, outputting the first non-local cosine similarity when the difference value is within a set range, and otherwise, outputting the second non-local cosine similarity for comparison with a similarity threshold.
Furthermore, the invention also provides a computer readable storage medium, on which a computer program is stored, which when being executed by a processor, implements the water supply network leakage position identification method as described above.
The invention has the advantages that:
(1) According to the invention, the pressure flow relation equation is solved in parallel by using the Boltzmann algorithm in advance to obtain the mapping relation between the leakage position and the equation residual error term, when the leakage position of the water supply network is monitored, the pressure flow data of different positions of the water supply network are monitored in real time, the right residual error term of the Boltzmann algorithm is solved in parallel and is used as the real-time monitoring residual error term, the pipe network leakage position corresponding to the real-time monitoring residual error term is identified by utilizing the pre-built mapping relation, the pressure and flow relation equation is solved in parallel by using the Boltzmann algorithm in the lattice, the equation solving efficiency is remarkably improved, and meanwhile, the complex process of feature extraction is avoided by establishing the mapping relation between the leakage position and the residual error term, and the quick and accurate identification of the pipe network leakage position is realized.
(2) According to the established mapping relation between the leakage position and the residual error item, the accuracy of the pipe network leakage position is further judged by combining the non-local cosine similarity comparison pressure and flow data, and the accuracy of calculating the water supply pipe network leakage position is improved while the data comparison sample is reduced.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
FIG. 1 is a schematic flow chart of a method for identifying a leakage position of a water supply network according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of the placement of pressure and flow sensors in an embodiment of the invention;
FIG. 3 is a graph showing the trend of pressure data at different leak locations according to an embodiment of the present invention;
FIG. 4 is a graph showing the trend of flow data at different leak locations according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions in the embodiments of the present invention will be clearly and completely described in the following in conjunction with the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As shown in fig. 1, an embodiment of the present invention provides a water supply network leakage position identification method, which includes the following steps:
s10, monitoring pressure flow data of different positions of a water supply network in real time;
it should be noted that, in this embodiment, the pressure data and the flow data at different positions of the pipe network may be measured by the pressure sensor and the flow sensor disposed at different positions of the pipe network.
S20, using the right-end residual terms of the lattice Boltzmann parallel solving pressure flow relation equation as real-time monitoring residual terms;
S30, determining the leakage position of the water supply network corresponding to the real-time monitoring residual error item according to the mapping relation between the pre-constructed leakage position and the residual error item.
It should be noted that, if the pressure/flow coupling relation equation is a nonlinear partial differential equation, the differential equation needs to be discretized if the traditional method is adopted for solving, and then the discrete large-scale linear equation set is solved iteratively, so that the calculated amount is huge and the solving time is long. Lattice Boltzmann is taken as a mesoscopic method, a discrete macroscopic equation is not needed, collision and migration are carried out through a distribution function of fluid particles, macroscopic flow behavior of fluid is restored, and the LBM is easy to implement and local operation is very suitable for large-scale parallel calculation because the solution of a complex linear equation set is not involved. The pressure/flow relation equation is solved in parallel by using the lattice Boltzmann, so that the efficiency of equation solving is remarkably improved, meanwhile, the complex process of feature extraction is avoided by establishing the mapping relation between the leakage position and the residual error term, and the quick and accurate identification of the pipe network leakage position is realized.
As a further preferable technical solution, in step S30, the construction process of the mapping relationship between the leakage position and the residual term includes the following steps:
Acquiring pressure flow data at different positions of a water supply network under a normal working condition, and parallelly solving a right end residual term of a pressure flow relation equation under the normal working condition by using Boltzmann as a residual term under the normal working condition;
setting a set number of leakage positions, and collecting pressure flow data at different positions of a water supply network at different leakage positions;
For each leakage position, using the Boltzmann of the lattice to solve the right end residual error item of the pressure flow relation equation under the leakage working condition in parallel as the residual error item under the leakage working condition;
And establishing mapping relations between different leakage positions and residual items according to all leakage positions and corresponding residual items under the leakage working condition to form a leakage position-residual item mapping relation comparison table, wherein the mapping relation comparison table comprises the leakage positions, the residual items and pressure flow data of different positions of the water supply network under the working condition.
Specifically, the water supply network is provided with 2 water tanks, 2 water pumps, 6 fire hydrants, 10 valves and 26 pipelines, and pressure/flow data of different positions of the water supply network under normal working conditions are firstly obtained. Then a plurality of groups of leakage positions are set according to the needs, the leakage positions can be set flexibly and uniformly distributed or unevenly distributed, pressure/flow data at different positions of the water supply network under different leakage positions are collected, only one group of leakage positions is set in each test, the arrangement positions of the pressure/flow sensors are shown in fig. 2, and the pressure data change trend and the flow data change trend of different leakage positions are shown in fig. 3 and fig. 4 respectively.
In this example, the pipe length was 400 meters, and 20 sets of leak locations were provided in total, evenly. In the test 1, the leakage holes 1 are opened, the other leakage holes are closed, pressure/flow data of different positions of the water supply network under different leakage positions are collected, and the pressure/flow data are recorded into a database for storage, as shown in table 1.
Table 1 stores pressure/flow data
In order to correct the residual error items at the right end under the leakage working condition, the pressure flow data at different positions of the water supply network under the normal working condition is obtained, the residual error items at the right end of the pressure flow relation equation under the normal working condition are solved in parallel by using the lattice Boltzmann as the residual error items under the normal working condition, and the residual error items under the leakage working condition are corrected by using the residual error items, so that the pressure/flow relation equation is solved in parallel by using the lattice Boltzmann for each group of leakage positions, the residual error items at the right end of the equation are calculated, and the mapping relation between different leakage positions and the residual error items is established, as shown in table 2.
TABLE 2 leakage points and residual terms
And monitoring pressure/flow data at different positions of the water supply network in real time through the arranged pressure/flow sensors, solving a pressure/flow relation equation in parallel by using the lattice Boltzmann, and calculating a right-end residual error term of the pressure/flow relation equation at the current moment, wherein the residual error term is shown in a table 3.
TABLE 3 pressure/flow at present time and right residual term
According to the mapping relation of the established leakage position/residual error term, the pressure/flow distribution is different due to different leakage positions, so that the residual error term of the pressure/flow equation is generally different, and the leakage position can be primarily judged according to the comparison between the value of the residual error term and the residual error term of different leakage positions.
Further, water is an incompressible fluid and water supply network pressure/flow satisfies the following equation:
wherein phi is the pressure (MPa), f is the fluid velocity (m/s), and the flow can be obtained by integrating the fluid velocity along the water section. The pressure/flow relationship equation is solved in parallel using lattice boltzmann, as follows:
(1) And (3) collision:
(2) And (3) a migration step:
(3) Statistical pressure/flow:
the method is characterized in that the lattice Boltzmann is used for solving a pressure/flow relation equation to be local operation, and is very suitable for parallel calculation.
Further, due to measurement errors and calculation errors, the right-hand end term of the pressure/flow relation equation is generally not 0, and the right-hand end residual term of the equation needs to be calculated, and the calculation formula is as follows:
Where c i is the model discrete velocity, h i is the discrete distribution function, i is the discrete velocity index, For the purpose of the gradient operator,For the post-collision discrete distribution function, h i (x, t) is the discrete distribution function at position x and time t, Ω i (h) is the collision operator, x is the position index, and t is the time index.
The partial calculation code for solving the pressure/flow relationship equation using lattice boltzmann is as follows:
(1) And (3) collision:
void COLL(void){
int X;
int Y;
int I;
#pragma omp parallel for private(Y,I)num_threads(16)
for(X=0;X<=GRIX;X++){
for(Y=0;Y<=GRIY;Y++){
for(I=0;I<9;I++){
FUN1[X][Y][I]=(1.0-1.0/TIME)*FUN0[X][Y][I]+1.0/TIME*EQUI(I,DENS[X][Y],VELX[X][Y],VELY[X][Y]);
}
}
}
}
(2) And (3) a migration step:
void STRE(void){
int X;
int Y;
int I;
#pragma omp parallel for private(Y,I)num_threads(16)
for(X=0;X<=GRIX;X++){
for(Y=0;Y<=GRIY;Y++){
for(I=0;I<9;I++){
if(X-INT1[I]>=0&&X-INT1[I]<=GRIX&&Y-INT2[I]>=0&&Y-INT2[I]<=GRIY){
FUN0[X][Y][I]=FUN1[X-INT1[I]][Y-INT2[I]][I];
}
}
}
}
}
(3) Statistical pressure/flow:
void PHYS(void){
int X;
int Y;
int I;
#pragma omp parallel for private(Y,I)num_threads(16)
for(X=0;X<=GRIX;X++){
for(Y=0;Y<=GRIY;Y++){
DENS[X][Y]=0.0;
VELX[X][Y]=0.0;
VELY[X][Y]=0.0;
for(I=0;I<9;I++){
DENS[X][Y]+=FUN0[X][Y][I];
VELX[X][Y]+=INT1[I]*FUN0[X][Y][I];
VELY[X][Y]+=INT2[I]*FUN0[X][Y][I];
}
VELX[X][Y]/=DENS[X][Y];
VELY[X][Y]/=DENS[X][Y];
}
}
}
Furthermore, as different leakage positions correspond to the same or very similar residual terms, in order to avoid misjudgment of the leakage positions, the embodiment further improves the accuracy of calculating the leakage positions of the water supply network by combining non-local cosine similarity comparison pressure/flow data on the basis of positioning the leakage positions according to the mapping relation between the leakage positions and the residual terms.
Correspondingly, after determining the leakage position of the water supply network corresponding to the real-time monitoring residual item according to the pre-constructed mapping relation between the leakage position and the residual item, the method further comprises the following steps:
S31, calculating non-local cosine similarity between pressure flow data of different positions of the real-time monitoring water supply network and pressure flow data under the historical leakage working condition;
s32, when the non-local cosine similarity is larger than a set similarity threshold, determining that the recognized pipe network leakage position is correct;
s33, determining that the identified pipe network leakage position is wrong when the non-local cosine similarity is smaller than or equal to a set similarity threshold value.
Specifically, assume that the real-time monitoring of the current time pressure vector is:
Φ=(φ-n-n+1…,φ-1o1…,φn-1n)
Where phi 0 is the pressure value at the node of the preliminary determination leak location.
Assuming that the leakage position is the preliminary judgment leakage position, according to the leakage test, the historical pressure vector under the leakage working condition is
Calculating the non-local cosine similarity of the pressure vector:
Where cos α Φ is the non-local cosine similarity of the pressure data, Φ is the pressure vector monitored at the current moment, and Φ 0 is the pressure vector under the historical leakage working condition.
Similarly, the calculation formula of the flow data non-local cosine similarity is as follows:
In the formula, cos alpha F is the non-local cosine similarity of flow data, F is the flow data monitored at the current moment, and F 0 is the flow data under the history leakage working condition.
Further, if and only if cos alpha Φ is more than or equal to 0.9 and cos alpha F is more than or equal to 0.9, judging that the pipe network leakage position identification is correct, otherwise, considering that the pressure flow data under the working condition is not matched, and the pipe network leakage position identification is wrong, and the leakage position should be reselected for identification.
As a further preferable technical scheme, the step S31 is to calculate the non-local cosine similarity between the pressure flow data of different positions of the real-time monitoring water supply network and the pressure flow data under the history leakage working condition, and specifically comprises the following steps:
S311, calculating first non-local cosine similarity between pressure flow data of different positions of the real-time monitoring water supply network and pressure flow data under historical leakage working conditions according to the vector length of N (N/4 is not less than N is not more than N/2), wherein N is the number of the pressure flow data;
S312, judging whether the first non-local cosine similarity is within a set range, if so, executing a step S313, otherwise, executing a step S314;
S313, comparing the non-local cosine similarity with the similarity threshold value to determine whether the pipe network leakage position identification result is accurate;
s314, resetting the vector length to be 2n, and calculating a second non-local cosine similarity between the pressure flow data of different positions of the real-time monitoring water supply network and the pressure flow data under the history leakage working condition.
As a further preferable embodiment, after the step S314, the method further includes:
and calculating the difference value between the second non-local cosine similarity and the first non-local cosine similarity, outputting the first non-local cosine similarity when the difference value is within a set range, and otherwise, outputting the second non-local cosine similarity for comparison with a similarity threshold.
It should be noted that, the non-local cosine similarity calculation method provided in this embodiment is different from the conventional method, and the conventional method only calculates once the cosine similarity, and then determines the similarity of the two vectors, where the method is innovative in that the determination of the vector length n is very flexible, n is selected smaller at first, the cos α of the two vectors is calculated, if the cos α is too high or too low, it is explained that the vector length may be too short, the vector length 2n is reset, the cos α of the two vectors is calculated again, if the variation of the cos α calculated twice is not large, the cos α calculated for the first time is output, the vector length is considered to have no significant influence on the similarity, and the calculation is stopped, otherwise, the cos α calculated for the second time is taken as the criterion.
In addition, another embodiment of the present invention also provides a computer readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the water supply network leakage position identification method according to the above embodiment.
It should be noted that, other embodiments of the computer readable storage medium or the implementation method of the present invention may refer to the above method embodiments, and are not repeated herein.
It should be noted that the logic and/or steps represented in the flowcharts or otherwise described herein, for example, may be considered as a ordered listing of executable instructions for implementing logical functions, and may be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include an electrical connection (an electronic device) having one or more wires, a portable computer diskette (a magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of techniques known in the art, discrete logic circuits with logic gates for implementing logic functions on data signals, application specific integrated circuits with appropriate combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present invention, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise.
While embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the invention, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the invention.

Claims (10)

1.一种供水管网泄漏位置识别方法,其特征在于,所述方法包括:1. A method for identifying a leak location in a water supply network, comprising: 实时监测供水管网不同位置的压力流量数据;Real-time monitoring of pressure and flow data at different locations in the water supply network; 使用格子玻尔兹曼并行求解压力流量关系方程的右端残差项作为实时监测残差项,所述压力流量关系方程为:The residual term on the right side of the pressure-flow relationship equation is solved in parallel using the lattice Boltzmann method as the real-time monitoring residual term. The pressure-flow relationship equation is: 式中,为压力,为流体速度,为梯度算子;Where, For pressure, is the fluid velocity, is the gradient operator; 按照预先构建的泄漏位置与残差项的映射关系,确定所述实时监测残差项所对应的供水管网泄漏位置。According to the pre-established mapping relationship between the leakage position and the residual term, the leakage position of the water supply network corresponding to the real-time monitoring residual term is determined. 2.如权利要求1所述的供水管网泄漏位置识别方法,其特征在于,所述泄漏位置与残差项的映射关系的构建过程包括:2. The method for identifying a leakage location in a water supply network according to claim 1, wherein the process of constructing a mapping relationship between the leakage location and the residual term comprises: 获取正常工况下供水管网不同位置处压力流量数据,并使用格子玻尔兹曼并行求解正常工况下压力流量关系方程的右端残差项作为正常工况下的残差项;Obtain pressure and flow data at different locations in the water supply network under normal operating conditions, and use the lattice Boltzmann parallel method to solve the residual term on the right side of the pressure-flow relationship equation under normal operating conditions as the residual term under normal operating conditions; 设置设定数量的泄漏位置,采集不同泄漏位置下供水管网不同位置处压力流量数据;Set a set number of leakage locations and collect pressure and flow data at different locations of the water supply network under different leakage locations; 对于每一泄漏位置,使用格子玻尔兹曼并行求解泄漏工况下压力流量关系方程的右端残差项作为泄漏工况下的残差项;For each leakage location, the lattice Boltzmann method is used to solve the residual term on the right side of the pressure-flow relationship equation under the leakage condition in parallel as the residual term under the leakage condition; 根据所有泄漏位置和对应的泄漏工况下的残差项,建立不同泄漏位置和残差项之间的映射关系。According to all leakage locations and the residual items under corresponding leakage conditions, a mapping relationship between different leakage locations and residual items is established. 3.如权利要求2所述的供水管网泄漏位置识别方法,其特征在于,所述泄漏位置为均匀布置或非均匀布置。3. The method for identifying leakage locations in a water supply network according to claim 2, wherein the leakage locations are evenly or unevenly arranged. 4.如权利要求1所述的供水管网泄漏位置识别方法,其特征在于,所述使用格子玻尔兹曼并行求解压力流量关系方程的右端残差项为4. The method for identifying the location of a water supply network leak according to claim 1, wherein the residual term on the right side of the pressure-flow relationship equation solved in parallel using the lattice Boltzmann method is 式中,为右端残差项。Where, is the residual term on the right side. 5.如权利要求4所述的供水管网泄漏位置识别方法,其特征在于,所述方法包括:5. The method for identifying a leak location in a water supply network according to claim 4, wherein the method comprises: 使用格子玻尔兹曼并行求解压力流量关系方程,包括碰撞步、迁移步及统计压力流量数据,其中,碰撞步公式表示为:The pressure-flow relationship equation is solved in parallel using the lattice Boltzmann method, including the collision step, migration step, and statistical pressure-flow data. The collision step formula is expressed as: 迁移步公式表示为:The migration step formula is expressed as: 统计压力数据和流量数据分别为:The statistical pressure data and flow data are: 式中,为碰撞后离散分布函数,为位于位置、时间的离散分布函数,为碰撞算子,为位置索引,为时间索引,为模型离散速度,为离散分布函数,为离散速度索引。Where, is the discrete distribution function after collision, For location ,time The discrete distribution function of is the collision operator, is the position index, is the time index, is the model discrete velocity, is a discrete distribution function, is the discrete velocity index. 6.如权利要求1所述的供水管网泄漏位置识别方法,其特征在于,在所述按照预先构建的泄漏位置与残差项的映射关系,确定所述实时监测残差项所对应的供水管网泄漏位置之后,所述方法还包括:6. The method for identifying a water supply network leakage location according to claim 1, wherein after determining the water supply network leakage location corresponding to the real-time monitoring residual item according to the pre-established mapping relationship between the leakage location and the residual item, the method further comprises: 计算实时监测供水管网不同位置的压力流量数据与历史泄漏工况下的压力流量数据之间的非局部余弦相似度;Calculate the non-local cosine similarity between the pressure and flow data of different locations in the real-time monitoring water supply network and the pressure and flow data under historical leakage conditions; 在所述非局部余弦相似度大于设定的相似度阈值时,确定识别的管网泄漏位置正确;When the non-local cosine similarity is greater than a set similarity threshold, determining that the identified pipe network leakage location is correct; 在所述非局部余弦相似度小于或等于设定的相似度阈值时,确定识别的管网泄漏位置错误。When the non-local cosine similarity is less than or equal to a set similarity threshold, it is determined that the identified pipe network leakage location is wrong. 7.如权利要求6所述的供水管网泄漏位置识别方法,其特征在于,所述非局部余弦相似度的计算公式为:7. The method for identifying a leak location in a water supply network according to claim 6, wherein the calculation formula for the non-local cosine similarity is: 式中,为压力数据非局部余弦相似度,为当前时刻监测的压力向量,为历史泄漏工况下的压力向量;Where, is the non-local cosine similarity of pressure data, is the pressure vector monitored at the current moment, is the pressure vector under historical leakage conditions; 流量数据非局部余弦相似度的计算公式为:The calculation formula of non-local cosine similarity of traffic data is: 式中,为流量数据非局部余弦相似度,为当前时刻监测的流量数据,为历史泄漏工况下的流量数据。Where, is the non-local cosine similarity of traffic data, The traffic data monitored at the current moment, This is the flow rate data under historical leakage conditions. 8.如权利要求6所述的供水管网泄漏位置识别方法,其特征在于,所述计算实时监测供水管网不同位置的压力流量数据与历史泄漏工况下的压力流量数据之间的非局部余弦相似度,包括:8. The method for identifying a water supply network leakage location according to claim 6, wherein the step of calculating the non-local cosine similarity between the pressure and flow data of different locations of the real-time monitored water supply network and the pressure and flow data under historical leakage conditions comprises: 按照向量长度为,计算实时监测供水管网不同位置的压力流量数据与历史泄漏工况下的压力流量数据之间的第一非局部余弦相似度;According to the vector length , calculate the first non-local cosine similarity between the pressure and flow data of different locations of the real-time monitoring water supply network and the pressure and flow data under historical leakage conditions; 判断所述第一非局部余弦相似度是否在设定范围内;Determining whether the first non-local cosine similarity is within a set range; 若是则将所述一非局部余弦相似度与所述相似度阈值进行比较,确定管网泄漏位置识别结果是否准确;If yes, then comparing the non-local cosine similarity with the similarity threshold to determine whether the pipeline network leakage location identification result is accurate; 若否则重新设置向量长度为2,算实时监测供水管网不同位置的压力流量数据与历史泄漏工况下的压力流量数据之间的第二非局部余弦相似度。Otherwise reset the vector length to 2 , calculate the second non-local cosine similarity between the real-time monitoring pressure and flow data at different locations of the water supply network and the pressure and flow data under historical leakage conditions. 9.如权利要求8所述的供水管网泄漏位置识别方法,其特征在于,在计算所述第二非局部余弦相似度之后,所述方法还包括:9. The method for identifying a water supply network leakage location according to claim 8, wherein after calculating the second non-local cosine similarity, the method further comprises: 计算所述第二非局部余弦相似度与所述第一非局部余弦相似度的差值,并在差值在设定范围内时输出第一非局部余弦相似度;否则输出所述第二非局部余弦相似度用于与相似度阈值比较。The difference between the second non-local cosine similarity and the first non-local cosine similarity is calculated, and the first non-local cosine similarity is output when the difference is within a set range; otherwise, the second non-local cosine similarity is output for comparison with a similarity threshold. 10.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时,实现如权利要求1-9中任一项所述的供水管网泄漏位置识别方法。10. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method for identifying a leakage location in a water supply network according to any one of claims 1 to 9 is implemented.
CN202411424491.2A 2024-10-12 2024-10-12 Water supply network leakage position identification method and storage medium Active CN119103487B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411424491.2A CN119103487B (en) 2024-10-12 2024-10-12 Water supply network leakage position identification method and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411424491.2A CN119103487B (en) 2024-10-12 2024-10-12 Water supply network leakage position identification method and storage medium

Publications (2)

Publication Number Publication Date
CN119103487A CN119103487A (en) 2024-12-10
CN119103487B true CN119103487B (en) 2025-09-16

Family

ID=93718889

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411424491.2A Active CN119103487B (en) 2024-10-12 2024-10-12 Water supply network leakage position identification method and storage medium

Country Status (1)

Country Link
CN (1) CN119103487B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111062127A (en) * 2019-12-16 2020-04-24 辽宁石油化工大学 Pipeline leak detection method and device, storage medium and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8275577B2 (en) * 2006-09-19 2012-09-25 Smartsignal Corporation Kernel-based method for detecting boiler tube leaks
EP2455874A4 (en) * 2009-06-25 2012-11-28 Asahi Glass Co Ltd CALCULATING PROCESS FOR PHYSICAL VALUE, NUMERICAL ANALYSIS PROCEDURE, CALCULATING PROGRAM FOR THE PHYSICAL VALUE, NUMERICAL ANALYSIS PROGRAM, CALCULATING APPARATUS FOR PHYSICAL VALUES AND NUMERICAL ANALYSIS DEVICE
CN112182959A (en) * 2020-09-17 2021-01-05 浙江工业大学 A method for detecting leaks in a water distribution network
CN116092687A (en) * 2023-03-24 2023-05-09 山东建筑大学 Aneurysm growth model construction system based on computational fluid dynamics

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111062127A (en) * 2019-12-16 2020-04-24 辽宁石油化工大学 Pipeline leak detection method and device, storage medium and terminal

Also Published As

Publication number Publication date
CN119103487A (en) 2024-12-10

Similar Documents

Publication Publication Date Title
US9897261B2 (en) Determining fluid leakage volume in pipelines
CN105221933A (en) A kind of pipeline network leak detecting method in conjunction with resistance identification
NO329197B1 (en) Method for detection and correction of sensor errors in oil and gas production systems
US10203262B2 (en) Leak localization in water distribution networks
US12085191B2 (en) System for testing a valve
CN109522948A (en) A kind of fault detection method based on orthogonal locality preserving projections
BR112020000390A2 (en) monitoring apparatus and method of monitoring a system
JP2017002554A (en) Apparatus and method for detecting abnormality in pipe line
CN108350688A (en) Water leakage diagnosis device, water leakage diagnosis method, and computer program
JPH05223685A (en) Method and apparatus for detecting fluid leakage from pipe
CN111062127A (en) Pipeline leak detection method and device, storage medium and terminal
CN111828845A (en) Automatic leak detection method of pipeline based on artificial intelligence
BR112017000075B1 (en) METHOD FOR DETECTING ANOMALIES IN A DISTRIBUTION NETWORK, IN PARTICULAR, WATER DISTRIBUTION
CN119103487B (en) Water supply network leakage position identification method and storage medium
EP1630635A2 (en) Method and apparatus for improved fault detection in power generation equipment
CN115075341A (en) Regional water leakage pipeline detection method and system, storage medium and intelligent terminal
Kwestarz et al. Method for leak detection and location for gas networks
CN107655549A (en) A kind of intelligent gas meter is in Line synthesis error calibration method
CN113063100A (en) Pipeline leakage detection method and device
JPS6351936A (en) Process abnormality diagnosis method
CN115388334B (en) Circulation pipeline system and circulation pipeline control method
CN107655548A (en) Check method during a kind of on-line operation intellectual water meter
WO2014135953A2 (en) Instrumenting water distribution networks
Jiang et al. Fault recognition technology for pipeline systems based on multi-feature fusion of monitoring data
US11454529B2 (en) Augmented flowmeter with a system for simulating fluid parameters

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant