Pipe-based high frequency flow measurement method, system, terminal and medium

CN122467619BActive Publication Date: 2026-10-09深圳市前海能源科技发展有限公司 +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202610936012.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-06-26
Publication Date
2026-10-09
Estimated Expiration
2046-06-26

AI Technical Summary

Technical Problem

[0005]本申请的主要目的在于提供基于管道的高频流量测量方法、系统、终端及介质,旨在解决现有技术中管道监测基于电磁感应、压差原理,无法做到毫秒级别的流量变化响应,导致无法利用高频流量信息来更精准地判断系统是否存在漏损的问题

Benefits of technology

[0016] Beneficial effects: This application provides a high-frequency flow measurement method, system, terminal and medium based on pipelines. This application uses the flow and pressure signals measured in the pipeline and the transient flow theory to realize high-frequency, millisecond-level measurement of pipeline flow, thereby more directly and sensitively reflecting whether there are events such as leakage, abnormal water use or external intrusion in the pipeline system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122467619B_ABST
    Figure CN122467619B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of pipeline measurement, and discloses a high-frequency flow measurement method and system based on a pipeline, a terminal and a medium, the method comprising the following steps: acquiring pressure data collected by two pressure sensors on the pipeline and flow data collected by a flow sensor in the pipeline; determining a current state of the pipeline according to the pressure data and the flow data; acquiring basic transient flow parameters of the pipeline; if the current state is in a transient flow state, calculating a friction factor of the pipeline according to the basic transient flow parameters, the pressure data and the flow data; performing transient flow calculation according to the friction factor, the basic transient flow parameters, the pressure data and the flow data, and outputting high-frequency flow data of a full pipe section in the pipeline. The application can realize high-frequency and millisecond-level measurement of pipeline flow, thereby more sensitively reflecting whether there is leakage and loss in the pipeline system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of pipeline measurement technology, and in particular to pipeline-based high-frequency flow measurement methods, systems, terminals, and media. Background Technology

[0002] In pipeline operation, pressure information can be collected at high frequencies, but flow data is more difficult to collect at high frequencies. From the perspective of existing flowmeter response, current pipeline flow monitoring technologies, based on electromagnetic induction and differential pressure, cannot achieve millisecond-level response to flow changes. Compared to pressure, flow information directly reflects the pipeline's operating status, and its magnitude changes (especially under high-frequency conditions) provide a more intuitive indication of whether there are leaks or anomalies in the system.

[0003] In existing technologies, although flow rate and pressure are measured simultaneously during the measurement process, the relationship between pressure changes and flow rate changes is not fully utilized (i.e., the high-frequency flow rate of the pipeline is not obtained through transient flow analysis). At present, there is no available high-frequency flow measurement scheme, which makes it impossible to use high-frequency flow information to more accurately determine whether there is leakage in the system.

[0004] Therefore, existing technologies still need to be improved and developed. Summary of the Invention

[0005] The main purpose of this application is to provide a high-frequency flow measurement method, system, terminal and medium based on pipelines, which aims to solve the problem that the existing pipeline monitoring technology is based on electromagnetic induction and differential pressure principle, which cannot achieve millisecond-level flow change response, thus making it impossible to use high-frequency flow information to more accurately determine whether there is leakage in the system.

[0006] The first aspect of this application provides a pipeline-based high-frequency flow measurement method, which includes the following steps: The pressure data collected by two pressure sensors on the pipeline and the flow data collected by a flow sensor in the pipeline are obtained, wherein the two pressure sensors have the same sampling frequency and are respectively set at both ends of the pipeline, and the flow sensor is located between the two pressure sensors. The current state of the pipeline is determined based on the pressure data and the flow data, wherein the current state is either a steady flow state or a transient flow state; Obtain the basic transient flow parameters of the pipeline. If the current state is in a transient flow state, calculate the friction coefficient of the pipeline based on the basic transient flow parameters, the pressure data, and the flow rate data. Transient flow calculations are performed based on the friction coefficient, the basic transient flow parameters, the pressure data, and the flow rate data to output high-frequency flow rate data for the entire pipe section.

[0007] Optionally, in one embodiment of this application, the step of determining the current state of the pipeline based on the pressure data and the flow data further includes: If the current state is in a stable flow state, then the flow rate data will be used as the basis data in the high-frequency flow rate data of the entire pipe section.

[0008] Optionally, in one embodiment of this application, the pressure data includes the upstream high-frequency pressure and downstream high-frequency pressure of each node in the pipeline, and the flow data includes the current flow of each node in the pipeline; The acquisition of pressure data collected by the two pressure sensors on the pipeline and flow data collected by the flow sensor in the pipeline specifically involves: It receives upstream high-frequency pressure and downstream high-frequency pressure synchronously and at the same frequency from two pressure sensors on the pipeline, and also receives the current flow rate collected by the flow sensor in the pipeline.

[0009] Optionally, in one embodiment of this application, the current state is a stable flow state or a transient flow state; Determining the current state of the pipeline based on the pressure data and the flow data specifically includes: Based on the upstream high-frequency pressure, the downstream high-frequency pressure, and the current flow rate, a series of consecutive interval difference values ​​are obtained by subtracting the values ​​at intervals. If, within a set time window, all the interval differences are less than a preset threshold, then the current state of the pipeline is determined to be a stable flow state. If, within a set time window, the difference between any of the interval points is greater than or equal to a preset threshold, then the current state of the pipeline is determined to be a transient flow state.

[0010] Optionally, in one embodiment of this application, the basic transient flow parameters include pipe diameter and pipe length, and the friction coefficient is a friction factor; The calculation of the pipe friction coefficient based on the basic transient flow parameters, the pressure data, and the flow rate data specifically includes: Based on the upstream high-frequency pressure, the downstream high-frequency pressure, and the current flow rate, determine the upstream high-frequency pressure measurement data, downstream high-frequency pressure measurement data, and flow rate measurement data at the steady-state moment. The friction coefficient of the pipeline is calculated based on the upstream high-frequency pressure measurement data, the downstream high-frequency pressure measurement data, the flow measurement data, the pipe diameter, and the pipe length. ; ; in, The hydraulic gradient line between the two pressure sensors; The moment at which steady state begins to be determined; For the upstream pressure sensor of the pipeline section Upstream high-frequency pressure measurement data at any given time; For the downstream pressure sensor of the pipeline section Downstream high-frequency pressure measurement data at any given time; It is a symbolic function; This refers to the steady-state flow rate data measured in the pipeline; The length of the pipeline; The diameter of the pipe; It is the acceleration due to gravity; It is the friction factor.

[0011] Optionally, in one embodiment of this application, the basic transient flow parameters further include wave velocity and wall thickness; The step of performing transient flow calculations based on the friction coefficient, the basic transient flow parameters, the pressure data, and the flow rate data, and outputting high-frequency flow rate data for the entire pipe section, specifically includes: The wave velocity is adjusted based on the wave velocity, the tube length, and the sampling time interval; Based on the pipe diameter, wall thickness, friction factor, adjusted wave velocity, current flow rate, and the upstream and downstream high-frequency pressures at the current time point, the coefficients of the characteristic line equation are obtained. Based on the coefficients of the characteristic line equation and the upstream and downstream high-frequency pressures at the current time point, the high-frequency flow data for the entire pipe section is obtained.

[0012] Optionally, in one embodiment of this application, the coefficients of the characteristic line equation include the first coefficient and the second coefficient of the positive characteristic line and the third and fourth coefficients of the negative characteristic line, and the high-frequency flow data includes upstream high-frequency flow and downstream high-frequency flow; The process of obtaining high-frequency flow data for the entire pipe section based on the coefficients of the characteristic line equation and the upstream and downstream high-frequency pressures at the current time point specifically includes: Calculate the upstream high-frequency flow rate based on the first coefficient, the second coefficient, and the upstream high-frequency pressure: ; The downstream high-frequency flow rate is calculated based on the third coefficient, the fourth coefficient, and the downstream high-frequency pressure: ; in, For the upstream section of the pipeline High-frequency upstream traffic at any given moment; The first coefficient of the positive characteristic line; The second coefficient of the positive characteristic line; For boundary pressure sensors in High-frequency pressure upstream at any given moment; For the downstream section of the pipeline Traffic flow calculation data at any given time; The third coefficient of the negative characteristic line; The fourth coefficient of the negative characteristic line; For boundary pressure sensors in Downstream high-frequency traffic at any given time.

[0013] A second aspect of this application also provides a pipeline-based high-frequency flow measurement system, wherein the pipeline-based high-frequency flow measurement system is used to implement the pipeline-based high-frequency flow measurement method described in any of the above solutions; the pipeline-based high-frequency flow measurement system includes: The data acquisition module is used to acquire pressure data collected by two pressure sensors on the pipeline and flow data collected by a flow sensor in the pipeline. The two pressure sensors have the same sampling frequency and are respectively set at both ends of the pipeline, and the flow sensor is located between the two pressure sensors. A status determination module is used to determine the current status of the pipeline based on the pressure data and the flow data; The parameter determination module is used to obtain the basic transient flow parameters of the pipeline. If the current state is in a transient flow state, the friction coefficient of the pipeline is calculated based on the basic transient flow parameters, the pressure data, and the flow rate data. The high-frequency flow calculation module is used to perform transient flow calculation based on the friction coefficient, the basic transient flow parameters, the pressure data, and the flow data, and output the high-frequency flow data of the entire pipe section in the pipeline.

[0014] A third aspect of this application also provides a terminal, wherein the terminal includes: a memory, a processor, and a pipe-based high-frequency flow measurement program stored in the memory and executable on the processor, wherein when the pipe-based high-frequency flow measurement program is executed by the processor, it implements the steps of the pipe-based high-frequency flow measurement method as described above.

[0015] A fourth aspect of this application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a pipe-based high-frequency flow measurement program, which, when executed by a processor, implements the steps of the pipe-based high-frequency flow measurement method as described above.

[0016] Beneficial effects: This application provides a high-frequency flow measurement method, system, terminal and medium based on pipelines. This application uses the flow and pressure signals measured in the pipeline and the transient flow theory to realize high-frequency, millisecond-level measurement of pipeline flow, thereby more directly and sensitively reflecting whether there are events such as leakage, abnormal water use or external intrusion in the pipeline system. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a flowchart of a preferred embodiment of the high-frequency flow measurement method based on pipelines according to this application; Figure 2 This is a schematic diagram illustrating the specific implementation steps of the entire execution process in a preferred embodiment of the pipeline-based high-frequency flow measurement method of this application. Figure 3 This is a schematic diagram of the monitoring point arrangement in a preferred embodiment of the high-frequency flow measurement method based on pipelines in this application; Figure 4 This is a schematic diagram of the numerical scheme based on the method of characteristics in a preferred embodiment of the high-frequency flow measurement method based on pipelines in this application. Figure 5 This is a structural diagram of a preferred embodiment of the high-frequency flow measurement system based on a pipeline according to this application; Figure 6 This is a structural diagram of a preferred embodiment of the terminal of this application.

[0019] Explanation of reference numerals in the attached figures: 100. Data acquisition module; 200. Status determination module; 300. Parameter determination module; 400. High-frequency flow calculation module.

[0020] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0021] To make the objectives, technical solutions, and effects of this application clearer and more explicit, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. The described embodiments are only possible technical implementations of this application and not all possible implementations. Based on the embodiments in this application, those skilled in the art can obtain other embodiments without creative effort, and these embodiments are also within the protection scope of this application.

[0022] The technical solutions of this application will be described in detail below with reference to specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0023] This application utilizes the measured flow and pressure signals in the pipeline and employs transient flow theory to achieve high-frequency monitoring of the flow in the pipeline (achieving the same frequency as pressure sampling). It can raise the frequency of flow measurement to the same level as pressure sampling, achieving millisecond-level response. High-frequency flow data can more directly and sensitively reflect whether there are events such as leakage, abnormal water use, or external intrusion in the pipeline system than traditional low-frequency flow data.

[0024] The preferred embodiment of this application describes a pipeline-based high-frequency flow measurement method, such as... Figure 1 As shown, the pipeline-based high-frequency flow measurement method includes the following steps: In step S10, pressure data collected by two pressure sensors on the pipeline and flow data collected by a flow sensor in the pipeline are acquired. The two pressure sensors have the same sampling frequency and are respectively located at both ends of the pipeline, while the flow sensor is located between the two pressure sensors.

[0025] It should be noted that the pressure data is after noise has been filtered out.

[0026] In one possible implementation, the pressure data includes upstream and downstream high-frequency pressures at each node within the pipeline, and the flow data includes the current flow rate at each node within the pipeline. Step S10 is specifically implemented as follows: receiving upstream and downstream high-frequency pressures synchronously and at the same frequency from two pressure sensors on the pipeline, and receiving the current flow rate collected by a flow sensor in the pipeline.

[0027] Specifically, see Figure 2 and Figure 3 Install a flow sensor in the pipeline to be monitored, and install a pressure sensor at each end of the flow meter. Figure 2In step K2, both pressure sensors need to use the same sampling frequency, while the flow sensor can use a different sampling frequency. The pressure signals and flow data collected by the sensors are then gathered.

[0028] Understandably, the flow sensor is installed on the pipeline to be monitored to obtain a baseline value of the flow rate within the pipeline. High-frequency sampling capability is not required; its main function is to provide an accurate flow reading as a reference for the current actual flow rate when the system is in a steady or quasi-steady state. Simultaneously, it also provides steady-state flow data for the previous calculation of the steady-state friction coefficient (corresponding to subsequent step K4). Two pressure sensors are installed at opposite ends of the flow sensor (i.e., upstream and downstream), forming a section of the pipe being measured. Both sensors must use the exact same high-frequency sampling frequency. Only by inputting high-frequency pressure boundary data can high-frequency flow data be solved, thereby capturing pressure fluctuations within the pipeline in real time as boundary conditions for the transient flow characteristic line method.

[0029] In step S20, the current state of the pipeline is determined based on the pressure data and the flow rate data, wherein the current state is either a steady flow state or a transient flow state.

[0030] It should be noted that this scheme is applicable to any flow state, including steady-state and transient flow states. This state is only used to determine the starting point for calculating the flow rate of the system. It does not mean that the system cannot perform high-frequency calculations when it is in a steady state, but it is unnecessary. The steady-state flow rate is basically unchanged, so high-frequency calculations are not required.

[0031] In one possible implementation, the current state is either a stable flow state or a transient flow state. Step S20 specifically includes: calculating the difference between the upstream high-frequency pressure, the downstream high-frequency pressure, and the current flow rate at intervals to obtain multiple consecutive interval difference values; within a set time window, if all the interval difference values ​​are less than a preset threshold, then the current state of the pipeline is determined to be a stable flow state; within the set time window, if any of the interval difference values ​​is greater than or equal to the preset threshold, then the current state of the pipeline is determined to be a transient flow state.

[0032] Specifically, by subtracting the collected pressure and flow data at intervals, if the fluctuations of these data are all less than a certain threshold within a certain sampling interval (usually within 1 second), the system is considered to be in a steady state or quasi-steady state. Figure 2 Step K3.

[0033] Furthermore, for the continuously collected high-frequency pressure and low-frequency flow data, the difference between consecutive sampling points is calculated at intervals. This involves subtracting the value of the previous sampling point from the value of the subsequent sampling point, resulting in a series of differences. These differences directly reflect the rate and amplitude of signal change over a short period, serving as a quantitative basis for judging fluctuations. A fixed judgment time window is set, such as 1 second. Within this time window, it is checked whether all calculated interval differences (i.e., fluctuation amplitudes) are less than a pre-set threshold, thus determining whether the system is absolutely stable or subject to minor disturbances. If the fluctuations of all data points are less than the threshold within the time window, this indicates that the system's hydraulic state is stable, without rapid transient events, and is judged as a stable flow state (including steady state or quasi-steady state). High-frequency flow calculations for the pipeline can be performed as required or not. If the pressure or flow rate fluctuation exceeds the set threshold within the time window, it indicates that the system is undergoing a rapid transient process (such as valve action, leakage, pump start-up and shutdown, etc.). In this case, the transient flow inversion calculation process needs to be initiated. The system no longer trusts the steady-state relationship (i.e., the data measured by the flow meter) and instead prepares to call the high-frequency flow solver based on the physical model.

[0034] In one possible implementation, step S20 is followed by: if the current state is in a stable flow state, then the flow data is used as the base data (i.e., the initial flow state) in the high-frequency flow data of the entire pipe segment.

[0035] Specifically, if the system is in a steady state or quasi-steady state, the corresponding Figure 2 In step K3, the flow meter reading is the current flow rate, and no additional processing is required (note that the high-frequency flow equation also applies to its flow calculation, but under steady state, there is no need to perform high-frequency flow calculation).

[0036] It should be noted that within the time window, the fluctuations of all data points are less than the threshold. This indicates that the system's hydraulic state is stable, with no rapid transient events occurring, classifying it as a stable flow state (including steady-state or quasi-steady-state). The flow sensor reading at this point is then directly output as the current high-frequency flow rate. It can be understood that the flow rate remains essentially constant in a steady state; therefore, the current reading of the low-frequency flow meter can represent the instantaneous flow rate at any high-frequency moment without any calculations. The process is closed at this point, skipping complex calculation steps.

[0037] In step S30, the basic transient flow parameters of the pipeline are obtained. If the current state is in a transient flow state, the friction coefficient of the pipeline is calculated based on the basic transient flow parameters, the pressure data, and the flow rate data.

[0038] Specifically, the basic transient flow parameters of the pipeline whose transient flow characteristics need to be monitored are first measured. These measurements include wave velocity, pipe diameter, wall thickness, and length. (See [link to relevant documentation]). Figure 2 Step K1.

[0039] In one possible implementation, the basic transient flow parameters include pipe diameter and pipe length, and the friction coefficient is a friction factor. Step S30 specifically includes: determining the upstream high-frequency pressure measurement data, downstream high-frequency pressure measurement data, and flow measurement data at the steady-state moment based on the upstream high-frequency pressure, the downstream high-frequency pressure, and the current flow rate; and calculating the friction coefficient of the pipe based on the upstream high-frequency pressure measurement data, the downstream high-frequency pressure measurement data, the flow measurement data, the pipe diameter, and the pipe length. ; ; in, The hydraulic gradient line between the two pressure sensors; The moment at which steady state begins to be determined; For the upstream pressure sensor of the pipeline section Upstream high-frequency pressure measurement data at any given time; For the downstream pressure sensor of the pipeline section Downstream high-frequency pressure measurement data at any given time; It is a symbolic function; This refers to the steady-state flow rate data measured in the pipeline; The length of the pipeline; The diameter of the pipe; It is the acceleration due to gravity; It is the friction factor.

[0040] Understandably, digital filtering of high-frequency pressure data eliminates sensor noise, high-frequency environmental interference, and minor turbulent fluctuations in steady-state data, extracting effective pressure values ​​that truly represent the steady-flow state. For example, moving average filtering: arithmetically averaging or weighted moving averages are applied to the truncated pressure data segments, suitable for stable noise; low-pass filtering: a low-pass digital filter is designed to remove high-frequency noise and retain the low-frequency signal representing the steady-state DC component. Filtering primarily targets high-frequency sampled pressure data. Flow data, due to its slow change, has minimal impact on the average value from instantaneous noise and can be used directly or simply averaged. This outputs the filtered upstream and downstream steady-state effective pressure values. For the filtered upstream and downstream pressure data, the average value within the steady-state period is taken as the final value substituted into the formula.

[0041] Specifically, when the system pressure fluctuation exceeds a threshold, the system is considered to be in a state where, based on this, its high-frequency flow data is obtained. First, the basic state of the pipeline flow meter is constructed, corresponding to... Figure 2 Step K4. Pipe friction coefficient Calculate according to the formula above. For the upstream pressure sensor of the pipeline section Pressure measurement data at any given time (upstream is the inflow point), and the rest are arbitrary. Time is represented as ; For downstream sensors in the pipeline section Pressure measurement data at time 1 (downstream is the outflow point), and other times are represented as follows: The friction factor of the pipeline is determined using the two equations mentioned above, and the hydraulic steady state in the flowmeter pipeline is constructed accordingly.

[0042] Furthermore, the system receives transient flow state determination signals and traces back historical data before the signal was issued to pinpoint a precise steady-state start time. At this determined steady-state moment, the readings from the upstream pressure sensor (upstream high-frequency pressure), the downstream pressure sensor (downstream high-frequency pressure), and the flow sensor (current flow rate) are simultaneously extracted. In calculating the friction coefficient, the hydraulic gradient line (determined by the upstream and downstream pressure difference and elevation difference; under steady-state flow, the hydraulic gradient line reflects the energy lost to overcome pipe friction resistance) and a sign function (used to determine the flow direction; the sign function is positive when the upstream pressure is higher than the downstream pressure, and negative otherwise). These formulas are then combined to solve for the final steady-state friction factor.

[0043] In step S40, transient flow calculation is performed based on the friction coefficient, the basic transient flow parameters, the pressure data, and the flow rate data, and high-frequency flow rate data for the entire pipe section is output.

[0044] In one possible implementation, the basic transient flow parameters further include wave velocity and wall thickness. Step S40 specifically includes: determining an adjusted wave velocity based on the wave velocity, the pipe length, and the sampling time interval; obtaining characteristic line equation coefficients based on the pipe diameter, the wall thickness, the friction factor, the adjusted wave velocity, the current flow rate, and the upstream and downstream high-frequency pressures at the current time point; and obtaining high-frequency flow data for the entire pipe section based on the characteristic line equation coefficients and the upstream and downstream high-frequency pressures at the current time point.

[0045] Specifically, the high-frequency flow rate and acquisition scheme for the pipeline are as follows, and these parts will determine the pipeline discrete distance and wave velocity adjustment scheme: ; ; in, The total number of discrete pipelines. For the position of manager; For discrete distances; The sampling time interval; The measured wave velocity; The adjusted wave speed (adjusting the wave speed, which may be related to...) If the pipes are of the same size, they can be divided into an integer number of... ).

[0046] Using the measured pressure data at both ends as boundary conditions, the high-frequency flow rate is calculated and solved using the method of characteristics (or the finite difference method, etc.). Figure 2 Step K5): Positive characteristic lines: ; Negative feature lines: ; in, For pipelines Place Flow rate at any given moment; For pipelines Place The pressure of constant time; , , , The coefficients of the positive and negative characteristic lines can be calculated from the flow and pressure data at previous times. These coefficients typically include steady-state friction, unsteady-state friction, and the viscoelasticity of the pipe wall.

[0047] In one possible implementation, the coefficients of the characteristic line equation include a first coefficient and a second coefficient for the positive characteristic line, and a third and a fourth coefficient for the negative characteristic line. The high-frequency flow data includes upstream high-frequency flow and downstream high-frequency flow. The specific implementation for determining the high-frequency flow data for the entire pipe section is as follows: calculate the upstream high-frequency flow based on the first coefficient, the second coefficient, and the upstream high-frequency pressure. ; The downstream high-frequency flow rate is calculated based on the third coefficient, the fourth coefficient, and the downstream high-frequency pressure: ; in, For the upstream section of the pipeline High-frequency upstream traffic at any given moment; The first coefficient of the positive characteristic line; The second coefficient of the positive characteristic line; For boundary pressure sensors in High-frequency pressure upstream at any given moment; For the downstream section of the pipeline Traffic flow calculation data at any given time; The third coefficient of the negative characteristic line; The fourth coefficient of the negative characteristic line; For boundary pressure sensors in Downstream high-frequency traffic at any given time.

[0048] Specifically, see Figure 2 and Figure 4 The negative characteristic line will be used on the upstream boundary (the upstream is the inflow point), and the boundary flow will be calculated as follows: ; A positive characteristic line will be used on the downstream boundary (the downstream point is the outflow point), and the boundary flow will be calculated as follows: .

[0049] By solving the above set of equations, the flow and pressure data at all discrete nodes and at any time within the pipeline can be obtained, and the high-frequency flow of the system can be acquired accordingly.

[0050] Next, referring to the accompanying drawings, a pipeline-based high-frequency flow measurement system according to an embodiment of this application is described, which is used to implement the pipeline-based high-frequency flow measurement method described in any of the above schemes.

[0051] Figure 5 This is a structural diagram of a pipeline-based high-frequency flow measurement system according to an embodiment of this application.

[0052] like Figure 5 As shown, the pipeline-based high-frequency flow measurement system includes: a data acquisition module 100, a status determination module 200, a parameter determination module 300, and a high-frequency flow calculation module 400.

[0053] Specifically, the data acquisition module 100 is used to acquire pressure data collected by two pressure sensors on the pipeline and flow data collected by a flow sensor in the pipeline, wherein the two pressure sensors have the same sampling frequency and are respectively set at both ends of the pipeline, and the flow sensor is located between the two pressure sensors. The status determination module 200 is used to determine the current status of the pipeline based on the pressure data and the flow data; The parameter determination module 300 is used to obtain the basic transient flow parameters of the pipeline. If the current state is in a transient flow state, the friction coefficient of the pipeline is calculated based on the basic transient flow parameters, the pressure data, and the flow rate data. The high-frequency flow calculation module 400 is used to perform transient flow calculation based on the friction coefficient, the basic transient flow parameters, the pressure data and the flow data, and output the high-frequency flow data of the entire pipe section in the pipeline.

[0054] Figure 6 A structural diagram of a terminal provided in an embodiment of this application. The terminal may include: The memory 501, the processor 502, and the computer program stored on the memory 501 and capable of running on the processor 502.

[0055] When the processor 502 executes the program, it implements the pipeline-based high-frequency flow measurement method provided in the above embodiments.

[0056] Furthermore, the terminal also includes: Communication interface 503 is used for communication between memory 501 and processor 502.

[0057] The memory 501 is used to store computer programs that can run on the processor 502.

[0058] Memory 501 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0059] If the memory 501, processor 502, and communication interface 503 are implemented independently, then the communication interface 503, memory 501, and processor 502 can be interconnected via a bus to complete communication between them. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EIS) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, Figure 6 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0060] Optionally, in a specific implementation, if the memory 501, processor 502, and communication interface 503 are integrated on a single chip, then the memory 501, processor 502, and communication interface 503 can communicate with each other through an internal interface.

[0061] Processor 502 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.

[0062] This embodiment also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described pipe-based high-frequency flow measurement method.

[0063] One embodiment of this application provides a computer program product, including a computer program that, when executed by a processor, implements the features described in this application. Figure 1 The high-frequency flow measurement method based on pipelines provided in any of the corresponding embodiments.

[0064] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0065] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0066] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or N executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.

[0067] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable storage medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable storage medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable storage medium could be paper or other suitable media on which the program can be printed, since the program can be obtained electronically by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.

[0068] It should be understood that the various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0069] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.

[0070] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0071] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.

[0072] It should be understood that the application of this application is not limited to the examples above. Those skilled in the art can make improvements or modifications based on the above description, and all such improvements and modifications should fall within the protection scope of the appended claims.

[0073] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A high-frequency flow measurement method based on a pipeline, characterized in that, The pipeline-based high-frequency flow measurement method includes: The pressure data collected by two pressure sensors on the pipeline and the flow data collected by a flow sensor in the pipeline are obtained, wherein the two pressure sensors have the same sampling frequency and are respectively set at both ends of the pipeline, and the flow sensor is located between the two pressure sensors. The current state of the pipeline is determined based on the pressure data and the flow data, wherein the current state is either a steady flow state or a transient flow state; Obtain the basic transient flow parameters of the pipeline. If the current state is in a transient flow state, calculate the friction coefficient of the pipeline based on the basic transient flow parameters, the pressure data, and the flow rate data. Transient flow calculation is performed based on the friction coefficient, the basic transient flow parameters, the pressure data, and the flow rate data, and high-frequency flow rate data for the entire pipe section is output. The pressure data includes the upstream high-frequency pressure and downstream high-frequency pressure of each node in the pipeline, and the flow data includes the current flow of each node in the pipeline. The acquisition of pressure data collected by the two pressure sensors on the pipeline and flow data collected by the flow sensor in the pipeline specifically involves: It receives upstream high-frequency pressure and downstream high-frequency pressure synchronously and at the same frequency from two pressure sensors on the pipeline, and also receives the current flow rate collected by the flow sensor in the pipeline; The current state is either a stable flow state or a transient flow state; Determining the current state of the pipeline based on the pressure data and the flow data specifically includes: Based on the upstream high-frequency pressure, the downstream high-frequency pressure, and the current flow rate, a series of consecutive interval difference values ​​are obtained by subtracting the values ​​at intervals. If, within a set time window, all the interval differences are less than a preset threshold, then the current state of the pipeline is determined to be a stable flow state. If, within a set time window, the difference between any of the interval points is greater than or equal to a preset threshold, then the current state of the pipeline is determined to be a transient flow state. The basic transient flow parameters include pipe diameter and pipe length, and the friction coefficient is the friction factor. The calculation of the pipe friction coefficient based on the basic transient flow parameters, the pressure data, and the flow rate data specifically includes: Based on the upstream high-frequency pressure, the downstream high-frequency pressure, and the current flow rate, determine the upstream high-frequency pressure measurement data, downstream high-frequency pressure measurement data, and flow rate measurement data at the steady-state moment. The friction coefficient of the pipeline is calculated based on the upstream high-frequency pressure measurement data, the downstream high-frequency pressure measurement data, the flow measurement data, the pipe diameter, and the pipe length. ; ; in, The hydraulic gradient line between the two pressure sensors; The moment at which steady state begins to be determined; For the upstream pressure sensor of the pipeline section Upstream high-frequency pressure measurement data at any given time; For the downstream pressure sensor of the pipeline section Downstream high-frequency pressure measurement data at any given time; It is a symbolic function; This refers to the steady-state flow rate data measured in the pipeline; The length of the pipeline; The diameter of the pipe; It is the acceleration due to gravity; Friction factor; The basic transient flow parameters also include wave velocity and wall thickness; The step of performing transient flow calculations based on the friction coefficient, the basic transient flow parameters, the pressure data, and the flow rate data, and outputting high-frequency flow rate data for the entire pipe section, specifically includes: The wave velocity is adjusted based on the wave velocity, the tube length, and the sampling time interval; Based on the pipe diameter, wall thickness, friction factor, adjusted wave velocity, current flow rate, and the upstream and downstream high-frequency pressures at the current time point, the coefficients of the characteristic line equation are obtained. Based on the coefficients of the characteristic line equation and the upstream and downstream high-frequency pressures at the current time point, the high-frequency flow data of the entire pipe section is obtained. The coefficients of the characteristic line equation include the first and second coefficients of the positive characteristic line and the third and fourth coefficients of the negative characteristic line; the high-frequency flow data includes upstream high-frequency flow and downstream high-frequency flow. The process of obtaining high-frequency flow data for the entire pipe section based on the coefficients of the characteristic line equation and the upstream and downstream high-frequency pressures at the current time point specifically includes: Calculate the upstream high-frequency flow rate based on the first coefficient, the second coefficient, and the upstream high-frequency pressure: ; The downstream high-frequency flow rate is calculated based on the third coefficient, the fourth coefficient, and the downstream high-frequency pressure: ; in, For the upstream section of the pipeline High-frequency upstream traffic at any given moment; The first coefficient of the positive characteristic line; The second coefficient of the positive characteristic line; For boundary pressure sensors in High-frequency pressure upstream at any given moment; For the downstream section of the pipeline Traffic flow calculation data at any given time; The third coefficient of the negative characteristic line; The fourth coefficient of the negative characteristic line; For boundary pressure sensors in Downstream high-frequency traffic at any given time.

2. The high-frequency flow measurement method based on a pipeline according to claim 1, characterized in that, The step of determining the current state of the pipeline based on the pressure data and the flow data further includes: If the current state is in a stable flow state, then the flow rate data will be used as the basis data in the high-frequency flow rate data of the entire pipe section.

3. A high-frequency flow measurement system based on a pipeline, characterized in that, The pipeline-based high-frequency flow measurement system is used to implement the pipeline-based high-frequency flow measurement method according to any one of claims 1-2, wherein the pipeline-based high-frequency flow measurement system comprises: The data acquisition module is used to acquire pressure data collected by two pressure sensors on the pipeline and flow data collected by a flow sensor in the pipeline. The two pressure sensors have the same sampling frequency and are respectively set at both ends of the pipeline, and the flow sensor is located between the two pressure sensors. A state determination module is used to determine the current state of the pipeline based on the pressure data and the flow data, wherein the current state is either a steady flow state or a transient flow state; The parameter determination module is used to obtain the basic transient flow parameters of the pipeline. If the current state is in a transient flow state, the friction coefficient of the pipeline is calculated based on the basic transient flow parameters, the pressure data, and the flow rate data. The high-frequency flow calculation module is used to perform transient flow calculation based on the friction coefficient, the basic transient flow parameters, the pressure data, and the flow data, and output the high-frequency flow data of the entire pipe section in the pipeline.

4. A terminal, characterized in that, The terminal includes: a memory, a processor, and a pipe-based high-frequency flow measurement program stored in the memory and executable on the processor, wherein when the pipe-based high-frequency flow measurement program is executed by the processor, it implements the steps of the pipe-based high-frequency flow measurement method as described in any one of claims 1-2.

5. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a pipeline-based high-frequency flow measurement program, which, when executed by a processor, implements the steps of the pipeline-based high-frequency flow measurement method as described in any one of claims 1-2.

Citation Information

Patent Citations

  • Non-metal pipeline leakage positioning method based on transient inversion problem

    CN110197049A

  • Transient flow identification method, device, equipment, medium and product

    CN121256451A