Method and device for calculating pipeline leakage flow based on pressure change

By establishing a pressure simulation model and a leakage calculation model, combining pressure change data and other parameters, the accuracy and timeliness of existing gas leakage detection methods in micro leakage detection are solved, and accurate calculation and timely detection of gas leakage flow are achieved.

CN119670605APending Publication Date: 2025-03-21ZHEJIANG WEIXING INTELLIGENT METER STOCK
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411663036.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-20
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

The existing gas leak detection methods have limitations in accuracy and timeliness, especially in the detection of trace leakage, it is difficult to achieve efficient and accurate monitoring.

Method used

By establishing a pressure simulation model, the pressure change data inside the pipeline is obtained, and combined with the leakage port area and the total gas volume, the leakage flow is calculated using the leakage calculation model.

Benefits of technology

Accurate calculation of gas leakage flow is achieved, and the trace leakage problem can be discovered and dealt with in a timely manner, detection sensitivity and accuracy are improved, gas waste is reduced, and environmental pollution is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119670605A_ABST
    Figure CN119670605A_ABST
Patent Text Reader

Abstract

The invention provides a method and device for calculating pipeline leakage flow based on pressure change, and belongs to the technical field of gas leakage detection. The method for calculating the pipeline leakage flow based on the pressure change comprises the following steps that S1, a pressure simulation model is established, a pipeline is simulated according to the pressure simulation model, and pressure change data, changing along with time, in the pipeline is obtained; s2, the leakage opening area value and the total gas volume value corresponding to the gas meter and the pipeline are obtained; and S3, establishing a leakage rate calculation model, and inputting the gas total volume value, the leakage port area value and the pressure change data into the leakage rate calculation model to calculate and obtain a leakage flow rate value. The pressure simulation model simulates the pipeline to obtain the pressure change data, the gas leakage flow can be accurately calculated by comprehensively considering the pressure change, the leakage opening area and the gas volume, the method can be widely applied to household and industrial gas pipelines, gas waste is reduced, and environmental pollution is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of gas leakage detection, and in particular to a method and device for calculating pipeline leakage flow based on pressure change. Background Art

[0002] Existing gas leak detection methods mostly use the method of directly measuring the concentration or flow of leaked gas. However, these methods have certain limitations in accuracy and timeliness, especially in the detection of trace leaks, which makes it difficult to achieve efficient and accurate monitoring. Therefore, there is an urgent need for a method that can calculate the leakage amount through the pressure changes inside the gas meter and its connected pipeline to improve the safety of gas use. Summary of the invention

[0003] In order to solve the above problems, an embodiment of the present application provides a method and device for calculating pipeline leakage flow based on pressure changes.

[0004] In a first aspect, the present application provides a method for calculating pipeline leakage flow based on pressure change, comprising the following steps: S1: Establish a pressure simulation model, simulate the pipeline according to the pressure simulation model, and obtain the pressure change data inside the pipeline over time; S2: Obtain the leakage area value and the total gas volume value corresponding to the gas meter and pipeline respectively; S3: Establish a leakage calculation model, input the total gas volume value, leakage port area value, and pressure change data into the leakage calculation model to calculate and obtain the leakage flow value.

[0005] Preferably, step S1 specifically includes: S11: Establish a pressure simulation model of the gas meter and its connected pipelines based on finite element software; S12: Setting material properties of the pressure simulation model, wherein the material properties include density and elastic modulus of gas medium and pipeline material; S13: Setting the boundary conditions and initial conditions of the simulation, and setting the gas volume pressure to remain unchanged after the gas meter valve is closed; S14: Perform pressure change simulation on the pressure simulation model to obtain pressure change data inside the pipeline that changes with time.

[0006] Preferably, obtaining the total gas volume value corresponding to the gas meter and the pipeline in step S2 specifically includes: Obtain the gas meter length, gas meter width, and gas meter height of the gas meter, and obtain the pipe length and pipe diameter of the pipeline; calculate the gas meter volume according to the gas meter length, gas meter width, and gas meter height, and calculate the pipe volume according to the pipe length and pipe diameter; add the gas meter volume and the pipe volume to obtain the total gas volume value.

[0007] Preferably, obtaining the leakage port area in step S2 specifically includes: obtaining the diameter of the leakage port, and calculating the leakage port area according to the diameter of the leakage port and π.

[0008] Preferably, step S3 specifically includes: S31: Establishing a leakage calculation model based on the Bernoulli equation and the continuity equation ,in represents the leakage flow rate, represents the leakage flow coefficient, Indicates the leakage area, Indicates pressure changes, represents the gas volume, Indicates gas density; S32: Obtain the leakage port flow coefficient value and gas density value, and input the leakage port area value, pressure change data, gas volume value, leakage port flow coefficient value, and gas density value into the leakage calculation model respectively. The leakage flow value is obtained by calculation.

[0009] In a second aspect, an embodiment of the present application provides a device for calculating pipeline leakage flow based on pressure changes, comprising: The pressure simulation module is used to establish a pressure simulation model, simulate the pipeline according to the pressure simulation model, and obtain the pressure change data inside the pipeline over time; A parameter calculation module is used to obtain the leakage port area value and the total gas volume value corresponding to the gas meter and the pipeline respectively; The flow calculation module is used to establish a leakage calculation model, and the total gas volume value, leakage port area value, and pressure change data are input into the leakage calculation model to calculate the leakage flow value.

[0010] Preferably, the pressure simulation module includes A first model building unit is used to build a pressure simulation model of the gas meter and its connected pipeline based on finite element software; A first setting unit is used to set material properties of the pressure simulation model, wherein the material properties include density and elastic modulus of gas medium and pipeline material; The second setting unit is used to set the boundary conditions and initial conditions of the simulation, and to set the gas volume pressure to remain unchanged after the gas meter valve is closed; The simulation unit is used to simulate the pressure change of the pressure simulation model and obtain the pressure change data inside the pipeline over time.

[0011] Preferably, the flow calculation module includes The second model building unit is used to build a leakage calculation model based on the Bernoulli equation and the continuity equation ,in represents the leakage flow rate, represents the leakage flow coefficient, Indicates the leakage area, Indicates pressure changes, represents the gas volume, Indicates gas density; The calculation unit is used to obtain the leakage flow coefficient value and gas density value, and input the leakage area value, pressure change data, gas volume value, leakage flow coefficient value and gas density value into the leakage calculation model respectively. The leakage flow value is obtained by calculation.

[0012] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method provided in the first aspect or any possible implementation of the first aspect are implemented.

[0013] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method provided in the first aspect or any possible implementation of the first aspect.

[0014] The beneficial effects of the present invention are as follows: the pressure simulation model simulates the pipeline, obtains pressure change data, and can accurately calculate the gas leakage flow rate by comprehensively considering the pressure change, leakage port area, and gas volume. It can be widely used in household and industrial gas pipelines to reduce gas waste, reduce environmental pollution, and promote rational resource utilization and sustainable development. The present invention has strong integration and can be combined with the existing gas monitoring system to significantly improve the system safety, economy, and environmental friendliness, and has broad market prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0016] Figure 1 A flow chart of a method for calculating pipeline leakage flow based on pressure change provided in an embodiment of the present application; Figure 2 A schematic diagram of the structure of a device for calculating pipeline leakage flow based on pressure change provided in an embodiment of the present application; Figure 3A schematic diagram of the structure of an electronic device provided in an embodiment of the present application; Figure 4 A schematic diagram of a pressure simulation model of a gas meter and its connected pipeline for a method of calculating pipeline leakage flow based on pressure changes provided in an embodiment of the present application; Figure 5 A gas meter and a graph showing changes in internal pressure and leakage rate of a connected pipeline thereof, which provide a method for calculating pipeline leakage flow based on pressure changes in an embodiment of the present application.

[0017] In the figure: 1- pipeline, 2- gas meter, 3- leakage point, 4- internal pressure monitoring point. DETAILED DESCRIPTION

[0018] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0019] In the following introduction, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. The following introduction provides multiple embodiments of the present application, and different embodiments can be replaced or combined, so the present application can also be considered to include all possible combinations of the same and / or different embodiments recorded. Therefore, if one embodiment includes features A, B, and C, and another embodiment includes features B and D, then the present application should also be considered to include embodiments containing one or more of all other possible combinations of A, B, C, and D, although the embodiment may not be clearly recorded in the following text.

[0020] The following description provides examples and does not limit the scope, applicability or examples set forth in the claims. Changes may be made to the functions and arrangements of the elements described without departing from the scope of the present application. Various processes or components may be appropriately omitted, substituted or added to each example. For example, the described method may be performed in an order different from the order described, and various steps may be added, omitted or combined. In addition, features described in some examples may be combined in other examples.

[0021] See also Figure 1 . Figure 1 1 is a flow chart of a method for calculating the leakage flow of a pipeline 1 based on pressure changes provided in an embodiment of the present application. In an embodiment of the present application, the method comprises the following steps: S1: Establish a pressure simulation model, simulate the pipeline 1 according to the pressure simulation model, and obtain the pressure change data inside the pipeline 1 that changes with time; S2: Obtain the leakage port area value and the total gas volume value corresponding to gas meter 2 and pipeline 1 respectively; S3: Establish a leakage calculation model, input the total gas volume value, leakage port area value, and pressure change data into the leakage calculation model to calculate and obtain the leakage flow value.

[0022] In the embodiment of the present application, the leakage flow is calculated by studying the pressure changes of the gas meter 2 and its connecting pipeline 1 in the case of a trace leakage. The method of the present invention is suitable for application in practical projects such as household gas, and can effectively calculate the leakage amount in the gas meter 2 pipeline 1 to ensure the safe operation of gas use.

[0023] In one possible implementation, step S1 specifically includes: S11: establishing a pressure simulation model of the gas meter 2 and its connecting pipeline 1 based on finite element software; S12: Setting material properties of the pressure simulation model, wherein the material properties include the density and elastic modulus of the gas medium and the material of the pipeline 1; S13: setting the boundary conditions and initial conditions of the simulation, and setting the gas container pressure after the gas meter 2 is closed to remain unchanged; S14: Perform pressure change simulation on the pressure simulation model to obtain pressure change data inside the pipeline 1 that changes with time.

[0024] In the embodiment of the present application, a simulation model is established: a three-dimensional model of the gas meter 2 and its connected pipeline 1 is established in the finite element software; model material properties are set, such as the density and elastic modulus of the gas medium and pipeline 1 material; boundary conditions and initial conditions are set to ensure that the simulation conditions meet the actual gas usage scenario; pressure holding conditions are set: the gas volume pressure of the gas meter 2 is set to remain unchanged after the valve is closed; the position and size of the leak port are determined, and its leakage rate is set; pressure change simulation is performed: the pressure change in the pipeline 1 is calculated by simulation, considering the flow characteristics of the gas and its interaction with the wall of the pipeline 1; pressure change data is extracted: data on the change of the internal pressure of the pipeline 1 over time is extracted from the simulation results. The initial conditions include the initial pipeline 1 pressure and the ambient pressure. The pressure simulation model can be a fluid dynamics model and a material property model.

[0025] In one possible implementation manner, obtaining the total gas volume value corresponding to the gas meter 2 and the pipeline 1 in step S2 specifically includes: Obtain the length, width and height of gas meter 2, and obtain the length and diameter of pipeline 1 of pipeline 1; calculate the volume of gas meter 2 according to the length, width and height of gas meter 2, and calculate the volume of pipeline 1 according to the length and diameter of pipeline 1; add the volume of gas meter 2 and pipeline 1 to obtain the total volume of gas.

[0026] In one possible implementation manner, obtaining the leakage port area in step S2 specifically includes: obtaining the diameter of the leakage port, and calculating the leakage port area according to the diameter of the leakage port and π.

[0027] In one possible implementation, step S3 specifically includes: S31: Establishing a leakage calculation model based on the Bernoulli equation and the continuity equation ,in represents the leakage flow rate, represents the leakage flow coefficient, Indicates the leakage area, Indicates pressure changes, represents the gas volume, Indicates gas density; S32: Obtain the leakage port flow coefficient value and gas density value, and input the leakage port area value, pressure change data, gas volume value, leakage port flow coefficient value, and gas density value into the leakage calculation model respectively. The leakage flow value is obtained by calculation.

[0028] In the embodiments of the present application, the present invention is based on the Bernoulli equation, which is used to describe the relationship between pressure and velocity of an inviscid, incompressible fluid in steady-state flow. At the leak, the Bernoulli equation is simplified to ,in: represents the static pressure of the fluid, represents the fluid density, Indicates the fluid flow rate, C is a constant. At the leakage point 3, the fluid flows out at a rate Determined by the pressure difference, the simplified formula is: ,in, is the pressure difference on both sides of the leak. According to the continuity equation, the present invention describes that in steady-state flow, the mass flow rate of the fluid through the pipeline 1 remains unchanged. For the leak, the relationship between the fluid flow rate and the flow rate is: ,in represents the leakage flow rate, Represents the leakage port area. Combined with the velocity expression in the Bernoulli equation, the leakage flow formula is expressed as: Considering the viscosity effect and the shape of the leakage port in the actual flow, the flow coefficient is introduced into the formula After correction, the actual leakage flow formula is obtained: The present invention further considers the influence of the gas volume in the pipeline 1 on the leakage, introduces the gas volume 𝑉 into the formula, and finally obtains the leakage flow calculation formula as follows: , that is, the leakage calculation model is obtained ,in Indicates leakage flow, unit: m³ / s, It represents the leakage flow coefficient, dimensionless, generally between 0.6 and 0.9. Indicates the leakage area, unit: m², Indicates pressure changes, , unit: Pa, represents the initial pipe 1 pressure, Indicates environmental pressure, That is, the pressure simulation model is used to simulate the pipeline 1 to obtain the pressure change data inside the pipeline 1 that changes with time. represents the gas volume, Indicates gas density, unit: kg / m³.

[0029] In the embodiment of the present application, according to the extracted pressure change data, the leakage flow calculation formula is applied to establish a leakage calculation model to ensure that the model can accurately reflect the leakage of pipeline 1. Simulation verification, the leakage calculation model is applied to the household gas system, by real-time monitoring of the pressure change in pipeline 1, the real-time leakage is calculated, and the micro-leakage problem is discovered and handled in time; by comparing the simulation and measured results, the accuracy and reliability of the simulation design are determined.

[0030] In the embodiment of the present application, the pressure simulation model is established as follows: Figure 4 As shown in the figure, a three-dimensional pressure simulation model including a gas meter 2 and its pipeline 1 is established in the finite element software. The size of the gas meter 22 is 0.22m×0.092m×0.14m, the length of the pipeline 11 is 0.635m, the diameter is 0.015m, and the material is steel (density is 7850 kg / m³, elastic modulus is 210 GPa); set the pressure holding condition: initial pipeline 1 pressure Set to 103.325 kPa, ambient pressure is 101.325 kPa. In the simulation model, the gas volume pressure after the gas meter 2 is closed is set to remain unchanged. The internal pressure monitoring point 4 of the gas meter 2 and its connecting pipeline 1 is set. The position and size of the leak are determined, and its leakage rate is set. The simulation time is 100 seconds and the step length is 1 second. Perform pressure change simulation: Calculate the pressure change in pipe 1 by simulation, taking into account the flow characteristics of the gas and its interaction with the wall of pipe 1. Use appropriate fluid dynamics models (such as the Navier-Stokes equations) and material property models to simulate the actual situation. Extract pressure change data, and extract the pressure change data of pipe 1 internal pressure over time from the simulation results. ; Establish a leakage calculation model: Establish a leakage flow calculation model based on the extracted pressure change data Initial Pipeline 1 Pressure =103325Pa, ambient pressure =101325Pa, density of pipe 1 material ρ 钢 =7850kg / m3, the density of gas (methane) in pipeline 1 ρ 甲烷 =0.668kg / m3. Gas meter 2 volume , Pipe 1 volume , according to the volume of gas meter 2 and pipeline 1, obtain the total gas volume value corresponding to gas meter 2 and pipeline 1 . Set the leak diameter to d =0.001m, flow coefficient =0.7, leakage area for: According to the above parameters and leakage calculation model, the internal pressure and leakage change of the gas meter 2 and its connecting pipeline 1 can be obtained. The change curve is as follows: Figure 5 shown.

[0031] In the embodiment of the present application, the present application is applied to a household gas system, by installing a pressure sensor to monitor the internal pressure of the pipeline 1 in real time, using a leakage calculation model to calculate the leakage flow in real time, and when a leak is detected, an alarm is given in time. According to the monitoring data and the leakage calculation model, the design and operation of the gas pipeline 1 system are further optimized to improve the efficiency and reliability of the system. The present invention can monitor and calculate the leakage in the gas pipeline 1 in real time, ensure the safety of gas use, and has significant practical application value.

[0032] In the embodiment of the present application, the pressure change data is obtained through the pressure simulation model, and the leakage flow value is obtained according to the pressure change data and the leakage calculation model, and the simulation verification is performed. The leakage calculation model is applied to the household gas system, and the pressure change in the pipeline 1 is monitored in real time. The real-time leakage is calculated according to the real-time pressure and the leakage calculation model, and the accuracy and reliability of the simulation design are determined by comparing the leakage flow value with the real-time leakage. The present application can timely discover and deal with trace leakage problems, improve detection sensitivity and accuracy, timely discover leakage and warn, prevent gas leakage accidents, and improve the safety of gas use. The method is applicable to household gas systems and other gas pipeline 1 systems. The leakage flow is calculated through finite element simulation technology, which reduces costs, simplifies installation and maintenance, and has broad application prospects.

[0033] The following will be combined with the attached Figure 2 , a device for calculating pipeline leakage flow based on pressure change provided in an embodiment of the present application is introduced in detail. It should be noted that the attached Figure 2 The device shown is a device for calculating pipeline leakage flow based on pressure change, which is used to implement the present application Figure 1For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 1 The embodiment shown.

[0034] See also Figure 2 , Figure 2 Schematic diagram of a device for calculating pipeline leakage flow based on pressure change provided in an embodiment of the present application. Figure 2 As shown, the device comprises The pressure simulation module 201 is used to establish a pressure simulation model, simulate the pipeline 1 according to the pressure simulation model, and obtain the pressure change data of the pipeline 1 over time; The parameter calculation module 202 is used to obtain the leakage port area value and the total gas volume value corresponding to the gas meter 2 and the pipeline 1 respectively; The flow calculation module 203 is used to establish a leakage calculation model, and input the total gas volume value, the leakage port area value, and the pressure change data into the leakage calculation model to calculate and obtain the leakage flow value.

[0035] In one embodiment, the pressure simulation module 201 includes A first model building unit is used to build a pressure simulation model of the gas meter 2 and its connecting pipeline 1 based on finite element software; A first setting unit is used to set material properties of the pressure simulation model, wherein the material properties include the density and elastic modulus of the gas medium and the material of the pipeline 1; The second setting unit is used to set the boundary conditions and initial conditions of the simulation, and to set the gas volume pressure of the gas meter 2 to remain unchanged after the valve is closed; The simulation unit is used to simulate the pressure change of the pressure simulation model and obtain the pressure change data inside the pipeline 1 that changes with time.

[0036] In one possible implementation, the flow calculation module 203 includes The second model building unit is used to build a leakage calculation model based on the Bernoulli equation and the continuity equation ,in represents the leakage flow rate, represents the leakage flow coefficient, Indicates the leakage area, Indicates pressure changes, represents the gas volume, Indicates gas density; The calculation unit is used to obtain the leakage flow coefficient value and gas density value, and input the leakage area value, pressure change data, gas volume value, leakage flow coefficient value and gas density value into the leakage calculation model respectively. The leakage flow value is obtained by calculation.

[0037] Those skilled in the art can clearly understand that the technical solutions of the embodiments of the present application can be implemented with the help of software and / or hardware. The "unit", "module" and "part" in this specification refer to software and / or hardware that can independently complete or cooperate with other components to complete specific functions, where the hardware can be, for example, a field programmable gate array (FPGA), an integrated circuit (IC), etc.

[0038] Each processing unit and / or module of the embodiments of the present application may be implemented by an analog circuit that implements the functions described in the embodiments of the present application, or may be implemented by software that executes the functions described in the embodiments of the present application.

[0039] See also Figure 3 , which shows a schematic diagram of the structure of an electronic device involved in an embodiment of the present application, the electronic device can be used to implement Figure 1 The method in the embodiment shown. Figure 3 As shown, the electronic device 300 may include: at least one central processor 301 , at least one network interface 304 , a user interface 303 , a memory 305 , and at least one communication bus 302 .

[0040] The communication bus 302 is used to realize the connection and communication between these components.

[0041] The user interface 303 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.

[0042] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0043] Among them, the central processing unit 301 may include one or more processing cores. The central processing unit 301 uses various interfaces and lines to connect various parts of the entire electronic device 300, and executes various functions and processes data of the terminal 300 by running or executing instructions, programs, code sets or instruction sets stored in the memory 305, and calling data stored in the memory 305. Optionally, the central processing unit 301 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The central processing unit 301 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the central processing unit 301, but implemented separately through a chip.

[0044] Among them, the memory 305 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 305 may optionally be at least one storage device located away from the aforementioned central processor 301. As Figure 3 As shown, the memory 305 as a computer storage medium may include an operating system, a network communication module, a user interface module, and program instructions.

[0045] exist Figure 3In the electronic device 300 shown, the user interface 303 is mainly used to provide an input interface for the user and obtain the data input by the user; and the central processor 301 can be used to call an application stored in the memory 305 for calculating the leakage flow of the pipeline 1 based on the pressure change, and specifically perform the following operations: S1: Establish a pressure simulation model, simulate the pipeline 1 according to the pressure simulation model, and obtain the pressure change data inside the pipeline 1 that changes with time; S2: Obtain the leakage port area value and the total gas volume value corresponding to gas meter 2 and pipeline 1 respectively; S3: Establish a leakage calculation model, input the total gas volume value, leakage port area value, and pressure change data into the leakage calculation model to calculate and obtain the leakage flow value.

[0046] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are implemented. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.

[0047] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0048] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0049] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0050] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0051] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0052] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program codes.

[0053] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by entering a program to instruct related hardware. The program may be stored in a computer-readable memory, and the memory may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0054] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the specification and practicing the disclosure here, those skilled in the art will easily think of the implementation scheme of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field not recorded in the present disclosure. The description and examples are regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A method for calculating pipeline leakage flow based on pressure change, characterized in that: The steps include: S1: Establish a pressure simulation model, simulate the pipeline according to the pressure simulation model, and obtain the pressure change data inside the pipeline over time; S2: Obtain the leakage area value and the total gas volume value corresponding to the gas meter and pipeline respectively; S3: Establish a leakage calculation model, input the total gas volume value, leakage port area value, and pressure change data into the leakage calculation model to calculate and obtain the leakage flow value.

2. A method for calculating pipeline leakage flow based on pressure change according to claim 1, characterized in that: Step S1 specifically includes: S11: Establish a pressure simulation model of the gas meter and its connected pipelines based on finite element software; S12: Setting material properties of the pressure simulation model, wherein the material properties include density and elastic modulus of gas medium and pipeline material; S13: Setting the boundary conditions and initial conditions of the simulation, and setting the gas volume pressure to remain unchanged after the gas meter valve is closed; S14: Perform pressure change simulation on the pressure simulation model to obtain pressure change data inside the pipeline that changes with time.

3. A method for calculating pipeline leakage flow based on pressure change according to claim 1 or 2, characterized in that: The step S2 of obtaining the total gas volume value corresponding to the gas meter and the pipeline specifically includes: Obtain the gas meter length, gas meter width, and gas meter height of the gas meter, and obtain the pipe length and pipe diameter of the pipeline; calculate the gas meter volume according to the gas meter length, gas meter width, and gas meter height, and calculate the pipe volume according to the pipe length and pipe diameter; add the gas meter volume and the pipe volume to obtain the total gas volume value.

4. The method for calculating pipeline leakage flow based on pressure change according to claim 1 or 2, characterized in that: The step S2 of obtaining the leakage port area specifically includes: obtaining the diameter of the leakage port, and calculating the leakage port area according to the diameter of the leakage port and π.

5. The method for calculating pipeline leakage flow based on pressure change according to claim 1 or 2, characterized in that: Step S3 specifically includes: S31: Establishing a leakage calculation model based on the Bernoulli equation and the continuity equation ,in represents the leakage flow rate, represents the leakage flow coefficient, Indicates the leakage area, Indicates pressure changes, represents the gas volume, Indicates gas density; S32: Obtain the leakage port flow coefficient value and gas density value, and input the leakage port area value, pressure change data, gas volume value, leakage port flow coefficient value, and gas density value into the leakage calculation model respectively. The leakage flow value is obtained by calculation.

6. A method for calculating pipeline leakage flow based on pressure change, characterized in that: include The pressure simulation module is used to establish a pressure simulation model, simulate the pipeline according to the pressure simulation model, and obtain the pressure change data inside the pipeline over time; A parameter calculation module is used to obtain the leakage port area value and the total gas volume value corresponding to the gas meter and the pipeline respectively; The flow calculation module is used to establish a leakage calculation model, and the total gas volume value, leakage port area value, and pressure change data are input into the leakage calculation model to calculate the leakage flow value.

7. The device for calculating pipeline leakage flow based on pressure change according to claim 6, characterized in that: The pressure simulation module includes A first model building unit is used to build a pressure simulation model of the gas meter and its connected pipeline based on finite element software; A first setting unit is used to set material properties of the pressure simulation model, wherein the material properties include density and elastic modulus of gas medium and pipeline material; The second setting unit is used to set the boundary conditions and initial conditions of the simulation, and to set the gas volume pressure to remain unchanged after the gas meter valve is closed; The simulation unit is used to simulate the pressure change of the pressure simulation model and obtain the pressure change data inside the pipeline over time.

8. The device for calculating pipeline leakage flow based on pressure change according to claim 7, characterized in that: The flow calculation module includes The second model building unit is used to build a leakage calculation model based on the Bernoulli equation and the continuity equation ,in represents the leakage flow rate, represents the leakage flow coefficient, Indicates the leakage area, Indicates pressure changes, represents the gas volume, Indicates gas density; The calculation unit is used to obtain the leakage flow coefficient value and gas density value, and input the leakage area value, pressure change data, gas volume value, leakage flow coefficient value and gas density value into the leakage calculation model respectively. The leakage flow value is obtained by calculation.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Cited By

  • Method and system for detecting sealing performance of protective air-tight door

    CN119845512A

  • Method and system for predicting dynamic leakage of old oil and gas pipeline

    CN120508894A

  • A dynamic leakage prediction method and system for old oil and gas pipelines

    CN120508894B