CN111220222A - Measuring algorithm for flow of ultrasonic gas meter - Google Patents

Measuring algorithm for flow of ultrasonic gas meter Download PDF

Info

Publication number
CN111220222A
CN111220222A CN202010124521.3A CN202010124521A CN111220222A CN 111220222 A CN111220222 A CN 111220222A CN 202010124521 A CN202010124521 A CN 202010124521A CN 111220222 A CN111220222 A CN 111220222A
Authority
CN
China
Prior art keywords
estimated value
model
correlation curve
gas meter
cross
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010124521.3A
Other languages
Chinese (zh)
Other versions
CN111220222B (en
Inventor
刘勋
朱炼
李中华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Qianjia Technology Co Ltd
Original Assignee
Chengdu Qianjia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Qianjia Technology Co Ltd filed Critical Chengdu Qianjia Technology Co Ltd
Priority to CN202010124521.3A priority Critical patent/CN111220222B/en
Publication of CN111220222A publication Critical patent/CN111220222A/en
Application granted granted Critical
Publication of CN111220222B publication Critical patent/CN111220222B/en
Priority to AU2021201596A priority patent/AU2021201596B2/en
Priority to PCT/CN2021/077137 priority patent/WO2021169883A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F1/00Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow
    • G01F1/66Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow by measuring frequency, phase shift or propagation time of electromagnetic or other waves, e.g. using ultrasonic flowmeters
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/14Fourier, Walsh or analogous domain transformations, e.g. Laplace, Hilbert, Karhunen-Loeve, transforms
    • G06F17/141Discrete Fourier transforms

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Algebra (AREA)
  • Discrete Mathematics (AREA)
  • Electromagnetism (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Fluid Mechanics (AREA)
  • Measuring Volume Flow (AREA)

Abstract

An algorithm for measuring the flow of an ultrasonic gas meter comprises the following steps: (A) inputting an upward flight signal and a downward flight signal, and performing Fourier transform on the 2 signals; (B) calculating the frequency spectrum of the cross-correlation curve; (C) performing inverse Fourier transform on the frequency spectrum of the cross-correlation curve to obtain the cross-correlation curve, searching for two points adjacent to the position of a peak point and the position of the peak point on the curve through a maximum value, and obtaining an estimated value of a first model by utilizing a parabolic estimation function; (D) after the cross-correlation curve is subjected to Hilbert transform, calculating an estimated value of a second model by using a linear interpolation function; (E) calculating an estimated value of the model combination according to the estimated values of the 2 models; (F) and respectively selecting an adaptive delay filter or a wave reduction method for further accurate estimation according to the comparison condition of the model combination estimated value and the sampling period. The invention can obtain good accuracy for small flow estimation in a time domain or a wave number domain, and the stability of a calculation result is high.

Description

Measuring algorithm for flow of ultrasonic gas meter
Technical Field
The invention relates to the field of ultrasonic flight time calculation, in particular to a flow measurement algorithm of an ultrasonic gas meter.
Background
The ultrasonic gas meter has the advantages of non-contact measurement, no movable part, no pressure loss, extremely high measurement precision and the like, and is a research hotspot in the field of gas measurement. The metering principle of the ultrasonic gas meter is that the instantaneous flow is estimated by utilizing the difference of the time of ultrasonic waves in the forward flow direction and the backward flow direction. The estimation of the surface average flow velocity is governed primarily by the time difference Δ T between the time of flight up and the time of flight down, without considering that the speed of sound is influenced by the environment within the pipe. Limited by the performance of the ultrasonic transducer and the hardware cost, accurate estimation of Δ T cannot rely solely on increasing the sampling density to the target granularity. Therefore, it is necessary to complete accurate estimation of Δ T by numerical calculation at a low sampling frequency.
The existing delay estimation technical routes mainly have three types: the first category is in the time domain, which is based mainly on the fact that the cross-correlation function of the ultrasonic signals conforms to a certain assumed distribution, such as gaussian distribution, parabolic distribution, triangular distribution, etc., and then an unbiased estimation is made on the basis of this assumption. Although the algorithm complexity is low, the route is not accurate, and particularly, the error is large under the condition that the gas consumption is less than 1 sampling period. The second category is to estimate the time difference in the wavenumber domain, either by linear fitting of frequency and phase with reference to the phase factor, or by iteratively minimizing an objective function. This approach is more accurate but time consuming due to the use of global data. The third category is high-order and low-order moments, and the method needs to adjust some hyper-parameters and is relatively troublesome to implement. These methods have advantages and disadvantages, but they are difficult to achieve in cases where the transducer is unstable in high and low temperature environments.
Disclosure of Invention
The invention aims to provide a measuring algorithm of the flow of an ultrasonic gas meter aiming at the measuring characteristics of the ultrasonic gas meter flow meter, which is suitable for high and low temperature environments under the condition of not obviously increasing the calculation amount and improves the measuring accuracy.
The invention is realized by the following technical scheme:
an algorithm for measuring the flow of an ultrasonic gas meter comprises the following steps:
(A) inputting an upward flight signal and a downward flight signal, and respectively performing Fourier transform on the upward flight signal and the downward flight signal;
the purpose of the fourier transform is to convert the original time domain signal into the wavenumber domain, obtain the respective frequency spectrum, and facilitate the calculation of the cross-correlation curve. In particular, the fly-up signal s1(n) and a down flight signal s2(n) Fourier transform to obtain F1(k) And F2(k) Wherein:
Figure BDA0002394011390000021
Figure BDA0002394011390000022
where k is 0,1,2, …, N-1, N is 0,1,2, …, N-1, N is the extended sequence length, and j is an imaginary unit.
(B) Calculating to obtain the frequency spectrum of the cross-correlation curve according to the Fourier transform results of the upper flight signal and the lower flight signal; the frequency spectrum F (k) of the cross-correlation curve is F1(k)·F2(k) In that respect The convolution process of the cross-correlation curve in the time domain is equivalent to the multiplication process in the wavenumber domain. The cross-correlation curve calculation is performed to perform noise suppression by taking advantage of the uncorrelated relationship between white gaussian noise generated by the transducer and the desired signal.
(C) Performing inverse Fourier transform on the frequency spectrum of the cross-correlation curve to obtain a correlation curve, searching for a peak point position and at least two points adjacent to the peak point position on the correlation curve through a maximum value, and calculating by using a time domain estimation function to obtain an estimation value of a first model;
the correlation curve Rdc(k) Calculated by the following formula:
Figure BDA0002394011390000023
calculating to obtain a correlation curve Rdc(k) And then, acquiring a peak point k on the correlation curve, and selecting at least two points near the position of the peak point k. Preferably, the two points k-1 and k +1 are located on either side of the peak point k.
In phaseAfter three points k, k-1 and k +1 are selected on the curve, the estimation value of a first model is calculated, and the estimation value of the first model
Figure BDA0002394011390000024
The calculation formula of (2) is as follows:
Figure BDA0002394011390000025
(D) performing Hilbert transform on the frequency spectrum of the cross-correlation curve, taking an imaginary part, and calculating by using a linear interpolation function to obtain an estimated value of a model II;
by means of the hilbert conversion, the generated signal lags behind the pi/2 phase of the original signal, and the magnitude relation between the real value and the sampling value is kept. This produces a positive result, near the peak, model one and model two form the estimate conjugate.
Specifically, H (w) obtained by performing hilbert transform on the frequency spectrum F (k) of the cross-correlation curve is:
H(w)=(-i·sgn(w))·F(w)
wherein w is the angular frequency after fourier transform. Then, taking the imaginary part of H (w)
Figure BDA0002394011390000026
Figure BDA0002394011390000027
Searching points m, m-1 and m +1 corresponding to points k, k-1 and k +1 in a curve after Hilbert transform, wherein the time corresponding to the point k is the same as that of the point m, the time corresponding to the point k-1 is the same as that of the point m-1, and the time corresponding to the point k +1 is the same as that of the point m + 1;
then, according to the estimated value of the model two
Figure BDA0002394011390000031
The calculation formula of (2) is as follows:
if it is not
Figure BDA0002394011390000032
Then
Figure BDA0002394011390000033
If it is not
Figure BDA0002394011390000034
Then
Figure BDA0002394011390000035
If it is not
Figure BDA0002394011390000036
(E) And calculating to obtain an estimated value of the model combination according to the estimated value of the first model and the estimated value of the second model.
Estimation value according to model one
Figure BDA0002394011390000037
And the estimated value of model two
Figure BDA0002394011390000038
Calculating an estimate of a combination of models
Figure BDA0002394011390000039
Figure BDA00023940113900000310
Wherein, w1(t) and w2(t) weights for model one and model two, respectively. w is a1(t) and w2The value of (t) can be adjusted according to the specific application scene to adjust the weight of the combined model, and further approaches to a true value. In some embodiments, w1(t)=w2(t)=0.5。
Further, when the sampling frequency of the transducer of the ultrasonic gas meter is 6-10 times of the center frequency of the transducer, the estimated value is closer to the true value, and in some embodiments, the sampling frequency of the ultrasonic transducer is 8 times of the center frequency.
(F) If the estimated value obtained in the step (E) is more than or equal to one sampling period, taking the estimated value as the estimated value of the flight time; if the estimated value obtained in the step (E) is less than one sampling period and more than or equal to 1/50 sampling period, carrying out frequency domain iterative calculation until the error meets the requirement; and (E) if the estimated value obtained in the step (E) is less than 1/50 of the sampling period, reducing the wave number and then repeating the steps (A) - (E) for calculation.
In the step (F), the estimated value calculated in the step (E) is compared with the sampling period to determine whether to use the estimated value as an estimated value of the time of flight or to perform subsequent calculation. Wherein, the sampling period refers to the sampling period of the ADC.
The comparison result of the estimated value and the sampling period in the step (E) includes the following three cases:
the first case is: the calculated estimate is greater than or equal to one sampling period. In this case, the estimated value is an estimated value of the time of flight.
The second case is: the calculated estimate is less than one sample period but greater than or equal to 1/50 sample period. In this case, the estimated value is iteratively calculated in the frequency domain until the error of the iterative calculation meets the requirement.
The third case is: the calculated estimated value is less than 1/50 of the sampling period. In this case, steps (A) to (E) are repeated after reducing the number of waves to calculate the estimated value.
Further, for the second case, the calculation method specifically includes the following steps:
(F1) constructing a Lagrange fractional delay filter, and calculating a filter difference coefficient of the delay filter;
to simplify the formula, let
Figure BDA0002394011390000041
And after a hyperparameter M of the finite impulse filter is given, a filter difference coefficient hD(f)Comprises the following steps:
Figure BDA0002394011390000042
in the above formula, M is divided into two parts, M1 and M2, when M is an even number, M1 is M2 is M/2, when M is an odd number, M1 is (M-1)/2, M2 is (M +1)/2, and f is the number of iterations.
(F2) Calculating a true estimate and an error of the delay filter;
combining the fly-up signal as s according to the Lagrangian delay filter constructed in the step (F1)1(n) and a down flight signal s2(n) calculating a true estimate s under the delay filter2(n-D (f)) and an error E (n), wherein:
Figure BDA0002394011390000043
E(n)=s1(n)-s2(n-D(n))
in some embodiments, the iteration error E (n) cannot exceed three thousandths.
(F3) If the error meets the requirement, the calculation is terminated, if the error does not meet the requirement, the estimated value is adjusted, and then the step (F1) is returned to for recalculation until the error meets the requirement.
In this step, the adjustment formula of the estimated value is as follows:
Figure BDA0002394011390000044
Figure BDA0002394011390000045
where u is the learning step factor, preferably 0.5.
Further, for the third case, the calculation method is: and (4) taking three waves near the maximum value of the upper flight signal and the lower flight signal to replace the original upper flight signal and lower flight signal, and repeating the steps (A) - (E) to calculate an estimated value.
The principle of the invention is as follows:
(1) constructing two conjugated models in a time domain, inhibiting errors through a model combination formed by a model I and a model II, and performing lower estimation on two pairs of real values of the models when the two pairs of real values of the models are subjected to upper estimation and vice versa;
(2) when the real time delay is more than or equal to 1 sampling period, the error of the conjugate model estimation can be ignored; when the real time delay is larger than or equal to 1/50 sampling period, the adaptive fractional delay filtering estimated value is close to the conjugate model, the estimated value of the conjugate model is used as an initial value, the iteration times can be reduced, and the iteration result is close to the global optimum value;
(3) the large error caused by the instability of the transducer mainly occurs under the extremely low air volume, and only the strongest part of the signal is used by the wave reduction method to suppress the error.
Compared with the prior art, the invention has the following advantages and beneficial effects:
1. the invention relates to a pair of conjugate estimation models to inhibit errors caused by prior distribution hypothesis, and can obtain good accuracy for small flow estimation in a time domain or a wave number domain, and the stability of a calculation result is high;
2. in the invention, when the real time delay is more than or equal to 1 sampling period, the estimation error of the conjugate model can be ignored, and when the real time delay is more than or equal to 1/50 sampling period and less than 1 sampling period, the self-adaptive fractional delay filtering estimation value is close to the conjugate model, the estimation value of the conjugate model is used as an initial value, the iteration times can be reduced, and the iteration result approaches to the global optimum value.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principles of the invention. In the drawings:
FIG. 1 is a block diagram of a computing flow in an embodiment of the invention;
FIG. 2 is a schematic diagram of estimated samples of a model one according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of estimated samples of a second model according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of the estimation principles of model one and model two according to an embodiment of the present invention;
FIG. 5 is a time difference average calculated at high temperature, normal temperature, and low temperature under the condition of zero gas amount in the embodiment of the present invention;
fig. 6 shows an error comparison between the estimated value obtained by the existing time domain estimation method and the calculation method disclosed by the present invention and the true value under the micro-air volume and normal temperature conditions in the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to examples and accompanying drawings, and the exemplary embodiments and descriptions thereof are only used for explaining the present invention and are not meant to limit the present invention.
In the description of the present invention, it is to be understood that the terms "front", "rear", "left", "right", "upper", "lower", "vertical", "horizontal", "high", "low", "inner", "outer", etc. indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience of description and simplicity of description, and do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and therefore, are not to be construed as limiting the scope of the present invention.
Further, the term "connected" used herein may be either directly connected or indirectly connected via other components without being particularly described.
Example 1:
the measurement algorithm for the flow rate of the ultrasonic gas meter shown in fig. 1 to 4 comprises the following steps:
(A) inputting an upward flight signal and a downward flight signal, and respectively performing Fourier transform on the upward flight signal and the downward flight signal;
the purpose of the fourier transform is to convert the original time domain signal into the wavenumber domain, obtain the respective frequency spectrum, and facilitate the calculation of the cross-correlation curve.
(B) Calculating to obtain the frequency spectrum of the cross-correlation curve according to the Fourier transform results of the upper flight signal and the lower flight signal;
the convolution process of the cross-correlation curve in the time domain is equivalent to the multiplication process in the wavenumber domain. The cross-correlation curve calculation is performed to perform noise suppression by taking advantage of the uncorrelated relationship between white gaussian noise generated by the transducer and the desired signal.
(C) Performing inverse Fourier transform on the frequency spectrum of the cross-correlation curve to obtain a correlation curve, searching for a peak point position and at least two points adjacent to the peak point position on the correlation curve through a maximum value, and calculating by using a time domain estimation function to obtain an estimation value of a first model;
(D) performing Hilbert transform on the frequency spectrum of the cross-correlation curve, taking an imaginary part, and calculating by using a linear interpolation function to obtain an estimated value of a model II;
by means of the hilbert conversion, the generated signal lags behind the pi/2 phase of the original signal, and the magnitude relation between the real value and the sampling value is kept. This produces a positive result, near the peak, model one and model two form the estimate conjugate.
(E) And calculating to obtain an estimated value of the model combination according to the estimated value of the first model and the estimated value of the second model.
(F) If the estimated value obtained in the step (E) is more than or equal to one sampling period, taking the estimated value as the estimated value of the flight time; if the estimated value obtained in the step (E) is less than one sampling period and more than or equal to 1/50 sampling period, carrying out frequency domain iterative calculation until the error meets the requirement; and (E) if the estimated value obtained in the step (E) is less than 1/50 of the sampling period, reducing the wave number and then repeating the steps (A) - (E) for calculation.
Example 2:
in step (A), an up-flight signal s is obtained in accordance with example 11(n) and a down flight signal s2(n) Fourier transform to obtain F1(k) And F2(k) Wherein:
Figure BDA0002394011390000061
Figure BDA0002394011390000062
where k is 0,1,2, …, N-1, N is 0,1,2, …, N-1, N is the extended sequence length, and j is an imaginary unit.
Then, in step (B), the frequency spectrum F (k) of the cross-correlation curve is F1(k)·F2(k)。
In step (C), the correlation curve Rdc(k) Calculated by the following formula:
Figure BDA0002394011390000063
as shown in fig. 2, a peak point k is obtained on the correlation curve, and two points k-1 and k +1 are respectively selected on two sides adjacent to the peak point k. After three points are determined, the estimated value of the first model
Figure BDA0002394011390000064
The calculation formula of (2) is as follows:
Figure BDA0002394011390000071
in the step (D), the imaginary part obtained by subjecting the frequency spectrum F (k) of the cross-correlation curve to Hilbert transform
Figure BDA00023940113900000713
The following equation is used to obtain:
H(w)=(-i·sgn(w))·F(w)
Figure BDA0002394011390000073
wherein w is the angular frequency after fourier transform.
As shown in FIG. 3, points m, m-1 and m +1 corresponding to points k, k-1 and k +1 are searched in the curve after Hilbert transform, wherein the time corresponding to the point k is the same as that of the point m, the time corresponding to the point k-1 and the point m-1 is the same, and the time corresponding to the point k +1 and the point m +1 is the same.
Three are determinedEstimate of model two after points m, m-1, and m +1
Figure BDA0002394011390000074
The calculation formula of (2) is as follows:
if it is not
Figure BDA0002394011390000075
Then
Figure BDA0002394011390000076
If it is not
Figure BDA0002394011390000077
Then
Figure BDA0002394011390000078
If it is not
Figure BDA0002394011390000079
In step (E), the estimated values of the model combinations
Figure BDA00023940113900000710
Wherein the content of the first and second substances,
Figure BDA00023940113900000711
is an estimate of the value of the first model,
Figure BDA00023940113900000712
is an estimate of model two, w1(t) and w2(t) weights for model one and model two, respectively.
In some embodiments, w1(t)=w2(t)=0.5。
In some embodiments, when the sampling frequency of the transducer of the ultrasonic gas meter is 6 to 10 times of the center frequency thereof, the estimated value is closer to the true value, and preferably, the sampling frequency of the ultrasonic transducer is 8 times of the center frequency.
And (F) comparing the estimated value obtained in the step (E) with the sampling period to judge whether the estimated value is used as the estimated value of the flight time or to perform subsequent calculation. Wherein, the sampling period refers to the sampling period of the ADC.
The comparison result of the estimated value and the sampling period in the step (E) includes the following three cases:
the first case is: the calculated estimate is greater than or equal to one sampling period. In this case, the estimated value is an estimated value of the time of flight.
The second case is: the calculated estimate is less than one sample period but greater than or equal to 1/50 sample period. In this case, the estimated value is iteratively calculated in the frequency domain until the error of the iterative calculation meets the requirement.
The third case is: the calculated estimated value is less than 1/50 of the sampling period. In this case, steps (A) to (E) are repeated after reducing the number of waves to calculate the estimated value.
Further, for the second case, the calculation method specifically includes the following steps:
(F1) constructing a Lagrange fractional delay filter, and calculating a filter difference coefficient of the delay filter;
to simplify the formula, let
Figure BDA0002394011390000081
And after a hyperparameter M of the finite impulse filter is given, a filter difference coefficient hD(f)Comprises the following steps:
Figure BDA0002394011390000082
in the above formula, M is divided into two parts, M1 and M2, when M is an even number, M1 is M2 is M/2, when M is an odd number, M1 is (M-1)/2, M2 is (M +1)/2, and f is the number of iterations.
(F2) Calculating a true estimate and an error of the delay filter;
combining the fly-up signal as s according to the Lagrangian delay filter constructed in the step (F1)1(n) and a down flight signal s2(n) calculating theTrue estimate s under delay filter2(n-D (f)) and an error E (n), wherein:
Figure BDA0002394011390000083
E(n)=s1(n)-s2(n-D(n))
in some embodiments, the iteration error E (n) cannot exceed three thousandths.
(F3) If the error meets the requirement, the calculation is terminated, if the error does not meet the requirement, the estimated value is adjusted, and then the step (F1) is returned to for recalculation until the error meets the requirement.
In this step, the adjustment formula of the estimated value is as follows:
Figure BDA0002394011390000084
Figure BDA0002394011390000085
where u is the learning step factor, preferably 0.5.
Further, for the third case, the calculation method is: and (4) taking three waves near the maximum value of the upper flight signal and the lower flight signal to replace the original upper flight signal and lower flight signal, and repeating the steps (A) - (E) to calculate an estimated value.
The technical scheme relates to a pair of conjugate estimation models to inhibit errors caused by prior distribution hypothesis, can obtain good accuracy for small flow estimation in a time domain or a wave number domain, and has high stability of a calculation result.
Example 3:
on the basis of examples 1 and 2, the calculation was carried out by substituting the specific numerical values into the above formula.
Zero gas volume case: in the case of zero air amount, the high temperature (55 ℃) data 421 groups 117870, the low temperature (-15 ℃) data 467 groups 13076 and the normal temperature (20 ℃) data 432 groups 120960. Under three temperature conditions, the estimated time difference average values calculated by the formula are-0.3062 ns, 0.1763ns and 0.1187ns respectively, and the mean square error is 0.4667ns, 0.6078ns and 0.2769 ns. As shown in fig. 5, the time difference average is close to 0ns with strong consistency in the three temperature cases. The mean square error is slightly amplified at high and low temperatures, but is in the range of ± 2ns overall.
Micro-air volume condition: the average gas volume is 13L/h at normal temperature, and the gas volume is disturbed, and 100 groups of 28000 data are calculated by a time domain estimation method and the calculation method disclosed by the invention respectively, and signal recovery is carried out by the Nyquist sampling theorem to be used as a true value. As shown in fig. 6, under the conditions of minute volume and normal temperature, the time domain estimation method and the true value have large errors, and the error between the estimated value and the true value obtained by using the lagrangian fractional delay filter disclosed by the present invention is significantly reduced.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. The measuring algorithm of the flow of the ultrasonic gas meter is characterized by comprising the following steps:
(A) inputting an upward flight signal and a downward flight signal, and respectively performing Fourier transform on the upward flight signal and the downward flight signal;
(B) calculating to obtain the frequency spectrum of the cross-correlation curve according to the Fourier transform results of the upper flight signal and the lower flight signal;
(C) performing inverse Fourier transform on the frequency spectrum of the cross-correlation curve to obtain a correlation curve, searching for a peak point position and at least two points adjacent to the peak point position on the correlation curve through a maximum value, and calculating by using a time domain estimation function to obtain an estimation value of a first model;
(D) performing Hilbert transform on the frequency spectrum of the cross-correlation curve, taking an imaginary part, and calculating by using a linear interpolation function to obtain an estimated value of a model II;
(E) calculating to obtain an estimated value of the model combination according to the estimated value of the model I and the estimated value of the model II;
(F) if the estimated value obtained in the step (E) is more than or equal to one sampling period, taking the estimated value as the estimated value of the flight time; if the estimated value obtained in the step (E) is less than one sampling period and more than or equal to 1/50 sampling period, carrying out frequency domain iterative calculation until the error meets the requirement; and (E) if the estimated value obtained in the step (E) is less than 1/50 of the sampling period, reducing the wave number and then repeating the steps (A) - (E) for calculation.
2. The flow measurement algorithm for the ultrasonic gas meter according to claim 1, wherein in the step (a), the up-fly signal s1(n) and a down flight signal s2(n) Fourier transform to obtain F1(k) And F2(k) Wherein:
Figure FDA0002394011380000011
Figure FDA0002394011380000012
where k is 0,1,2, …, N-1, N is 0,1,2, …, N-1, N is the extended sequence length, and j is an imaginary unit.
3. The method for measuring the flow of the ultrasonic gas meter according to claim 2, wherein in the step (C), the cross-correlation curve R isdc(k) Calculated by the following formula:
Figure FDA0002394011380000013
wherein, F (k) is the frequency spectrum of the cross-correlation curve function, and the calculation formula is as follows: f (k) ═ F1(k)·F2(k)。
4. The flow measurement algorithm for the ultrasonic gas meter according to claim 3, wherein in the step (C), a peak point k is obtained on the correlation curve, and two points k-1 and k +1 are respectively selected on two sides adjacent to the peak point k.
5. The algorithm for measuring the flow of the ultrasonic gas meter according to claim 4, wherein the estimated value of the model one is
Figure FDA0002394011380000014
The calculation formula of (2) is as follows:
Figure FDA0002394011380000015
6. the method for measuring the flow rate of an ultrasonic gas meter according to claim 4, wherein in the step (D), an imaginary part obtained by subjecting the frequency spectrum F (k) of the cross-correlation curve to Hilbert transform is used
Figure FDA0002394011380000021
The following equation is used to obtain:
H(w)=(-i·sgn(w))·F(w)
Figure FDA0002394011380000022
wherein w is the angular frequency after fourier transform.
7. The flow measurement algorithm for the ultrasonic gas meter according to claim 6, wherein in the step (D), points m, m-1 and m +1 corresponding to points k, k-1 and k +1 are searched in the curve after hilbert transformation, wherein the time corresponding to the point k is the same as the time corresponding to the point m, the time corresponding to the point k-1 is the same as the time corresponding to the point m-1, and the time corresponding to the point k +1 is the same as the time corresponding to the point m + 1.
8. The ultrasonic gas meter flow measurement algorithm according to claim 7, wherein in the step (D), the estimated value of the second model is
Figure FDA0002394011380000023
The calculation formula of (2) is as follows:
if it is not
Figure FDA0002394011380000024
Then
Figure FDA0002394011380000025
If it is not
Figure FDA0002394011380000026
Then
Figure FDA0002394011380000027
If it is not
Figure FDA0002394011380000028
9. The method for measuring the flow rate of an ultrasonic gas meter according to claim 1, wherein in the step (E), the estimated values of the model combinations are
Figure FDA0002394011380000029
Wherein the content of the first and second substances,
Figure FDA00023940113800000210
is an estimate of the value of the first model,
Figure FDA00023940113800000211
is an estimate of model two, w1(t) and w2(t) weights for model one and model two, respectively.
10. The ultrasonic gas meter flow measurement algorithm according to claim 1, wherein the step (F) includes the steps of:
(F1) constructing a Lagrange fractional delay filter, and calculating a filter difference coefficient of the delay filter;
(F2) calculating a true estimate and an error of the delay filter;
(F3) if the error meets the requirement, the calculation is terminated, if the error does not meet the requirement, the estimated value is adjusted, and then the step (F1) is returned to for recalculation until the error meets the requirement.
CN202010124521.3A 2020-02-27 2020-02-27 Measuring algorithm for flow of ultrasonic gas meter Active CN111220222B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN202010124521.3A CN111220222B (en) 2020-02-27 2020-02-27 Measuring algorithm for flow of ultrasonic gas meter
AU2021201596A AU2021201596B2 (en) 2020-02-27 2021-02-21 Method for measuring flow rate of ultrasonic wave gas meter
PCT/CN2021/077137 WO2021169883A1 (en) 2020-02-27 2021-02-21 Ultrasonic gas meter flow measurement algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010124521.3A CN111220222B (en) 2020-02-27 2020-02-27 Measuring algorithm for flow of ultrasonic gas meter

Publications (2)

Publication Number Publication Date
CN111220222A true CN111220222A (en) 2020-06-02
CN111220222B CN111220222B (en) 2020-11-24

Family

ID=70826802

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010124521.3A Active CN111220222B (en) 2020-02-27 2020-02-27 Measuring algorithm for flow of ultrasonic gas meter

Country Status (3)

Country Link
CN (1) CN111220222B (en)
AU (1) AU2021201596B2 (en)
WO (1) WO2021169883A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021169883A1 (en) * 2020-02-27 2021-09-02 成都千嘉科技有限公司 Ultrasonic gas meter flow measurement algorithm
CN113899417A (en) * 2021-09-24 2022-01-07 宁夏隆基宁光仪表股份有限公司 Ultrasonic water meter flow measuring method, system and device based on deep sampling
CN116878599A (en) * 2023-09-06 2023-10-13 青岛鼎信通讯科技有限公司 Flow metering method of ultrasonic water meter
CN117647289A (en) * 2023-11-14 2024-03-05 浙江荣鑫智能仪表股份有限公司 Anti-electromagnetic interference method and device for gas meter, electronic equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114324972B (en) * 2022-01-10 2022-09-13 浙江大学 Self-adaptive generalized cross-correlation time delay estimation method suitable for fluid cross-correlation speed measurement

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110218742A1 (en) * 2010-03-03 2011-09-08 Yamatake Corporation Calculating device and flow meter equipped with calculating device
CN103675758A (en) * 2013-12-05 2014-03-26 东南大学 Method for estimating cycle slope and starting frequency of hyperbolic frequency modulated signals
CN109506727A (en) * 2018-12-24 2019-03-22 西安安森智能仪器股份有限公司 A kind of ultrasonic flow measuring method and low-consumption ultrasonic flow measurement meter
CN110210081A (en) * 2019-05-17 2019-09-06 武汉理工大学 A kind of SS-OCT system k-clock delay correcting algorithm
CN110224394A (en) * 2019-05-29 2019-09-10 海南电网有限责任公司电力科学研究院 Fourier decomposition algorithm suitable for non-stationary oscillation of power signal characteristic abstraction
CN110646042A (en) * 2019-10-16 2020-01-03 上海交通大学 Cross-correlation interpolation method for calculating flight time difference of low-power-consumption ultrasonic flowmeter

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111220222B (en) * 2020-02-27 2020-11-24 成都千嘉科技有限公司 Measuring algorithm for flow of ultrasonic gas meter

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110218742A1 (en) * 2010-03-03 2011-09-08 Yamatake Corporation Calculating device and flow meter equipped with calculating device
CN103675758A (en) * 2013-12-05 2014-03-26 东南大学 Method for estimating cycle slope and starting frequency of hyperbolic frequency modulated signals
CN109506727A (en) * 2018-12-24 2019-03-22 西安安森智能仪器股份有限公司 A kind of ultrasonic flow measuring method and low-consumption ultrasonic flow measurement meter
CN110210081A (en) * 2019-05-17 2019-09-06 武汉理工大学 A kind of SS-OCT system k-clock delay correcting algorithm
CN110224394A (en) * 2019-05-29 2019-09-10 海南电网有限责任公司电力科学研究院 Fourier decomposition algorithm suitable for non-stationary oscillation of power signal characteristic abstraction
CN110646042A (en) * 2019-10-16 2020-01-03 上海交通大学 Cross-correlation interpolation method for calculating flight time difference of low-power-consumption ultrasonic flowmeter

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021169883A1 (en) * 2020-02-27 2021-09-02 成都千嘉科技有限公司 Ultrasonic gas meter flow measurement algorithm
CN113899417A (en) * 2021-09-24 2022-01-07 宁夏隆基宁光仪表股份有限公司 Ultrasonic water meter flow measuring method, system and device based on deep sampling
CN116878599A (en) * 2023-09-06 2023-10-13 青岛鼎信通讯科技有限公司 Flow metering method of ultrasonic water meter
CN116878599B (en) * 2023-09-06 2024-01-09 青岛鼎信通讯科技有限公司 Flow metering method of ultrasonic water meter
CN117647289A (en) * 2023-11-14 2024-03-05 浙江荣鑫智能仪表股份有限公司 Anti-electromagnetic interference method and device for gas meter, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2021169883A1 (en) 2021-09-02
AU2021201596B2 (en) 2022-04-21
CN111220222B (en) 2020-11-24
AU2021201596A1 (en) 2021-09-16

Similar Documents

Publication Publication Date Title
CN111220222B (en) Measuring algorithm for flow of ultrasonic gas meter
CN108470089B (en) Complex signal time delay estimation method based on least square sample fitting
CN110333389B (en) Sinusoidal signal frequency estimation method based on interpolation DFT
CN114609912B (en) Angle measurement target tracking method based on pseudo-linear maximum correlation entropy Kalman filtering
CN109856455B (en) Real-time repeated conversion type attenuation signal parameter estimation method
CN105891810B (en) A kind of quick self-adapted joint delay time estimation method
CN109507704B (en) Double-satellite positioning frequency difference estimation method based on mutual ambiguity function
CN111222088B (en) Improved method for estimating weighted power harmonic amplitude of flat-top self-convolution window
CN109085556B (en) High-frequency ground wave radar wave field forming method based on first-order and second-order peak ratios
So et al. Comparative study of five LMS-based adaptive time delay estimators
CN109061686B (en) Self-adaptive multipath estimation method based on recursive generalized maximum mutual entropy
CN106603036A (en) Adaptive time delay estimation method based on low-order interpolation filter
CN111307234A (en) Envelope curve-based ultrasonic flight time measuring method
Yu et al. A time delay estimation algorithm based on the weighted correntropy spectral density
CN116449369B (en) Inverse synthetic aperture radar imaging method based on multi-norm constraint
CN112883318A (en) Multi-frequency attenuation signal parameter estimation algorithm of subtraction strategy
CN115826004B (en) Three-star cooperative direct positioning method based on two-dimensional angle and time difference combination
Bodenschatz et al. Maximum-likelihood symmetric/spl alpha/-stable parameter estimation
Savin et al. Covariance based uncertainty analysis with unscented transformation
Chahine et al. Parameter estimation of dispersive media using the matrix pencil method with interpolated mode vectors
CN112666520B (en) Method and system for positioning time-frequency spectrum sound source with adjustable response
CN115436909A (en) FMCW radar ranging method based on matrix reconstruction Root-MUSIC algorithm
CN107145667B (en) Rapid calculation method of wave front structure function
Kowalski et al. Unbiased conversion of passive sensor measurements using closest point of approach
CN116756550A (en) Fourth-order polynomial phase signal parameter estimation method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information

Inventor after: Zhu Lian

Inventor after: Liu Xun

Inventor after: Li Zhonghua

Inventor before: Liu Xun

Inventor before: Zhu Lian

Inventor before: Li Zhonghua

CB03 Change of inventor or designer information
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: No. 536, Section 1, airport 1st Road, Southwest Airport, Shuangliu District, Chengdu, Sichuan 610000

Patentee after: Chengdu Qianjia Technology Co.,Ltd.

Address before: No. 536, Section 1, airport 1st Road, Southwest Airport, Shuangliu District, Chengdu, Sichuan 610000

Patentee before: Chengdu Qianjia Technology Co.,Ltd.

CP01 Change in the name or title of a patent holder