Abstract:
In a Doppler system for determining the average flow velocity of a liquid based on reflection from particles moving with the liquid, and in which system the received signal is subjected to both in-phase and quadrature detection, and is then analyzed into frequency domain in-phase channel amplitude and phase components and quadrature channel amplitude and phase components, an improved method for calculating the average flow velocity, comprising discarding those amplitude components for which the in-phase and quadrature phase components differ from approximately +90 degrees and approximately -90 degrees before using the remaining amplitude components to calculate an average amplitude-weighted frequency that is used in estimating the average flow velocity.

Description:
BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     The present invention is in the field of Doppler sonar and more specifically relates to a method for processing a return echo signal to obtain an accurate estimate of the velocity flow of the medium. 
     2. The Prior Art 
     As exemplified by the invention described in U.S. Pat. No. 5,421,211 issued Jun. 6, 1995 to Heckman, contemporary liquid flow meters transmit a beam of ultrasonic energy into the liquid in a direction that is generally parallel to or opposite to the direction of flow. A small portion of the transmitted energy is reflected back toward the transmitter by air bubbles or particles in the liquid. This small portion is intercepted by a receiving transducer which produces an electrical signal related to the received energy. 
     In Heckman, and in U.S. Pat. No. 5,020,374 issued Jun. 4, 1991 to Petroff et al., the signal produced by the receiving transducer is applied to in-phase and to quadrature detectors, then filtered to eliminate the components corresponding to the sum of the frequencies of the transmitted and received energies and to pass the components corresponding to the difference in frequencies, i.e., to the Doppler shift. The filtered signals are then converted to digital form and subjected to a fast Fourier transformation whereby the digitized Doppler signals are converted to amplitude and phase components at various frequencies. 
     The spectral distributions thus produced include, in addition to the Doppler spectrum, a number of spurious components generated primarily by passage of the sound waves through regions of the liquid that are experiencing turbulent flow, by mechanical vibration, and by electrical noise. To reduce the measuring error caused by these spurious components it is desirable to eliminate the spurious components so far as is practical. It is at this point that the present inventor takes a divergent path from the teachings of Heckman and of Petroff et al. 
     Heckman teaches two methods. In the first method, if the width of the spectrum is judged to be overly broad, the highest significant spectral component is determined, and it is multiplied by a constant to produce an estimate of the mean liquid velocity. In a second method, if the spectrum is judged to be overly narrow, the spectral peak is determined and multiplied by a (different) constant to provide an estimate of the mean liquid velocity. 
     Petroff, in U.S. Pat. No. 5,198,989 and Petroff et al. in U.S. Pat. No. 5,020,374 teach multiplying the peak velocity as determined from the spectral distribution by a constant equal to approximately 0.9 to provide an estimate of the mean liquid velocity. 
     In both Heckman and in Petroff and Petroff et al., the average velocity is found by multiplying some characteristic of the spectrum by an empirical constant. Experience has shown that the proper value for the empirical constant is highly sensitive to flow conditions. Ideally, the empirical constant would be determined through field calibrations under what are hoped to be representative flow conditions. 
     Further, because of the presence of the spurious spectral components, both the highest significant spectral component and the peak of the spectrum could be in error, which would directly affect the estimate provided of the mean liquid velocity. The present inventor, dissatisfied with these prior art approaches, endeavored to find an improved way of estimating the mean liquid velocity from the spectral components. 
     SUMMARY OF THE INVENTION 
     The insight of the present inventor was in recognizing that the spurious spectral components, generated primarily by turbulent flow of the liquid, can be identified and eliminated from the spectrum before the average liquid velocity is calculated, by exploiting the information contained in the phase components. This information was ignored in the prior art methods, and its utilization by the present inventor permits the average liquid velocity to be estimated with greater accuracy than has hitherto been possible. 
     The preset inventor recognized that for Doppler shifts generated by liquid moving toward the receiving transducer, the in-phase channel signal will differ in phase from the quadrature channel signal by +90 degrees. For liquid flow in the opposite direction, the relative phase between the in-phase channel signal and the quadrature channel signal is -90 degrees. Significantly, the phase relationship for random (turbulent) liquid flow is random. 
     Therefore, in accordance with the present invention, those spectral components for which the phase difference between the in-phase (I) channel and the quadrature (Q) channel is not equal (approximately) to either +90 degrees or -90 degrees are deleted prior to calculating the average liquid flow velocity. 
     That is, the average liquid flow velocity is calculated from only those spectral components for which the I channel and the Q channel differ in phase by either +90 degrees or -90 degrees. In this way the errors caused by turbulent flow and other spurious factors are eliminated. 
     As will be seen below, the present inventor showed in detail how this approach can be implemented using practical apparatus. 
     The novel features which are believed to be characteristic of the invention, both as to organization and method of operation, together with further objects and advantages thereof, will be better understood from the following description considered in connection with the accompanying drawings in which a preferred embodiment of the invention is illustrated by way of example. It is to be expressly understood, however, that the drawings are for the purpose of illustration and description only and are not intended as a definition of the limits of the invention. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a block diagram showing how the in-phase and quadrature signals are processed in a prior art system which is also used in association with the present invention; and, 
     FIG. 2 is a diagram illustrating how certain signals generated in FIG. 1 are analyzed in accordance with the present invention to obtain an average flow velocity. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT 
     The circuitry shown in FIG. 1 is common to the prior art and to the present invention, however the data processing technique shown in FIG. 2 is believed to be unique to the present invention. 
     As will be apparent from the following description, the data processing technique of FIG. 2 requires only simple arithmetical operations and storage of numbers and therefore a digital computer is the natural and preferred implementation. 
     As seen in FIG. 1, reflected sonic energy falling on the receiving transducer 1 is converted to an electrical signal that is applied to an in-phase detector 2 and to a quadrature detector 3. These detectors produce analog signals I(t) and Q(t) respectively. 
     The analog signal I(t) is applied to an analog-to-digital converter 4 that converts I(t) to digital form. The digitized values of I(t) are then applied to a fast Fourier transform program 6 that converts the signal from the time domain to the frequency domain and produces, as outputs, two sequences that represent the in-phase amplitude component I A  (f i ) and the phase component I P  (f i ), where i=1, 2, 3 . . . N. 
     Similarly, the output Q(t) of the quadrature detector 3 is applied to the analog-to-digital converter 5 that converts Q(t) to a digital form and applies it to a fast Fourier transform program 7 that produces, as outputs, a quadrature amplitude component Q A  (f i ) and a quadrature phase component Q p  (f i ). 
     Although fast Fourier transform technology is well-known in this art, it is worth noting that the fast Fourier transform programs 6 and 7 require a number of sampled-data inputs to produce a single set of frequency domain values, and therefore succeeding sets of outputs of the fast Fourier transform programs are produced at a considerably slower rate than the sampling rate of the analog-to-digital converters 4 and 5. Also, as a result of each cycle of operation of the fast Fourier transform programs 6 and 7, there are produced four sequences of numbers: I A  (f i ), I P  (f i ), Q A  (f i ), and Q P  (f i ), where i=1, 2, . . . N. FIG. 2 shows how these sequences of numbers are analyzed in each cycle of operation in accordance with the present invention to produce one estimate of the average flow velocity for each cycle of operation. 
     Within a random access memory of a computer, a table 10 of FIG. 2 is constructed. For each cycle of operation, the sequence Q P  (f i ) is entered in column 12, the sequence I P  (f i ) is entered into column 13, and the sequence I A  (f i ) is entered into the column 16. The in-phase components I P  (f i ) are subtracted from the quadrature phase components Q P  (f i ), and the phase differences are entered into the column 14. This brings us to the innovative part of the present invention. 
     The computer is programmed to perform a test on each of the values in the column 14, as follows. First, if the phase difference differs by less than a preselected quantity e from +90 degrees, a weight of +1 is entered in column 15. If the phase difference differs by less than e from -90 degrees, a weight of -1 is entered into column 15. If the phase difference in column 10 is neither approximately +90 degrees nor approximately -90 degrees, a 0 is entered into column 15. The quantity e is a measure of the error that is expected in the measurement of the phase differences. 
     The computer is programmed to multiply the weight in a particular row of column 15 by the amplitude in the same row in column 16, and the weighted amplitudes are entered into column 17. 
     The theory behind the use of this test is that if the amplitude component is produced by a single real object, such as a particle moving with the liquid, the phase difference between the in-phase detected signal and the quadrature detected signal should be either +90 or -90 degrees, give or take the measuring error e in determining the phase components. This can be shown by relatively simple algebraic manipulation of elementary trigonometric identities. In the theory of the present invention, phase differences other than +90 or -90 degrees do not result from real physical objects such as particles, and are considered to be spurious signals or artifacts that should be disregarded when one is attempting to estimate the average flow velocity. 
     The numbers in Column 17 may be thought of as components of the total signal received from a region of space. The frequencies f i  through f N  correspond to flow speeds that are present in the region of space, the + or - signs tell whether the flow is toward or away from the receiving transducer 1, and the amplitudes I A  (f i ) indicate the quantity of signal produced by liquid having the speed corresponding to f i . 
     If the object of the calculation were to determine the total quantity of signal returned, the result could be obtained by summing the numbers in Column 17, without regard for their + or - signs. This summation Σ|W.A.| is indicated in box 20 of FIG. 2. 
     However, the object of the calculation is to estimate the average velocity of flow in the region of space from which the reflected sonic energy has been received. To obtain the average velocity, each possible velocity (indicated by a frequency f i ) is multiplied by a factor ##EQU1## that reflects the fraction of the total signal that is located in the frequency domain at f i , and then summing these products. In the preferred embodiment shown in FIG. 2, the same result is obtained by first summing (in box 19) the amplitude weighted frequencies of column 18, then dividing by the common factor Σ|W.A.|, as indicated at box 21. The result is the average frequency, which is directly related to the average flow velocity by the well-known Doppler relation ##EQU2## A good discussion of this relationship is found in U.S. Pat. No. 4,542,657 issued Sep. 24, 1985 to Barber et al. 
     The estimate thus produced could be used in controlling a number of operations, including opening and closing valves to increase or decrease the flow rates or to adapt an existing process to the measured flow rate. 
     Thus, there has been described a method and apparatus for producing an estimate of the average flow velocity of a liquid based on ultrasonic signals reflected from particles in the fluid and moving with it. The method of the present invention results in a more accurate estimate of the average flow velocity because the estimate is based only on received signals that originate from real objects, and spurious signals are identified and intentionally disregarded. 
     The foregoing detailed description is illustrative of one embodiment of the invention, and it is to be understood that additional embodiments thereof will be obvious to those skilled in the art. The embodiments described herein together with those additional embodiments are considered to be within the scope of the invention.