In-pipe fluid flow measurement method and apparatus, electronic device and storage medium
By introducing excitation into acceleration sensors at both ends of the pipe wall and measuring the cross-correlation coefficient and time delay value of the pipeline acoustic vibration signal, the problem of expensive and complex existing flow detection equipment is solved, and low-cost and convenient in-pipe fluid flow measurement and pipeline network monitoring are achieved.
Patent Information
- Application Number
- PCT/CN2025/083254
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-03-19
- Filing Date
- 2025-03-18
- Publication Date
- 2025-09-25
AI Technical Summary
Existing in-pipe fluid flow detection equipment is expensive and complicated to operate, and cannot meet the portability and economy requirements in special outdoor scenarios.
Acceleration sensors are used to introduce excitation at both ends of the pipe wall. By measuring the mutual correlation coefficient and time delay value of the pipeline acoustic vibration signal, the flow velocity and mass flow rate of the medium in the pipe are calculated to achieve non-embedded measurement.
It reduces measurement costs, improves operational convenience, can measure flow at any pipe section, and monitor water and heating pipe networks in combination with pressure and temperature signals, reducing equipment start-up and shutdown frequency and troubleshooting difficulty.
Smart Images

Figure CN2025083254_25092025_PF_FP_ABST
Abstract
Description
Method and device for measuring fluid flow in pipe, electronic equipment, and storage medium Technical Field
[0001] The present disclosure relates to the technical field of pipeline operation and measurement, and in particular to a method and device for measuring the flow rate of fluid in a pipe, an electronic device, and a storage medium. Background Art
[0002] In existing technologies, measuring fluid flow in pipes is widely used in various sectors of the national economy, including energy, chemicals, petroleum, and environmental protection, as well as in people's daily lives. It plays a vital role in industrial and agricultural production, energy conservation, improving product quality, enhancing economic efficiency, and improving management levels. Flowmeters are classified into various types and specifications based on their measurement principles and applications. Currently, flowmeters used for measuring fluid flow in pipes primarily include electromagnetic flowmeters, ultrasonic flowmeters, turbine flowmeters, and orifice plate flowmeters.
[0003] However, existing in-pipe fluid flow detection equipment is expensive, complicated to operate, and needs to be installed in a fixed position on the pipeline. Signal acquisition requires excitation or power supply, which cannot meet the portability and economic needs of flow measurement in special outdoor scenarios. Summary of the Invention
[0004] The present disclosure aims to solve at least one of the problems existing in the prior art and provides a method and device for measuring the flow rate of fluid in a pipe, an electronic device, and a storage medium.
[0005] In one aspect of the present disclosure, a method for measuring flow rate of a fluid in a pipe is provided, the method comprising:
[0006] Obtain parameter information of the tested pipeline and the fluid inside the pipeline;
[0007] Introducing an excitation at a preset excitation position to generate a pipeline acoustic wave vibration signal through the excitation; wherein the preset excitation position is a pipeline position between a first acceleration sensor and a second acceleration sensor pre-installed at both ends of the pipe wall of the measured pipe;
[0008] respectively collecting the pipeline acoustic wave vibration signals received by the first acceleration sensor and the second acceleration sensor;
[0009] Conditioning the pipeline acoustic wave vibration signal to obtain a corresponding standard acoustic wave vibration signal;
[0010] determining a mutual correlation coefficient corresponding to the first acceleration sensor and the second acceleration sensor according to the standard acoustic wave vibration signal;
[0011] When the mutual correlation coefficient meets a preset requirement, determining a signal delay value between the first acceleration sensor and the second acceleration sensor according to the time when the pipeline acoustic vibration signal reaches the first acceleration sensor and the second acceleration sensor;
[0012] The flow velocity and mass flow rate of the medium in the measured pipeline are determined according to the signal delay value and the parameter information.
[0013] Optionally, determining the flow velocity and mass flow rate of the medium in the measured pipeline according to the signal delay value and the parameter information includes:
[0014] According to formula 1-1, the flow rate of the medium in the pipe is calculated:
[0015] Formula 1-1;
[0016] Wherein, u represents the flow velocity of the medium in the pipe, X represents the pipe distance between the preset excitation position and the first acceleration sensor, L represents the pipe distance between the first acceleration sensor and the second acceleration sensor, Dt represents the signal delay value, v represents the propagation velocity of the pipeline vibration sound wave in the measured pipeline, and v f represents the sound velocity of the fluid in the measured pipeline and , B represents the bulk modulus of the fluid in the measured pipe, E represents the Young's modulus of the pipe wall of the measured pipe, d represents the inner diameter of the pipe wall of the measured pipe, and δ represents the wall thickness of the measured pipe.
[0017] Optionally, the determining the flow velocity and mass flow rate of the medium in the measured pipeline according to the signal delay value and the parameter information further includes:
[0018] According to formula 1-2, calculate the mass flow rate of the medium:
[0019] Formula 1-2;
[0020] Wherein, Q represents the mass flow rate of the medium, ρ represents the density of the medium in the measured pipeline at the current temperature, and A represents the flow cross-sectional area of the measured pipeline.
[0021] Optionally, determining the mutual correlation coefficient corresponding to the first acceleration sensor and the second acceleration sensor according to the standard acoustic vibration signal includes:
[0022] According to formula 1-3, the mutual correlation coefficient is determined:
[0023] Formula 1-3;
[0024] in, represents the cross-correlation coefficient between the nth standard acoustic vibration signal x(n) corresponding to the first acceleration sensor and the nth standard acoustic vibration signal y(n) corresponding to the second acceleration sensor, m represents the time delay of the pipeline acoustic vibration signal generated by the excitation reaching the first acceleration sensor and the second acceleration sensor, y(n+m) represents the standard acoustic vibration signal corresponding to the second acceleration sensor that has a time difference of m with y(n), and y(n+m) comes after y(n), and N represents the total number of sampled signals, where m, n, and N are all positive integers.
[0025] Optionally, the mutual correlation coefficient meets preset requirements, including:
[0026] The cross-correlation coefficient indicates that the pipeline acoustic wave vibration signal received by the first acceleration sensor and the pipeline acoustic wave vibration signal received by the second acceleration sensor are derived from the same excitation.
[0027] Optionally, conditioning the pipeline acoustic vibration signal includes:
[0028] The pipeline acoustic vibration signal is processed according to a preset conditioning method; the preset conditioning method includes one or more of amplification processing, filtering processing, level conversion processing and spectrum analysis processing.
[0029] Optionally, the measurement method further includes:
[0030] Whether a pipeline leakage occurs in the measured pipeline is determined according to the mass flow rate of the medium in the measured pipeline within a specified time period.
[0031] Another aspect of the present disclosure provides a device for measuring flow rate of a fluid in a pipe, the device comprising:
[0032] An acquisition module is used to obtain parameter information of the tested pipeline and the fluid in the pipeline;
[0033] An excitation module, configured to introduce excitation at a preset excitation position to generate a pipeline acoustic vibration signal through the excitation; wherein the preset excitation position is a pipeline position between a first acceleration sensor and a second acceleration sensor pre-installed at both ends of the pipeline wall of the measured pipeline;
[0034] an acquisition module, configured to respectively acquire the pipeline acoustic wave vibration signals received by the first acceleration sensor and the second acceleration sensor;
[0035] A conditioning module, used for conditioning the pipeline acoustic wave vibration signal to obtain a corresponding standard acoustic wave vibration signal;
[0036] a first determining module, configured to determine a mutual correlation coefficient corresponding to the first acceleration sensor and the second acceleration sensor according to the standard acoustic vibration signal;
[0037] a second determining module, configured to determine, when the mutual correlation coefficient meets a preset requirement, a signal delay value between the first acceleration sensor and the second acceleration sensor based on the time when the pipeline acoustic vibration signal reaches the first acceleration sensor and the second acceleration sensor;
[0038] The third determination module is used to determine the flow velocity and mass flow rate of the medium in the measured pipeline according to the signal delay value and the parameter information.
[0039] Optionally, the third determination module is configured to determine the flow velocity and mass flow rate of the medium in the measured pipeline according to the signal delay value and the parameter information, including:
[0040] The third determination module is used to calculate the flow rate of the medium in the pipe according to formula 1-1:
[0041] Formula 1-1;
[0042] Wherein, u represents the flow velocity of the medium in the pipe, X represents the pipe distance between the preset excitation position and the first acceleration sensor, L represents the pipe distance between the first acceleration sensor and the second acceleration sensor, Dt represents the signal delay value, v represents the propagation velocity of the pipeline vibration sound wave in the measured pipeline, and v f represents the sound velocity of the fluid in the measured pipeline and , B represents the bulk modulus of the fluid in the measured pipe, E represents the Young's modulus of the pipe wall of the measured pipe, d represents the inner diameter of the pipe wall of the measured pipe, and δ represents the wall thickness of the measured pipe.
[0043] Optionally, the third determination module is configured to determine the flow velocity and mass flow rate of the medium in the measured pipeline according to the signal delay value and the parameter information, and further includes:
[0044] The third determination module is further configured to calculate the medium mass flow rate according to formula 1-2:
[0045] Formula 1-2;
[0046] Wherein, Q represents the mass flow rate of the medium, ρ represents the density of the medium in the measured pipeline at the current temperature, and A represents the flow cross-sectional area of the measured pipeline.
[0047] Optionally, the first determining module is configured to determine the mutual correlation coefficient corresponding to the first acceleration sensor and the second acceleration sensor according to the standard acoustic vibration signal, including:
[0048] The first determining module is configured to:
[0049] According to formula 1-3, the mutual correlation coefficient is determined:
[0050] Formula 1-3;
[0051] in, represents the cross-correlation coefficient between the nth standard acoustic vibration signal x(n) corresponding to the first acceleration sensor and the nth standard acoustic vibration signal y(n) corresponding to the second acceleration sensor, m represents the time delay of the pipeline acoustic vibration signal generated by the excitation reaching the first acceleration sensor and the second acceleration sensor, y(n+m) represents the standard acoustic vibration signal corresponding to the second acceleration sensor that has a time difference of m with y(n), and y(n+m) comes after y(n), and N represents the total number of sampled signals, where m, n, and N are all positive integers.
[0052] Optionally, the mutual correlation coefficient meets preset requirements, including:
[0053] The cross-correlation coefficient indicates that the pipeline acoustic wave vibration signal received by the first acceleration sensor and the pipeline acoustic wave vibration signal received by the second acceleration sensor are derived from the same excitation.
[0054] Optionally, the conditioning module is used to condition the pipeline acoustic vibration signal, including:
[0055] The conditioning module is used to:
[0056] The pipeline acoustic vibration signal is processed according to a preset conditioning method; the preset conditioning method includes one or more of amplification processing, filtering processing, level conversion processing and spectrum analysis processing.
[0057] Optionally, the measuring device further includes:
[0058] The judging module is configured to judge whether a pipeline leakage occurs in the pipeline under test according to the mass flow rate of the medium in the pipeline under test within a specified time period.
[0059] Another aspect of the present disclosure provides an electronic device, including:
[0060] at least one processor; and,
[0061] a memory communicatively connected to at least one processor; wherein,
[0062] The memory stores instructions that can be executed by at least one processor. The instructions are executed by the at least one processor so that the at least one processor can perform the in-pipe fluid flow measurement method described above.
[0063] Another aspect of the present disclosure provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method for measuring the flow rate of fluid in a pipe as described above.
[0064] Compared with the existing technology, the present invention is not restricted by the installation conditions of traditional measuring equipment. It uses an acceleration sensor to realize non-embedded measurement of the fluid flow in the pipe at any pipe section position. It has low cost and easy operation. It can also combine other signals such as pressure and temperature to perform systematic monitoring of the entire water supply network, heating network, etc., monitor obvious abnormal changes in pipeline operation, reduce the start-stop frequency of measuring equipment and the difficulty of pipeline operation fault troubleshooting. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] One or more embodiments are exemplarily illustrated by pictures in the corresponding drawings, and these exemplifications do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0066] FIG1 is a flow chart of a method for measuring flow rate of a fluid in a pipe provided by one embodiment of the present disclosure;
[0067] FIG2 is a schematic diagram of the positional relationship between an acceleration sensor and a measured pipeline provided by another embodiment of the present disclosure;
[0068] FIG3 is a flow chart of a method for measuring fluid flow in a pipe provided by another embodiment of the present disclosure;
[0069] FIG4 is a schematic structural diagram of a device for measuring flow rate of fluid in a pipe provided by another embodiment of the present disclosure;
[0070] FIG5 is a schematic structural diagram of an electronic device provided in another embodiment of the present disclosure. Modes for Carrying Out the Invention
[0071] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. However, it will be understood by those skilled in the art that in each embodiment of the present disclosure, many technical details are provided to enable readers to better understand the present disclosure. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the present disclosure can be implemented. The division of the following embodiments is for the convenience of description and should not constitute any limitation on the specific implementation of the present disclosure. The various embodiments can be combined and referenced with each other under the premise that there is no contradiction.
[0072] One embodiment of the present disclosure relates to a method for measuring fluid flow in a pipe, the process of which is shown in FIG1 , including:
[0073] Step S110: Obtain parameter information of the tested pipeline and the fluid in the pipeline.
[0074] Specifically, the parameter information here may include but is not limited to the inner diameter d of the pipe wall of the measured pipe, the pipe wall thickness δ, the pipe material, the pipe wall Young's modulus E, the flow cross-sectional area A, as well as the bulk modulus B of the fluid in the pipe, the current temperature, the density ρ of the medium in the pipe at the current temperature, etc.
[0075] Step S120: introducing excitation at a preset excitation position to generate a pipeline acoustic vibration signal through the excitation. The preset excitation position is a pipeline position between a first acceleration sensor and a second acceleration sensor pre-installed at both ends of the pipeline wall of the measured pipeline.
[0076] Specifically, as shown in Figure 2, depending on the installation conditions of the measured pipeline, the first and second acceleration sensors can be pre-installed at opposite ends of the pipeline wall corresponding to the detection points on the measured pipeline. The pipeline distance between the first and second acceleration sensors is denoted as L. An excitation point is determined between the first and second acceleration sensors, and the preset excitation position is the pipeline position corresponding to the excitation point. The pipeline distance between the preset excitation position and the first acceleration sensor is denoted as X.
[0077] The excitation introduced at the preset excitation location in step S120 may be known or may be experimentally measurable. For example, step S120 may involve manually applying pressure pulsations that cause pipe wall vibration to the pipe under test at the preset excitation location, thereby generating a pipe acoustic vibration signal through the excitation.
[0078] In particular, in order to make the signal acquisition results of the first acceleration sensor and the second acceleration sensor more accurate, the first acceleration sensor and the second acceleration sensor need to be tightly fixed to the pipe wall of the measured pipe in advance, so that the first acceleration sensor and the second acceleration sensor are tightly fitted to the pipe wall to avoid the two acceleration sensors colliding with the pipe wall during the signal acquisition process.
[0079] Step S130 : collecting pipeline acoustic vibration signals received by the first acceleration sensor and the second acceleration sensor respectively.
[0080] Specifically, the excitation introduced at a preset excitation location on the measured pipe causes the pipe wall to vibrate, generating a corresponding pipe acoustic vibration signal. This pipe acoustic vibration signal propagates along the pipe wall toward both sides of the preset excitation location. Therefore, when the first accelerometer and the second accelerometer are pre-installed on the pipe walls on both sides of the preset excitation location, based on the principle of the piezoelectric effect, the piezoelectric elements in the first and second accelerometers can collect the pipe wall acoustic vibration signal generated by the pipe wall vibration and convert it into a charge signal proportional to its vibration acceleration. In this case, step S130 can use a data acquisition device to respectively collect the charge signals output by the first and second accelerometers, thereby achieving the collection of the pipe acoustic vibration signals received by the first and second accelerometers.
[0081] Step S140 , conditioning the pipeline acoustic wave vibration signal to obtain a corresponding standard acoustic wave vibration signal.
[0082] Specifically, step S140 can convert the pipeline acoustic vibration signals received by the first and second acceleration sensors into corresponding standard acoustic vibration signals for subsequent data processing and transmission. For example, step S140 can condition the charge signals output by the first and second acceleration sensors using a data acquisition device, thereby conditioning the pipeline acoustic vibration signals received by the first and second acceleration sensors. Of course, step S140 can also condition the pipeline acoustic vibration signals received by the first and second acceleration sensors using other methods, and this embodiment is not limited to this.
[0083] Exemplarily, in step S140, the pipeline acoustic wave vibration signal is conditioned, including: processing the pipeline acoustic wave vibration signal according to a preset conditioning method; the preset conditioning method includes one or more of amplification processing, filtering processing, level conversion processing, and spectrum analysis processing.
[0084] Specifically, amplification can be achieved through an amplifier. This can increase the level of the pipeline acoustic vibration signal to better match the operating range of the analog-to-digital converter (ADC), improving measurement accuracy and sensitivity. Filtering can be achieved through a filter, which removes noise and interference from the pipeline acoustic vibration signal, improving signal quality. Level conversion can convert the level of the pipeline acoustic vibration signal from one level to another, enabling communication and transmission of the pipeline acoustic vibration signal between devices with different operating voltages. Spectral analysis can transform the time-domain features of the pipeline acoustic vibration signal, which can reflect the pipeline's operating status, into frequency-domain features for analysis. For example, Fourier transform can be used to decompose the time-domain signal corresponding to the time-domain features into several single harmonic components to obtain the signal's frequency structure, as well as information about each harmonic and phase.
[0085] Step S150 : determining the correlation coefficient corresponding to the first acceleration sensor and the second acceleration sensor according to the standard acoustic vibration signal.
[0086] Specifically, in engineering testing, a finite-length test signal is often discretized for cross-correlation analysis. Here, the cross-correlation coefficient describes the dependency between the signal received by the first accelerometer and the signal received by the second accelerometer, reflecting the similarity between the two signals.
[0087] Exemplarily, step S150 includes: determining the mutual correlation coefficient according to formulas 1-3:
[0088] Formula 1-3;
[0089] in, It represents the correlation coefficient between the nth standard acoustic vibration signal x(n) corresponding to the first acceleration sensor and the nth standard acoustic vibration signal y(n) corresponding to the second acceleration sensor. m represents the time delay for the pipeline acoustic vibration signal generated by the excitation to reach the first acceleration sensor and the second acceleration sensor. y(n+m) represents the standard acoustic vibration signal corresponding to the second acceleration sensor, which has a time difference of m from y(n), and y(n+m) comes after y(n). In other words, y(n+m) represents the standard acoustic vibration signal after a time delay of m based on y(n). N represents the total number of sampled signals. In other words, the total number of standard acoustic vibration signals corresponding to the first acceleration sensor and the second acceleration sensor is N. m, n, and N are all positive integers.
[0090] Specifically, since the pipeline acoustic wave vibration signals received by the first acceleration sensor and the second acceleration sensor are respectively converted into corresponding standard acoustic wave vibration signals after conditioning, the similarity between the pipeline acoustic wave vibration signals received by the first acceleration sensor and the second acceleration sensor can be determined using the standard acoustic wave vibration signals corresponding to the first acceleration sensor and the second acceleration sensor, thereby obtaining the corresponding mutual correlation coefficient of the first acceleration sensor and the second acceleration sensor.
[0091] The nth standard acoustic vibration signal corresponding to the first acceleration sensor is recorded as x(n), and the nth standard acoustic vibration signal corresponding to the second acceleration sensor is recorded as y(n). In reality, the time when the pipeline acoustic vibration signal generated by the excitation reaches the first acceleration sensor and the second acceleration sensor will deviate, resulting in a certain time difference between x(n) and y(n). The time delay between the pipeline acoustic vibration signal generated by the excitation and the arrival of the first acceleration sensor and the second acceleration sensor is recorded as m, and then the time delay can be determined using formula 1-3. To express the mutual correlation coefficient between x(n) and y(n), the mutual correlation coefficient can reflect the similarity between x(n) and y(n) after a time shift, that is, a delay of m.
[0092] Step S160 : When the cross-correlation coefficient meets the preset requirement, the signal delay value between the first acceleration sensor and the second acceleration sensor is determined according to the time when the pipeline acoustic vibration signal reaches the first acceleration sensor and the second acceleration sensor.
[0093] Exemplarily, the mutual correlation coefficient meets a preset requirement, including: the mutual correlation coefficient indicates that the pipeline acoustic wave vibration signal received by the first acceleration sensor and the pipeline acoustic wave vibration signal received by the second acceleration sensor are from the same excitation.
[0094] Specifically, a pipeline leak can also cause the pipe wall to vibrate. This vibration propagates along the pipe wall toward both sides of the leak point. When it reaches the first or second accelerometer, the corresponding pipe acoustic vibration signal is also received by the first or second accelerometer. Therefore, to distinguish whether the pipe acoustic vibration signal received by the first and second accelerometers originates from the same excitation and to improve the accuracy of the signal delay value, the cross-correlation coefficient must meet certain preset requirements.
[0095] Mutual correlation coefficient The value range is [0,1]. The closer the value of is to 1, the higher the degree of dependence between x(n) and y(n), and the greater the possibility that x(n) and y(n) come from the same stimulus. If the value of is 1, it indicates that x(n) and y(n) come from the same excitation. In this case, by determining the arrival time of the pipeline acoustic vibration signals corresponding to x(n) and y(n), respectively, the signal delay value between the first acceleration sensor and the second acceleration sensor can be determined by the difference between the two arrival times.
[0096] When the cross-correlation coefficient indicates that the pipeline acoustic wave vibration signals received by the first acceleration sensor and the second acceleration sensor are from the same excitation, the signal delay value between the first acceleration sensor and the second acceleration sensor is determined according to the arrival time of the pipeline acoustic wave vibration signal. This can make the signal delay value more accurate and avoid the influence of other vibrations caused by pipeline leakage, etc. on the measurement results.
[0097] Step S170: Determine the flow velocity and mass flow of the medium in the measured pipeline according to the signal delay value and parameter information.
[0098] Exemplarily, step S170 includes: calculating the flow rate of the medium in the pipe according to formula 1-1:
[0099] Formula 1-1;
[0100] Where u represents the flow velocity of the medium in the pipe, X represents the pipe distance between the preset excitation position and the first acceleration sensor, L represents the pipe distance between the first acceleration sensor and the second acceleration sensor, Dt represents the signal delay value, v represents the propagation speed of the pipeline vibration sound wave in the measured pipeline, and v f Indicates the sound velocity of the fluid in the pipe under test and , B represents the bulk modulus of the fluid in the pipe under test, E represents the Young's modulus of the pipe wall under test, d represents the inner diameter of the pipe wall under test, and δ represents the wall thickness of the pipe under test. X and L can be obtained through actual measurement.
[0101] Exemplarily, step S170 further includes: calculating the medium mass flow rate according to formula 1-2:
[0102] Formula 1-2;
[0103] Where Q represents the mass flow rate of the medium. ρ represents the density of the medium in the measured pipe at the current temperature. A represents the flow cross-sectional area of the measured pipe, which can be calculated based on the inner diameter d of the measured pipe wall.
[0104] Compared with the existing technology, the method for measuring fluid in a pipe provided by the embodiment of the present disclosure is not restricted by the installation conditions of traditional measuring equipment. It uses an acceleration sensor to realize non-embedded measurement of the fluid flow in the pipe at any pipe section position. It is low-cost and easy to operate. It can also be combined with other signals such as pressure and temperature to perform systematic monitoring of the entire water supply network, heating network, etc., monitor obvious abnormal changes in pipeline operation, reduce the start-up and shutdown frequency of measuring equipment, and reduce the difficulty of troubleshooting pipeline operation.
[0105] In order to enable those skilled in the art to better understand the above embodiment, a specific example is provided below for description.
[0106] 2 and 3 , a method for measuring fluid in a pipe includes the following steps:
[0107] Initialization setup: Obtain information about the pipeline and medium under test, and obtain parameter information about the pipeline and the fluid within it. Parameter signals include the inner diameter d, wall thickness δ, material, bulk modulus B, and Young's modulus E of the pipeline. A first accelerometer and a second accelerometer are pre-installed on the pipeline at opposite ends of the test point. The pipeline location corresponding to the excitation point between the first and second accelerometers is used as the preset excitation location. The pipeline distance X between the preset excitation location and the first accelerometer is measured, as is the pipeline distance L between the first and second accelerometers.
[0108] Set excitation: As shown in Figure 2, introduce excitation at the preset excitation position, and the excitation generates a pipeline acoustic vibration signal.
[0109] Acceleration sensor is used for signal acquisition: the pipeline acoustic vibration signal generated by the excitation is at a speed v f The signal propagates along the pipe wall to both sides of the preset excitation position and is received by the first acceleration sensor and the second acceleration sensor.
[0110] Signal conditioning: Filter and perform spectrum analysis on the pipeline acoustic vibration signals received by the first acceleration sensor and the second acceleration sensor respectively to obtain the standard acoustic vibration signals corresponding to the first acceleration sensor and the second acceleration sensor respectively.
[0111] Calculate the cross-correlation coefficient: Use formula 1-3 to calculate the cross-correlation coefficient corresponding to the first acceleration sensor and the second acceleration sensor. Use the clock synchronization control module to determine the arrival time of the pipeline acoustic vibration signal from the same excitation received by the first acceleration sensor and the second acceleration sensor, respectively, and determine the signal delay value Dt between the first acceleration sensor and the second acceleration sensor.
[0112] Calculate the flow rate of the medium in the pipe: Use formula 1-1 to calculate the flow rate u of the medium in the pipe under test, and use formula 1-2 to calculate the mass flow rate Q of the medium in the pipe under test.
[0113] Exemplarily, the method for measuring fluid in a pipe further includes: determining whether a pipeline leakage occurs in the pipeline under test according to the mass flow rate of the medium in the pipeline under test within a specified time period.
[0114] Specifically, if the mass flow rate of the medium in the tested pipeline does not change within a specified time period, it indicates that there is no pipeline leakage in the tested pipeline. If the mass flow rate of the medium in the tested pipeline gradually decreases within a specified time period, it indicates that there is a pipeline leakage in the tested pipeline. After determining that a pipeline leakage has occurred in the tested pipeline, a warning reminder can also be issued to prompt relevant personnel to promptly eliminate the pipeline leakage risk.
[0115] By judging whether a leak occurs in the tested pipeline based on the mass flow rate of the medium in the tested pipeline within a specified time period, hidden dangers of pipeline leakage can be discovered in a timely manner, which is conducive to the analysis of pipeline leakage problems.
[0116] Another embodiment of the present disclosure relates to a device for measuring flow rate of a fluid in a pipe, as shown in FIG4 , comprising:
[0117] An acquisition module 410 is used to obtain parameter information of the tested pipeline and the fluid in the pipeline;
[0118] The excitation module 420 is configured to introduce an excitation at a preset excitation position to generate a pipeline acoustic vibration signal through the excitation; wherein the preset excitation position is a pipeline position between a first acceleration sensor and a second acceleration sensor pre-installed at both ends of the pipeline wall of the measured pipeline;
[0119] The acquisition module 430 is used to respectively acquire pipeline acoustic vibration signals received by the first acceleration sensor and the second acceleration sensor;
[0120] The conditioning module 440 is used to condition the pipeline acoustic vibration signal to obtain a corresponding standard acoustic vibration signal;
[0121] A first determining module 450 is configured to determine a correlation coefficient between the first acceleration sensor and the second acceleration sensor based on the standard acoustic vibration signal;
[0122] A second determining module 460 is configured to determine a signal delay value between the first acceleration sensor and the second acceleration sensor based on the time when the pipeline acoustic vibration signal reaches the first acceleration sensor and the second acceleration sensor when the cross-correlation coefficient meets a preset requirement;
[0123] The third determination module 470 is configured to determine the flow velocity and mass flow of the medium in the measured pipeline according to the signal delay value and the parameter information.
[0124] Exemplarily, the third determination module 470 is configured to determine the flow velocity and mass flow rate of the medium in the measured pipeline according to the signal delay value and the parameter information, including:
[0125] The third determination module 470 is used to calculate the flow rate of the medium in the pipe according to formula 1-1:
[0126] Formula 1-1;
[0127] Where u represents the flow velocity of the medium in the pipe, X represents the pipe distance between the preset excitation position and the first acceleration sensor, L represents the pipe distance between the first acceleration sensor and the second acceleration sensor, Dt represents the signal delay value, v represents the propagation speed of the pipeline vibration sound wave in the measured pipeline, and v f Indicates the sound velocity of the fluid in the pipe under test and , B represents the bulk modulus of the fluid in the measured pipe, E represents the Young's modulus of the pipe wall of the measured pipe, d represents the inner diameter of the pipe wall of the measured pipe, and δ represents the wall thickness of the measured pipe.
[0128] Exemplarily, the third determination module 470 is configured to determine the flow velocity and mass flow rate of the medium in the measured pipeline according to the signal delay value and the parameter information, and further includes:
[0129] The third determination module 470 is further configured to calculate the medium mass flow rate according to formula 1-2:
[0130] Formula 1-2;
[0131] Where Q represents the mass flow rate of the medium, ρ represents the density of the medium in the measured pipe at the current temperature, and A represents the flow cross-sectional area of the measured pipe.
[0132] Exemplarily, the first determination module 450 is configured to determine the correlation coefficient corresponding to the first acceleration sensor and the second acceleration sensor according to the standard acoustic vibration signal, including:
[0133] The first determination module 450 is used to determine the mutual correlation coefficient according to formulas 1-3:
[0134] Formula 1-3;
[0135] in, represents the cross-correlation coefficient between the nth standard acoustic vibration signal x(n) corresponding to the first acceleration sensor and the nth standard acoustic vibration signal y(n) corresponding to the second acceleration sensor, m represents the time delay between the excitation-generated pipeline acoustic vibration signal reaching the first acceleration sensor and the second acceleration sensor, y(n+m) represents the standard acoustic vibration signal corresponding to the second acceleration sensor that has a time difference of m from y(n), and y(n+m) comes after y(n), and N represents the total number of sampled signals, where m, n, and N are all positive integers.
[0136] Exemplarily, the mutual correlation coefficient meets a preset requirement, including: the mutual correlation coefficient indicates that the pipeline acoustic wave vibration signal received by the first acceleration sensor and the pipeline acoustic wave vibration signal received by the second acceleration sensor are from the same excitation.
[0137] Exemplarily, the conditioning module 440 is used to condition the pipeline acoustic vibration signal, including:
[0138] The conditioning module 440 is used to process the pipeline acoustic vibration signal according to a preset conditioning method; the preset conditioning method includes one or more of amplification processing, filtering processing, level conversion processing and spectrum analysis processing.
[0139] Exemplarily, the in-pipe fluid measurement device further includes a judgment module configured to judge whether a pipeline leakage occurs in the pipeline under test based on the mass flow rate of the medium in the pipeline under test within a specified time period.
[0140] The specific implementation method of the in-pipe fluid flow measurement device provided in the embodiment of the present disclosure can be found in the in-pipe fluid flow measurement method provided in the embodiment of the present disclosure, and will not be repeated here.
[0141] Compared with the prior art, the in-pipe fluid flow measurement device provided by the embodiment of the present disclosure is not restricted by the installation conditions of traditional measuring equipment. It uses an acceleration sensor to realize non-embedded measurement of the in-pipe fluid flow at any pipe section position. It is low-cost and easy to operate. It can also combine other signals such as pressure and temperature to perform system monitoring of the entire water supply network, heating network, etc., monitor obvious abnormalities in pipeline operation, reduce the start-up and shutdown frequency of the measuring equipment, and reduce the difficulty of troubleshooting pipeline operation.
[0142] Another embodiment of the present disclosure relates to an electronic device, as shown in FIG5 , comprising:
[0143] at least one processor 501; and,
[0144] A memory 502 in communication with at least one processor 501; wherein,
[0145] The memory 502 stores instructions that can be executed by the at least one processor 501 . The instructions are executed by the at least one processor 501 so that the at least one processor 501 can execute the method for measuring the flow rate of fluid in a pipe as described in the above embodiment.
[0146] The memory and processor are connected using a bus, which can include any number of interconnected buses and bridges. The bus connects various circuits of one or more processors and memories. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits. These are all well known in the art and are therefore not described further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be a single component or multiple components, such as multiple receivers and transmitters, providing a unit for communicating with various other devices over a transmission medium. Data processed by the processor is transmitted over a wireless medium via an antenna. Furthermore, the antenna receives data and transmits it to the processor.
[0147] The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory can be used to store data used by the processor when performing operations.
[0148] Another embodiment of the present disclosure relates to a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the method for measuring the flow rate of a fluid in a pipe described in the above embodiment is implemented.
[0149] That is, those skilled in the art will understand that all or part of the steps in the methods described in the above embodiments can be implemented by instructing related hardware through a program. The program is stored in a storage medium and includes a number of instructions for causing a device (such as a microcontroller or chip) or a processor to execute all or part of the steps in the methods described in the various embodiments of the present disclosure. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0150] Those skilled in the art will appreciate that the above-mentioned embodiments are specific embodiments for implementing the present disclosure, and that in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present disclosure.
Claims
1. A method for measuring the flow rate of fluid in a pipe, characterized in that: The measuring method comprises: Obtain parameter information of the tested pipeline and the fluid inside the pipeline; Introducing an excitation at a preset excitation position to generate a pipeline acoustic wave vibration signal through the excitation; wherein the preset excitation position is a pipeline position between a first acceleration sensor and a second acceleration sensor pre-installed at both ends of the pipe wall of the measured pipe; respectively collecting the pipeline acoustic wave vibration signals received by the first acceleration sensor and the second acceleration sensor; Conditioning the pipeline acoustic wave vibration signal to obtain a corresponding standard acoustic wave vibration signal; determining a mutual correlation coefficient corresponding to the first acceleration sensor and the second acceleration sensor according to the standard acoustic wave vibration signal; When the mutual correlation coefficient meets a preset requirement, determining a signal delay value between the first acceleration sensor and the second acceleration sensor according to the time when the pipeline acoustic vibration signal reaches the first acceleration sensor and the second acceleration sensor; The flow velocity and mass flow rate of the medium in the measured pipeline are determined according to the signal delay value and the parameter information.
2. The measuring method according to claim 1, wherein Determining the flow velocity and mass flow of the medium in the measured pipeline according to the signal delay value and the parameter information includes: According to formula 1-1, the flow rate of the medium in the pipe is calculated: Formula 1-1; Wherein, u represents the flow velocity of the medium in the pipe, X represents the pipe distance between the preset excitation position and the first acceleration sensor, L represents the pipe distance between the first acceleration sensor and the second acceleration sensor, Dt represents the signal delay value, v represents the propagation velocity of the pipeline vibration sound wave in the measured pipeline, and v f represents the sound velocity of the fluid in the measured pipeline and , B represents the bulk modulus of the fluid in the measured pipe, E represents the Young's modulus of the pipe wall of the measured pipe, d represents the inner diameter of the pipe wall of the measured pipe, and δ represents the wall thickness of the measured pipe.
3. The measuring method according to claim 2, characterized in that The determining of the flow velocity and mass flow of the medium in the measured pipeline according to the signal delay value and the parameter information further includes: According to formula 1-2, calculate the mass flow rate of the medium: Formula 1-2; Wherein, Q represents the mass flow rate of the medium, ρ represents the density of the medium in the measured pipeline at the current temperature, and A represents the flow cross-sectional area of the measured pipeline.
4. The measuring method according to any one of claims 1 to 3, characterized in that: The determining, based on the standard acoustic vibration signal, a correlation coefficient corresponding to the first acceleration sensor and the second acceleration sensor, includes: According to formula 1-3, the mutual correlation coefficient is determined: Formula 1-3; in, represents the cross-correlation coefficient between the nth standard acoustic vibration signal x(n) corresponding to the first acceleration sensor and the nth standard acoustic vibration signal y(n) corresponding to the second acceleration sensor, m represents the time delay of the pipeline acoustic vibration signal generated by the excitation reaching the first acceleration sensor and the second acceleration sensor, y(n+m) represents the standard acoustic vibration signal corresponding to the second acceleration sensor that has a time difference of m with y(n), and y(n+m) comes after y(n), and N represents the total number of sampled signals, where m, n, and N are all positive integers.
5. The measuring method according to claim 4, characterized in that The mutual correlation coefficient meets the preset requirements, including: The cross-correlation coefficient indicates that the pipeline acoustic wave vibration signal received by the first acceleration sensor and the pipeline acoustic wave vibration signal received by the second acceleration sensor are derived from the same excitation.
6. The measuring method according to any one of claims 1 to 3, characterized in that: The step of conditioning the pipeline acoustic vibration signal includes: The pipeline acoustic vibration signal is processed according to a preset conditioning method; the preset conditioning method includes one or more of amplification processing, filtering processing, level conversion processing and spectrum analysis processing.
7. The measuring method according to any one of claims 1 to 3, characterized in that: The measuring method further comprises: Whether a pipeline leakage occurs in the measured pipeline is determined according to the mass flow rate of the medium in the measured pipeline within a specified time period.
8. A device for measuring the flow rate of fluid in a pipe, characterized in that: The measuring device comprises: An acquisition module is used to obtain parameter information of the tested pipeline and the fluid in the pipeline; An excitation module, configured to introduce excitation at a preset excitation position to generate a pipeline acoustic vibration signal through the excitation; wherein the preset excitation position is a pipeline position between a first acceleration sensor and a second acceleration sensor pre-installed at both ends of the pipeline wall of the measured pipeline; an acquisition module, configured to respectively acquire the pipeline acoustic wave vibration signals received by the first acceleration sensor and the second acceleration sensor; A conditioning module, used for conditioning the pipeline acoustic wave vibration signal to obtain a corresponding standard acoustic wave vibration signal; a first determining module, configured to determine a mutual correlation coefficient corresponding to the first acceleration sensor and the second acceleration sensor according to the standard acoustic vibration signal; a second determining module, configured to determine, when the mutual correlation coefficient meets a preset requirement, a signal delay value between the first acceleration sensor and the second acceleration sensor based on the time when the pipeline acoustic vibration signal reaches the first acceleration sensor and the second acceleration sensor; The third determination module is used to determine the flow velocity and mass flow rate of the medium in the measured pipeline according to the signal delay value and the parameter information.
9. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor. The instructions are executed by the at least one processor to enable the at least one processor to perform the method for measuring the flow rate of fluid in a pipe according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for measuring the flow rate of fluid in a pipe according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Method and device for measuring flow of fluid in pipe, electronic equipment and storage medium
CN118168619A
Method for determining position of leakage of conduit
JP1996226865A
Method for measuring sound velocity in fluid piping
JP1999201812A
Method using correlation for measuring vibration of conduit system
JP1999201858A
Acoustic impact detection and monitoring system
US20090000381A1