The invention relates generally to the field of measurement instrumentation, to a method of measuring the relationship between transmitted and received ultrasonic signals to measure a desired parameter, and in particular to metering devices to measure fluid flow.
Various mechanisms have been developed for use in meters to translate flow of a fluid, such as water or oil, to a measurable quantity. One such mechanism is an ultrasonic flow meter.
The typical prior art ultrasonic flow meter positions pairs of ultrasonic transducers on a segment of pipe or conduit, with one transducer located upstream and the other downstream with respect to the direction of fluid flow in the pipe. Each pair of ultrasonic transducers typically sends and receives an ultrasonic pulse, or series of ultrasonic pulses, back and forth. That is, the first transducer in the pair generates a pulse, or series of pulses, which is received by the other transducer. The time of flight of each pulse, or the average time of flight of the pulses in the series of pulses, is measured. The second ultrasonic transducer then sends a pulse, or series of pulses, to the first transducer. Again, the time of flight is measured. The fluid flow causes the pulses traveling downstream (i.e., with the fluid flow) to move faster, and those traveling upstream (i.e., against the fluid flow), to move slower, than the speed of sound in the static fluid. Thus, as is known in the art, the rate of flow can be determined based upon the difference in flight time between the pulses moving downstream and those moving upstream. Because the speed of sound in a fluid is dependent on the temperature of the fluid, accuracy of the meter can vary with temperature if the meter is not calibrated to temperature.
Prior art meters suffer from a number of disadvantages. The arrival time of each pulse must be detected with high accuracy, if the meter is to be accurate. This requires timing precision much smaller than the period of the ultrasonic signal if acceptable resolution is to be achieved, which causes the meters to be expensive. Also, it can be difficult to determine exactly at what point the pulse begins, as received by the receiving transducer. This requires high bandwidth as well, making the system susceptible to noise. Calibration to temperature may require static flow conditions to determine the speed of sound at a given temperature, and also may be based upon factory settings and conditions that are difficult to reproduce in the field.
Thus, there exists a need for an ultrasonic fluid meter which is not dependent upon calibration in response to temperature changes, that does not require high bandwidth electronics, and which uses simplified electronics with increased resistance to noise. The present invention satisfies these needs by providing a method and apparatus including an ultrasonic meter that measures the phase difference between the transmitted and received ultrasonic signals between two transceivers, in both the upstream and downstream directions, with feedback allowing for automatic adjustment of the transmitted signal to accommodate temperature variations.
Embodiments of the present invention satisfy these needs. One embodiment is a method of measuring the rate of flow of fluid in a conduit having first and second ultrasonic transducers positioned a known distance apart. A first periodic signal is transmitted from the first transducer and received at the second transducer, and the phase difference between the signal as transmitted and received is measured. A second periodic signal is transmitted in the opposite direction of flow, that is from the second transducer to the first transducer. Again, the phase difference between the transmitted and received signals is measured. The rate of fluid flow in the conduit is computed based upon the phase differences of the transmitted and received signals. In a preferred embodiment, the phase differences are repeatedly measured for a multiplicity of cycles of the periodic signals, and the computation of fluid flow is based upon an averaging of the repeated measurements. The phase differences of the signals may be measured by detecting zero crossings of the signals, that is, where the amplitude of the signal is zero. The frequency of the transmitted signals may be adjusted to maintain approximately a desired number of half cycles of the signal between the transducers in response to changes in the temperature of the fluid.
Another embodiment of the present invention is an apparatus for measuring the flow of a fluid in a conduit. This embodiment comprises a signal source generating a periodic drive signal that drives a pair of ultrasonic transducers, causing each transducer to transmit an ultrasonic signal through the conduit. Each transducer receives the ultrasonic signal transmitted by the other transducer. A circuit measures the phase relationships between the transmitted and received signals, and a processor computes the rate of flow of fluid in the conduit based upon the phase relationships of the signals. In a preferred embodiment, the circuit generates a first detection signal when the amplitude of the first received signal is a reference value and a second detection signal when the amplitude of the second received signal is the reference value. The reference value is preferably zero, such that the circuit detects zero crossings of the transmitted and received signals. The circuit may be implemented with comparators having a reference value set to zero. In one embodiment, the apparatus includes a counter that provides timing information concerning the phase relationship of the transmitted and received signals over a multiplicity of cycles of the signals. The apparatus may also include a phase locked loop coupled to the phase detection circuitry and to the signal source, where the phase locked loop sets the frequency of the signal source to maintain an approximately integral number of half cycles of the drive signal between the transducers in response to variations in the temperature of the fluid.
The present invention will be explained, by way of example only, with reference to certain embodiments and the attached Figures, in which:
One embodiment of the present invention comprises an ultrasonic fluid meter in which two ultrasonic transducers, one positioned upstream and one positioned downstream, transmit and receive periodic signals to one another. Each transducer receives the signal transmitted by the other. The speed of sound in the fluid, the flow rate, and temperature of the fluid can independently be determined based upon analysis of the phase difference between the transmitted and received signals, as described in more detail below. It should be noted that while the exemplary embodiment below is described with respect to measuring the flow of water, the apparatus and method of the present invention can be applied to measure the flow of any fluid, including for example, water, oil, natural gas, or chemicals.
Referring to
The ultrasonic transducers 30 and 40 may be standard, commercially available ultrasonic transducers. A transducer may act as a transmitter and receiver of an ultrasonic signal. When transmitting, the transducer receives an electrical signal as an input and converts it to a corresponding ultrasonic waveform. When receiving, the transducer receives an ultrasonic waveform and converts it to a corresponding electrical signal.
In the absence of flow (zero flow), an ultrasonic signal travels at the speed of sound in the fluid, which varies by temperature. As is known in the art, an ultrasonic signal traveling upstream in a fluid, against the flow, moves slower than the speed of sound in that fluid, as the velocity of the signal is retarded by the flow. An ultrasonic signal traveling downstream, with the flow, moves faster than the speed of sound in the fluid, as the velocity of the signal is aided by the flow. Therefore, the time it takes for the signal to travel a given distance upstream is longer than the time it takes for the signal to travel the same distance downstream.
In one embodiment, transducer 30 transmits a periodic signal which is received by transducer 40; then, transducer 40 transmits a periodic signal which is received by transducer 30. For simplification of mathematics and optimization of circuitry and performance, these periodic signals are preferably at the same frequency, which is selected based upon the center operating frequency of the particular transducer used.
When there is no flow in the conduit, the signals are in phase.
The time of flight T0 of an ultrasonic signal traveling at the velocity of sound in a fluid, in the absence of flow, can be expressed as follows, where x is the distance traveled, VS is velocity of sound in the fluid.
such that
When the ultrasonic signal is a periodic signal as preferred in embodiments of the present invention, and is more preferably a sine wave transmitting at a known frequency ƒ, T0 may be measured as a function of the period of the sine wave:
where m is the actual number of periods and fractions of a period in T0; and Period is the time in seconds of the period of the periodic signal with frequency ƒ.
To simplify calculations, and in a preferred embodiment, it is desirable that there be an integral number of cycles, or half cycles, of the transmitted ultrasonic signal over the distance that the signal travels at a reference temperature that is typical of an operating temperature of the meter. Here, because the ultrasonic signals are traveling between the transducers 30 and 40, that distance corresponds to the distance between the transducers. Therefore, the distance between the transducers is set to a desired value during design of the meter to provide an integral number of cycles or half cycles of the ultrasonic signal, based upon the intended center frequency of operation and the speed of sound in the fluid at the reference temperature. The intended center frequency of operation is selected based upon the resonant frequency and impedance of the ultrasonic transducer. The distance x between the transducers can be computed as follows, where c is the speed of sound in the fluid at the reference temperature, t is the time of flight of an ultrasonic signal between the transducers over the distance x under no flow conditions, N is the desired number of cycles, and ƒ is the center operating frequency:
With c equal to 1500 m/s (the speed of sound in water at room temperature), N chosen to be 15 cycles, and a center operating frequency ƒ of 150 kHz, the distance x is calculated to be 15 cm.
Thus, the distance x can be chosen to balance the operation of the meter around a desired number of integral cycles, which shall be referred to as the reference number of cycles M. The actual number of cycles m of the signal, however, will deviate from M, typically by some fraction of a cycle, as a function of temperature because the speed of sound in a fluid varies with temperature. The time represented by the deviation of the actual number of cycles m from the reference number of cycles M shall be referred to as Ts.
T0=Period*M+Ts
When the received signal 210 is measured at the downstream transducer 40, the Ts value shall be referred to as TsA. When the received signal 220 is measured at the upstream transducer 30, the Ts value shall be referred to as TsB. When there is no flow present,
These relationships are valid as long as the TsA and the TsB are in the same measurement cycle as M*Period.
If there is flow in the conduit, there is a phase shift in both the upstream and downstream signals 210 and 220, relative to the transmitted signal 200, as shown in
ΔTA=A−A′
ΔTB=B−B′
Further, the difference in time attributable to fluid flow, ΔTA and ΔTB, are directly proportional to the ratio of the velocity of the fluid being measured to the velocity of sound in that fluid, as follows, where VW is the velocity of the fluid (water) and VS is the speed of sound in the fluid at a given temperature:
Thus, when fluid flow is present, the time deviation represented by TsA and TsB includes an additional component attributable to ΔTA and ΔTB. This aggregate time deviation shall be referred to as TsAw and TsBw, respectively.
As discussed below, TsAW and TsBW may be measured directly as the phase difference between the received signals 210 and 220 and the transmitted signal 200, which preferably is measured at the zero crossings of the respective signals. Summing the above equations,
Then, the velocity of sound may be determined independent of velocity of fluid flow, as follows:
The velocity of sound VS in a fluid is a function of the temperature of the fluid. Once the velocity of sound in the fluid is calculated, the temperature of the fluid can be calculated. In water, VS=1404.3 m/s (at 0 C)+4 m/s per degree C. Hence, it is straightforward to calculate temperature of the fluid from the velocity of sound in that fluid. Accordingly, one embodiment of the present invention includes the use of ultrasonic transducers as described to function as a temperature meter. The temperature in turn allows the measurement of the flow of heat energy in the fluid to be determined and the calculation of secondary parameters such as viscosity. Those skilled in the art will recognize that further refinements and increased accuracy can be achieved by taking into account atmospheric pressure, according to well known mathematical and physical relationships.
The mean time deviation in the received signals from the reference number of periods M is
Taking the difference,
Solving for the velocity of water,
Substituting T0=Tsmean+M*Period, then
Thus, the velocity of the fluid may be determined by measuring TsAw and TsBw, from which ΔTAB and Tsmean are computed.
Each transducer converts the ultrasonic signal received from the other transducer to a corresponding electrical signal. Both received signals, that is, the signal 210 received by the downstream transducer 40 and the signal 220 received by the upstream transducer 30 are coupled to electronics to measure a parameter based upon the relationship between the signals, including their phase relationship. In a preferred embodiment, when transducer 30 is being driven, the comparator 140 measures the transmitted signal 200 from transducer 30, and the comparator 130 measures the received signal 210 from transducer 40. Likewise, when transducer 40 is being driven, the comparator 130 measures the transmitted signal 200 from transducer 40, and the comparator 140 measures the received signal 220 from transducer 30. While any arbitrary point on the signals could be used as a benchmark to measure the phase relationship between the received signal and the transmitted signal, that is, TsAW and TsBW, to simplify measurement and calculations, in a preferred embodiment, the reference voltage of the comparators 130 and 140 is zero. The output of comparators 130 and 140 changes state when the input signal (the transmitted signal 200, the received signal 210, or the received signal 220) equals the reference voltage zero. Therefore, cycles of the signals of interest are detected and counted using zero crossings, that is, points 201, 211, and 221 where the respective signals cross the x axis on
The foregoing describes an embodiment in which a single set of measurements and a single calculation of Vw is made. One of the advantages of the present invention, however, is that a multiplicity of measurements of TsAw and TsBw and calculations of Vw can be made in basically the same amount of time that a prior art ultrasonic meter makes a single time-of-flight measurement. In one embodiment of the present invention, measurements of TsAw and TsBw are made at each half cycle of the periodic signals over a defined measurement period; that is, every zero crossing of the signals is timed and counted during the measurement period. This allows repeated and nearly continuous calculations of Vw, which can be averaged to provide a highly accurate meter. Specifically, with a measurement period Tm=N*Period, and taking counts of TsAw and TsBw at each half cycle, Equation 1 becomes, for N cycles,
Gathering terms, substituting T0=Tsmean+M*Period, and recognizing that N*Period=Tm, the equation can be reduced to
Summing the ΔTAB and Tsmean over N cycles provides a more accurate average:
ΣΔTAB=˜2NΔTAB
ΣTsmean=˜2NTsmean
Substituting these relationships into the equation above, and further reducing:
where x, N, and M are constants; ΔTAB, Tsmean, and Tm are in seconds; and Tm is a constant for fixed frequency operation.
When implemented in conjunction with digital circuitry, ΔTAB, Tsmean, and Tm are measured in bus clock cycles (BusClk). To convert them to seconds (or, in a preferred embodiment, nanoseconds), the measured counts are multiplied by the bus clock period (BusClkPeriod). Therefore,
ΣΔTAB=ΣΔTABCnts*BusClkPeriod
ΣTsmean=ΣTsmeanCnts*BusClkPeriod
T
m
=T
mCnts*BusClkPeriod
Substituting these values into the measurement equation above yields:
where x, N, M, and BusClkPeriod are constants and TmCnts is a constant for fixed frequency operation (in a variable frequency operation, discussed below, TmCnts is measured directly); and ΣΔTABCnts, ΣTsmeanCnts, and TmCnts are counts at the frequency of the bus clock (FBusClk).
Typically, the temperature of the fluid will vary over time, normally within a given range. As the temperature of the fluid varies, the speed of sound in the fluid varies. In a preferred embodiment, the operating frequency of the input signal is automatically adjusted as the temperature of the fluid affects the speed of sound in order to maintain the actual number of periods m within a fraction of the reference number of periods M selected during the design of the meter. While the meter is accurate operating at a fixed frequency, adjusting the frequency as described can be helpful in development and test, and also to minimize the size of the counters involved and simply calculations.
The adjustment of the frequency may be accomplished by a phase locked loop set to lock on the frequency at which Tsmean equals zero. As shown in
With a measurement period Tm=N*Period, and substituting
is a constant, and ΣΔTABCnts and TmCnts are measured in BusClk counts.
The dimensions of the conduit 20 in which the measurements are made, and through which the fluid flows, are known. The flow rate can then be calculated based on the following formula:
Q
fluid
=V
W
*A
where Qfluid is the flow rate, Vw is the velocity of water, and A is the cross sectional area of the pipe.
As shown in
In one embodiment, the center frequency of a selected Piezo ultrasonic transducer was 192 KHz, resulting in a period of 5.2 μs. A reference number of cycles M was chosen to be 10, resulting in the distance x between transducers of 7.675 cm. With these values fixed, the other parameters of the device vary as follows with temperature:
Thus, TS varies by approximately half a cycle. With a bus clock of 60 MHz, and taking counts every half cycle, the counts occur in 16.67 ns increments over a 100 cycle measurement period. Further prior art techniques of averaging, known to those of ordinary skill in the art, allow a resolution of approximately 100 ps to be achieved.
Although the present invention has been described and shown with reference to certain preferred embodiments thereof, other embodiments are possible. The foregoing description is therefore considered in all respects to be illustrative and not restrictive. Therefore, the present invention should be defined with reference to the claims and their equivalents, and the spirit and scope of the claims should not be limited to the description of the preferred embodiments contained herein.
This application claims priority to and the benefit of U.S. patent application Ser. No. 13/090,980, filed Apr. 20, 2011, entitled “Ultrasonic Flow Meter.”
Number | Date | Country | |
---|---|---|---|
Parent | 13090980 | Apr 2011 | US |
Child | 13404681 | US |