Flow velocity measurement method and device, computer storage medium and electronic equipment
By combining the time difference method and Doppler method in the outer clamp ultrasonic flowmeter, the optimal emission combination and measurement method are selected, which solves the problem of poor flow velocity measurement accuracy in different scenarios, and achieves high accuracy and adaptability of flow velocity measurement.
Patent Information
- Application Number
- CN202510736286.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-04
- Publication Date
- 2025-07-04
AI Technical Summary
The existing outer clamp ultrasonic flowmeter has poor measurement accuracy in different flow rate measurement scenarios and cannot maintain high accuracy stably.
The flow rate measurement method combined with the time difference method and the Doppler method is used to select the optimal transmission combination by combining multiple pre-set transmission frequencies and transmission voltages, and select a measurement method suitable for the current working conditions according to the signal-to-noise ratio to perform ultrasonic transmission and echo reception, and calculate the flow rate.
In various flow rate measurement scenarios, the accuracy and adaptability of flow rate measurement are ensured, and the accuracy of flow rate calculation is improved.
Smart Images

Figure CN120254330A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to flow velocity measurement technology, and particularly to a flow velocity measurement method, device, computer storage medium, and electronic device. Background Art
[0002] A flowmeter can be used to measure the flow velocity, flow rate, and mass of a liquid. Among them, an ultrasonic flowmeter is a commonly used flowmeter that measures the flow velocity by transmitting ultrasonic waves and receiving echo signals. After measuring the flow velocity, the liquid flow rate and mass can be further determined based on the flow velocity.
[0003] External clamp ultrasonic flowmeters can perform real-time measurement of the medium flow velocity without damaging the pipe wall and without stopping the operation, and have been increasingly widely used. However, in various actual different flow velocity measurement scenarios, the measurement accuracy of existing external clamp ultrasonic flowmeters varies greatly in different scenarios, and it is impossible to stably maintain high accuracy of flow velocity measurement. Summary of the Invention
[0004] The present application provides a flow velocity measurement method, device, computer storage medium, and electronic device, which can be applicable to multiple flow velocity measurement scenarios and ensure the accuracy of flow velocity measurement.
[0005] To achieve the above object, the present application adopts the following technical solutions: A flow velocity measurement method, comprising: Controlling a pair of transducers installed opposite each other on the outer side of the pipeline to perform ultrasonic wave emission and echo reception using the time difference method and the Doppler method according to a plurality of preset emission combinations of emission frequencies and emission voltages; Based on the signal-to-noise ratio of the echo signals received using the time difference method for all emission combinations, selecting the optimal emission combination corresponding to the time difference method; based on the signal-to-noise ratio of the echo signals received using the Doppler method for all emission combinations, selecting the optimal emission combination corresponding to the Doppler method; Based on the first signal-to-noise ratio of the echo signals received under the time difference method and its corresponding optimal emission combination and the second signal-to-noise ratio of the echo signals received under the Doppler method and its corresponding optimal emission combination, selecting the most suitable measurement method for the current working condition as the current measurement method; Controlling the pair of transducers to perform ultrasonic wave emission and echo reception according to the current measurement method and its corresponding optimal emission combination, and calculating the flow velocity based on the received echo signals.
[0006] Preferably, after controlling the pair of transducers to perform ultrasonic transmission and echo reception according to the current measurement method and its corresponding optimal transmission combination, and before calculating the flow velocity based on the received echo signal, the method further includes: calculating the signal-to-noise ratio based on the received echo signal, determining whether the calculated signal-to-noise ratio meets the signal-to-noise ratio requirement of the current measurement method, if so, continuing to perform the process of calculating the flow velocity, otherwise, re-executing the present method; After calculating the flow velocity based on the received echo signal, the method further includes: re-executing the process of controlling the pair of transducers to use the current measurement method and its corresponding optimal transmission combination to perform the ultrasonic transmission and echo reception and the calculation of the flow velocity.
[0007] Preferably, the selection of the most suitable measurement method for the current working condition as the current measurement method includes: When the first signal-to-noise ratio meets the signal-to-noise ratio requirement of the time difference method, selecting the time difference method as the current measurement method; When the first signal-to-noise ratio does not meet the signal-to-noise ratio requirement of the time difference method and the second signal-to-noise ratio meets the Doppler method requirement, selecting the Doppler method as the current measurement method; When the first signal-to-noise ratio does not meet the signal-to-noise ratio requirement of the time difference method and the second signal-to-noise ratio does not meet the Doppler method requirement, selecting the combined measurement method as the current measurement method; Wherein, the combined measurement method includes: alternately using the time difference method and the Doppler method for ultrasonic transmission and echo reception, using the optimal transmission combination of the time difference method when using the time difference method, and using the optimal transmission combination of the Doppler method when using the Doppler method.
[0008] Preferably, the signal-to-noise ratio requirement of the time difference method is: greater than or equal to the first signal-to-noise ratio threshold; The signal-to-noise ratio requirement of the Doppler method is: greater than or equal to the second signal-to-noise ratio threshold.
[0009] Preferably, the method further includes: when the first signal-to-noise ratio is less than the third signal-to-noise ratio threshold and the second signal-to-noise ratio is less than the fourth signal-to-noise ratio threshold, not performing the current round of flow velocity measurement, and re-executing the present method for the next round of flow velocity measurement; The signal-to-noise ratio requirement of the combined measurement method is: the signal-to-noise ratio when using the time difference method is less than the first signal-to-noise ratio threshold and greater than or equal to the third signal-to-noise ratio threshold, and the signal-to-noise ratio when using the Doppler method is less than the second signal-to-noise ratio threshold and greater than or equal to the fourth signal-to-noise ratio threshold.
[0010] Preferably, the process of using the Doppler method for ultrasonic transmission and echo reception includes: For the pipeline with a diameter less than or equal to the set threshold, controlling one of the pair of transducers to repeat ultrasonic transmission and echo reception P times; For the pipeline with a pipe diameter greater than a set threshold value, control the pair of transducers to repeat ultrasonic transmission and echo reception P times, and each ultrasonic transmission and echo reception includes: controlling the first transducer in the pair of transducers to perform one ultrasonic transmission and corresponding echo reception, and using the second transducer in the pair of transducers to perform one ultrasonic transmission and corresponding echo reception; where P is a preset positive integer greater than 1.
[0011] Preferably, for the pipeline with a pipe diameter greater than a set threshold value, when calculating the flow velocity based on the echo signal received by the Doppler method, for each transducer, calculate the flow velocity using the P echo signals received by this transducer to obtain the flow velocity calculation result of a single transducer, and calculate the flow velocity on the pipe diameter cross-section based on the flow velocity calculation results of the two transducers.
[0012] Preferably, the process of calculating the flow velocity based on the echo signal received by the combined measurement method includes: Calculate the flow velocity using the echo signals received by the time difference method and the Doppler method respectively; Judge whether the volatility of the calculation result obtained by calculating the flow velocity using the echo signal received by the first measurement method within the set cumulative time is less than or equal to the set volatility threshold. If so, use the first flow velocity obtained by calculating the flow velocity using the echo signal received by the first measurement method as the flow velocity measurement result; otherwise: Judge whether the volatility of the calculation result obtained by calculating the flow velocity using the echo signal received by the second measurement method within the set cumulative time is less than or equal to the set volatility threshold. If so, use the second flow velocity obtained by calculating the flow velocity using the echo signal received by the second measurement method as the flow velocity measurement result. Otherwise, use the weighted average value of the first flow velocity and the second flow velocity as the flow velocity measurement result; Wherein, the first measurement method and the second measurement method are the time difference method and the Doppler method respectively, or the first measurement method and the second measurement method are the Doppler method and the time difference method respectively.
[0013] Preferably, when selecting the optimal transmission combination corresponding to the time difference method, it is further based on the amplitude and / or bandwidth of the echo signal received by the time difference method; And / or, When selecting the optimal transmission combination corresponding to the Doppler method, it is further based on the amplitude and / or bandwidth of the echo signal received by the time difference method.
[0014] Preferably, when selecting the optimal transmission combination, the priority of the signal-to-noise ratio is higher than the priority of the amplitude, and the priority of the amplitude is higher than the priority of the bandwidth.
[0015] A flow velocity measurement control device includes: a transmission combination selection unit, a current measurement method selection unit, and a flow velocity measurement unit; The emission combination selection unit is configured to control a pair of transducers installed opposite each other on the outer side of the pipeline to perform ultrasonic emission and echo reception using the time difference method and the Doppler method according to a plurality of preset emission combinations of emission frequencies and emission voltages; and is further configured to select the optimal emission combination corresponding to the time difference method based on the signal-to-noise ratio of the echo signals received by the pair of transducers when using the time difference method for all emission combinations; and select the optimal emission combination corresponding to the Doppler method based on the signal-to-noise ratio of the echo signals received by the pair of transducers when using the Doppler method for all emission combinations; The current measurement method selection unit is configured to select the most suitable measurement method for the current working condition as the current measurement method based on the first signal-to-noise ratio of the echo signals received by the pair of transducers using the time difference method and its corresponding optimal emission combination and the second signal-to-noise ratio of the echo signals received under the Doppler method and its corresponding optimal emission combination; The flow velocity measurement unit is configured to control the pair of transducers to perform ultrasonic emission and echo reception according to the current measurement method and its corresponding optimal emission combination, and calculate the flow velocity based on the echo signals received by the pair of transducers.
[0016] Preferably, in the flow velocity measurement unit: After performing ultrasonic emission and echo reception according to the current measurement method and its corresponding optimal emission combination and before calculating the flow velocity based on the received echo signals, further calculate the signal-to-noise ratio based on the echo signals received by the pair of transducers, and determine whether the calculated signal-to-noise ratio meets the signal-to-noise ratio requirement of the current measurement method. If so, continue to perform the process of calculating the flow velocity; otherwise, notify the emission combination selection unit and the current measurement method selection unit to respectively re-select the emission combination and the current measurement method; After calculating the flow velocity based on the received echo signals, re-execute the process of controlling the pair of transducers to use the current measurement method and its corresponding optimal emission combination to perform the ultrasonic emission and echo reception and the calculation of the flow velocity.
[0017] Preferably, in the current measurement method selection unit, the selection of the most suitable measurement method for the current working condition as the current measurement method includes: When the first signal-to-noise ratio meets the signal-to-noise ratio requirement of the time difference method, select the time difference method as the current measurement method; When the first signal-to-noise ratio does not meet the signal-to-noise ratio requirement of the time difference method and the second signal-to-noise ratio meets the Doppler method requirement, select the Doppler method as the current measurement method; When the first signal-to-noise ratio does not meet the signal-to-noise ratio requirement of the time difference method and the second signal-to-noise ratio does not meet the Doppler method requirement, select the combined measurement method as the current measurement method; Among them, the combined measurement method includes: alternately using the time difference method and the Doppler method for ultrasonic transmission and echo reception, and when using the time difference method, performing according to the optimal transmission combination of the time difference method, and when using the Doppler method, performing according to the optimal transmission combination of the Doppler method.
[0018] Preferably, the signal-to-noise ratio requirement of the time difference method is: greater than or equal to the first signal-to-noise ratio threshold; The signal-to-noise ratio requirement of the Doppler method is: greater than or equal to the second signal-to-noise ratio threshold.
[0019] Preferably, when the first signal-to-noise ratio is less than the third signal-to-noise ratio threshold and the second signal-to-noise ratio is less than the fourth signal-to-noise ratio threshold, the flow velocity measurement unit further does not perform the current round of flow velocity measurement, and notifies the transmission combination selection unit and the current measurement method selection unit to respectively re-perform the transmission combination selection and the current measurement method selection; The signal-to-noise ratio requirement of the combined measurement method is: the signal-to-noise ratio using the time difference method is less than the first signal-to-noise ratio threshold and greater than or equal to the third signal-to-noise ratio threshold, and the signal-to-noise ratio using the Doppler method is less than the second signal-to-noise ratio threshold and greater than or equal to the fourth signal-to-noise ratio threshold.
[0020] Preferably, in the flow velocity measurement unit, the process of controlling the pair of transducers to use the Doppler method for ultrasonic transmission and echo reception includes: For the pipeline with a pipe diameter less than or equal to the set threshold, control one of the pair of transducers to repeat ultrasonic transmission and echo reception P times; For the pipeline with a pipe diameter greater than the set threshold, control the pair of transducers to repeat ultrasonic transmission and echo reception P times, and each ultrasonic transmission and echo reception includes: controlling the first transducer of the pair of transducers to perform one ultrasonic transmission and the corresponding echo reception, and using the second transducer of the pair of transducers to perform one ultrasonic transmission and the corresponding echo reception; where P is a preset positive integer greater than 1.
[0021] Preferably, in the flow velocity measurement unit: For the pipeline with a pipe diameter greater than the set threshold, when calculating the flow velocity based on the echo signal received by the Doppler method, for each transducer, calculate the flow velocity using the P echo signals received by this transducer to obtain the flow velocity calculation result of a single transducer, and calculate the flow velocity on the pipe diameter cross-section based on the flow velocity calculation results of the two transducers.
[0022] Preferably, in the flow velocity measurement unit, the process of calculating the flow velocity based on the echo signal received by the combined measurement method includes: Calculate the flow velocity using the echo signals received by the time difference method and the Doppler method respectively; Determine whether the volatility of the calculation result obtained by calculating the flow velocity using the echo signals received by the first measurement method within the set cumulative time is less than or equal to the set volatility threshold. If so, use the first flow velocity obtained by calculating the flow velocity using the echo signals received by the first measurement method as the flow velocity measurement result; otherwise: Determine whether the volatility of the calculation result obtained by calculating the flow velocity using the echo signals received by the second measurement method within the set cumulative time is less than or equal to the set volatility threshold. If so, use the second flow velocity obtained by calculating the flow velocity using the echo signals received by the second measurement method as the flow velocity measurement result. Otherwise, use the weighted average of the first flow velocity and the second flow velocity as the flow velocity measurement result; Wherein, the first measurement method and the second measurement method are the time difference method and the Doppler method respectively, or the first measurement method and the second measurement method are the Doppler method and the time difference method respectively.
[0023] Preferably, in the transmission combination selection unit, when selecting the optimal transmission combination corresponding to the time difference method, it is further based on the amplitude and / or bandwidth of the echo signals received by the time difference method; and / or, In the transmission combination selection unit, when selecting the optimal transmission combination corresponding to the Doppler method, it is further based on the amplitude and / or bandwidth of the echo signals received by the time difference method.
[0024] Preferably, in the transmission combination selection unit, when selecting the optimal transmission combination, the priority of the signal-to-noise ratio is higher than the priority of the amplitude, and the priority of the amplitude is higher than the priority of the bandwidth.
[0025] A computer-readable storage medium, on which computer instructions are stored, and when the instructions are executed by a processor, the flow velocity measurement method described in any one of the above can be implemented.
[0026] An electronic device, which at least includes a computer-readable storage medium and also includes a processor; The processor is used to read executable instructions from the computer-readable storage medium and execute the instructions to implement the flow velocity measurement method described in any one of the above.
[0027] As can be seen from the above technical solutions, in this application, first, a pair of transducers installed opposite each other on the outer side of the pipeline are controlled to perform ultrasonic transmission and echo reception using the time difference method and the Doppler method according to the transmission combinations of multiple preset transmission frequencies and transmission voltages; based on the signal-to-noise ratios of the echo signals received by using the time difference method for all transmission combinations, the optimal transmission combination corresponding to the time difference method is selected; based on the signal-to-noise ratios of the echo signals received by using the Doppler method for all transmission combinations, the optimal transmission combination corresponding to the Doppler method is selected. In this way, among the transmission combinations of multiple transmission frequencies and transmission voltages, the optimal transmission combinations for the time difference method and the Doppler method can be respectively selected for the current environment. Then, based on the signal-to-noise ratio of the echo signal received by using the time difference method under the optimal transmission combination corresponding to the time difference method, and the signal-to-noise ratio of the echo signal received by using the Doppler method under the optimal transmission combination corresponding to the Doppler method, the measurement method most suitable for the current working condition is selected as the current measurement method. In this way, the current measurement method suitable for the current working condition is selected based on the signal-to-noise ratio. Finally, a pair of transducers are controlled to perform ultrasonic transmission and echo reception according to the determined current measurement method and its corresponding optimal transmission combination, and the flow velocity is calculated based on the received echo signal. Through the processing method of this application above, on the one hand, the optimal transmission combinations for the two measurement methods are selected based on the current environment, and on the other hand, the current measurement method suitable for the current working condition is selected based on the optimal transmission combinations of the two measurement methods; thus, the measurement method most suitable for the current environment and working condition and the most suitable combination of transmission power and transmission voltage under this measurement method can be selected, and the flow velocity is measured and calculated accordingly, which can effectively adapt to various flow velocity measurement scenarios and ensure the accuracy of flow velocity measurement. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 is a schematic diagram of the basic flow of the flow velocity measurement method in this application; Figure 2 is a schematic diagram of the specific flow of the flow velocity measurement method in a specific embodiment of this application; Figure 3 is an installation example diagram of the transducer in this application; Figure 4 is a schematic diagram of the basic structure of the flow velocity measurement control device in this application; Figure 5 is a schematic diagram of the basic structure of the electronic device provided by this application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0029] In order to make the purpose, technical means, and advantages of this application clearer and more understandable, the following further elaborates on this application in conjunction with the accompanying drawings.
[0030] The ultrasonic measurement method of traditional external clamp-on ultrasonic flowmeters uses a fixed transmit center frequency, voltage, and pulse repetition frequency for ultrasonic transmission and echo reception. An appropriate voltage can keep the power consumption of the device in an optimal state, while using an appropriate transmit frequency will result in a better signal-to-noise ratio of the echo signal, thus enabling a more accurate flow rate to be obtained. In various actual different flow rate measurement scenarios and under different working conditions, due to different conditions inside the pipeline, such as whether the pipe wall is corroded and the degree of corrosion, the applicable voltage and frequency may vary. Therefore, the existing ultrasonic flowmeters with fixed frequencies and voltages cannot adapt to a variety of different measurement scenarios, and inaccurate flow rate calculations may occur in some scenarios.
[0031] At the same time, there are also different flow rate measurement methods for ultrasonic flowmeters, which are suitable for different measurement environments. Currently, the more commonly used and performance-stable measurement methods include the time-difference method and the Doppler method. Based on this, in this application, the appropriate transmit frequency and voltage are selected according to the current measurement environment, and an adaptive selection is made between the time-difference method and the Doppler method, so as to ensure the accuracy of flow rate calculation in various different measurement scenarios and working conditions.
[0032] Figure 1 This is a schematic diagram of the basic process of the flow rate measurement method in this application. In this application, a pair of transducers, that is, ultrasonic transmit and receive probes, are installed opposite each other on the outer side of the liquid pipeline. The installation example can be as Figure 3 shown, which is the same as the transducer installation method of the existing time-difference method. As Figure 1 shown, this method includes: Step 101, control a pair of transducers installed opposite each other on the outer side of the pipeline to perform ultrasonic transmission and echo reception using the time-difference method and the Doppler method according to a plurality of pre-set transmit frequency and transmit voltage transmit combinations.
[0033] To select the appropriate transmit frequency and transmit voltage, a plurality of transmit combinations are pre-set, and each transmit combination corresponds to a specific transmit frequency and a specific transmit voltage. Among them, the transmit frequency specifically refers to the pulse width of the signal. Specifically, the specific values of the transmit frequency and transmit voltage in the transmit combination can be set according to various typical measurement scenarios and working conditions.
[0034] For each transmit combination, use the time-difference method and the Doppler method to perform ultrasonic transmission and the corresponding echo reception. Specifically, for any one transmit combination, use the time-difference method to perform ultrasonic transmission and receive the corresponding echo signal; use the Doppler method to perform ultrasonic transmission and receive the corresponding echo signal. Thus, for each transmit combination, the echo signal using the time-difference method and the echo signal using the Doppler method can be obtained.
[0035] Step 102: Based on the signal-to-noise ratios of the echo signals received using the time difference method for all transmission combinations, select the optimal transmission combination corresponding to the time difference method; based on the signal-to-noise ratios of the echo signals received using the Doppler method for all transmission combinations, select the optimal transmission combination corresponding to the Doppler method.
[0036] This step is used to select the optimal transmission combination. Since two different measurement methods, namely the time difference method and the Doppler method, are provided in this application, when selecting the optimal transmission combination, the optimal transmission combinations need to be selected separately for the two measurement methods.
[0037] Specifically, for all the echo signals received using the time difference method, calculate their signal-to-noise ratios, and based on the signal-to-noise ratio values under different transmission combinations, select the optimal transmission combination as the optimal transmission combination for the time difference method; for all the echo signals received using the Doppler method, calculate their signal-to-noise ratios, and based on the signal-to-noise ratio values under different transmission combinations, select the optimal transmission combination as the optimal transmission combination for the Doppler method. Among them, when selecting the optimal transmission combination based on the signal-to-noise ratio, it can be selected only according to the signal-to-noise ratio, or alternatively, the optimal transmission combination can be further selected based on the amplitude and / or bandwidth of the echo signal.
[0038] As described above, the corresponding optimal transmission combinations are selected respectively for the time difference method and the Doppler method.
[0039] Step 103: Based on the signal-to-noise ratio of the echo signals received by the time difference method and its corresponding optimal transmission combination and the signal-to-noise ratio of the echo signals received under the Doppler method and its corresponding optimal transmission combination, select the measurement method most suitable for the current working condition as the current measurement method.
[0040] This step is used to select the measurement method most suitable for the current working condition and use this measurement method as the current measurement method.
[0041] Among them, when selecting the measurement method, it is only carried out for the optimal transmission combination determined in Step 102. On the one hand, determine the signal-to-noise ratio of the echo signals received by the time difference method and its corresponding optimal transmission combination. For the sake of convenient expression, the signal-to-noise ratio will be hereinafter referred to as the first signal-to-noise ratio; on the other hand, determine the signal-to-noise ratio of the echo signals received under the Doppler method and its corresponding optimal transmission combination. For the sake of convenient expression, the signal-to-noise ratio will be hereinafter referred to as the second signal-to-noise ratio. Based on the first signal-to-noise ratio and the second signal-to-noise ratio determined above, select the measurement method most suitable for the current working condition.
[0042] Specifically, the selection basis based on the signal-to-noise ratio can be set according to the applicable scenarios of the existing time difference method and Doppler method. For example, when it is determined based on the first signal-to-noise ratio and the second signal-to-noise ratio that the current environment is suitable for using the time difference method (such as the first signal-to-noise ratio is greater than the set threshold), select the time difference method as the current measurement method, and in other cases, select the Doppler method as the current measurement method.
[0043] As described above, select the current measurement method suitable for the current working condition.
[0044] Step 104: Control a pair of transducers to perform ultrasonic transmission and echo reception according to the current measurement method and its corresponding optimal transmission combination, and calculate the flow velocity based on the received echo signal.
[0045] Through the processing of the above steps 102 and 103, the current measurement method suitable for the current working condition and its corresponding optimal transmission combination are selected. Next, in this step, the selected current measurement method and its corresponding optimal transmission combination can be directly used for ultrasonic transmission and echo reception, and the flow velocity calculation is completed based on the received echo signal.
[0046] In addition, the flow velocity can be calculated directly after receiving the echo signal. Or, before calculating the flow velocity, it is further possible to confirm again whether the signal-to-noise ratio of the echo signal meets the signal-to-noise ratio requirement of the current measurement method based on the echo signal received in step 104. If so, continue to perform the processing of calculating the flow velocity based on the echo signal, and thus end this round of flow velocity calculation. Since the signal-to-noise ratio meets the signal-to-noise ratio requirement of the current measurement method in this round of calculation, in the next round of flow velocity calculation, directly re-execute step 104 and still use the current measurement method; if the signal-to-noise ratio of the echo signal received in step 104 does not meet the signal-to-noise ratio requirement of the current measurement method, then no flow velocity calculation is performed in this round, and in the next round of flow velocity calculation, it is possible to return to step 101 to re-select the optimal transmission combination and the current measurement method.
[0047] So far, the basic process of the flow velocity measurement method in this application ends. Through the above method, on the one hand, the optimal transmission combination can be selected from the transmission combinations composed of various different transmission frequencies and transmission voltages, and the current measurement method suitable for the current working condition can be selected from different measurement methods, and then the flow velocity is calculated according to the current measurement method and its corresponding optimal transmission combination, so that it is possible to adaptively select the appropriate measurement method and transmission combination under various different working conditions, and ensure the accuracy of the flow velocity calculation in various different flow velocity measurement scenarios.
[0048] The following illustrates the specific implementation of the flow velocity measurement method of this application through specific embodiments.
[0049] Figure 2 It is a schematic diagram of the specific process of the flow velocity measurement method in a specific embodiment of this application. In this specific embodiment, a pair of transducers are installed opposite each other on the outer side of the liquid pipeline, and the installation example can also be as Figure 3 shown, which is the same as the transducer installation method of the existing time difference method. As Figure 2 shown, this method includes: Step 201: Control a pair of transducers to perform ultrasonic transmission and echo reception using the time difference method and the Doppler method according to the transmission combinations of a plurality of preset transmission frequencies and transmission voltages.
[0050] The setting of the transmission combinations in this step has been described in detail in Step 101 and will not be elaborated here.
[0051] The processing of ultrasonic transmission and echo reception using the time difference method and the Doppler method can be the same as the existing time difference method and Doppler method.
[0052] In addition, in the Doppler method, ultrasonic transmission and echo reception are completed by one transducer. However, when the pipe diameter increases, the attenuation of signal transmission will increase, which is not conducive to signal reception. Considering this situation, in this application, for pipes with a diameter less than or equal to the diameter threshold, one transducer can be used to complete ultrasonic transmission and echo reception, that is, the signal transmission and reception are still carried out in the existing manner; for pipes with a diameter greater than the diameter threshold, one transducer is used for ultrasonic transmission, and the other transducer is used for echo reception.
[0053] Step 202: Based on the signal-to-noise ratio, amplitude, and bandwidth of the echo signals received using the time difference method for all transmission combinations, select the optimal transmission combination corresponding to the time difference method; based on the signal-to-noise ratio, amplitude, and bandwidth of the echo signals received using the Doppler method for all transmission combinations, select the optimal transmission combination corresponding to the Doppler method.
[0054] In this embodiment, when selecting the optimal transmission combination, further selection is made based on the amplitude and bandwidth. Among them, preferably, the priority of the signal-to-noise ratio is greater than the priority of the amplitude, and the priority of the amplitude is greater than the priority of the bandwidth. That is to say, for different transmission combinations, select the transmission combination with the largest signal-to-noise ratio as the optimal transmission combination. When the signal-to-noise ratios are the same, select the transmission combination with the largest amplitude within the maximum amplitude limit range as the optimal transmission combination. When the signal-to-noise ratios and amplitudes are both the same (the amplitudes all meet the maximum amplitude limit range), select the transmission combination with the smallest bandwidth as the optimal transmission combination. Here, there is a maximum amplitude limit range for the amplitudes of the received echo signals. If the amplitude of the echo signal is too large, it is considered that the received echo signal is out of limit, and the corresponding transmission combination is no longer considered; in addition, the bandwidth of the echo signal usually increases. However, in the calculation of the flow velocity, when the bandwidth of the echo signal is closer to the bandwidth of the transmitted signal, the accuracy of the flow velocity calculation can be effectively improved, especially for the Doppler method. Therefore, the bandwidth is introduced as the basis for selecting the optimal transmission combination, and the smaller the bandwidth of the echo signal, the closer it is to the bandwidth of the transmitted signal, and the greater the possibility that the relevant transmission combination is used as the optimal transmission combination.
[0055] Through this step, the optimal transmission combination is selected based on the signal-to-noise ratio, amplitude, and bandwidth of the echo signals, and the optimal transmission combinations are selected for the time difference method and the Doppler method respectively.
[0056] Step 203: Determine the first signal-to-noise ratio (SNR) of the echo signals received by the time difference method and its corresponding optimal transmission combination, and the second SNR of the echo signals received by the Doppler method and its corresponding optimal transmission combination.
[0057] In this step, determining the SNRs of the two types of echo signals prepares for the selection of the measurement method.
[0058] In this embodiment, when selecting the measurement method, three measurement methods are provided: the time difference method, the Doppler method, and the combined measurement method. Among them, the time difference method and the Doppler method are the same as the existing methods, and the combined measurement method means: alternately using the time difference method and the Doppler method.
[0059] When selecting the three measurement methods, the time difference method is preferred, followed by the Doppler method, and finally the combined measurement method is selected. Specifically, when the first SNR meets the SNR requirement of the time difference method, determine the time difference method as the current measurement method; when the first SNR does not meet the SNR requirement of the time difference method and the second SNR meets the SNR requirement of the Doppler method, determine the Doppler method as the current measurement method; when the first SNR does not meet the SNR requirement of the time difference method and the second SNR also does not meet the SNR requirement of the Doppler method, determine the combined measurement method as the current measurement method.
[0060] Here, the SNR requirements of the time difference method and the Doppler method can be specifically set according to actual experience. For example, the SNR requirement of the time difference method can be that the SNR is greater than the set first SNR threshold A, and the SNR requirement of the Doppler method can be that the SNR is greater than the set second SNR threshold B.
[0061] In the above processing, when it is not obviously suitable for the time difference method and not obviously suitable for the Doppler method at present, the combined measurement method is adopted, that is, alternately using the time difference method and the Doppler method, and then determining the final value of the flow velocity based on the flow velocities calculated respectively from the received signals of the two methods.
[0062] In addition, considering possible extreme cases, when both the first signal-to-noise ratio and the second signal-to-noise ratio are very low and are completely unsuitable for flow velocity calculation, for example, when the first signal-to-noise ratio is less than the third signal-to-noise ratio threshold C and the second signal-to-noise ratio is less than the fourth signal-to-noise ratio threshold D, the flow velocity calculation for this round can be skipped, and the user can be notified that the current situation is not suitable for calculation. Then, step 201 can be returned to perform the next round of flow velocity calculation. Due to the existence of such extreme cases, optionally, the aforementioned condition for using the combined measurement method as the current measurement method can be further modified as follows: when the first signal-to-noise ratio is less than the first signal-to-noise ratio threshold and greater than or equal to the third signal-to-noise ratio threshold, and the second signal-to-noise ratio is less than the second signal-to-noise ratio threshold and greater than or equal to the fourth signal-to-noise ratio threshold, the combined measurement method is used as the current measurement method. In this embodiment, the subsequent processing of determining the current measurement method and flow velocity calculation is described by taking into account the above extreme cases as an example.
[0063] Next, the specific process of selecting the current measurement method and performing flow velocity measurement and calculation according to the current measurement method in this embodiment is continued.
[0064] Step 204, if the first signal-to-noise ratio is greater than or equal to the first signal-to-noise ratio threshold A, determine the time difference method as the current measurement method, and execute step 208.
[0065] The first signal-to-noise ratio being greater than or equal to the first signal-to-noise ratio threshold A means that the signal-to-noise ratio requirement of the time difference method is met, so it is selected.
[0066] Step 205, if the first signal-to-noise ratio is less than the first signal-to-noise ratio threshold A and the second signal-to-noise ratio is greater than or equal to the second signal-to-noise ratio threshold B, determine the Doppler method as the current measurement method, and execute step 211.
[0067] Step 206, if the first signal-to-noise ratio is less than the first signal-to-noise ratio threshold A and greater than or equal to the third signal-to-noise ratio threshold C, and the second signal-to-noise ratio is less than the second signal-to-noise ratio threshold B and greater than or equal to the fourth signal-to-noise ratio threshold D, determine the combined measurement method as the current measurement method, and execute step 214.
[0068] Under the condition of considering extreme processing cases, the first signal-to-noise ratio is less than the first threshold and greater than or equal to the third threshold, and the second signal-to-noise ratio is less than the second threshold and greater than or equal to the fourth threshold, which means that currently, it is not significantly suitable for the time difference method, nor is it significantly suitable for the Doppler method. At the same time, it does not belong to the situation where both the first signal-to-noise ratio and the second signal-to-noise ratio are too low, and the combined measurement method can be used for the flow velocity measurement of this round.
[0069] Step 207, if the first signal-to-noise ratio is less than the third signal-to-noise ratio threshold C and the second signal-to-noise ratio is less than the fourth signal-to-noise ratio threshold D, execute step 217.
[0070] The first signal-to-noise ratio is less than the third signal-to-noise ratio threshold C, and the second signal-to-noise ratio is less than the fourth signal-to-noise ratio threshold D, meeting the set extreme conditions and not being suitable for flow velocity measurement.
[0071] Step 208: Control a pair of transducers to perform ultrasonic transmission and echo reception according to the time difference method and its corresponding optimal transmission combination.
[0072] Determine the transmission frequency and transmission voltage based on the optimal transmission combination corresponding to the time difference method. According to the determined transmission frequency and transmission voltage, control a pair of transducers to perform N groups of ultrasonic transmission and echo reception. Among them, the processing of each group of ultrasonic transmission and echo reception may include: controlling the first transducer in a pair of transducers to transmit a first ultrasonic signal, and controlling the second transducer in the pair of transducers to receive a first echo signal corresponding to the first ultrasonic signal; controlling the second transducer to transmit a second ultrasonic signal after receiving the first echo signal, and controlling the first transducer to receive a second echo signal corresponding to the second ultrasonic signal; where N is a preset positive integer greater than or equal to 1.
[0073] When N = 1, it is the same as the processing of the existing time difference method. The two transducers each perform one transmission and reception, and each transducer performs one echo reception to obtain a set of data for flow velocity calculation; when N > 1, it is slightly different from the processing of the existing time difference method. The two transducers each perform multiple transmissions and receptions to obtain multiple sets of data for flow velocity calculation.
[0074] Step 209: Determine whether the signal-to-noise ratio of the echo signal received in step 208 is greater than or equal to the first signal-to-noise ratio threshold. If so, execute step 210; otherwise, return to step 201.
[0075] In this embodiment, after performing ultrasonic transmission and echo reception using the current measurement method and its corresponding optimal transmission combination, it is necessary to further review the signal-to-noise ratio of the echo signal to confirm whether it meets the signal-to-noise ratio requirements of the current measurement method, and then calculate the flow velocity on the premise of meeting the signal-to-noise ratio requirements. Based on this, this step is used to determine whether the signal-to-noise ratio of the echo signal received in step 208 meets the signal-to-noise ratio requirements of the time difference method, that is, to determine whether the signal-to-noise ratio is greater than or equal to the first signal-to-noise ratio threshold A.
[0076] Here, since there are multiple echo signals received in step 208, when calculating the signal-to-noise ratio, the signal-to-noise ratio of each echo signal can be calculated first and then averaged, and the average result is compared with the first signal-to-noise ratio threshold to determine whether it meets the signal-to-noise ratio requirements of the time difference method.
[0077] When the signal-to-noise ratio requirements of the time difference method are met, execute step 210 to calculate the flow velocity; when the signal-to-noise ratio requirements of the time difference method are not met, do not perform the current round of flow velocity calculation, return to step 201, perform the next round of flow velocity measurement, and re-determine the optimal transmission combination and the current measurement method.
[0078] Step 210: Calculate the flow velocity based on the echo signal received in Step 208, and return to Step 208.
[0079] If N = 1 in Step 208, calculate the flow velocity based on the two echo signals received by the two transducers, which is the same as the existing method; if N > 1 in Step 208, calculate the flow velocity once based on the echo signals received in each group of ultrasonic transmission and echo reception, and take the average of the N groups of flow velocity calculation results as the final flow velocity calculation result.
[0080] Step 211: Control the transducer to perform ultrasonic transmission and echo reception according to the Doppler method and its corresponding optimal transmission combination.
[0081] In this embodiment, when using the Doppler method for ultrasonic transmission and echo reception, different treatments are carried out based on different pipeline diameters.
[0082] Specifically, determine the transmission frequency and transmission voltage based on the optimal transmission combination corresponding to the Doppler method, and control the transducer to perform ultrasonic transmission and echo reception according to the determined transmission frequency and transmission voltage.
[0083] For a pipeline with a diameter less than or equal to the set diameter threshold, control one transducer to perform P times of ultrasonic transmission and echo reception, where P is a positive integer greater than 1; specifically, the processing of P times of ultrasonic transmission and echo reception is as follows: use a certain transducer X to perform one ultrasonic transmission, and then use this transducer X to perform the corresponding echo reception, so that one ultrasonic transmission and echo reception are completed; then use transducer X to perform another ultrasonic transmission, and use transducer X to perform the corresponding echo reception,..., and so on, repeating P times to complete P times of ultrasonic transmission and echo reception. It can be seen from the above processing that the processing of P times of ultrasonic transmission and echo reception is the same as the existing Doppler method.
[0084] For a pipeline with a diameter greater than the set diameter threshold, control a pair of transducers to perform P times of ultrasonic transmission and echo reception; specifically, the processing of P times of ultrasonic transmission and echo reception is as follows: use transducer X in a pair of transducers to perform one self-transmission and self-reception (that is, transducer X performs one ultrasonic transmission, and uses transducer X to perform the corresponding echo reception), and then use transducer Y to perform one self-transmission and self-reception, so that one ultrasonic transmission and echo reception are completed; repeat such ultrasonic transmission and echo reception P times.
[0085] Step 212: Determine whether the signal-to-noise ratio of the echo signal received in Step 211 is greater than or equal to the second signal-to-noise ratio threshold. If so, execute Step 213; otherwise, return to Step 201.
[0086] This step is used to determine whether the signal-to-noise ratio of the echo signal received in step 211 meets the signal-to-noise ratio requirement of the Doppler method.
[0087] Here, since there are multiple echo signals received in step 211, when calculating the signal-to-noise ratio, the signal-to-noise ratios of each echo signal can be calculated first and then averaged. The average result is compared with the second signal-to-noise ratio threshold B to determine whether it meets the signal-to-noise ratio requirement of the Doppler method.
[0088] When the signal-to-noise ratio requirement of the Doppler method is met, step 213 is executed to calculate the flow velocity; when the signal-to-noise ratio requirement of the Doppler method is not met, the flow velocity calculation for this round is not performed, and step 201 is returned to perform the next round of flow velocity measurement, and the optimal transmission combination and the current measurement method are re-determined.
[0089] Step 213, calculate the flow velocity based on the echo signal received in step 211, and return to step 211.
[0090] For pipes with a diameter less than or equal to the diameter threshold, the flow velocity is calculated according to the existing Doppler method.
[0091] For pipes with a diameter greater than the diameter threshold, during each ultrasonic transmission and echo reception, each of the two transducers performs one echo reception. The two echo signals received are saved separately. For each transducer, the P echo signal reception results of the transducer are used to calculate the flow velocity according to the existing Doppler method. Two flow velocities are calculated corresponding to the two transducers, and the final flow velocity on the pipe diameter cross-section is calculated based on the two flow velocity results. Specifically, when calculating the final flow velocity based on the two flow velocity results, the two flow velocities can be projected onto the entire pipe diameter cross-section to obtain the final average flow velocity of the cross-section. Here, when the pipe diameter is large, the flow velocity measurement of a single transducer may not cover the entire pipe diameter. First, the pipe diameter range that a single transducer can cover can be determined, and then the flow velocity of the entire pipe diameter cross-section is calculated based on the flow velocity calculation results of the two transducers and their respective covered pipe diameter ranges. This calculation process is called projection. Among them, the projection method can be designed according to the actual situation. For example, the average value of the two flow velocities can be taken; when determining the pipe diameter range covered by a single transducer, for example, the time information in the echo signal can be converted into distance to determine the covered pipe diameter range.
[0092] Step 214, control a pair of transducers to alternately use the time difference method and its corresponding optimal transmission combination and the Doppler method and its corresponding optimal transmission combination for ultrasonic transmission and echo reception.
[0093] This step uses the combined measurement method newly introduced in this application for ultrasonic transmission and echo reception.
[0094] In the combined measurement method, the time difference method and the Doppler method are alternately used for ultrasonic transmission and echo reception. Among them, when using the time difference method, it is carried out according to the optimal transmission combination corresponding to the time difference method, and when using the Doppler method, it is carried out according to the optimal transmission combination corresponding to the Doppler method.
[0095] More specifically, the time difference method can be carried out first and then the Doppler method, or the Doppler method can be carried out first and then the time difference method. The specific transmission and reception processing when using the time difference method is the same as that in step 208, and the specific transmission and reception processing when using the Doppler method is the same as that in step 211, which will not be elaborated here. Step 215: Calculate the first type of signal-to-noise ratio and the second type of signal-to-noise ratio based on the echo signal received in step 214, and determine whether the following conditions are met: the first type of signal-to-noise ratio is less than the first signal-to-noise ratio threshold and greater than or equal to the third signal-to-noise ratio threshold, and the second type of signal-to-noise ratio is less than the second signal-to-noise ratio threshold and greater than or equal to the fourth signal-to-noise ratio threshold. If so, execute step 216; otherwise, return to step 201.
[0096] This step is used to determine whether the signal-to-noise ratio of the echo signal received in step 214 meets the signal-to-noise ratio requirements of the combined measurement method.
[0097] Among them, the signal-to-noise ratio requirements of the combined measurement method in this embodiment are: the signal-to-noise ratio when using the time difference method is less than the first signal-to-noise ratio threshold A and greater than or equal to the third signal-to-noise ratio threshold C, and the signal-to-noise ratio when using the Doppler method is less than the second signal-to-noise ratio threshold B and greater than or equal to the fourth signal-to-noise ratio threshold D.
[0098] In step 214, the time difference method and the Doppler method are alternately used for ultrasonic transmission and echo reception. In this step, for the ultrasonic transmission and echo reception using the time difference method, the signal-to-noise ratio is calculated based on the received echo signal. The specific calculation method can be the same as the signal-to-noise ratio calculation method given in step 209, and this signal-to-noise ratio is called the first type of signal-to-noise ratio; for the ultrasonic transmission and echo reception using the Doppler method, the signal-to-noise ratio is calculated based on the received echo signal. The specific calculation method can be the same as the signal-to-noise ratio calculation method given in step 212, and this signal-to-noise ratio is called the second type of signal-to-noise ratio.
[0099] After calculating the first type of signal-to-noise ratio and the second type of signal-to-noise ratio, it is determined whether the two signal-to-noise ratios meet the signal-to-noise ratio requirements of the combined measurement method, that is, it is determined whether the following conditions are met: the first type of signal-to-noise ratio is less than the first signal-to-noise ratio threshold and greater than or equal to the third signal-to-noise ratio threshold, and the second type of signal-to-noise ratio is less than the second signal-to-noise ratio threshold and greater than or equal to the fourth signal-to-noise ratio threshold. When the above conditions are met, it is determined that the signal-to-noise ratio requirements of the combined measurement method are met, and step 216 can be executed for flow velocity calculation; when the above conditions are not met, it is determined that the signal-to-noise ratio requirements of the combined measurement method are not met, and the flow velocity calculation for this round is not carried out. Return to step 201 for the next round of flow velocity measurement, and re-determine the optimal transmission combination and the current measurement method.
[0100] Step 216: Calculate the flow velocity based on the echo signal received in step 214, and return to step 214.
[0101] There are two types of echo signals received in step 214. One is the echo signal received by the time difference method, and the other is the echo signal received by the Doppler method. When calculating the flow velocity based on these two echo signals, the first flow velocity can be calculated using the echo signal received by the time difference method. The specific calculation method can be the same as that in step 210, and the second flow velocity can be calculated using the echo signal received by the Doppler method. The specific calculation method can be the same as that in step 213; then calculate the final flow velocity result based on the first flow velocity and the second flow velocity.
[0102] Most simply, the weighted average of the first flow velocity and the second flow velocity can be directly used as the final flow velocity result; Alternatively, the present application provides a more preferred method for determining the flow velocity result: Judge whether the volatility of the flow velocity calculation result of the time difference method within the cumulative time based on the first flow velocity is less than or equal to the set volatility threshold. If so, use the first flow velocity as the flow velocity measurement result. That is to say, when the volatility of the flow velocity calculation result of the time difference method is small, the flow velocity calculation result of the time difference method is preferentially used as the flow velocity calculation result of the combined measurement method; otherwise: Judge whether the volatility of the calculation result obtained by calculating the flow velocity using the echo signal received by the Doppler method within the set cumulative time is less than or equal to the volatility threshold. If so, use the second flow velocity as the flow velocity measurement result of this round. That is to say, when the volatility of the flow velocity calculation result of the time difference method is large and the volatility of the Doppler calculation result is small, the flow velocity calculation result of the Doppler method is used as the flow velocity calculation result of the combined measurement method; otherwise, use the weighted average of the first flow velocity and the second flow velocity as the flow velocity measurement result. That is to say, when the volatility of the flow velocity calculation results of both the time difference method and the Doppler method is relatively large, the flow velocity calculation results of both methods are combined to determine the flow velocity calculation result of the combined measurement method.
[0103] The reason why the present application provides the above preferred method for calculating the flow velocity of the combined measurement method is mainly that usually, if a certain method is suitable for the current measurement scenario, the flow velocity calculation result should be stable within a certain period of time. The above method takes the time difference method as the priority. If the flow velocity calculation result of the time difference method is stable, it is considered that the time difference method is suitable for the current measurement scenario, and its flow velocity calculation result is directly used as the flow velocity result of the combined measurement method; when the flow velocity calculation result of the time difference method is unstable but the flow velocity calculation result of the Doppler method is stable, it is considered that the Doppler method is suitable for the current measurement scenario, and its flow velocity calculation result is directly used as the flow velocity result of the combined measurement method.
[0104] Of course, in addition to the above preferred time difference method, the Doppler method can also be preferentially selected. Specifically: Determine whether the volatility of the flow velocity calculation result of the Doppler method within the cumulative time based on the second flow velocity is less than or equal to the set volatility threshold. If so, use the second flow velocity as the flow velocity measurement result. That is to say, when the volatility of the flow velocity calculation result of the Doppler method is small, preferentially use the flow velocity calculation result of the Doppler method as the flow velocity calculation result of the combined measurement method; otherwise: Determine whether the volatility of the calculation result obtained by calculating the flow velocity using the echo signals received by the time difference method within the set cumulative time is less than or equal to the volatility threshold. If so, use the first flow velocity as the flow velocity measurement result for this round. That is to say, when the volatility of the flow velocity calculation result of the Doppler method is large and the volatility of the time difference method calculation result is small, use the flow velocity calculation result of the time difference method as the flow velocity calculation result of the combined measurement method; otherwise, use the weighted average of the first flow velocity and the second flow velocity as the flow velocity measurement result. That is to say, when the volatility of the flow velocity calculation results of both the time difference method and the Doppler method is large, determine the flow velocity calculation result of the combined measurement method by synthesizing the flow velocity calculation results of the two methods.
[0105] Step 217, notify the user that the flow velocity cannot be calculated, and return to step 201.
[0106] When the signal-to-noise ratios of both the time difference method and the Doppler method are small, do not perform the flow velocity measurement for this round. When performing the next round of flow velocity measurement, return to step 201 and re-select the optimal transmission combination and the current measurement method.
[0107] So far, the specific process of the flow velocity measurement method in the specific embodiment of this application ends.
[0108] Through the above specific implementation of this application, it can be seen that the flow velocity measurement method in this application can realize the application of the external clamp ultrasonic flowmeter under more complex working conditions, take into account the influence of different pipe diameters at the same time, and automatically select a more suitable transceiver control method for flow velocity measurement to achieve high-precision measurement of the flow velocity. After calculating the flow velocity through the above method, information such as flow rate and mass can be further calculated based on the flow velocity according to actual needs.
[0109] The above is the specific implementation of the flow velocity measurement method in this application. This application also provides a flow velocity measurement control device, which can be used to implement the flow velocity measurement method of this application. Figure 4 It is a schematic diagram of the basic structure of the flow velocity measurement control device in this application. As Figure 4 shown, the device includes: a transmission combination selection unit, a current measurement method selection unit, and a flow velocity measurement unit.
[0110] Among them, the emission combination selection unit is used to control a pair of transducers installed in a opposed manner outside the pipeline to perform ultrasonic emission and echo reception using the time difference method and the Doppler method according to a plurality of preset emission combinations of emission frequencies and emission voltages; it is also used to select the optimal emission combination corresponding to the time difference method based on the signal-to-noise ratio of the echo signals received by the pair of transducers when using the time difference method for all emission combinations; and select the optimal emission combination corresponding to the Doppler method based on the signal-to-noise ratio of the echo signals received by the pair of transducers when using the Doppler method for all emission combinations. The current measurement method selection unit is used to select the most suitable measurement method for the current working condition as the current measurement method based on the first signal-to-noise ratio of the echo signals received by the pair of transducers using the time difference method and its corresponding optimal emission combination and the second signal-to-noise ratio of the echo signals received under the Doppler method and its corresponding optimal emission combination. The flow velocity measurement unit is used to control the pair of transducers to perform ultrasonic emission and echo reception according to the current measurement method and its corresponding optimal emission combination, and calculate the flow velocity based on the echo signals received by the pair of transducers.
[0111] Optionally, in the flow velocity measurement unit: After performing ultrasonic emission and echo reception according to the current measurement method and its corresponding optimal emission combination and before calculating the flow velocity based on the received echo signals, further calculate the signal-to-noise ratio based on the echo signals received by the pair of transducers, and determine whether the calculated signal-to-noise ratio meets the signal-to-noise ratio requirement of the current measurement method. If so, continue to perform the process of calculating the flow velocity; otherwise, notify the emission combination selection unit and the current measurement method selection unit to respectively re-select the emission combination and the current measurement method. After calculating the flow velocity based on the received echo signals, re-execute the process of controlling the pair of transducers to use the current measurement method and its corresponding optimal emission combination to perform the ultrasonic emission and echo reception and the calculation of the flow velocity.
[0112] Optionally, in the current measurement method selection unit, the process of selecting the most suitable measurement method for the current working condition as the current measurement method may specifically include: When the first signal-to-noise ratio meets the signal-to-noise ratio requirement of the time difference method, select the time difference method as the current measurement method; When the first signal-to-noise ratio does not meet the signal-to-noise ratio requirement of the time difference method and the second signal-to-noise ratio meets the Doppler method requirement, select the Doppler method as the current measurement method; When the first signal-to-noise ratio does not meet the signal-to-noise ratio requirement of the time difference method and the second signal-to-noise ratio does not meet the Doppler method requirement, select the combined measurement method as the current measurement method; Among them, the combined measurement method includes: alternately using the time difference method and the Doppler method for ultrasonic transmission and echo reception. When using the time difference method, it is carried out according to the optimal transmission combination of the time difference method, and when using the Doppler method, it is carried out according to the optimal transmission combination of the Doppler method.
[0113] Optionally, the signal-to-noise ratio requirement of the time difference method is: greater than or equal to the first signal-to-noise ratio threshold; The signal-to-noise ratio requirement of the Doppler method is: greater than or equal to the second signal-to-noise ratio threshold.
[0114] Optionally, the flow velocity measurement unit can further be used to, when the first signal-to-noise ratio is less than the third signal-to-noise ratio threshold and the second signal-to-noise ratio is less than the fourth signal-to-noise ratio threshold, not perform the current round of flow velocity measurement, and notify the transmission combination selection unit and the current measurement method selection unit to respectively re-perform the transmission combination selection and the current measurement method selection; The signal-to-noise ratio requirement of the combined measurement method can be: the signal-to-noise ratio using the time difference method is less than the first signal-to-noise ratio threshold and greater than or equal to the third signal-to-noise ratio threshold, and the signal-to-noise ratio using the Doppler method is less than the second signal-to-noise ratio threshold and greater than or equal to the fourth signal-to-noise ratio threshold.
[0115] Optionally, in the flow velocity measurement unit, the process of controlling a pair of transducers to use the Doppler method for ultrasonic transmission and echo reception specifically can include: For the pipeline with a pipe diameter less than or equal to the set threshold, control one of the pair of transducers to repeat ultrasonic transmission and echo reception P times; For the pipeline with a pipe diameter greater than the set threshold, control the pair of transducers to repeat ultrasonic transmission and echo reception P times. Each time of ultrasonic transmission and echo reception includes: controlling the first transducer of the pair of transducers to perform one ultrasonic transmission and the corresponding echo reception, and using the second transducer of the pair of transducers to perform one ultrasonic transmission and the corresponding echo reception; where P is a preset positive integer greater than 1.
[0116] Optionally, in the flow velocity measurement unit: For a pipeline with a pipe diameter greater than the set threshold, when calculating the flow velocity based on the echo signal received by the Doppler method, for each transducer, calculate the flow velocity using the P echo signals received by this transducer to obtain the flow velocity calculation result of a single transducer, and calculate the flow velocity on the pipe diameter cross-section based on the flow velocity calculation results of the two transducers.
[0117] Optionally, in the flow velocity measurement unit, the process of calculating the flow velocity based on the echo signal received by the combined measurement method includes: Respectively use the echo signals received by the time difference method and the Doppler method to calculate the flow velocity; Determine whether the volatility of the calculation result obtained by calculating the flow velocity using the echo signals received by the first measurement method within the set cumulative time is less than or equal to the set volatility threshold. If so, use the first flow velocity obtained by calculating the flow velocity using the echo signals received by the first measurement method as the flow velocity measurement result; otherwise: Determine whether the volatility of the calculation result obtained by calculating the flow velocity using the echo signals received by the second measurement method within the set cumulative time is less than or equal to the set volatility threshold. If so, use the second flow velocity obtained by calculating the flow velocity using the echo signals received by the second measurement method as the flow velocity measurement result. Otherwise, use the weighted average of the first flow velocity and the second flow velocity as the flow velocity measurement result; Wherein, the first measurement method and the second measurement method are the time difference method and the Doppler method respectively, or the first measurement method and the second measurement method are the Doppler method and the time difference method respectively.
[0118] Optionally, in the transmission combination selection unit, when selecting the optimal transmission combination corresponding to the time difference method, it is further based on the amplitude and / or bandwidth of the echo signals received by the time difference method; and / or, In the transmission combination selection unit, when selecting the optimal transmission combination corresponding to the Doppler method, it is further based on the amplitude and / or bandwidth of the echo signals received by the time difference method.
[0119] Optionally, in the transmission combination selection unit, when selecting the optimal transmission combination, the priority of the signal-to-noise ratio is higher than the priority of the amplitude, and the priority of the amplitude is higher than the priority of the bandwidth.
[0120] This application also provides a computer-readable storage medium, which stores instructions that can execute the steps in the flow velocity measurement method as described above when executed by a processor. In practical applications, the computer-readable medium can be included in each device / device / system of the above embodiments, or can exist separately without being assembled into the device / device / system. Among them, instructions are stored in the computer-readable storage medium, and the stored instructions can execute the steps in the flow velocity measurement method as described above when executed by a processor.
[0121] According to the embodiments disclosed in the present application, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above, but is not used to limit the scope of protection of the present application. In the embodiments disclosed in the present application, the computer-readable storage medium may be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, device, or device.
[0122] Figure 5 The present application also provides an electronic device. As Figure 5 shown, it shows a schematic structural diagram of the electronic device involved in the embodiments of the present application. Specifically: The electronic device may include a processor 501 with one or more processing cores, a memory 502 with one or more computer-readable storage media, and a computer program stored in the memory and executable on the processor. When executing the program in the memory 502, the method for flow rate measurement can be implemented.
[0123] Specifically, in actual application, the electronic device may further include components such as a power supply 503 and an input / output unit 505. Those skilled in the art can understand that Figure 5 the structure of the electronic device shown in does not constitute a limitation to the electronic device, and it may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements. Among them:
[0124] The memory 502 can be used to store software programs and modules, that is, the above-mentioned computer-readable storage medium. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function, etc.; the data storage area can store data created according to the use of the server, etc. In addition, the memory 502 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 502 may further include a memory controller to provide the processor 501 with access to the memory 502.
[0125] The electronic device further includes a power supply 503 that powers each component, and can be logically connected to the processor 501 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 503 may further include any components such as one or more DC or AC power supplies, a recharge system, a power failure detection circuit, a power converter or inverter, and a power status indicator.
[0126] The electronic device may further include an input / output unit 504. The input / output unit 504 can be used to receive input digital or character information, and generate a keyboard, a mouse, a joystick, and an optical signal input related to user settings and function control. The input / output unit 504 can also be used to display information input by the user or information provided to the user, as well as various graphical user interfaces. These graphical user interfaces can be composed of graphics, text, icons, videos, and any combination thereof.
[0127] The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the scope of protection of the present invention.
Claims
1. A flow velocity measurement method, characterized in that, Including: Controlling a pair of transducers installed on the outer side of the pipeline in an opposed manner to perform ultrasonic transmission and echo reception using the time difference method and the Doppler method according to a plurality of preset transmission frequency and transmission voltage transmission combinations; Based on the signal-to-noise ratio of the echo signals received using the time difference method for all transmission combinations, selecting the optimal transmission combination corresponding to the time difference method; based on the signal-to-noise ratio of the echo signals received using the Doppler method for all transmission combinations, selecting the optimal transmission combination corresponding to the Doppler method; Based on the first signal-to-noise ratio of the echo signals received under the time difference method and its corresponding optimal transmission combination and the second signal-to-noise ratio of the echo signals received under the Doppler method and its corresponding optimal transmission combination, selecting the measurement method most suitable for the current working condition as the current measurement method; Controlling the pair of transducers to perform ultrasonic transmission and echo reception according to the current measurement method and its corresponding optimal transmission combination, and calculating the flow velocity based on the received echo signals.
2. The method according to claim 1, wherein After controlling the pair of transducers to perform ultrasonic transmission and echo reception according to the current measurement method and its corresponding optimal transmission combination and before calculating the flow velocity based on the received echo signals, the method further includes: calculating the signal-to-noise ratio based on the received echo signals, determining whether the calculated signal-to-noise ratio meets the signal-to-noise ratio requirement of the current measurement method, if so, continuing to perform the process of calculating the flow velocity, otherwise, re-executing this method; After calculating the flow velocity based on the received echo signals, the method further includes: re-executing the process of controlling the pair of transducers to use the current measurement method and its corresponding optimal transmission combination to perform the ultrasonic transmission and echo reception and the calculation of the flow velocity.
3. The method according to claim 1 or 2, characterized in that, The selecting the measurement method most suitable for the current working condition as the current measurement method includes: When the first signal-to-noise ratio meets the signal-to-noise ratio requirement of the time difference method, selecting the time difference method as the current measurement method; When the first signal-to-noise ratio does not meet the signal-to-noise ratio requirement of the time difference method and the second signal-to-noise ratio meets the requirement of the Doppler method, selecting the Doppler method as the current measurement method; When the first signal-to-noise ratio does not meet the signal-to-noise ratio requirement of the time difference method and the second signal-to-noise ratio does not meet the signal-to-noise ratio requirement of the Doppler method, selecting the combined measurement method as the current measurement method; Wherein, the combined measurement method includes: alternately using the time difference method and the Doppler method to perform ultrasonic transmission and echo reception, using the optimal transmission combination of the time difference method when using the time difference method, and using the optimal transmission combination of the Doppler method when using the Doppler method.
4. The method according to claim 3, wherein The signal-to-noise ratio requirement of the time difference method is: greater than or equal to a first signal-to-noise ratio threshold; The signal-to-noise ratio requirement of the Doppler method is: greater than or equal to a second signal-to-noise ratio threshold.
5. The method according to claim 4, wherein The method further includes: when the first signal-to-noise ratio is less than a third signal-to-noise ratio threshold and the second signal-to-noise ratio is less than a fourth signal-to-noise ratio threshold, not performing the current round of flow velocity measurement, and re-executing this method for the next round of flow velocity measurement; The signal-to-noise ratio requirement of the combined measurement method is: the signal-to-noise ratio when using the time difference method is less than the first signal-to-noise ratio threshold and greater than or equal to the third signal-to-noise ratio threshold, and the signal-to-noise ratio when using the Doppler method is less than the second signal-to-noise ratio threshold and greater than or equal to the fourth signal-to-noise ratio threshold.
6. The method according to claim 1, characterized in that, The processing of ultrasonic transmission and echo reception using the Doppler method includes: For the pipeline with a pipe diameter less than or equal to the set threshold, control one of the pair of transducers to repeat ultrasonic transmission and echo reception P times; For the pipeline with a pipe diameter greater than the set threshold, control the pair of transducers to repeat ultrasonic transmission and echo reception P times. Each ultrasonic transmission and echo reception includes: controlling the first transducer in the pair of transducers to perform one ultrasonic transmission and the corresponding echo reception, and using the second transducer in the pair of transducers to perform one ultrasonic transmission and the corresponding echo reception; where P is a preset positive integer greater than 1.
7. The method according to claim 6, wherein For the pipeline with a pipe diameter greater than the set threshold, when calculating the flow velocity based on the echo signal received by the Doppler method, for each transducer, calculate the flow velocity using the P echo signals received by this transducer to obtain the flow velocity calculation result of a single transducer, and calculate the flow velocity across the pipe diameter section based on the flow velocity calculation results of the two transducers.
8. The method according to claim 1, characterized in that The processing of calculating the flow velocity based on the echo signal received by the combined measurement method includes: Calculate the flow velocity using the echo signals received by the time difference method and the Doppler method respectively; Judge whether the volatility of the calculation result obtained by calculating the flow velocity using the echo signal received by the first measurement method within the set cumulative time is less than or equal to the set volatility threshold. If so, use the first flow velocity obtained by calculating the flow velocity using the echo signal received by the first measurement method as the flow velocity measurement result; otherwise: Judge whether the volatility of the calculation result obtained by calculating the flow velocity using the echo signal received by the second measurement method within the set cumulative time is less than or equal to the set volatility threshold. If so, use the second flow velocity obtained by calculating the flow velocity using the echo signal received by the second measurement method as the flow velocity measurement result. Otherwise, use the weighted average of the first flow velocity and the second flow velocity as the flow velocity measurement result; Wherein, the first measurement method and the second measurement method are the time difference method and the Doppler method respectively, or the first measurement method and the second measurement method are the Doppler method and the time difference method respectively.
9. The method according to claim 1, characterized in that When selecting the optimal transmission combination corresponding to the time difference method, it is further based on the amplitude and / or bandwidth of the echo signal received by the time difference method; And / or When selecting the optimal transmission combination corresponding to the Doppler method, it is further based on the amplitude and / or bandwidth of the echo signal received by the time difference method.
10. The method according to claim 9, characterized in that, When selecting the optimal transmission combination, the priority of the signal-to-noise ratio is higher than the priority of the amplitude, and the priority of the amplitude is higher than the priority of the bandwidth.
11. A flow velocity measurement and control device, characterized in that, It includes: A transmission combination selection unit, a current measurement method selection unit, and a flow velocity measurement unit; The emission combination selection unit is used to control a pair of transducers installed opposite each other on the outer side of the pipeline to perform ultrasonic emission and echo reception using the time difference method and the Doppler method according to the emission combinations of multiple preset emission frequencies and emission voltages; it is also used to select the optimal emission combination corresponding to the time difference method based on the signal-to-noise ratio of the echo signals received by the pair of transducers when using the time difference method for all emission combinations; and to select the optimal emission combination corresponding to the Doppler method based on the signal-to-noise ratio of the echo signals received by the pair of transducers when using the Doppler method for all emission combinations. The current measurement method selection unit is used to select the most suitable measurement method for the current working condition as the current measurement method based on the first signal-to-noise ratio of the echo signals received by the pair of transducers using the time difference method and its corresponding optimal emission combination and the second signal-to-noise ratio of the echo signals received by the pair of transducers using the Doppler method and its corresponding optimal emission combination. The flow velocity measurement unit is used to control the pair of transducers to perform ultrasonic emission and echo reception according to the current measurement method and its corresponding optimal emission combination, and calculate the flow velocity based on the echo signals received by the pair of transducers.
12. The device according to claim 11, wherein In the flow velocity measurement unit: After performing ultrasonic emission and echo reception according to the current measurement method and its corresponding optimal emission combination and before calculating the flow velocity based on the received echo signals, further calculate the signal-to-noise ratio based on the echo signals received by the pair of transducers, and determine whether the calculated signal-to-noise ratio meets the signal-to-noise ratio requirement of the current measurement method. If so, continue to perform the process of calculating the flow velocity; otherwise, notify the emission combination selection unit and the current measurement method selection unit to re-select the emission combination and the current measurement method respectively. After calculating the flow velocity based on the received echo signals, re-perform the process of controlling the pair of transducers to use the current measurement method and its corresponding optimal emission combination to perform the ultrasonic emission and echo reception and the calculation of the flow velocity.
13. The device according to claim 11 or 12, characterized in that, In the current measurement method selection unit, the selection of the most suitable measurement method for the current working condition as the current measurement method includes: When the first signal-to-noise ratio meets the signal-to-noise ratio requirement of the time difference method, select the time difference method as the current measurement method. When the first signal-to-noise ratio does not meet the signal-to-noise ratio requirement of the time difference method and the second signal-to-noise ratio meets the requirement of the Doppler method, select the Doppler method as the current measurement method. When the first signal-to-noise ratio does not meet the signal-to-noise ratio requirement of the time difference method and the second signal-to-noise ratio does not meet the requirement of the Doppler method, select the combined measurement method as the current measurement method. Among them, the combined measurement method includes: alternately using the time difference method and the Doppler method for ultrasonic emission and echo reception, using the optimal emission combination of the time difference method when using the time difference method, and using the optimal emission combination of the Doppler method when using the Doppler method.
14. The device according to claim 13, characterized in that, The signal-to-noise ratio requirement of the time difference method is: greater than or equal to the first signal-to-noise ratio threshold. The signal-to-noise ratio requirement of the Doppler method is: greater than or equal to the second signal-to-noise ratio threshold.
15. The device according to claim 14, characterized in that, The flow velocity measurement unit is further configured to, when the first signal-to-noise ratio is less than the third signal-to-noise ratio threshold and the second signal-to-noise ratio is less than the fourth signal-to-noise ratio threshold, not perform the current round of flow velocity measurement, and notify the transmission combination selection unit and the current measurement method selection unit to respectively re-perform transmission combination selection and current measurement method selection; The signal-to-noise ratio requirements of the combined measurement method are as follows: the signal-to-noise ratio using the time difference method is less than the first signal-to-noise ratio threshold and greater than or equal to the third signal-to-noise ratio threshold, and the signal-to-noise ratio using the Doppler method is less than the second signal-to-noise ratio threshold and greater than or equal to the fourth signal-to-noise ratio threshold.
16. The device according to claim 11, characterized in that, In the flow velocity measurement unit, the process of controlling the pair of transducers to perform ultrasonic transmission and echo reception using the Doppler method includes: For the pipeline with a pipe diameter less than or equal to the set threshold, control one of the pair of transducers to repeat ultrasonic transmission and echo reception P times; For the pipeline with a pipe diameter greater than the set threshold, control the pair of transducers to repeat ultrasonic transmission and echo reception P times. Each ultrasonic transmission and echo reception includes: controlling the first transducer of the pair of transducers to perform one ultrasonic transmission and the corresponding echo reception, and using the second transducer of the pair of transducers to perform one ultrasonic transmission and the corresponding echo reception; where P is a preset positive integer greater than 1.
17. The device according to claim 16, wherein, In the flow velocity measurement unit: For the pipeline with a pipe diameter greater than the set threshold, when calculating the flow velocity based on the echo signal received by the Doppler method, for each transducer, calculate the flow velocity using the P echo signals received by the transducer to obtain the flow velocity calculation result of a single transducer, and calculate the flow velocity across the pipe diameter section based on the flow velocity calculation results of the two transducers.
18. The device according to claim 11, wherein In the flow velocity measurement unit, the process of calculating the flow velocity based on the echo signal received by the combined measurement method includes: Respectively calculate the flow velocity using the echo signals received by the time difference method and the Doppler method; Judge whether the volatility of the calculation result obtained by calculating the flow velocity using the echo signal received by the first measurement method within the set cumulative time is less than or equal to the set volatility threshold. If so, use the first flow velocity obtained by calculating the flow velocity using the echo signal received by the first measurement method as the flow velocity measurement result; otherwise: Judge whether the volatility of the calculation result obtained by calculating the flow velocity using the echo signal received by the second measurement method within the set cumulative time is less than or equal to the set volatility threshold. If so, use the second flow velocity obtained by calculating the flow velocity using the echo signal received by the second measurement method as the flow velocity measurement result. Otherwise, use the weighted average of the first flow velocity and the second flow velocity as the flow velocity measurement result; Wherein, the first measurement method and the second measurement method are the time difference method and the Doppler method respectively, or the first measurement method and the second measurement method are the Doppler method and the time difference method respectively.
19. The device according to claim 11, characterized in that, In the transmission combination selection unit, when selecting the optimal transmission combination corresponding to the time difference method, it is further based on the amplitude and / or bandwidth of the echo signal received by the time difference method; and / or In the transmission combination selection unit, when selecting the optimal transmission combination corresponding to the Doppler method, it is further based on the amplitude and / or bandwidth of the echo signal received by using the time difference method.
20. The device according to claim 19, characterized in that, In the selection unit of the transmission combination, when selecting the optimal transmission combination, the priority of the signal-to-noise ratio is higher than the priority of the amplitude, and the priority of the amplitude is higher than the priority of the bandwidth.
21. A computer-readable storage medium having computer instructions stored thereon, characterized in that, When the instruction is executed by the processor, it can implement the flow velocity measurement method according to any one of claims 1 to 10.
22. An electronic device, characterized in that, The electronic device includes at least a computer-readable storage medium and also includes a processor; The processor is configured to read an executable instruction from the computer-readable storage medium and execute the instruction to implement the flow velocity measurement method according to any one of claims 1 to 10 above.
Citation Information
Patent Citations
Ultrasonic flow meter system and method
CN105737916A
Method and device for adjusting parameters of ultrasonic time-difference flow measurement equipment
CN118226075A
Ultrasonic flowmeter and ultrasonic flow rate measurement method
CN1926407A
Ultrasonic flow meter
JP2014182004A
Behavior measurement method of fluid by mesh-like ultrasonic wave
JP2021047163A