Gas pipeline leakage detection method based on power flow calculation
By establishing a time-domain finite difference model based on the power flow calculation method, and combining the actual measurement and estimation sequences, the problem of accuracy and cost of natural gas pipeline leakage detection is solved, and efficient leakage detection of the aging pipeline network is achieved.
Patent Information
- Application Number
- CN202111463451.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-02
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-12-02
AI Technical Summary
Existing natural gas pipeline leakage detection technology has poor accuracy in detecting slow and small leaks and aging pipelines, and the detection cost of long-distance pipelines is high, especially for pipeline networks that are severely aged but do not have high-tech detection tools installed, making it difficult to effectively monitor and locate them. leakage.
The gas pipeline leakage detection method based on power flow calculation is used to establish a time domain finite difference model of dynamic hydraulic simulation and combine the measured sequence and estimated sequence of pipeline state quantities to determine whether the pipeline is leaking. It is suitable for leakage detection of aging pipeline networks and saves money. Testing costs.
It improves the speed and accuracy of natural gas pipeline leakage detection, is especially suitable for aging pipeline networks, reduces detection costs, can accurately determine pipeline leakage, and reduces false alarms and omissions.
Smart Images

Figure CN114398807B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of pipeline leakage detection methods, and in particular relates to a gas pipeline leakage detection method based on tidal flow calculation. Background Art
[0002] Considering the physical properties of natural gas, pipeline transportation has become the main way of natural gas transportation at home and abroad. Pipelines have large transportation volume, high transportation efficiency, strong continuity, and high safety factor, and play an increasingly important role in the national economy. Although pipeline transportation is safer than other modes of transportation, leakage accidents occur from time to time due to aging and corrosion of pipeline equipment, construction defects, landslides and earthquakes, human damage and external interference. At the least, the loss of natural gas causes economic losses and environmental pollution, which exceeds the costs involved in downtime and maintenance costs. At the worst, it causes explosions and fires, resulting in casualties. The harm should not be underestimated. As the coupling between the natural gas system and the electrical system gradually deepens, faults can easily spread to another system through coupling, causing more serious safety problems. Since natural gas itself is colorless and odorless, it is difficult to detect and prevent the accident from further expanding in time after the leak occurs. Therefore, it is of great significance to improve the detection speed / accuracy of pipeline leaks.
[0003] The operating conditions of natural gas pipelines are diverse and complex, among which the leakage problem of long-distance pipelines has always been one of the focuses of oil and gas storage and transportation. In the past few decades, great efforts have been made at home and abroad to design gas leak detection technology. At present, the negative pressure wave method and optical fiber detection method are widely used at home and abroad. The former requires the installation of acoustic wave sensors on the outside of the pipeline, and the latter requires the laying of optical fibers along the pipeline. Both methods have good detection and positioning effects for sudden leaks, but the detection and positioning accuracy for slow and small leaks caused by aging of the pipeline network is poor, and false alarms and missed alarms are very likely to occur when the natural gas operating conditions change frequently. In addition, for some natural gas pipelines that have been built for a long time, reinstalling sensors or laying optical fibers is a large project, which will face various unfavorable factors. At the same time, such pipelines are also most prone to aging problems and slow leaks.
[0004] At present, the development of natural gas pipeline leakage detection technology at home and abroad has become relatively mature with the improvement of sensor manufacturing precision and the advancement of computing power. There are also many types, but the price is generally expensive.
[0005] For these in-service pipelines that are severely aged but have not been equipped with high-tech detection tools due to historical factors, there is an urgent need to monitor leakage faults and improve the speed and accuracy of pipeline leakage detection. Summary of the invention
[0006] In view of the above problems, the present invention proposes a gas pipeline leakage detection method based on tidal flow calculation.
[0007] A gas pipeline leakage detection method based on flow calculation of the present invention comprises the following steps:
[0008] Establish a time-domain finite-difference model for dynamic hydraulic simulation of the pipeline to be inspected;
[0009] Measuring the state quantity of the pipeline to be detected, and obtaining a measured sequence of the state quantity of the pipeline to be detected;
[0010] Calculating an estimation sequence of the pipeline state quantity to be detected according to the finite difference time domain model;
[0011] Determining whether the pipeline to be detected is leaking according to the measured sequence and the estimated sequence of the state quantity of the pipeline to be detected;
[0012] The state quantities include the head end mass flow, the head end pressure, the terminal end mass flow and the terminal end pressure of the pipeline to be detected.
[0013] Furthermore, the step of establishing a time-domain finite difference model for dynamic hydraulic simulation of the pipeline to be tested includes:
[0014] Discretizing the physical parameters of the pipeline to be inspected in the spatial dimension to obtain a distributed parameter model;
[0015] Discretize the state quantity of the pipeline to be detected in time and space to obtain a central difference model of the state quantity;
[0016] A time-domain finite difference model of the pipeline to be inspected is established according to the central difference model and the distributed parameter model.
[0017] Furthermore, the finite-difference time-domain model is:
[0018]
[0019]
[0020] in:
[0021] L0 = 1 / A, A is the cross-sectional area of the pipe;
[0022] R0=λv / (2A d ), v is the micro-element running speed of the fluid in the pipeline, λ is the friction coefficient of the fluid in the pipeline, and d is the inner diameter of the pipeline;
[0023] C0=A / c 2 , c is the speed of sound in the gas, T is the operating temperature of the fluid in the pipeline, Z is the molar mass of the fluid in the pipeline, R is the ideal gas constant; G0 = 0;
[0024] m is the mass flow rate of the fluid microelement, p is the pressure of the fluid microelement, Re is the Reynolds number, and μ is the fluid viscosity;
[0025] The superscripts of m, p, Re, v, and λ represent discrete points in time, and the subscripts represent discrete points in space, where x is the axial space of the pipeline and t is time;
[0026] Where k = {0, 1, 2, 3 ... N}, N represents the total number of segments into which the total computing time is evenly divided, Δt represents the time interval of each segment, and the total computing time T is equally divided into N segments, and the time interval of each segment Δt = T / N;
[0027] j={1, 2, 3...M}, M represents the total number of equally divided sections of the length of the pipeline to be detected, Δx represents the length of each section, and a pipeline with a length of l is equally divided into M sections, and the length of each section Δx=l / M.
[0028] Furthermore, the distribution parameter model is:
[0029]
[0030] L0 = 1 / A, A is the cross-sectional area of the pipe;
[0031] R0 = λv / (2Ad), v is the micro-element running speed of the fluid in the pipeline, λ is the friction coefficient of the fluid in the pipeline, and d is the inner diameter of the pipeline;
[0032] C0=A / c 2 , c is the speed of sound in the gas, T is the operating temperature of the fluid in the pipeline, Z is the molar mass of the fluid in the pipeline, and R is the ideal gas constant;
[0033] G0=0;
[0034] m is the mass flow rate of the fluid microelement;
[0035] p is the pressure of the fluid element;
[0036] x is the axial space of the pipeline, and t is the time.
[0037] Furthermore, the central difference model is:
[0038]
[0039]
[0040] Wherein, m is the mass flow rate of the fluid microelement, p is the pressure of the fluid microelement, the superscripts of m and p represent discrete points in time, the subscripts of m and p represent discrete points in space, x is the axial space of the pipeline, and t is time;
[0041] Where k = {0, 1, 2, 3 ... N}, N represents the total number of segments into which the total computing time is evenly divided, Δt represents the time interval of each segment, and the total computing time T is equally divided into N segments, and the time interval of each segment Δt = T / N;
[0042] j={1, 2, 3...M}, M represents the total number of equally divided sections of the length of the pipeline to be detected, Δx represents the length of each section, and a pipeline with a length of l is equally divided into M sections, and the length of each section Δx=l / M.
[0043] Furthermore, the step of calculating the estimation sequence of the pipeline state quantity to be detected according to the finite difference time domain model includes:
[0044] The measured pressure sequence P of the pipeline to be tested at the head end in and the measured sequence M of the mass flow at the end of the pipeline to be tested out inputting the finite-difference time-domain model as initial boundary conditions;
[0045] Calculate and output the terminal pressure estimation sequence P out-model and the head-end mass flow estimation sequence M in-model .
[0046] Furthermore, the step of judging whether the pipeline to be detected is leaking according to the measured sequence and the estimated sequence of the pipeline state quantity to be detected includes:
[0047] The measured sequence M of the mass flow rate at the head end of the pipeline to be tested in With the head end mass flow estimation sequence M in-model A comparison is made and a first error sequence is calculated, and whether leakage occurs in the pipeline to be detected is determined according to the first error sequence.
[0048] Furthermore, the first error sequence is integrated, and if the error integral increases linearly and the absolute value of the error exceeds a first preset threshold, it is determined that the pipeline to be detected is leaking.
[0049] Furthermore, the step of judging whether the pipeline to be detected is leaking according to the measured sequence and the estimated sequence of the pipeline state quantity to be detected includes:
[0050] The measured pressure sequence P of the end of the pipeline to be tested out With the terminal pressure estimation sequence P out-model A comparison is made and a second error sequence is calculated, and whether leakage occurs in the pipeline to be detected is determined based on the analysis of the second error sequence.
[0051] Furthermore, the second error sequence is integrated, and if the error integral increases linearly and the error absolute value exceeds a second preset threshold, it is determined that the pipeline to be detected is leaking.
[0052] The present invention provides a gas pipeline leakage detection method based on tidal flow calculation, which analyzes and determines the leakage of the pipeline by establishing a time-domain finite difference model of the dynamic hydraulic simulation of the pipeline, combining the measured sequence of the pipeline state quantity and the estimated sequence of the pipeline state quantity calculated according to the model. The method is suitable for leakage detection of long-distance natural gas pipelines, especially for in-service pipelines that are severely aged but cannot be installed with high-tech detection tools due to historical factors. Compared with the existing pipeline leakage monitoring system that relies on high-performance detection equipment, it can greatly save the cost of pipeline leakage detection.
[0053] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0055] Figure 1 A flow chart showing the steps of a gas pipeline leakage detection method according to an embodiment of the present invention is shown;
[0056] Figure 2 A schematic diagram of gas pipeline distribution parameters according to an embodiment of the present invention is shown;
[0057] Figure 3 A schematic diagram of m and p spatial discretization according to an embodiment of the present invention is shown;
[0058] Figure 4 A schematic diagram of time discretization of m and p according to an embodiment of the present invention is shown;
[0059] Figure 5 A comparison diagram of an estimated sequence and a measured sequence when there is no leakage in an embodiment of the present invention is shown;
[0060] Figure 6 A comparison diagram of an estimated sequence and a measured sequence when there is leakage in an embodiment of the present invention is shown;
[0061] Figure 7A comparison diagram of an estimated sequence containing noise and a measured sequence according to an embodiment of the present invention is shown;
[0062] Figure 8 The load pressure error integral in two states, with and without leakage, is shown in the case of noise according to an embodiment of the present invention;
[0063] Fig. 9 A schematic diagram showing the principle of a gas pipeline leakage detection method according to an embodiment of the present invention is shown;
[0064] Fig.10 A noise variance calculation comparison table of a noisy estimated sequence and a measured sequence according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0065] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0066] like Figure 1 The above is a flow chart of a gas pipeline leakage detection method based on flow calculation according to an embodiment of the present invention, comprising the following steps:
[0067] Establish a time-domain finite-difference model for dynamic hydraulic simulation of the pipeline to be inspected;
[0068] Measuring the state quantity of the pipeline to be detected, and obtaining a measured sequence of the state quantity of the pipeline to be detected;
[0069] Calculating an estimation sequence of the pipeline state quantity to be detected according to the finite difference time domain model;
[0070] Acquire leakage information of the pipeline to be detected according to the measured sequence and the estimated sequence of the state quantity of the pipeline to be detected;
[0071] The state quantities include the head end mass flow, the head end pressure, the terminal end mass flow and the terminal end pressure of the pipeline to be detected.
[0072] See also Figure 1 and Fig. 9 According to a specific embodiment of the present invention, the gas pipeline leakage detection of the present invention is implemented through the following detailed steps.
[0073] 1. In this embodiment, the physical parameters of the pipeline to be detected are first discretized in the spatial dimension to obtain a distributed parameter model;
[0074] Because the diameter of the fluid pipeline does not change for a long time, and the pipeline diameter is almost negligible compared to the curvature radius of the pipeline, and the difference in parameter distribution on the vertical plane of the streamline is negligible compared to that along the streamline direction, the pipe flow can be regarded as a unitary flow. The physical parameters of the fluid in a certain cross section of the pipeline described in this embodiment can be regarded as the average value on this cross section.
[0075] Specifically, the pipeline physical parameters considered in this embodiment include pipeline fluid operating pressure p, operating speed v, fluid density ρ and temperature T. In this embodiment, the fluid in the pipeline is natural gas for analysis, because it is generally considered that the natural gas pipeline is in an isothermal process during actual operation, that is, the gas in the pipeline has enough time to reach thermal equilibrium with the constant temperature environment around the pipeline. Therefore, it is determined that the energy dissipation caused by the temperature difference along the pipeline can be ignored, that is, only the pipeline fluid operating pressure p, operating speed v and fluid density ρ are considered in this embodiment.
[0076] 1.1 For the state quantities mass flow rate m(x, t) and pressure p(x, t), first obtain the gas pipe flow model:
[0077]
[0078] A is the cross-sectional area of the pipeline, v is the micro-element running speed of the fluid in the pipeline, λ is the friction coefficient of the fluid in the pipeline, d is the inner diameter of the pipeline; c is the speed of sound in the gas, T is the operating temperature of the fluid in the pipeline, Z is the molar mass of the fluid in the pipeline, and R is the ideal gas constant;
[0079] m is the mass flow rate of the fluid element, and p is the pressure of the fluid element.
[0080] 1.2 Considering the numerical solution of the steady-state operation of the natural gas pipeline, the steady-state conditions are superimposed on the gas pipe flow model to obtain the steady-state formula:
[0081]
[0082] In steady state, M = const. From this, we can know that the square of the pressure along the pipeline is p 2 With distance L ij is linearly related; that is, when the position of endpoint j is fixed, the difference between the square of the pressure at endpoint i and the square of the pressure at j is proportional to the distance L between the two endpoints. ij Linear correlation at steady state.
[0083] 1.3 Obtain the distribution parameter model of the pipeline to be detected:
[0084] Setting: L0 = 1 / A, R0 = λv / (2Ad), C0 = A / c 2, G0=0, simplify the gas pipe flow model:
[0085]
[0086] At this time, the form of the dynamic transmission equation of natural gas has the same format as the transmission equation of voltage and current in the distributed parameter circuit, which can be drawn into a distributed parameter diagram of resistance, capacitance, inductance and reactance as shown in Figure 2 As shown, the difference between the two is that in the natural gas transmission equation, R0 is related to the flow velocity v and the friction coefficient λ at the current moment, and λ is related to the gas flow state at the current moment.
[0087] 2. Discretize the state quantity of the pipeline to be detected in time and space to obtain a central difference model of the state quantity;
[0088] 2.1 Discretize m and p in space:
[0089] First, for a pipe with a length of l, divide it into M equal segments, and the length of each segment is Then, a spatial discrete point (p1, p3, p5, p7, ..., p2) of pressure p is established at each spatial coordinate (0, Δx, 2Δx, 3Δx, ..., MΔx). 2M+1 ), set up spatial discrete points (m2, m4, m6, ..., m-0.5)Δx) of mass flow m at the midpoint of each segment, i.e., (0.5Δx, 1.5Δx, 2.5Δx, ..., (M-0.5)Δx) 2M ), at this time, the discrete points of p and m are set alternately with an interval of 0.5Δx, such as Figure 3 The spatial discretization diagram is shown in the figure.
[0090] 2.2 Discretize m and p in time:
[0091] The total calculation time T is divided into N equal segments, each of which has a time interval Δt = T / N. Then, a discrete time point (p) of pressure p is set at each time coordinate (0, Δt, 2Δt, 3Δt, ..., NΔt). (0) , p (2) , p (4) , p (6) , ..., p (2N) ), set up the time discrete points (m) of mass flow m at the midpoint of each segment, i.e. (0.5Δt, 1.5Δt, 2.5Δt, …, (N-0.5)Δt) (1) , m (3) , m (5) , ..., m (2N-1) ), at this time, the discrete points of p and m are set alternately with an interval of 0.5Δt, such as Figure 4 The time discrete diagram is shown in the figure.
[0092] 2.3 Using the central difference format to discretize the space-time variables (state quantities) p(x, t) and m(x, t), we get the central difference model:
[0093]
[0094]
[0095] Wherein k={0, 1, 2, 3...N}, j={1, 2, 3...M}, and k and j are both integers.
[0096] 3. Establishing a time-domain finite difference model of the pipeline to be inspected based on the central difference model and the distributed parameter model:
[0097]
[0098]
[0099] in:
[0100] L0 = 1 / A, A is the cross-sectional area of the pipe;
[0101] R0 = λv / (2Ad), v is the micro-element running speed of the fluid in the pipeline, λ is the friction coefficient of the fluid in the pipeline, and d is the inner diameter of the pipeline;
[0102] C0=A / c 2 , c is the speed of sound in the gas, T is the operating temperature of the fluid in the pipeline, Z is the molar mass of the fluid in the pipeline, R is the ideal gas constant. In this embodiment, the gas constant value R is taken as 8.314 J / (mol·k), and G0=0;
[0103] m is the mass flow rate of the fluid microelement, p is the pressure of the fluid microelement, Re is the Reynolds number, and μ is the fluid viscosity;
[0104] The superscripts of m, p, Re, v, and λ represent discrete points in time, and the subscripts represent discrete points in space;
[0105] Wherein k = {0, 1, 2, 3...N}, j = {1, 2, 3...M}, k and j are both integers, x is the axial space of the pipeline, and t is time.
[0106] 4. Setting the boundary conditions of the finite-difference time-domain model, and calculating the estimated sequence of the pipeline state quantity to be detected according to the finite-difference time-domain model:
[0107] In this embodiment, the head end pressure and the terminal mass flow of the pipeline to be detected are input into the time-domain finite difference model as boundary conditions, that is, the above formula (4), and the head end mass flow estimation sequence and the terminal pressure estimation sequence are calculated.
[0108] Specifically, the pressure at the head end and the end end of the pipeline to be inspected are measured and acquired in real time by a pressure sensor to obtain a head end pressure measurement sequence and an end end pressure measurement sequence;
[0109] The head end mass flow rate and the end end mass flow rate of the pipeline to be detected are measured and acquired in real time by a flow sensor to obtain a head end mass flow rate measurement sequence and an end end mass flow rate measurement sequence.
[0110] Furthermore, if Fig. 9 As shown, in one embodiment of the present invention, the pipeline leakage analysis is performed by taking the constant pressure at the head end and the constant flow at the end end (pm) as the boundary conditions of the FDTD model, that is, the measured sequence P of the head end pressure of the pipeline to be detected is in and the measured sequence M of the mass flow at the end of the pipeline to be tested out The finite-difference time-domain model is input as the initial boundary condition to calculate the terminal pressure estimation sequence P out-model and the head-end mass flow estimation sequence M in-model .
[0111] Specifically, the three boundary conditions of constant pressure at the head end and constant flow at the end (pm), constant pressure at both ends (pp), and constant flow at both ends (mm) were compared. The dynamic process of a single pipeline frequently changing operating conditions according to conventional control logic was used as an example. The calculation results obtained by the FDTD model were compared with the results obtained by TGNET (natural gas gathering and transportation pipeline network transient response simulation software). After analyzing the average error of the dynamic process under the three boundary conditions, the certainty of returning to a steady state, and the degree of matching with the control logic, the average error of the boundary condition of constant pressure at the head end and constant flow at the end (pm) was 0.067%, and compared with the other two boundary conditions, the error after returning to a steady state was extremely small and matched with the control logic, see Fig.10 Therefore, pm is finally selected as the boundary condition for FDTD model calculation.
[0112] In actual engineering, the upstream of a natural gas pipeline is generally a gas source or a pressure regulating valve, which can be regarded as a constant pressure source; the end is generally a user or a gas load, which can be regarded as a constant flow source. Therefore, constant pressure at the head end and constant flow at the end end (pm) is the most commonly used control logic in industry. In the embodiments of the present invention, using it as a boundary condition can also ensure the consistency with the causal logic of the actual system working conditions.
[0113] 5. Compare the estimated sequence obtained by the finite difference time domain model with the corresponding measured sequence to determine the leakage of the pipeline to be detected:
[0114] The measured sequence M of the mass flow rate at the head end of the pipeline to be tested in With the head end mass flow estimation sequence Min-model Comparing the results, if the matching degree is low, it is determined that the pipeline to be detected is leaking;
[0115] The measured pressure sequence P of the end of the pipeline to be tested out With the terminal pressure estimation sequence P out-model A comparison is performed, and if the matching degree is low, it is determined that the pipeline to be detected is leaking.
[0116] Specifically, in this embodiment, the matching degree is determined by calculating the error sequence:
[0117] The measured sequence M of the mass flow rate at the head end of the pipeline to be tested in With the head end mass flow estimation sequence M in-model Compare and calculate a first error sequence; integrate the first error sequence, if the error integral increases linearly and the absolute value of the error exceeds a first preset threshold, it is determined that the pipeline to be detected leaks, that is, the matching degree is low.
[0118] Alternatively, the measured pressure sequence P of the end of the pipeline to be tested is out With the terminal pressure estimation sequence P out-model Compare and calculate a second error sequence; integrate the second error sequence, if the error integral increases linearly and the absolute value of the error exceeds a second preset threshold, it is determined that the pipeline to be detected leaks, that is, the matching degree is low.
[0119] Specifically, in a specific embodiment of the present invention, in the absence of noise, the pipeline length l = 60km, the pipe diameter d = 0.6m, and the head end pressure P in a steady state in =7MPa, terminal flow rate M out =103.1052kg / s. The head pressure or the end flow rate is adjusted every 1 hour to keep the fluid in the pipe dynamic during the entire research process. The estimated results under dynamic adjustment when there is no leakage are as follows Figure 5 As shown. Figure 5 As shown in , in the absence of leakage, the curve match between the measured values (measured sequence) and the estimated sequence is very high.
[0120] When a leak occurs in the pipeline, the estimated sequence calculated according to the no-leakage model will have a large deviation from the measured value. In this embodiment, based on dynamic adjustment, a leak of D = 10 mm is set at the midpoint of the pipeline at t = 2h. The comparison results of the estimated value and the measured value at this time are as follows: Figure 6 As shown, Figure 5As shown in , in the absence of leakage, the curve matching degree between the measured value (measured sequence) and the estimated sequence begins to gradually decrease at a certain moment (when leakage occurs). This allows the time of leakage to be obtained more clearly and accurately, and the steady-state flow of the leakage can be estimated based on the difference in the gas source flow sequence.
[0121] Specifically, in another specific embodiment of the present invention, in the case of noise, the schematic diagram of the early steady-state measurement after the actual measurement of the first and the last ends introduces a measurement error of ±0.1% is shown as follows: Figure 7 The FDTD model of the present invention is an iterative process with stable convergence. Because the relationship between the iteration coefficients will weaken the measurement noise, see Figure 7 and Fig.10 The table in the figure shows the calculation results of this embodiment. The comparison verifies that when the PM boundary condition is used within a certain parameter range, the mass flow sequence of the gas source calculated by the FDTD model will amplify the noise, while the load pressure sequence will weaken the noise.
[0122] In order to improve the detection accuracy, we can consider increasing the influence of the comparison results of the measured and estimated load pressure values on the overall judgment, and take measures to accumulate errors to reduce the influence of measurement noise. Then, we can judge whether a leak occurs by the slope, that is, we can only compare the measured and calculated values of the load pressure sequence to draw a conclusion, because FDTD allows the iterative calculation process of the load pressure to have a filtering effect. The results are as follows: Figure 8 shown.
[0123] Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent substitutions for some of the technical features therein; and these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A gas pipeline leakage detection method based on flow calculation, It is characterized in that The following steps are included: Establish a time-domain finite-difference model for dynamic hydraulic simulation of the pipeline to be inspected, including: The physical parameters of the pipeline to be detected are discretized in the spatial dimension to obtain a distributed parameter model, which is: L 0 =1 / A, A is the cross-sectional area of the pipe, R 0 =λv / (2Ad), v is the micro-element running speed of the fluid in the pipeline, λ is the friction coefficient of the fluid in the pipeline, d is the inner diameter of the pipeline, C 0 =A / c 2 , c is the speed of sound in the gas, T is the operating temperature of the fluid in the pipeline, Z is the molar mass of the fluid in the pipe, R is the ideal gas constant, G 0 = 0, m is the mass flow rate of the fluid microelement, p is the pressure of the fluid microelement, x is the axial space of the pipeline, and t is the time; The state quantity of the pipeline to be detected is discretized in time and space to obtain a central difference model of the state quantity, which is: in, The superscripts m and p represent discrete points in time, and the subscripts m and p represent discrete points in space. Where k = {0, 1, 2, 3...N}, N represents the total number of segments of the total computing time, Δt represents the time interval of each segment, the total computing time T is divided into N segments, and the time interval of each segment Δt = T / N; j={1,2,3...M}, M represents the total number of segments of the length of the pipeline to be tested, Δx represents the length of each segment, and a pipeline with a length of l is divided into M segments, and the length of each segment Δx=l / M; A finite difference time domain model of the pipeline to be inspected is established according to the central difference model and the distributed parameter model. The finite difference time domain model is: in, Re is the Reynolds number, μ is the fluid viscosity, The superscripts of Re, v, and λ represent discrete points in time, and the subscripts represent discrete points in space; Measuring the state quantity of the pipeline to be detected, and obtaining a measured sequence of the state quantity of the pipeline to be detected; Calculating an estimation sequence of the pipeline state quantity to be detected according to the finite difference time domain model; Determining whether the pipeline to be detected is leaking according to the measured sequence and the estimated sequence of the state quantity of the pipeline to be detected; The state quantities include the head end mass flow, the head end pressure, the terminal end mass flow and the terminal end pressure of the pipeline to be detected.
2. The gas pipeline leakage detection method according to claim 1, It is characterized in that The step of calculating the estimation sequence of the pipeline state quantity to be detected according to the finite difference time domain model comprises: The measured pressure sequence P of the pipeline to be tested at the head end in and the measured sequence M of the mass flow at the end of the pipeline to be tested out inputting the finite-difference time-domain model as initial boundary conditions; Calculate and output the terminal pressure estimation sequence P out-model and the head-end mass flow estimation sequence M in-model .
3. The pipeline leakage detection method according to claim 2, It is characterized in that The step of judging whether the pipeline to be detected is leaking according to the measured sequence and the estimated sequence of the pipeline state quantity to be detected comprises: The measured sequence M of the mass flow rate at the head end of the pipeline to be tested in With the head end mass flow estimation sequence M in-model A comparison is made and a first error sequence is calculated, and whether leakage occurs in the pipeline to be detected is determined according to the first error sequence.
4. The gas pipeline leakage detection method according to claim 3, It is characterized in that The first error sequence is integrated, and if the error integral increases linearly and the error absolute value exceeds a first preset threshold, it is determined that the pipeline to be detected leaks.
5. The gas pipeline leakage detection method according to claim 2, It is characterized in that The step of judging whether the pipeline to be detected is leaking according to the measured sequence and the estimated sequence of the pipeline state quantity to be detected comprises: The measured pressure sequence P of the end of the pipeline to be tested out With the terminal pressure estimation sequence P out-model A comparison is made and a second error sequence is calculated, and whether leakage occurs in the pipeline to be detected is determined based on the analysis of the second error sequence.
6. The gas pipeline leakage detection method according to claim 5, It is characterized in that The second error sequence is integrated, and if the error integral increases linearly and the error absolute value exceeds a second preset threshold, it is determined that the pipeline to be detected leaks.
