Pipeline flow measurement method and device, computer equipment and storage medium
By analyzing the historical and current time measurement data of multiple channels on both sides of the horizontal plane of the center of the pipeline, updating the data of abnormal channels, and calculating the flow rate according to the multi-channel time difference method, the problem of low flow metering accuracy in the prior art is solved, and higher accuracy and reliability are achieved.
Patent Information
- Application Number
- CN202510317021.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-18
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2045-03-18
AI Technical Summary
When measuring pipeline flow, existing ultrasonic flow metering devices are susceptible to factors such as uneven flow field, duct failure or external interference (such as bubbles), resulting in a decrease in metrology accuracy.
By obtaining the historical measurement data sets and current time measurement data of multiple channels on both sides of the horizontal plane of the center of the pipeline, the analysis results indicate that when there are abnormal channels and normal channels, the current time measurement data of the abnormal channels are updated. Then, based on the history of the abnormal channel and the flow velocity data of the normal channel and the current time, the flow state of the current time is determined, and the current time flow of the pipeline is calculated using the multi-channel time difference method.
It significantly improves the accuracy and reliability of pipeline flow measurement, and can be suitable for a variety of complex flow environments and fault conditions, ensuring the accuracy of flow measurement.
Smart Images

Figure CN119826911A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of ultrasonic flow metering devices, and in particular to a pipeline flow measurement method, device, computer equipment and storage medium. Background Art
[0002] At present, the multi-channel time difference method is based on the difference in the propagation speed of ultrasound in the downstream and upstream directions. By measuring the flight time difference in these two directions, the flow velocity can be calculated and then the flow rate can be inferred. However, the measurement results of a single channel may be affected by factors such as uneven flow field, channel failure or external interference (such as bubbles), resulting in reduced measurement accuracy. Although the multi-channel design can improve this problem to a certain extent, if some channels are abnormal, it may seriously affect the overall measurement results. Summary of the invention
[0003] In view of this, the present invention provides a pipeline flow measurement method, device, computer equipment, and storage medium to solve the problem of how to measure the flow of a pipeline.
[0004] In a first aspect, the present invention provides a method for measuring flow rate of a pipeline, the method comprising: Acquire historical measurement data sets and current measurement data of multiple sound channels located on both sides of the central horizontal plane of the pipeline, as well as analysis results of the historical measurement data sets of each of the above sound channels, wherein the historical measurement data sets of the above multiple sound channels include multiple measurement data of each of the above sound channels at different historical moments, and the above analysis results are determined based on the above measurement data, and the above analysis results include that there is at least one abnormal sound channel and / or at least one normal sound channel in the multiple sound channels; If the analysis result indicates that there is at least one abnormal channel and at least one normal channel, based on the historical measurement data set of the at least one abnormal channel, the current moment measurement data of the at least one abnormal channel is updated to obtain the updated current moment measurement data of the at least one abnormal channel; Determine a first historical flow rate set and a first current flow rate of the at least one abnormal channel according to the historical measurement data set of the at least one abnormal channel and the updated current measurement data, and determine a second historical flow rate set and a second current flow rate of the at least one normal channel according to the historical measurement data set of the at least one normal channel and the current measurement data; After processing each historical flow rate of the first historical flow rate set and the second historical flow rate set, compare it with the first flow rate threshold to determine the flow state at the current moment; Based on the multi-channel time difference method, the first current moment flow velocity, the second current moment flow velocity, and the current moment flow state, the current moment flow rate of the above-mentioned pipeline is determined.
[0005] In an optional implementation, the above-mentioned processing of each historical flow rate of the first historical flow rate set and the second historical flow rate set and comparing with the first flow rate threshold to determine the flow state at the current moment includes: Selecting a target number of historical flow rates at consecutive moments corresponding to each of the sound channels from the first historical flow rate set and the second historical flow rate set; Fusion the historical flow rates of the target number of consecutive moments corresponding to each of the channels to obtain fused historical flow rates of the target number of consecutive moments; If the sound channels located on the same side of the horizontal plane at the center of the pipeline are all abnormal sound channels, then comparing whether the fused historical flow velocity at each moment is less than the first flow velocity threshold; If both are yes, the laminar flow state is determined to be the flow state at the current moment mentioned above.
[0006] In an optional implementation, the above-mentioned processing of each historical flow rate of the first historical flow rate set and the second historical flow rate set and comparing with the first flow rate threshold to determine the flow state at the current moment includes: Selecting a target number of historical flow rates at consecutive moments corresponding to each of the sound channels from the first historical flow rate set and the second historical flow rate set; Fusion the historical flow rates of the target number of consecutive moments corresponding to each of the channels to obtain fused historical flow rates of the target number of consecutive moments; If the sound channels located on both sides of the above-mentioned pipeline center horizontal plane include the above-mentioned at least one normal sound channel, the maximum value and the minimum value of the flow velocity on one side of the above-mentioned pipeline center horizontal plane, and the maximum value and the minimum value of the flow velocity on the other side of the above-mentioned pipeline center horizontal plane are selected; Comparing whether the fused historical flow velocity at each moment is less than the first flow velocity threshold, and comparing whether the minimum value of the flow velocity on one side of the central horizontal plane of the pipeline is greater than the maximum value of the flow velocity on the other side of the central horizontal plane of the pipeline; If both are yes, the laminar flow state is determined to be the flow state at the current moment mentioned above.
[0007] In an optional implementation, the method of determining the flow rate of the pipeline at the current moment based on the multi-channel time difference method, the first flow rate at the current moment, the second flow rate at the current moment, and the flow state at the current moment includes: According to the correspondence between the flow pattern and the correction coefficient, a target correction coefficient corresponding to the flow pattern at the current moment is selected from a plurality of preset correction coefficients; Determine a weight coefficient of each of the above channels according to a preset rule and the number of abnormal channels; Determine a fused current moment flow velocity according to each of the first current moment flow velocities, each of the second current moment flow velocities, and each of the weight coefficients; Based on the multi-channel time difference method, the above-mentioned fused current flow rate, and each of the above-mentioned weight coefficients, the current flow rate of the above-mentioned pipeline is determined.
[0008] In an optional implementation, historical measurement data sets and current measurement data of multiple sound channels located on both sides of the pipeline center horizontal plane, as well as analysis results of the historical measurement data sets of each of the above sound channels, are obtained, including: Obtaining historical measurement data sets and current measurement data of the plurality of the above-mentioned sound channels; From the plurality of current moment measurement data, searching whether there is current moment measurement data that is less than or equal to a first measurement threshold, and whether there is current moment measurement data that is greater than the first measurement threshold; If yes, then all current measurement data less than or equal to the first measurement threshold are counted to obtain first target data, and all current measurement data greater than the first measurement threshold are counted to obtain second target data; If the first target data and the second target data are found, it is determined that the channel corresponding to the first current moment measurement data is the abnormal channel.
[0009] In an optional implementation, it also includes: If the first target data is not found, determining the difference between the mean of the historical measurement data of the plurality of channels and the current measurement data corresponding to the second target data according to the historical measurement data sets of the plurality of channels; If at least one target difference value greater than the second measurement threshold is found from the plurality of the difference values, at least one channel corresponding to the at least one target difference value is determined to be the abnormal channel.
[0010] In an optional implementation, it also includes: If not, comparing whether each of the above-mentioned fused historical flow rates is greater than a second flow rate threshold; If both are true, the turbulent state is determined to be the flow state at the current moment; Or, if not, the transition flow state is determined to be the flow state at the current moment.
[0011] In a second aspect, the present invention provides a flow measurement device for a pipeline, the device comprising: an acquisition module, used to acquire historical measurement data sets and current measurement data of multiple sound channels located on both sides of a horizontal plane at the center of the pipeline, and analysis results of the historical measurement data sets of each of the above sound channels, wherein the historical measurement data sets of the above multiple sound channels include multiple measurement data of each of the above sound channels at different historical moments, and the above analysis results are determined based on the above measurement data, and the above analysis results include the existence of at least one abnormal sound channel and / or at least one normal sound channel in the multiple sound channels; an updating module, configured to update the current moment measurement data of the at least one abnormal channel based on the historical measurement data set of the at least one abnormal channel if the analysis result indicates that there is at least one abnormal channel and at least one normal channel, so as to obtain the updated current moment measurement data of the at least one abnormal channel; A first determination module is configured to determine a first historical flow rate set and a first current flow rate of the at least one abnormal channel based on the historical measurement data set of the at least one abnormal channel and the updated current measurement data, and to determine a second historical flow rate set and a second current flow rate of the at least one normal channel based on the historical measurement data set and the current measurement data of the at least one normal channel; A second determination module is used to process each historical flow rate of the first historical flow rate set and the second historical flow rate set and compare them with the first flow rate threshold to determine the flow state at a current moment; The third determination module is used to determine the current flow rate of the above-mentioned pipeline based on the multi-channel time difference method, the above-mentioned first current flow rate, the above-mentioned second current flow rate, and the above-mentioned current flow state.
[0012] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the pipeline flow measurement method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0013] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the pipeline flow measurement method of the first aspect or any corresponding embodiment thereof.
[0014] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the pipeline flow measurement method of the first aspect or any corresponding embodiment thereof.
[0015] The present invention provides a method for measuring the flow rate of a pipeline. When the analysis result indicates that an abnormal channel and a normal channel exist at the same time, the current measurement data of the abnormal channel is updated based on the historical measurement data set of the abnormal channel. The first historical flow rate set and the first current flow rate of the abnormal channel are determined according to the historical measurement data set of the abnormal channel and the updated current measurement data. The second historical flow rate set and the second current flow rate of the normal channel are determined according to the historical measurement data set of the normal channel and the current measurement data, and then the current flow state is determined. The current flow rate of the pipeline is determined by using the multi-channel time difference method, the first current flow rate, the second current flow rate, and the current flow state. It is achieved that when measuring the flow rate of the pipeline, the influencing factors of the abnormal channel and the current flow state are considered, thereby significantly improving the accuracy and reliability of the flow measurement of the pipeline, and can be applied to various flow monitoring scenarios of pipelines, especially in complex environments, unstable data or fault conditions, the accuracy of flow measurement can still be ensured. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 is a front view of a schematic diagram of installing a transducer in a pipeline according to an embodiment of the present invention; Figure 2 is a left side view of a schematic diagram of installing a transducer in a pipeline according to an embodiment of the present invention; Figure 3 is a top view of a schematic diagram of installing a transducer in a pipeline according to an embodiment of the present invention; Figure 4 is a measurement principle diagram of an ultrasonic time difference method according to an embodiment of the present invention; Figure 5 is one of the flow charts of the method for measuring flow rate of a pipeline according to an embodiment of the present invention; Figure 6 This is a second flow chart of the method for measuring flow rate of a pipeline according to an embodiment of the present invention; Figure 7 is a third flow chart of a method for measuring flow rate of a pipeline according to an embodiment of the present invention; Figure 8 is a schematic diagram of a method and device for measuring flow rate of a pipeline according to an embodiment of the present invention; Fig. 9 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0018] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0019] According to an embodiment of the present invention, an embodiment of a method for measuring flow in a pipeline is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0020] Figure 1 4 is a front view of a schematic diagram of installation of a transducer in a pipeline according to an embodiment of the present invention. Figure 2 4 is a left side view of a schematic diagram of installation of a transducer in a pipeline according to an embodiment of the present invention. Figure 3 4 is a top view of a schematic diagram of installation of a transducer in a pipeline according to an embodiment of the present invention.
[0021] like Figures 1 to 3 As shown, multiple transducers for receiving or sending ultrasonic waves are arranged on both sides of the central horizontal plane of the pipeline, such as A1, A2, B1, B2, C1, C2 (not shown in the figure), D1, D2, wherein every two transducers form a channel, for example, A1 and A2 form a channel, B1 and B2 form a channel, C1 and C2 form a channel, D1 and D2 form a channel, and each channel is not perpendicular to the flow direction of the liquid or gas in the pipeline. The transducer is an ultrasonic flow metering device, and specifically, the ultrasonic flow metering device can be an ultrasonic water meter, an ultrasonic gas meter, etc.
[0022] In this embodiment, a method for measuring the flow rate of a pipeline is provided, which can be used in the above-mentioned computer. Figure 5 is a flow chart of a method for measuring flow in a pipeline according to an embodiment of the present invention. Figure 5 shown.
[0023] In a first aspect, the present invention provides a method for measuring flow rate of a pipeline, the method comprising: Step S501, obtaining historical measurement data sets and current measurement data of multiple sound channels located on both sides of the pipeline center horizontal plane, as well as analysis results of the historical measurement data sets of each sound channel.
[0024] The historical measurement data set of multiple channels includes multiple measurement data of each channel at different historical moments, and the analysis result is determined based on the measurement data. The analysis result includes that there is at least one abnormal channel and / or at least one normal channel in the multiple channels.
[0025] An abnormal sound channel can be when the sound channel is damaged and cannot transmit and receive ultrasonic signals normally, which will cause its calculated result to be zero, or when a sound channel is disturbed by bubbles or external factors, "wave jumps" will occur, that is, the ultrasonic signal values obtained during measurement differ by approximately an integer multiple of its signal period. An error in one cycle time will cause the calculated value of the sound channel to differ from the actual value by tens of cubic meters of flow per hour.
[0026] The historical measurement data sets of the multiple channels may be one historical measurement data set corresponding to each channel, each historical measurement data set including the measurement data of the channel at multiple historical moments, i.e., flight time or flight time difference. The current moment measurement data of the multiple channels may be the measurement data of each channel at the same latest measurement moment.
[0027] One acquisition method is: the processor stores the historical measurement data set and the current measurement data to a specified location for subsequent generation of analysis results. Specifically, it can be based on the analysis of multiple historical measurement data in the historical measurement data set to determine whether the corresponding channel is normal. A normal channel can stably transmit and receive ultrasonic signals, while an abnormal channel may cause abnormal measurement data due to equipment damage, bubbles, or external interference.
[0028] Step S502: If the analysis result indicates that there is at least one abnormal channel and at least one normal channel, based on the historical measurement data set of the at least one abnormal channel, the current moment measurement data of the at least one abnormal channel is updated to obtain the updated current moment measurement data of the at least one abnormal channel.
[0029] That is, if the analysis result indicates that an abnormal channel and a normal channel exist at the same time, the current measurement data of the abnormal channel are updated by a plurality of historical measurement data of the abnormal channel.
[0030] One updating method is to replace the current measurement data of the abnormal channel with the average value of multiple historical measurement data sets of the abnormal channel.
[0031] Step S503, determining a first historical flow rate set and a first current flow rate of at least one abnormal channel based on a historical measurement data set of at least one abnormal channel and updated current measurement data, and determining a second historical flow rate set and a second current flow rate of at least one normal channel based on a historical measurement data set of at least one normal channel and current measurement data.
[0032] Figure 4 is a measurement principle diagram of the ultrasonic time difference method according to an embodiment of the present invention. Figure 4 In the example, transducers A1 and A2 form a channel. is the length of the sound channel, c is the propagation speed of ultrasound in the pipe, θ is the angle between the sound channel and the pipe axis, is the downstream flight time, is the countercurrent flight time, Flight time difference, is the current flow velocity corresponding to the channel.
[0033] The relationships for the above parameters include:
[0034]
[0035]
[0036]
[0037] The current flow velocity of each channel can be determined by the above relationship. , . is the number of channels.
[0038] Further according to the weight of each channel The current flow rate corresponding to each channel Calculate the flow rate of multiple channels fusion :
[0039] Further, the current flow rate can be determined based on the following relationship: :
[0040] Among them, K is the correction parameter and D is the pipe diameter.
[0041] Among them, the first historical flow rate set can be determined by using the relationship between the above parameters and the measurement data of the abnormal channel at each historical moment to determine the flow rate of the abnormal channel at each historical moment, forming the first historical flow rate set. The first current moment flow rate can be determined by using the relationship between the above parameters and the measurement data of the abnormal channel at the current moment to determine the flow rate of the abnormal channel at the current moment. The second historical flow rate set can be determined by using the relationship between the above parameters and the measurement data of the normal channel at each historical moment to determine the flow rate of the normal channel at each historical moment, forming the second historical flow rate set. The second current moment flow rate can be determined by using the relationship between the above parameters and the measurement data of the normal channel at the current moment to determine the flow rate of the normal channel at the current moment.
[0042] Step S504: Process each historical flow rate of the first historical flow rate set and the second historical flow rate set and compare them with the first flow rate threshold to determine the flow state at the current moment.
[0043] The current flow state may be a laminar flow state, a turbulent flow state, or a transition flow state (i.e., between a laminar flow state and a turbulent flow state). The first flow rate threshold may be a preset flow rate threshold for distinguishing between a laminar flow state and a transition flow state. In the laminar flow state, the flow rate of the fluid is generally low, i.e., lower than the first flow rate threshold.
[0044] One way to determine the flow state at the current moment is: compare the mean of each historical flow rate of the first historical flow rate set and the second historical flow rate set with the first flow rate threshold. If both are less than the first flow rate threshold, determine that the flow state at the current moment is a laminar flow state.
[0045] Step S505, determining the flow rate of the pipeline at the current moment based on the multi-channel time difference method, the first flow rate at the current moment, the second flow rate at the current moment, and the flow state at the current moment.
[0046] Among them, the multi-channel time difference method can be used to calculate the flow rate at the current moment according to the relationship between the above parameters, and the flow state at the current moment can be used to select the above correction coefficient K.
[0047] Multiple current flow rates, current flow states, and current measurement data of each channel are at the same time.
[0048] The present invention provides a method for measuring the flow rate of a pipeline. When the analysis result indicates that an abnormal channel and a normal channel exist at the same time, the current measurement data of the abnormal channel is updated based on the historical measurement data set of the abnormal channel. The first historical flow rate set and the first current flow rate of the abnormal channel are determined according to the historical measurement data set of the abnormal channel and the updated current measurement data. The second historical flow rate set and the second current flow rate of the normal channel are determined according to the historical measurement data set of the normal channel and the current measurement data, and then the current flow state is determined. The current flow rate of the pipeline is determined by using the multi-channel time difference method, the first current flow rate, the second current flow rate, and the current flow state. It is achieved that when measuring the flow rate of the pipeline, the influencing factors of the abnormal channel and the current flow state are considered, thereby significantly improving the accuracy and reliability of the flow measurement of the pipeline, and can be applied to various flow monitoring scenarios of pipelines, especially in complex environments, unstable data or fault conditions, the accuracy of flow measurement can still be ensured.
[0049] In an optional implementation, in order to further accurately determine the flow state at the current moment, Figure 6 This is a second flow chart of the method for measuring flow rate of a pipeline according to an embodiment of the present invention, step S504 comprises: Step S601 : selecting a target number of historical flow rates at consecutive moments corresponding to each channel from the first historical flow rate set and the second historical flow rate set.
[0050] The target number of consecutive moments may be a preset determination period, indicating that the historical flow rates within the period must all meet the determination conditions of the same flow state.
[0051] One selection method is: starting from the historical flow rate corresponding to time t1 in the first historical flow rate set and the second historical flow rate set, M historical flow rates are continuously extracted.
[0052] Step S602: fuse the historical flow rates of the target number of consecutive moments corresponding to each channel to obtain the fused historical flow rates of the target number of consecutive moments.
[0053] The historical fusion velocity is the fusion velocity of multiple channels in the above relationship. .
[0054] One fusion method is: taking four channels as an example, each weight coefficient in the relationship is set to 0.25, that is, the weight coefficient of each channel is set to the same, and then the average of the historical flow rates of the four channels is used as the fused historical flow rate.
[0055] Step S603: If the sound channels located on the same side of the horizontal plane at the center of the pipeline are all abnormal sound channels, compare whether the fused historical flow velocity at each moment is less than a first flow velocity threshold.
[0056] That is, taking four channels as an example, two channels are on the upper side of the horizontal plane of the center of the pipe, and two channels are on the lower side of the horizontal plane of the center of the pipe. There may be three abnormal channels and one normal channel, or both channels on the upper or lower side of the horizontal plane of the center of the pipe are abnormal channels.
[0057] Step S604: If both are yes, then determine that the laminar flow state is the flow state at the current moment.
[0058] If they are both, that is, the fused historical flow rate at each moment in the target number of consecutive moments is less than the first flow rate threshold.
[0059] The method provided in this embodiment reduces the impact caused by instantaneous fluctuations or noise by selecting and fusing historical flow velocity data, thereby improving the accuracy of flow state judgment. By fusion of multi-channel data and exclusion of abnormal channels, the flow state can be reflected more accurately and misjudgment caused by abnormality of a single channel can be avoided. According to the flow velocity data at multiple times, different flow states such as laminar flow and turbulent flow can be effectively distinguished. Confirmation of laminar flow state is crucial to the judgment of the working state of the flow meter. Through data fusion and flow velocity threshold comparison, the flow meter or similar equipment can make more reliable flow state judgments in complex fluid flow environments.
[0060] In an optional implementation, in order to further accurately determine the flow state at the current moment, Figure 7 This is a flowchart of the pipeline flow measurement method according to an embodiment of the present invention, step S504 includes: Step S701 : selecting a target number of historical flow rates at consecutive moments corresponding to each channel from the first historical flow rate set and the second historical flow rate set.
[0061] The selection method of this step may be the same as that of the above step S601.
[0062] Step S702 , fusing the historical flow rates of the target number of consecutive moments corresponding to each channel to obtain the fused historical flow rates of the target number of consecutive moments.
[0063] The fusion method of this step may be the same as that of the above step S602.
[0064] Step S703, if the sound channels on both sides of the pipeline center horizontal plane include at least one normal sound channel, the maximum and minimum flow rates on one side of the pipeline center horizontal plane and the maximum and minimum flow rates on the other side of the pipeline center horizontal plane are selected.
[0065] That is, taking four channels as an example, two channels are on the upper side of the horizontal plane of the center of the pipe, and two channels are on the lower side of the horizontal plane of the center of the pipe. It may be that only one channel is abnormal on the upper side or the lower side of the horizontal plane of the center of the pipe.
[0066] One selection method is to first sort the flow velocities on each side, and then select the maximum and minimum flow velocities on both sides of the pipeline.
[0067] Step S704, comparing whether the fused historical flow velocity at each moment is less than the first flow velocity threshold, and comparing whether the minimum flow velocity on one side of the pipeline center horizontal plane is greater than the maximum flow velocity on the other side of the pipeline center horizontal plane.
[0068] Among them, whether the minimum flow velocity on one side of the horizontal plane at the center of the pipeline is greater than the maximum flow velocity on the other side of the horizontal plane at the center of the pipeline indicates whether the flow velocity in the pipeline has been stratified. At the same time, it is also necessary to compare whether the fused historical flow velocity at each moment is less than the first flow velocity threshold to determine whether the flow velocity in the pipeline meets the flow velocity of the laminar state.
[0069] Step S705: If both are yes, then determine that the laminar flow state is the flow state at the current moment.
[0070] If both are true, that is, the flow velocity in the pipeline has been stratified and meets the flow velocity of the laminar flow state, it can be determined that the fluid in the current pipeline is in a laminar flow state.
[0071] The method provided in this embodiment can effectively eliminate noise and abnormal data and ensure accurate identification of flow status by fusing flow velocity data and comparing extreme values of different sound channels.
[0072] Effectively distinguish the flow state of the fluid: By comparing the flow velocities on both sides of the pipeline, determine whether it is in a laminar state. By selecting the normal channel and fusing its historical flow velocity data, it can effectively avoid erroneous judgments caused by abnormal channels or sensor failures, thereby improving the reliability of flow measurement equipment. It can be used in complex flow environments where the flow velocity fluctuates greatly or the flow state in the pipeline changes rapidly, especially in multi-channel flow meters, and can provide stable and reliable flow state judgment. Through the fine processing of flow velocity data and detailed comparison of flow velocity distribution, the flow state can be determined more accurately.
[0073] In an optional implementation, in order to further accurately determine the current flow rate, step S505 includes: According to the correspondence between the flow state and the correction coefficient, the target correction coefficient corresponding to the current flow state is selected from multiple preset correction coefficients; the weight coefficient of each channel is determined according to the preset rules and the number of abnormal channels; the fused current flow velocity is determined according to each first current flow velocity, each second current flow velocity and each weight coefficient; the current flow rate of the pipeline is determined based on the multi-channel time difference method, the fused current flow velocity and each weight coefficient.
[0074] In this embodiment, the correspondence between the flow state and the correction coefficient can be preset. Taking four channels as an example, if the number of abnormal channels is three, the weight coefficients of the three abnormal channels at the current moment are adjusted to 0, and the weight coefficient of the other normal channel is adjusted to 1; if the number of abnormal channels screened out is two, the weight coefficients of the two abnormal channels at the current moment are adjusted to 0, and the weight coefficients of the other two normal channels are adjusted to 0.5; if the number of abnormal channels screened out is one, the weight coefficient of the abnormal channel at the current moment is adjusted to 0, and the weight coefficient of the normal channel on the same side as the abnormal channel is adjusted to 0.5. Determining the fused current moment flow velocity and the current moment flow rate of the pipeline can be determined based on the above relationship.
[0075] Before setting the corresponding relationship between the flow pattern and the correction coefficient, the Reynolds number of the fluid can be determined by the following relationship: , and set the corresponding correction factor K by referring to the Reynolds number.
[0076]
[0077] in, is the fluid density, is the fluid flow rate, is the pipe diameter, is the fluid viscosity.
[0078] The method provided in this embodiment can significantly improve the accuracy of flow measurement by comprehensively considering multiple factors such as flow state, correction coefficient, channel weight, flow velocity fusion and time difference method. Even in the presence of abnormal channels, the system can still effectively adjust the weight and correction coefficient to ensure the reliability of the measurement results. The correction coefficient and multi-channel time difference method enable the flow measurement system to adapt to various complex flow environments and changing flow conditions, thereby improving the versatility and adaptability of the system. The method can dynamically adjust the calculation process in real time according to the current flow state and measurement data to ensure that the flow measurement results are highly consistent with the actual flow state.
[0079] In an optional implementation, in order to further accurately determine the historical measurement data sets and current measurement data of multiple channels, as well as the analysis results of the historical measurement data sets of each channel, step S501 includes: Acquire historical measurement data sets and current measurement data of the above-mentioned multiple sound channels; from the above-mentioned multiple current measurement data, find out whether there is current measurement data less than or equal to a first measurement threshold, and whether there is current measurement data greater than the above-mentioned first measurement threshold; if so, count all current measurement data less than or equal to the first measurement threshold to obtain first target data, and count all current measurement data greater than the above-mentioned first measurement threshold to obtain second target data; if the above-mentioned first target data and the above-mentioned second target data are found, determine that the sound channel corresponding to the above-mentioned first current measurement data is the above-mentioned abnormal sound channel.
[0080] In this embodiment, the first measurement threshold may be an error value of the transducer. If the current measurement data of a channel is less than or equal to the first measurement threshold, and the current measurement data of other channels is greater than the first measurement threshold, it means that the fluid in the pipeline is not static, but the measurement data of this channel is abnormal, that is, the channel is an abnormal channel.
[0081] The method provided in this embodiment divides the measurement data at the current moment by the first measurement threshold, and performs statistical analysis in combination with historical data to accurately identify abnormal channels. It can efficiently and automatically detect channels that may have problems and provide clear data support, which helps to improve the accuracy and reliability of abnormal identification, and is particularly suitable for multi-channel monitoring environments.
[0082] In an optional implementation, in order to further accurately determine the abnormal channel, the method further includes: If the above-mentioned first target data is not found, the difference between the mean of the historical measurement data of the above-mentioned multiple channels and the current measurement data corresponding to the above-mentioned second target data is determined based on the historical measurement data sets of the above-mentioned multiple channels; if at least one target difference greater than the second measurement threshold is found from the multiple differences, at least one channel corresponding to the above-mentioned at least one target difference is determined to be the above-mentioned abnormal channel.
[0083] In this embodiment, the second measurement threshold may be a preset threshold proportional to the signal period, and is used to filter the wave-hopping signal. By comparing the difference with the second threshold, it is determined whether the current measurement data corresponding to the second target data deviates from the mean of the historical measurement data. If so, it can be determined that the channel corresponding to at least one target difference is an abnormal channel.
[0084] The method provided in this embodiment further improves the accuracy and sensitivity of abnormality detection by introducing the difference between historical data and current data to determine abnormal channels. In particular, for those cases with significant differences from historical data, it can accurately capture abnormal situations of wave jumping. It can more comprehensively identify abnormal channels, enhance the adaptability to dynamic system changes and the ability to monitor long-term trends.
[0085] In an optional implementation, in order to further accurately determine the flow state at the current moment, the method further includes: If not, compare whether each of the above-mentioned fused historical flow velocities is greater than the second flow velocity threshold; if both are yes, determine that the turbulent state is the above-mentioned flow state at the current moment; or, if not, determine that the transitional flow state is the above-mentioned flow state at the current moment.
[0086] In this embodiment, the flow velocity of the fluid in the turbulent state is generally larger, that is, it needs to be greater than the second flow velocity threshold. The second flow velocity threshold can be a preset value set based on experience, that is, when it is determined that the flow state at the current moment is not a laminar flow state, it continues to be determined whether it is a turbulent flow state. If it is neither a turbulent flow state nor a laminar flow state, it can be determined that the flow state at the current moment is a transitional flow state.
[0087] The method provided in this embodiment not only enhances the accurate identification of flow state through multi-level and multi-condition judgment, but also improves the adaptability to complex flow environment. By introducing the comparison of historical flow velocity data, the flow state judgment is made more stable and reliable, and the influence of external disturbance on the result is reduced.
[0088] The present invention provides a pipeline flow measurement device. Figure 8 1 is a schematic diagram of a method and device for measuring flow rate of a pipeline according to an embodiment of the present invention, the device comprising: An acquisition module 801 is used to acquire historical measurement data sets and current measurement data of multiple sound channels located on both sides of a central horizontal plane of a pipeline, and analysis results of the historical measurement data sets of each of the above sound channels, wherein the historical measurement data sets of the above multiple sound channels include multiple measurement data of each of the above sound channels at different historical moments, and the above analysis results are determined based on the above measurement data, and the above analysis results include that there is at least one abnormal sound channel and / or at least one normal sound channel in the multiple sound channels; An updating module 802 is configured to update the current moment measurement data of the at least one abnormal channel based on the historical measurement data set of the at least one abnormal channel if the analysis result indicates that there is at least one abnormal channel and at least one normal channel, so as to obtain the updated current moment measurement data of the at least one abnormal channel; A first determination module 803 is used to determine a first historical flow rate set and a first current flow rate of the at least one abnormal channel according to the historical measurement data set of the at least one abnormal channel and the updated current measurement data, and to determine a second historical flow rate set and a second current flow rate of the at least one normal channel according to the historical measurement data set of the at least one normal channel and the current measurement data; A second determination module 804 is used to process each historical flow rate of the first historical flow rate set and the second historical flow rate set and compare it with the first flow rate threshold to determine the flow state at the current moment; The third determination module 805 is used to determine the flow rate of the pipeline at the current moment based on the multi-channel time difference method, the first flow rate at the current moment, the second flow rate at the current moment, and the flow state at the current moment.
[0089] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0090] The pipeline flow measurement method device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0091] The embodiment of the present invention also provides a computer device having the above Figure 8 The flow measurement method and device of the pipeline are shown.
[0092] See also Fig. 9 , Fig. 9 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Fig. 9 As shown, the computer device includes: one or more processors 10, a memory 20, and an interface for connecting various components, including a high-speed interface and a low-speed interface. Each component utilizes different buses to communicate with each other, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations. Fig. 9 A processor 10 is taken as an example.
[0093] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include an integrated circuit. The integrated circuit may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0094] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0095] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0096] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0097] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0098] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0099] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0100] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for measuring flow rate in a pipeline, characterized in that: The method comprises: Acquire historical measurement data sets and current measurement data of multiple sound channels located on both sides of a central horizontal plane of the pipeline, and analysis results of the historical measurement data sets of each of the sound channels, wherein the historical measurement data sets of the multiple sound channels include multiple measurement data of each of the sound channels at different historical moments, and the analysis results are determined based on the measurement data, and the analysis results include that there is at least one abnormal sound channel and / or at least one normal sound channel in the multiple sound channels; If the analysis result indicates that there is at least one abnormal channel and at least one normal channel, based on the historical measurement data set of the at least one abnormal channel, updating the current moment measurement data of the at least one abnormal channel to obtain updated current moment measurement data of the at least one abnormal channel; Determine a first historical flow rate set and a first current flow rate of the at least one abnormal channel according to the historical measurement data set of the at least one abnormal channel and the updated current measurement data, and determine a second historical flow rate set and a second current flow rate of the at least one normal channel according to the historical measurement data set and the current measurement data of the at least one normal channel; Process each historical flow rate of the first historical flow rate set and the second historical flow rate set and compare them with a first flow rate threshold to determine the flow state at a current moment; The current flow rate of the pipeline is determined based on the multi-channel time difference method, the first current flow rate, the second current flow rate, and the current flow state.
2. The method according to claim 1, characterized in that The processing of each historical flow rate of the first historical flow rate set and the second historical flow rate set and comparing the processing with the first flow rate threshold to determine the flow state at the current moment includes: Selecting a target number of historical flow rates at consecutive moments corresponding to each of the sound channels from the first historical flow rate set and the second historical flow rate set; Fusion the historical flow rates of the target number of consecutive moments corresponding to each of the channels to obtain fused historical flow rates of the target number of consecutive moments; If the sound channels located on the same side of the horizontal plane at the center of the pipeline are all abnormal sound channels, comparing whether the fused historical flow velocity at each moment is less than the first flow velocity threshold; If both are yes, then the laminar flow state is determined to be the flow state at the current moment.
3. The method according to claim 1, characterized in that The processing of each historical flow rate of the first historical flow rate set and the second historical flow rate set and comparing the processing with the first flow rate threshold to determine the flow state at the current moment includes: Selecting a target number of historical flow rates at consecutive moments corresponding to each of the sound channels from the first historical flow rate set and the second historical flow rate set; Fusion the historical flow rates of the target number of consecutive moments corresponding to each of the channels to obtain fused historical flow rates of the target number of consecutive moments; If the sound channels located on both sides of the central horizontal plane of the pipeline include the at least one normal sound channel, the maximum value and the minimum value of the flow velocity on one side of the central horizontal plane of the pipeline and the maximum value and the minimum value of the flow velocity on the other side of the central horizontal plane of the pipeline are selected; Comparing whether the fused historical flow velocity at each moment is less than a first flow velocity threshold, and comparing whether the minimum value of the flow velocity on one side of the pipeline center horizontal plane is greater than the maximum value of the flow velocity on the other side of the pipeline center horizontal plane; If both are yes, then the laminar flow state is determined to be the flow state at the current moment.
4. The method according to any one of claims 1 to 3, characterized in that: The method of determining the flow rate of the pipeline at the current moment based on the multi-channel time difference method, the first flow rate at the current moment, the second flow rate at the current moment, and the flow state at the current moment includes: According to the correspondence between the flow state and the correction coefficient, a target correction coefficient corresponding to the flow state at the current moment is selected from a plurality of preset correction coefficients; Determining a weight coefficient of each of the channels according to a preset rule and the number of abnormal channels; Determine a fused current moment flow velocity according to each of the first current moment flow velocities, each of the second current moment flow velocities, and each of the weight coefficients; The current flow rate of the pipeline is determined based on the multi-channel time difference method, the fused current flow rate, and each weight coefficient.
5. The method according to any one of claims 1 to 3, characterized in that: Obtaining historical measurement data sets and current measurement data of multiple sound channels located on both sides of the central horizontal plane of the pipeline, as well as analysis results of the historical measurement data sets of each of the sound channels, including: Acquire historical measurement data sets and current measurement data of a plurality of the channels; Searching, from the plurality of current moment measurement data, whether there is current moment measurement data that is less than or equal to a first measurement threshold, and whether there is current moment measurement data that is greater than the first measurement threshold; If yes, then all current measurement data less than or equal to the first measurement threshold are counted to obtain first target data, and all current measurement data greater than the first measurement threshold are counted to obtain second target data; If the first target data and the second target data are found, it is determined that the channel corresponding to the first current moment measurement data is the abnormal channel.
6. The method according to claim 5, characterized in that Also includes: If the first target data is not found, determining the difference between the mean of the historical measurement data of the plurality of channels and the current measurement data corresponding to the second target data according to the historical measurement data sets of the plurality of channels; If at least one target difference value greater than the second measurement threshold is found from the plurality of difference values, at least one channel corresponding to the at least one target difference value is determined to be the abnormal channel.
7. The method according to claim 2 or 3, characterized in that: Also includes: If not, comparing whether each of the fused historical flow rates is greater than a second flow rate threshold; If both are true, then the turbulent state is determined to be the flow state at the current moment; Or, if not, the transition flow state is determined to be the flow state at the current moment.
8. A flow measurement device for a pipeline, characterized in that: The device comprises: an acquisition module, used to acquire historical measurement data sets and current measurement data of multiple sound channels located on both sides of a central horizontal plane of the pipeline, and analysis results of the historical measurement data sets of each of the sound channels, wherein the historical measurement data sets of the multiple sound channels include multiple measurement data of each of the sound channels at different historical moments, and the analysis results are determined based on the measurement data, and the analysis results include the existence of at least one abnormal sound channel and / or at least one normal sound channel in the multiple sound channels; an updating module, configured to update the current moment measurement data of the at least one abnormal channel based on the historical measurement data set of the at least one abnormal channel if the analysis result indicates that there is at least one abnormal channel and at least one normal channel, so as to obtain the updated current moment measurement data of the at least one abnormal channel; A first determination module is used to determine a first historical flow rate set and a first current flow rate of the at least one abnormal channel according to the historical measurement data set of the at least one abnormal channel and the updated current measurement data, and to determine a second historical flow rate set and a second current flow rate of the at least one normal channel according to the historical measurement data set and the current measurement data of the at least one normal channel; A second determination module is used to process each historical flow rate of the first historical flow rate set and the second historical flow rate set and compare it with a first flow rate threshold to determine the flow state at a current moment; The third determination module is used to determine the flow rate of the pipeline at the current moment based on the multi-channel time difference method, the first flow rate at the current moment, the second flow rate at the current moment, and the flow state at the current moment.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the pipeline flow measurement method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the pipeline flow measurement method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Time difference type supersonic wave flow measuring method and device
CN105157771A
Method and device for acquiring road traffic state, and server
CN113409566A
Multi-feature-point ultrasonic transit time measuring method based on cross-correlation algorithm assistance
CN116358652A
Fault sound channel compensation method based on crossed four-sound-channel ultrasonic flowmeter
CN116952316A
Calibration method and system of ultrasonic water meter, server and storage medium
CN117091677A
Cited By
Rotary flow state identification and correction method and device, electronic equipment and storage medium
CN121275083A
Rotating flow state recognition and correction method and device, electronic equipment and storage medium
CN121275083B