A method for measuring the propagation time of ultrasonic flowmeters for wet gas measurement

Through the cross-correlation operation after normalizing and extracting the main envelope signal, the accuracy of the ultrasonic flowmeter propagation time measurement under moisture is solved, and high-precision moisture measurement is achieved, avoiding the wrong wave phenomenon.

CN114252115BActive Publication Date: 2024-11-12TIANJIN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111574302.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-21
Publication Date
2024-11-12
Estimated Expiration
2041-12-21

AI Technical Summary

Technical Problem

When measuring moisture, the propagation time measurement of existing ultrasonic flowmeters is inaccurate due to the presence of the liquid phase, resulting in error wave problems, and a stable propagation time cannot be obtained.

Method used

By normalizing the ultrasonic reception signal, extracting the main envelope signal, determining the reference signal and performing cross-correlation operations, the ultrasonic propagation time is calculated to effectively avoid the occurrence of wrong waves. The specific steps include: normalizing the ultrasonic receiving signal, finding a new average signal, extracting the main envelope of the ultrasonic receiving signal, determining the reference signal, and performing cross-correlation operations to calculate the ultrasonic propagation time.

Benefits of technology

It realizes the accurate calculation of ultrasonic propagation time in moisture measurement with different volumes of liquid content, improves the measurement accuracy of ultrasonic flowmeter under moisture, avoids errors, and has high repetition of measurement results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114252115B_ABST
    Figure CN114252115B_ABST
Patent Text Reader

Abstract

The invention relates to a method for measuring propagation time of an ultrasonic flowmeter for measuring wet gas, comprising the following steps: step 1: obtaining a normalized ultrasonic receiving signal; obtaining a new average signal; extracting the main envelope of the ultrasonic receiving signal: searching all peak points of the average signal obtained in step 2, and finding all minimum value points in the peak points; selecting a sampling point interval, setting a threshold, and judging the slope of the line connecting two adjacent peak points in the interval in turn, when the slope changes from negative to positive, and the absolute values ​​of the two slopes are both greater than the set threshold, the corresponding minimum value point here is called the intersection of the main envelope and the second envelope; setting all sampling point values ​​after the intersection to 0, and forming the main envelope signal together with all sampling point values ​​before the intersection for subsequent cross-correlation operation; determining a reference signal; cross-correlation operation; and calculating the ultrasonic propagation time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of flow measurement and relates to a method for measuring propagation time of an ultrasonic flow meter used for wet gas measurement. Background Art

[0002] In the field of process industry, gas-liquid two-phase flow is a common flow form. When the gas phase is a continuous phase and the liquid phase is a discrete phase with a low content, there is a special form - wet gas. According to the definition of the International Organization for Standardization, gas-liquid two-phase flow with a volumetric gas content greater than 95% is generally called wet gas. Ultrasonic flowmeters have been widely used in the measurement of dry gas flow due to their advantages such as high measurement accuracy, wide range ratio, and no pressure loss. The accurate measurement of propagation time is the key to ensuring the measurement accuracy of ultrasonic flowmeters. At present, there are many methods for measuring propagation time under dry gas, such as double threshold method, cross-correlation method, model method, etc., but these methods cannot achieve good results when applied to the processing of wet gas acoustic wave signals. The reason is that the presence of liquid phase in wet gas makes the flow in the pipeline complex. Depending on the volumetric liquid content, there will be flow types such as stratified flow, wavy flow, and annular flow, which will not only cause severe attenuation of ultrasonic propagation, but also cause the acoustic wave signal to fluctuate violently, thereby generating wrong waves, and it is impossible to obtain a stable propagation time. Summary of the invention

[0003] The present invention provides a method for measuring the propagation time of an ultrasonic flowmeter suitable for wet gas measurement, by which ultrasonic signals at different volume liquid contents in wet gas can be processed to effectively avoid the occurrence of wrong waves. The technical solution is as follows:

[0004] A method for measuring the propagation time of an ultrasonic flow meter for wet gas measurement comprises the following steps:

[0005] Step 1: Get the normalized ultrasonic receiving signal: Fix the gas ultrasonic flowmeter on the wet gas measurement pipeline, sample the ultrasonic receiving signal, search for the maximum peak value of the collected ultrasonic receiving signal, and calculate the normalized ultrasonic receiving signal for each sampling signal point u. i Normalize according to the maximum peak value to obtain the normalized ultrasonic receiving signal u ni .

[0006] Step 2: Obtain a new average signal: Set a continuous time period and calculate the normalized ultrasonic receiving signal u in each continuous time period. ni Take the average in the time domain to get a new average signal

[0007] Step 3: Extract the main envelope of the ultrasonic receiving signal: Search for the average signal obtained in step 2 all the peak points of the main envelope and find all the minimum points in the peak points; select a sampling point interval, set a threshold, and judge the slopes of the lines connecting two adjacent peak points in the interval in turn. When the slope changes from negative to positive and the absolute values ​​of the two slopes are both greater than the set threshold, the corresponding minimum point here is called the intersection of the main envelope and the second envelope; all the sampling point values ​​after the intersection are set to 0, and together with all the sampling point values ​​before the intersection, they constitute the main envelope signal for subsequent cross-correlation operations.

[0008] Step 4: Determine the reference signal: Process the ultrasonic receiving signal in static state according to steps 1, 2, and 3 to obtain the main envelope signal of the ultrasonic receiving signal in static state, calculate the ratio of the sound path to the sound speed to obtain the theoretical propagation time, and shift the signal time series of the ultrasonic receiving signal in static state to the time zero according to the theoretical propagation time as the reference signal for the cross-correlation operation.

[0009] Step 5: Cross-correlation operation: Process the ultrasonic receiving signal under moist air flow according to steps 1, 2, and 3 to obtain the main envelope signal of the ultrasonic receiving signal under moist air flow, and perform cross-correlation operation on this signal with the reference signal determined in step 4. The sampling point number N corresponding to the maximum value of the cross-correlation function corresponds to the ultrasonic propagation time.

[0010] Step 6: Calculate the ultrasonic wave propagation time. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 Schematic diagram of extracting the main envelope signal

[0012] Figure 2 Schematic diagram of obtaining reference signal by static signal translation DETAILED DESCRIPTION

[0013] Taking the DN50 dual-channel gas ultrasonic flowmeter as an example, combined with the steps and methods in the technical solution, the parameter settings and implementation methods of each step are given. The measurement system uses the MSP430FR6047 microcontroller as the main controller to generate the signal to excite the ultrasonic transducer, and at the same time controls the high-speed analog switch to achieve the switching of the two channels. The NI6110 high-speed data acquisition card is used to sample the amplified and filtered ultrasonic receiving signal, and the sampling frequency is 4MHz. The specific steps are as follows:

[0014] Step 1: Normalization.

[0015] When the microcontroller outputs the excitation signal, the high-speed data acquisition card is triggered to sample the signal. The sampling stops when 6000 points are collected. After sorting the sampling points, the maximum value U is found. i Press U to normalize:

[0016]

[0017] i is the sampling point number, where i = 1, 2, ..., 6000.

[0018] Step 2: Statistical average.

[0019] The 200 ultrasonic receiving signals normalized in step 1 are averaged at each sampling point to obtain a new average signal.

[0020]

[0021] m is the received signal sequence number, k is the number of received signals, and here k=200.

[0022] Step 3: Extract the main envelope of the received signal.

[0023] like Figure 1 As shown, according to steps one and two, a normalized average signal is obtained. By searching for all the peak points of the 6000 sampling points of the signal, all the minimum points among the peak points can be found according to the slope of the line connecting the adjacent peak points changing from negative to positive.

[0024] The 6000 sampling points are roughly divided into three parts. The signals before the 2000th sampling point are mostly noise signals felt by the ultrasonic transducer, and their extreme points are meaningless. The signals from the 2000th to 4000th sampling points contain the entire process of the transducer starting to oscillate, accumulate energy, and decay freely after receiving the sound wave signal. The signals from the 4000th to 6000th sampling points are mainly residual vibration signals generated by multiple reflections of the sound wave on the backing of the transducer. Therefore, all extreme points in the interval i∈[2000,4000] are searched again. When the slope of the line connecting the adjacent peak points changes from negative to positive, and the absolute values ​​of the two slopes are both large, the extreme point corresponding to this location is the intersection of the main envelope and the secondary envelope.

[0025] All sampling point values ​​after the intersection are set to 0 to obtain the main envelope signal.

[0026] Step 4: Determine the reference signal.

[0027] Before measuring the wet medium, the ultrasonic receiving signal of pure air in static state needs to be sampled, and the signal is processed according to steps 1, 2, and 3 to obtain the main envelope signal in static state (such as Figure 2 ).

[0028] According to the actual sound path of the DN50 gas ultrasonic flowmeter and the theoretical sound speed in the air, the sound propagation time in static state can be calculated. According to the sampling frequency of 4MHz, the number of sampling points corresponding to the propagation time can be obtained. After calculation, the number of sampling points corresponding to the sound channel propagation time is 2400.

[0029] Will Figure 2 The static main envelope signal in is shifted forward 2400 points to obtain the reference signal.

[0030] Step 5: Cross-correlation operation.

[0031] By conducting experiments under different gas phase apparent flow rates and volume liquid contents of wet gas, ultrasonic receiving signals under various working conditions can be obtained. Each signal is processed according to steps one, two, and three, and the ultrasonic main envelope signal under the flow state is cross-correlated with the reference signal determined in step four. The sampling point number N corresponding to the maximum value of the cross-correlation function corresponds to the ultrasonic wave propagation time.

[0032] Step 6: Calculate the ultrasonic wave propagation time.

[0033] According to the signal sampling frequency of 4MHz, the time interval between each sampling point is Δt = 0.25us, so the ultrasonic propagation time t is:

[0034] t=N×Δt.

[0035] In order to verify the accuracy of the method for ultrasonic flowmeter flow measurement under wet gas, a comparative experiment with the commonly used double threshold method under dry gas was designed. The NI6110 data acquisition board was controlled by Labview to sample ultrasonic signals under nine wet gas conditions with a gas phase apparent velocity of 10 m / s and a volume liquid content of 0.2%, 0.4%, 0.6%, 0.8%, 1%, 2%, 3%, 4% and 5%, respectively. The collected received signals were calculated using the double threshold method and the main envelope cross-correlation method based on statistical averaging of the present invention for ultrasonic forward and reverse flow propagation times, and the signals were substituted into the ultrasonic flow calculation formula to obtain the flow velocity calculation results shown in Table 1.

[0036] Table 1 Measurement results of two methods at different volume liquid contents

[0037]

[0038]

[0039] Theoretically, at the same gas phase apparent flow rate, as the volume liquid content increases, the measured gas phase flow rate should show a trend of gradually increasing. In Table 1, the double threshold method shows a law of decreasing flow rate or basically unchanged flow rate when the volume liquid content is greater than or equal to 1%, which is inconsistent with the theoretical analysis. This is because the ultrasonic signal is severely attenuated under high liquid content, resulting in wrong waves. The main envelope cross-correlation method based on statistical averaging proposed in the present invention has a correct trend in the results, and the repeatability of the flow rate measurement results under various working conditions is calculated to be within 0.5%, indicating that the present invention can solve the problem of wrong waves of ultrasonic flow meters under wet gas and has high accuracy.

Claims

1. A method for measuring the propagation time of an ultrasonic flow meter for wet gas measurement, comprising the following steps: Step 1: Get the normalized ultrasonic receiving signal: Fix the gas ultrasonic flowmeter on the wet gas measurement pipeline, sample the ultrasonic receiving signal, search for the maximum peak value of the collected ultrasonic receiving signal, and calculate the normalized ultrasonic receiving signal for each sampling signal point u. i Normalize according to the maximum peak value to obtain the normalized ultrasonic receiving signal u ni; Step 2: Obtain a new average signal: Set a continuous time period and calculate the normalized ultrasonic receiving signal u in each continuous time period. ni Take the average in the time domain to get a new average signal Step 3: Extract the main envelope of the ultrasonic receiving signal: Search for the average signal obtained in step 2 all the peak points of the main envelope and find all the minimum points in the peak points; select a sampling point interval, set a threshold, and judge the slopes of the lines connecting two adjacent peak points in the interval in turn. When the slope changes from negative to positive and the absolute values ​​of the two slopes are both greater than the set threshold, the corresponding minimum point here is called the intersection of the main envelope and the second envelope; all the sampling point values ​​after the intersection are set to 0, and together with all the sampling point values ​​before the intersection, they constitute the main envelope signal for subsequent cross-correlation operations; Step 4: Determine the reference signal: Process the ultrasonic receiving signal in static state according to steps 1, 2 and 3 to obtain the main envelope signal of the ultrasonic receiving signal in static state, calculate the ratio of the sound path to the sound speed to obtain the theoretical propagation time, and translate the signal time series of the ultrasonic receiving signal in static state to the time zero according to the theoretical propagation time as the reference signal for the cross-correlation operation; Step 5: cross-correlation operation: according to steps 1, 2, and 3, the ultrasonic receiving signal under the flow of moisture is processed to obtain the main envelope signal of the ultrasonic receiving signal under the flow of moisture, and the signal is cross-correlated with the reference signal determined in step 4, and the sampling point number N corresponding to the maximum value of the cross-correlation function corresponds to the ultrasonic propagation time; Step 6: Calculate the ultrasonic wave propagation time.