Ultrasonic flow meter with digitally under-sampled flow measurements

09733112 · 2017-08-15

Assignee

Inventors

Cpc classification

International classification

Abstract

The invention relates to a method of operating an ultrasonic flow meter by digitally sampling received signals. Acoustic wave packets are transmitted through a measuring distance in opposite directions, and the received signals are digitized at a sampling frequency being below the Nyquist-limit of two times the signal frequency of the wave packet to generate digitized under-sampled signals 31. From the digitized under-sampled signals, the difference in propagation time along the measuring distance is determined.

Claims

1. A method of operating an ultrasonic flow meter to measure a flow rate of a fluid comprising: providing an ultrasonic flow meter that comprises: at least two ultrasonic transducers arranged for transmission and receipt of ultrasonic signals in opposite directions across a measuring distance; a generator circuit for controlled generation of an acoustic wave packet to be transmitted from the at least two ultrasonic transducers; a receiver circuit for receiving the transmitted signals from the at least two ultrasonic transducers; a digital signal processor; and, for at least two signal paths along generally opposite directions: generating the acoustic wave packet to be output into the measuring distance at a first of the at least two ultrasonic transducers, the wave packet being generated at a signal frequency; receiving the acoustic wave packet at a second of the at least two ultrasonic transducers as a received signal; digitizing the received signal at a sampling frequency below the Nyquist-limit to generate a digitized received under sampled signal for the given signal path; and from at least two digitized received non-reconstructed under-sampled signals along generally opposite directions, determining the difference in propagation time along the measuring distance.

2. The method according to claim 1, wherein the difference in propagation time along the measuring distance is determined by performing a correlation between the at least two digitized received under-sampled signals along generally opposite directions, and determining the maximum correlation between the at least two signals.

3. The method according to claim 1, wherein the difference in propagation time along the measuring distance is averaged over a number of measurements obtained by time-shifting the transmitted signal relative to a system clock.

4. The method according to claim 1, wherein the difference in propagation time along the measuring distance is averaged over a number of measurements obtained by phase-shifting the transmitted signal relative to a system clock.

5. The method according to claim 1, wherein the difference in propagation time along the measuring distance is averaged over a number of measurements obtained by alternating between different amplitude levels of the transmitted signal.

6. The method according to claim 1, wherein the difference in propagation time along the measuring distance is averaged over a number of measurements obtained by varying the number of oscillations of the transmitted signal, created by the generator circuit.

7. The method according to claim 1, wherein the difference in propagation time along the measuring distance is determined by determining the phase-shifts between the digitized received under-sampled signals along the generally opposite directions.

8. The method according to claim 7, wherein a digital Hilbert transformation is performed on the digitized received under-sampled signals along the at least two directions, and wherein the phase difference is derived from the orthogonal quadratures of the signals.

9. The method according to claim 7, wherein complex signal representations are formed by digital Fourier transformations of the digitized received under-sampled signal along the at least two directions to provide the real part and the imaginary part, and wherein the phase difference is derived from the orthogonal quadratures of the signals.

10. The method according to claim 7, wherein complex signal representations are formed with the digitized received under-sampled signal as the real part, and a digital Hilbert transformation as the imaginary part for the digitized received under-sampled signals along the at least two directions, and wherein each complex signal representation is correlated with a pre-selected function set to select function sets to represent the digitized received under-sampled signals, and determining the difference in propagation time by determining the phase shift between the selected function sets.

11. The method according to claim 7, wherein the phase-shift between the digitized received under-sampled signals along the generally opposite directions is derived by use of a Coordinate Rotation on a Digital Computer (CORDIC) algorithm.

12. The method according to claim 7, wherein the digitized received under-sampled signals are Fourier transformed, and for each signal, the phase of the transformed signal is determined, and the phase difference is determined as the difference in phases of the transformed signal along the at least two directions.

13. The method according to claim 12, wherein a peak in the Fourier amplitudes of the transformed signal is identified, and wherein the phase difference is averaged over frequencies within this peak.

14. An ultrasonic flow meter arranged to measure a flow rate of a fluid, the flow meter comprising: at least two ultrasonic transducers arranged for transmission and receipt of ultrasonic signals in opposite directions across a measuring distance; a generator circuit for controlled generation of an acoustic wave packet to be transmitted from the at least two ultrasonic transducers; a receiver circuit for receiving the transmitted signals from the at least two ultrasonic transducers; and a digital signal processor; wherein, for at least two signal paths along generally opposite directions, the flow meter is configured to: generate the acoustic wave packet to be output into the measuring distance at a first of the at least two ultrasonic transducers, the wave packet being generated at a signal frequency; receive the acoustic wave packet at a second of the at least two ultrasonic transducers as a received signal; digitize the received signal at a sampling frequency below the Nyquist-limit to generate a digitized received under sampled signal for the given signal path; and from at least two digitized received non-reconstructed under-sampled signals along generally opposite directions, determine the difference in propagation time along the measuring distance.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) Embodiments of the invention will be described, by way of example only, with reference to the drawings, in which

(2) FIG. 1 illustrates a schematic cross-sectional view of elements of an ultrasonic flow meter;

(3) FIG. 2 illustrates an example of the transmitted signal in waveform A and the received signal in waveform B;

(4) FIG. 3A shows an example of a received signal at a high sample rate, and FIG. 3B shows the same signal as FIG. 3A in an under-sampled representation;

(5) FIGS. 4A to 4C illustrate signals involved in determining the difference in propagation time by performing a correlation between digitized received signals;

(6) FIGS. 5A and 5B show the fast Fourier transform of the signal of FIG. 3B;

(7) FIGS. 6A and 6B shows the phase difference together with the normalized modulus of the Fourier amplitude of the received signals;

(8) FIG. 7 illustrates general elements of an ultrasonic flow meter in accordance with embodiments of the present invention; and

(9) FIG. 8 shows a general flow diagram for illustrating general steps of the method in accordance with embodiments of the present invention.

DESCRIPTION OF EMBODIMENTS

(10) FIG. 1 illustrates a schematic cross-sectional view of elements of an embodiment of an ultrasonic flow meter. The flow meter comprises a housing 1, or flow tube, with an inlet 2 and outlet 3. The flow meter further comprises an electronic unit 4 comprising or connected to ultrasonic transducers 5A, 5B. The flow meter comprises a measuring distance L, defined by a measuring insert 6. In general, however, the measuring distance need not be defined by an insert, but could be an integral part of the housing 1, such as a through-going flow channel of the housing. The ultrasonic transducers 5A, 5B for generating and detecting ultrasonic signals are placed so that the generated signals can be introduced into the measuring distance. In the illustrated embodiment, reflectors 7 are placed so that the signals 8 emitted from each of the transducers are directed along the measuring distance, and onto the opposite transducer for detection.

(11) Signals propagating downstream propagate faster than signals propagating upstream, and the flow rate can be determined by measuring difference in arrival time of the emitted signals at the other transducers. The determination of the flow rate, as well as the outputting of the flow rate is done by the electronic unit 4. The electronic unit at least comprises a measurement circuit operationally connected to the ultrasonic transducers and arranged to determine a value representing the flow rate. The ultrasonic transducers and the measuring circuit may in embodiments be provided as a unit adapted to be mounted onto the housing. Additionally, a consumption meter is normally equipped with a calculator unit which based on the value representing the flow rate is adapted to calculate a consumed quantity, and optionally additional quantities. The calculator unit may be a separate unit or a unit combined with the measuring circuit for operating the transducers. The electronic unit may additionally comprise such elements as a transmitter, e.g. in the form of a radio transmitter, as well as a power supply, e.g. in the form of a battery or a wired connection, as well as other components. Such elements may be provided within the casing 10, or as part of a separate unit connected to the flow meter.

(12) The illustrated ultrasonic flow meter comprises a first transducer 5A positioned at one end of the measuring distance and a second ultrasonic transducer 5B positioned at the other end of the measuring distance. In general, more transducers may be placed at each end. Moreover, three or more reflector units may be used for directing the ultrasonic signals through the measuring distance. In other embodiments, the transducers are placed so that they oppose each other, so that reflectors are not needed. In such embodiments, the line-of-sight of the transducers may be along the flow direction or may be angled with respect to the flow direction.

(13) Embodiments of the present invention are directed to ultrasonic flow meters which are based on the time-of-flight principle. In such a flow meter, an estimate of the fluid flow velocity, ν, can be obtained from the expression

(14) v = L Δ t 2 t 0 2 Eq . ( 1 )
Here L is the physical distance travelled by the pulses, Δt is the difference in time-of-flight and t.sub.0 is the time of flight in the absence of any flow velocity, also referred to as the flow-free time-of-flight (FFTOF). An accurate estimation of the flow velocity requires both Δt and t.sub.0 to be measured accurately, while L is known. In practice it is more feasible to measure t.sub.0 as: t.sub.0=(t.sub.1+t.sub.2)/2, and the time difference as: Δt=t.sub.1−t.sub.2.

(15) FIG. 2 illustrates an example of the transmitted signal 20 and the received signal 21 for the two situation downstream signal propagation (waveform A) and upstream signal propagation (waveform B), as well as the time difference Δt.

(16) In agreement with Eq. 1, to determine the flow rate, the two parameters, t.sub.0 and Δt, must be extracted from the received signals. The parameter t.sub.0 is less critical from an accuracy point-of-view, and can be determined from processing of the received signal by use of a method of the prior art, such as envelope peak detection, envelope maximum slope detection, Fourier analysis etc. Δt is more critical due to the high requirement of the accuracy. The present invention deals with the determination of Δt, whereas t.sub.0 can be determined by a method known in the art.

(17) The received signal 21 is an oscillation rather than an impulse, and the time difference measurement can be done by performing a phase difference measurement, where the phase difference, Δφ, is related to the time difference as: Δt=Δφ/ω, where ω.sub.0 is the angular frequency of the transmitted signal at the centre frequency.

(18) When sampling the received signal below the Nyquist limit, i.e. the received signal is under-sampled, in principle too little information is available to be processed. FIG. 3A shows an example of a received signal 30 at a high sample rate, and FIG. 3B shows the same signal as FIG. 3A in an under-sampled representation 31. For both signals, the angular frequency of the transmitted signal, ω.sub.0/2π=1.0 MHz, whereas the sampling frequency of the received signal 30 in FIG. 3A is ω.sub.S/2π=16 MHz and the sampling frequency of the received signal 31 in FIG. 3B is ω.sub.S/2π=0.85 MHz.

(19) In the present invention, the difference in propagation time is determined from the digitized received under-sampled signal 31, and not from a fully sampled signal 30, or from a reconstructed signal. A reconstructed signal reconstructs a fully sampled representation of the received signal from a received under-sampled signal.

(20) In an embodiment, the difference in propagation time along the measuring distance is determined by performing a correlation between the at least two digitized received under-sampled signals along generally opposite directions, and determine the maximum correlation between the two signals. This is illustrated in FIG. 4A to 4C.

(21) FIG. 4A shows the fully sampled signals, as in FIG. 3A for: ω.sub.0/2π=1.0 MHz and ω.sub.S/2π=16 MHz, for the two situations of the signals travelling along the flow and against the flow.

(22) FIG. 4B shows the under-sampled representation of the signals of FIG. 4A with ω.sub.S/2π=0.85 MHz.

(23) FIG. 4C illustrates the correlation function calculated from the under sampled signals of FIG. 4B.

(24) The time difference can be inferred by calculating the correlation function between up- and downstream signals:
C.sub.12(k)=V.sup.−1Σ.sub.j=1.sup.Ns.sub.1(j)s.sub.1(j−k)  Eq. (2)

(25) Where N is the number of samples, s.sub.1(j) and s.sub.2(j) are the j′th samples of the two received signals and V is a normalization factor given by:
V=N.sup.−1√{square root over (Σ.sub.j=1.sup.N=[s.sub.1(j)].sup.2Σ.sub.j=1.sup.N[s.sub.2(j)].sup.2)}  Eq. (3)

(26) The shift from zero of the maximum of the correlation function can readily be converted into Δt. The maximum can be found from a parabolic approximation, finding zero crossings or by fitting to a model expression which is shown as the full curve in FIG. 4C.

(27) In an embodiment, the difference in propagation time along the measuring distance is determined by determining the phase-shifts between the digitized received signals along the generally opposite directions.

(28) The phase shift difference may be determined by perform a digital Fourier transform or a fast Fourier transform on the under-sampled signal. FIGS. 5A and 5B show the result of performing a fast Fourier transform of the signal of FIG. 3B.

(29) FIG. 5A shows the resulting spectrum in terms of the modulus 50, and the real 51 and imaginary parts 52 of the complex Fourier amplitudes as function of frequency. FIG. 5B shows the corresponding phase, in radians, as function of frequency. This phase can be calculated for both the up- and downstream signals, and the difference, which is Δφ, can be formed.

(30) FIG. 6A shows the phase difference 61, Δφ, in radians together with the normalized modulus of the Fourier amplitude 60. By analyzing the Fourier amplitude curve, a peak in the Fourier amplitudes of the transformed signal can be identified. If more than one peak is present, the peak with the largest amplitude may be selected. By averaging over the Δφ values, for frequencies within this peak around the base band frequency (FIG. 6B), the time difference can be extracted as Δt=P Δω/2π. Here P is the period of the ω.sub.0 oscillation, which is 1 μs for the present example. A time difference of Δt=−0.052 μs is obtained. The values may e.g. be selected as the values which are within the top 50% of the peak, or by other suitable peak selection criteria.

(31) The Fourier transform approaches have the advantage that changes in dampening rate and resonance frequencies of the transducers can be readily tracked over time and compensated for in the flow calculation.

(32) In a further embodiment, the phase difference is determined based on the application of a digital Hilbert transform on the up- and downstream signals. From the transformed signals, the quadratures of the signals can be determined, and from these the phase difference can be calculated. Denoting the two signals s.sub.1 and s.sub.2, the mutual orthogonal signal quadratures, q.sub.1, p.sub.1, q.sub.2 and p.sub.2 are set as:
q.sub.1=s.sub.1 p.sub.1=H[s.sub.1]
q.sub.2=s.sub.2 p.sub.2=H[s.sub.2]  Eq. (4)

(33) Here H[s.sub.1,2] denotes the Hilbert transform of the up- and downstream signals respectively. From quadratures, the phase difference is calculated as:

(34) Δφ = tan - 1 q 1 p 2 - p 1 q 2 q 1 q 2 + p 1 p 2 Eq . ( 5 )

(35) The phase difference can also be calculated in the frequency space by forming complex signal representations of the under-sampled signal by digital Fourier transformations along the two directions to provide the real part and the imaginary parts. The signal quadratures, q.sub.1, p.sub.1, q.sub.2 and p.sub.2 are set so that q.sub.1 and q.sub.2 are the real part of the resulting Fourier transforms, whereas p.sub.1 and p.sub.2 are the imaginary parts. The phase difference is calculated using Eq. (5).

(36) In a further embodiment, the iterative procedure known as the CORDIC (COordinate Rotation on a DIgital Computer) algorithm can be used to replace the inverse tangent function of Eq. 5. This has the advantage that a computationally simple iterative procedure is performed instead of the much more complicated inverse tangent function call. The general principle behind the algorithm is to form the vector in the complex plane representing the signal, s=[q, p]. Via a sequence of consecutive rotations in the complex plane, going through increasingly smaller angles, the vector s is transformed to become parallel to the real axis. The angles through which the vector is rotated are given by α.sub.k=tan.sup.−1(2.sup.−k), where k={0, 1, . . . , n−1} and n is the number of iterations determined by the desired accuracy of the phase angle determination. Starting with the vector [q.sub.0, p.sub.0] determined by the sampled signal the direction of rotation in each iteration step, k, is determined by the sign of p.sub.k−1. The iteration is terminated when p.sub.k is sufficiently small and the phase angle can then be calculated as:
Δφ=Σ.sub.k=0.sup.n−1σ.sub.kα.sub.k  Eq. (6)

(37) Here σ.sub.k={−1, 1} is a register keeping track of the direction of rotation. The CORDIC also returns the magnitude of the signal vector s. This will be given by q.sub.n, that is, the value of q after the CORDIC has converged.

(38) In another embodiment, the signal quadratures, q.sub.1, p.sub.1, q.sub.2 and p.sub.2 of Eq. (4) are used to form complex signal representations with the digitized received under-sampled signals q.sub.1, q.sub.2 as the real part, and a digital Hilbert transformations p.sub.1, p.sub.2 as the complex part for the received signals along the two directions. Additionally function sets, typically in the form of basis sets, are pre-selected to represent the digitized received under-sampled signals. A number of function sets which may serve as basis sets are known to the skilled person. The complex signal representations are correlated with the pre-selected function sets to select function sets to represent the digitized received under-sampled signals. Typically function sets which have maximal correlation with the complex signal representations are selected. The difference in propagation time is determined based on the phase shift between the selected function sets.

(39) The accuracy of the measurements can be improved by averaging the determined time difference obtained by one of the above methods over a number of measurements, such as 4 to 10 measurements. In an averaging process, advantage is taken of the ‘natural’ noise level which is always present in an electro-mechanical system. However, the ‘natural’ noise level may not be enough to remedy the coarseness of the quantization when under-sampling. In this case artificial noise can be added. This could for instance be introduced by consecutive time shifts of the transmitted signal by fractions of a period, so that the launch time of the transmission is selected from the set t.sub.0 ε {0, P/n, 2P/n, . . . , (n−1)P/n}, where P=2π/ω.sub.0 is the period of the transmitted oscillation and n is the number of different launch times into which the period has been divided. The addition of artificial noise has the advantage that it can be compensated for in the digital signal processing of received signal, since the working precision of the calculations performed by far exceeds the timing resolution and bit depth of the ADC. Hence, the added noise will not contribute to a loss of precision of the meter. In addition, the amplitude, the phase or the number of oscillations of the transmitted signal can be varied, resulting in a similar smearing out of the quantization, which can be compensated in the digital signal processing, resulting in better overall resolution when averaging over several measurements.

(40) FIG. 7 illustrates elements of an ultrasonic flow meter in accordance with embodiments of the present invention. The ultrasonic flow meter comprises two ultrasonic transducers 5A, 5B arranged for transmission and receipt of ultrasonic signals 8 in opposite directions across a measuring distance. While only two transducers are shown, more may be present in a given flow meter.

(41) The ultrasonic transducers are connected to a generator circuit 73 for controlled generation of an acoustic wave packet to be transmitted from the at least two ultrasonic transducers. The generator circuit may comprise a signal source 74 and amplification means 75. Any suitable generator circuit may be used.

(42) The ultrasonic transducers are moreover connected to a receiver circuit 76 for receiving the transmitted signals from the at least two ultrasonic transducers. The receiver circuit may comprise an amplifier 77 and an ADC 78 for converting the received analogue amplified signal to a digitized signal for further processing. In embodiments, the ADC may be integrated as part of the micro-processor 70 instead of being a separate component of the receiver circuit 76.

(43) The generator circuit 73, the ultrasonic transducers 5A, 5B and the receiver circuit 76 may be electrically connected in any suitable way as is known in the art. They may even form part of the same circuit. In the illustrated figure, a switching unit 79 is shown which couple in and out the ultrasonic transducers to the respective circuits 73, 76. While a switching unit is commonly used in the art, embodiments exist which do not use switches.

(44) Furthermore, the ultrasonic flow meter may comprise a digital micro-processor 70 comprising a processing means 71 for digital signal processing of the digitized signals. The digital micro-processor may be implemented as a central processing unit which in addition to performing the digital signal processing also controls the generator circuit and other computational tasks. Moreover, the digital micro-processor may comprise or may be connected to a clock unit for providing a system clock, which is capable maintaining the time-keeping tasks, including keeping track of the timing aspects of the generator circuit and the digital sampling of the received signals.

(45) FIG. 8 shows a general flow diagram for illustrating general steps of the method in accordance with embodiments of the present invention.

(46) In a first step 80, an acoustic wave packet is generated by an ultrasonic transducer to be output into the measuring distance and travel along the measuring distance until it reaches the other ultrasonic transducer. This is performed by connecting the generator circuit 73 to the generating transducer and operating the generator circuit.

(47) In a second step 81, the acoustic wave packet is received at a second of the at least two ultrasonic transducers as a received signal. This is performed by connecting the receiver circuit 76 to the receiving transducer and detecting the received signal.

(48) In a third step 82, the received signal is digitized at a sampling frequency below the Nyquist limit to generate a digitized received under-sampled signal for the given signal path. The digitized received under-sampled signal being stored 83.

(49) To obtain a signal for a counter propagating signal path, the operation of the transducers is reversed and the steps 80-82 are performed again.

(50) Once signals have been measured for the desired paths, i.e., typically one along the flow direction and one against the flow direction, the difference in propagation time is determined in step 84 in accordance with any one of the embodiments of the present invention.

(51) While the invention has been illustrated and described in detail in the drawings and foregoing description, such illustration and description are to be considered illustrative or exemplary and not restrictive; the invention is not limited to the disclosed embodiments. The scope of the present invention is to be interpreted in the light of the accompanying claim set.