1. Field of the Invention
The present invention relates to meter electronics and methods for detecting a flow anomaly in a flow material flowing through a flow meter.
2. Statement of the Problem
It is known to use Coriolis mass flow meters to measure mass flow and other information of materials flowing through a pipeline as disclosed in U.S. Pat. No. 4,491,025 issued to J. E. Smith, et al. of Jan. 1, 1985 and Re. 31,450 to J. E. Smith of Feb. 11, 1982. These flow meters have one or more flow tubes of different configurations. Each conduit configuration may be viewed as having a set of natural vibration modes including, for example, simple bending, torsional, radial and coupled modes. In a typical Coriolis mass flow measurement application, a conduit configuration is excited in one or more vibration modes as a material flows through the conduit, and motion of the conduit is measured at points spaced along the conduit.
The vibrational modes of the material filled systems are defined in part by the combined mass of the flow tubes and the material within the flow tubes. Material flows into the flow meter from a connected pipeline on the inlet side of the flow meter. The material is then directed through the flow tube or flow tubes and exits the flow meter to a pipeline connected on the outlet side.
A driver applies a force to the flow tube. The force causes the flow tube to oscillate. When there is no material flowing through the flow meter, all points along a flow tube oscillate with an identical phase. As a material begins to flow through the flow tube, Coriolis accelerations cause each point along the flow tube to have a different phase with respect to other points along the flow tube. The phase on the inlet side of the flow tube lags the driver, while the phase on the outlet side leads the driver. Sensors are placed at different points on the flow tube to produce sinusoidal signals representative of the motion of the flow tube at the different points. The phase difference between the two sensor signals is proportional to the mass flow rate of the material flowing through the flow tube or flow tubes. In one prior art approach either a Discrete Fourier Transform (DFT) or a Fast Fourier Transform (FFT) is used to determine the phase difference between the sensor signals. The phase difference and a vibrational frequency response of the flow tube assembly are used to obtain the mass flow rate.
In one prior art approach, an independent reference signal is used to determine a pickoff signal frequency, such as by using the frequency sent to the vibrational driver system. In another prior art approach, the vibrational response frequency generated by a pickoff sensor can be determined by centering to that frequency in a notch filter, wherein the prior art flowmeter attempts to keep the notch of the notch filter at the pickoff sensor frequency. This prior art technique works fairly well under quiescent conditions, where the flow material in the flowmeter is uniform and where the resulting pickoff signal frequency is relatively stable. However, the phase measurement of the prior art suffers when the flow material is not uniform, such as in two-phase flows where the flow material comprises a liquid and a solid or where there are air bubbles in the liquid flow material. In such situations, the prior art determined frequency can fluctuate rapidly. During conditions of fast and large frequency transitions, it is possible for the pickoff signals to move outside the filter bandwidth, yielding incorrect phase and frequency measurements. This also is a problem in empty-full-empty batching, where the flow meter is repeatedly operated in alternating empty and full conditions. Also, if the frequency of the sensor moves rapidly, a demodulation process will not be able to keep up with the actual or measured frequency, causing demodulation at an incorrect frequency. It should be understood that if the determined frequency is incorrect or inaccurate, then subsequently derived values of density, volume flow rate, etc., will also be incorrect and inaccurate. Moreover, the error can be compounded in subsequent flow characteristic determinations.
In the prior art, the pickoff signals can be digitized and digitally manipulated in order to implement the notch filter. The notch filter accepts only a narrow band of frequencies. Therefore, when the target frequency is changing, the notch filter may not be able to track the target signal for a period of time. Typically, the digital notch filter implementation takes 1-2 seconds to track to the fluctuating target signal. Due to the time required by the prior art to determine the frequency, the result is not only that the frequency and phase determinations contain errors, but also that the error measurement encompasses a time span that exceeds the time span during which the error and/or two-phase flow actually occur. This is due to the relative slowness of response of a notch filter implementation.
The result is that the prior art flowmeter cannot accurately, quickly, or satisfactorily track or determine a pickoff sensor frequency during two-phase flow of the flow material in the flowmeter. Consequently, the phase determination is likewise slow and error prone, as the prior art derives the phase difference using the determined pickoff frequency. Therefore, any error in the frequency determination is compounded in the phase determination. The result is increased error in the frequency determination and in the phase determination, leading to increased error in determining the mass flow rate. In addition, because the determined frequency value is used to determine a density value (density is approximately equal to one over frequency squared), an error in the frequency determination is repeated or compounded in the density determination. This is also true for a determination of volume flow rate, where the volume flow rate is equal to mass flow rate divided by density.
In many flow applications, it is possible to have anomalies entrained in the flow material. A multi-phase flow typically includes multiple materials in a flow. The multiple materials can be desirable or undesirable, including unwanted materials or portions (i.e., anomalies) in the flow material. It would be advantageous if desirable and/or undesirable anomalies could be detected and quantified in the flow material. Anomaly detection could make possible the effective removal or prevention of such anomalies or could make possible a desired level of anomalies.
An anomaly can comprise gas bubbles or air bubbles entrained in the flow material. Examples are air bubbles in water or natural gas bubbles in an oil well output. An anomaly can comprise a foreign liquid in the flow material. For example, water can exists in crude oil in an oil well output. An anomaly can comprise a solid in the flow material. For example, the flow material can include pieces of metal that have broken or flaked off from pipes, pumps, valves, etc., in a fluid processing facility. It should be understood that anomalies in the flow material can include combinations of the gas, liquid, and solid anomalies discussed above.
The anomalies can cause erroneous mass flow rates in a flow meter, among other things. It is highly desirable that a flow meter accurately measure a mass flow rate of the flow liquid even in the presence of anomalies in the flow liquid.
The above and other problems are solved and an advance in the art is achieved through the provision of meter electronics and methods for detecting a flow anomaly in a flow material.
Meter electronics for detecting a flow anomaly in a flow material flowing through a flow meter is provided according to an embodiment of the invention. The meter electronics comprises an interface for receiving a vibrational response of the flow material, with the vibrational response including at least a first sensor signal and a second sensor signal, and a processing system in communication with the interface. The processing system is configured to receive the vibrational response from the interface and generate a ninety degree phase shift from the first sensor signal and generate at least one flow characteristic using at least the first sensor signal and the ninety degree phase shift. The processing system is further configured to compare the at least one flow characteristic to at least one anomaly profile, detect a shift in the vibrational response if the at least one flow characteristic falls within the anomaly profile, and indicate an anomaly condition as a result of the detecting.
A method for detecting a flow anomaly in a flow material flowing through a flow meter is provided according to an embodiment of the invention. The method comprises receiving a vibrational response from the flow meter. The vibrational response includes at least a first sensor signal and a second sensor signal. The method further comprises generating a ninety degree phase shift from the first sensor signal and generating at least one flow characteristic using at least the first sensor signal and the ninety degree phase shift. The method further comprises comparing the at least one flow characteristic to at least one anomaly profile, detecting a shift in the vibrational response if the at least one flow characteristic falls within the anomaly profile, and indicating an anomaly condition as a result of the detecting.
A method for detecting a flow anomaly in a flow material flowing through a flow meter is provided according to an embodiment of the invention. The method comprises receiving a vibrational response from the flow meter. The vibrational response includes at least a first sensor signal and a second sensor signal. The method further comprises generating a ninety degree phase shift from the first sensor signal and generating at least one flow characteristic using at least the first sensor signal and the ninety degree phase shift. The method further comprises comparing the at least one flow characteristic to at least a gas anomaly profile, detecting a shift in the vibrational response if the at least one flow characteristic falls within the gas anomaly profile, and incrementing a bubble count as a result of the detecting.
In one aspect of the meter electronics, the interface includes a digitizer configured to digitize the sensor signal.
In another aspect of the meter electronics, the processing system is further configured to iteratively perform the receiving, generating, comparing, detecting, and indicating.
In yet another aspect of the meter electronics, the flow meter comprises a Coriolis flow meter.
In yet another aspect of the meter electronics, the flow meter comprises a vibrating densitometer.
In yet another aspect of the meter electronics, the at least one flow characteristic comprises a frequency response.
In yet another aspect of the meter electronics, the at least one flow characteristic comprises a phase difference response, and wherein the processing system is further configured to compute the phase difference response using the ninety degree phase shift, the first sensor signal, and the second sensor signal.
In yet another aspect of the meter electronics, the at least one flow characteristic comprises a phase difference response, and wherein the processing system is further configured to generate a second ninety degree phase shift from the second sensor signal and compute the phase difference response using the ninety degree phase shift, the second ninety degree phase shift, the first sensor signal, and the second sensor signal.
In yet another aspect of the meter electronics, the at least one flow characteristic comprises a sensor signal time delay response.
In yet another aspect of the meter electronics, the at least one flow characteristic comprises a mass flow rate response.
In yet another aspect of the meter electronics, the at least one flow characteristic comprises a density response.
In yet another aspect of the meter electronics, the indicating comprises indicating a solids anomaly.
In yet another aspect of the meter electronics, the indicating comprises indicating a foreign liquid anomaly.
In yet another aspect of the meter electronics, the indicating comprises indicating a gas anomaly.
In yet another aspect of the meter electronics, the indicating comprises indicating an air bubble anomaly.
In yet another aspect of the meter electronics, the indicating comprises setting an anomaly alarm condition.
In yet another aspect of the meter electronics, the indicating comprises incrementing an anomaly count.
In one aspect of the method, the method further comprises iteratively performing the receiving, generating, comparing, detecting, and indicating.
In another aspect of the method, the flow meter comprises a Coriolis flow meter.
In yet another aspect of the method, the flow meter comprises a vibrating densitometer.
In yet another aspect of the method, the at least one flow characteristic further comprises a frequency response.
In yet another aspect of the method, the at least one flow characteristic further comprises a phase difference response and with the generating the at least one flow characteristic further comprising computing the phase difference response using the ninety degree phase shift, the first sensor signal, and the second sensor signal.
In yet another aspect of the method, the at least one flow characteristic further comprises a phase difference response and the generating the at least one flow characteristic further comprises generating a second ninety degree phase shift from the second sensor signal and computing the phase difference response using the ninety degree phase shift, the second ninety degree phase shift, the first sensor signal, and the second sensor signal.
In yet another aspect of the method, the at least one flow characteristic further comprises a sensor signal time delay response.
In yet another aspect of the method, the at least one flow characteristic further comprises a mass flow rate response.
In yet another aspect of the method, the at least one flow characteristic further comprises a density response.
In yet another aspect of the method, the indicating comprises indicating a solids anomaly.
In yet another aspect of the method, the indicating comprises indicating a foreign liquid anomaly.
In yet another aspect of the method, the indicating comprises indicating a gas anomaly.
In yet another aspect of the method, the indicating comprising indicating an air bubble anomaly.
In yet another aspect of the method, the indicating comprises setting an anomaly alarm condition.
In yet another aspect of the method, the indicating comprises incrementing an anomaly count.
The same reference number represents the same element on all drawings.
Meter assembly 10 includes a pair of manifolds 150 and 150′, flanges 103 and 103′ having flange necks 110 and 110′, a pair of parallel flow tubes 130 and 130′, drive mechanism 180, temperature sensor 190, and a pair of velocity sensors 170L and 170R. Flow tubes 130 and 130′ have two essentially straight inlet legs 131 and 131′ and outlet legs 134 and 134′ which converge towards each other at flow tube mounting blocks 120 and 120′. Flow tubes 130 and 130′ bend at two symmetrical locations along their length and are essentially parallel throughout their length. Brace bars 140 and 140′ serve to define the axis W and W′ about which each flow tube oscillates.
The side legs 131, 131′ and 134, 134′ of flow tubes 130 and 130′ are fixedly attached to flow tube mounting blocks 120 and 120′ and these blocks, in turn, are fixedly attached to manifolds 150 and 150′. This provides a continuous closed material path through Coriolis meter assembly 10.
When flanges 103 and 103′, having holes 102 and 102′ are connected, via inlet end 104 and outlet end 104′ into a process line (not shown) which carries the process material that is being measured, material enters end 104 of the meter through an orifice 101 in flange 103 is conducted through manifold 150 to flow tube mounting block 120 having a surface 121. Within manifold 150 the material is divided and routed through flow tubes 130 and 130′. Upon exiting flow tubes 130 and 130′, the process material is recombined in a single stream within manifold 150′ and is thereafter routed to exit end 104′ connected by flange 103′ having bolt holes 102′ to the process line (not shown).
Flow tubes 130 and 130′ are selected and appropriately mounted to the flow tube mounting blocks 120 and 120′ so as to have substantially the same mass distribution, moments of inertia and Young's modulus about bending axes W-W and W′-W′, respectively. These bending axes go through brace bars 140 and 140′. Inasmuch as the Young's modulus of the flow tubes change with temperature, and this change affects the calculation of flow and density, resistive temperature detector (RTD) 190 is mounted to flow tube 130′, to continuously measure the temperature of the flow tube. The temperature of the flow tube and hence the voltage appearing across the RTD for a given current passing therethrough is governed by the temperature of the material passing through the flow tube. The temperature dependent voltage appearing across the RTD is used in a well known method by meter electronics 20 to compensate for the change in elastic modulus of flow tubes 130 and 130′ due to any changes in flow tube temperature. The RTD is connected to meter electronics 20 by lead 195.
Both flow tubes 130 and 130′ are driven by driver 180 in opposite directions about their respective bending axes W and W′ and at what is termed the first out-of-phase bending mode of the flow meter. This drive mechanism 180 may comprise any one of many well known arrangements, such as a magnet mounted to flow tube 130′ and an opposing coil mounted to flow tube 130 and through which an alternating current is passed for vibrating both flow tubes. A suitable drive signal is applied by meter electronics 20, via lead 185, to drive mechanism 180.
Meter electronics 20 receives the RTD temperature signal on lead 195, and the left and right velocity signals appearing on leads 165L and 165R, respectively. Meter electronics 20 produces the drive signal appearing on lead 185 to drive element 180 and vibrate tubes 130 and 130′. Meter electronics 20 processes the left and right velocity signals and the RTD signal to compute the mass flow rate and the density of the material passing through meter assembly 10. This information, along with other information, is applied by meter electronics 20 over path 26 to utilization means 29.
The phase difference determination and the frequency determination are much faster and more accurate and reliable than such determinations in the prior art. In one embodiment, the phase difference determination and the frequency determination are directly derived from a phase shift of only one sensor signal, without the need for any frequency reference signal. This advantageously reduces the processing time required in order to compute the flow characteristics. In another embodiment, the phase difference is derived from phase shifts of both sensor signals, while the frequency is derived from only one phase shift signal. This increases the accuracy of both flow characteristics, and both can be determined much faster than in the prior art.
The prior art frequency determination methods typically take 1-2 seconds to perform. In contrast, the frequency determination according to the invention can be performed in as little as 50 milliseconds (ms). Even faster frequency determination is contemplated, depending on the type and configuration of the processing system, the sampling rate of the vibrational response, the filter sizes, the decimation rates, etc. At the 50 ms frequency determination rate, the meter electronics 20 according to the invention can be about 40 times faster than the prior art.
The interface 201 receives the sensor signal from one of the velocity sensors 170L and 170R via the leads 100 of
In addition, the interface 201 can enable communications between the meter electronics 20 and external devices. The interface 201 can be capable of any manner of electronic, optical, or wireless communication.
The interface 201 in one embodiment is coupled with a digitizer 202, wherein the sensor signal comprises an analog sensor signal. The digitizer 202 samples and digitizes the analog sensor signal and produces a digital sensor signal. The digitizer 202 can also perform any needed decimation, wherein the digital sensor signal is decimated in order to reduce the amount of signal processing needed and to reduce the processing time. The decimation will be discussed in more detail below.
The processing system 203 conducts operations of the meter electronics 20 and processes flow measurements from the flow meter assembly 10. The processing system 203 executes one or more processing routines and thereby processes the flow measurements in order to produce one or more flow characteristics.
The processing system 203 can comprise a general purpose computer, a microprocessing system, a logic circuit, or some other general purpose or customized processing device. The processing system 203 can be distributed among multiple processing devices. The processing system 203 can include any manner of integral or independent electronic storage medium, such as the storage system 204.
The processing system 203 processes the sensor signal 210 in order to determine one or more flow characteristics from the sensor signal 210. The one or more flow characteristics can include a phase difference, a frequency, a time difference (Δt), a mass flow rate, and/or a density for the flow material, for example.
In the embodiment shown, the processing system 203 determines the flow characteristics from the two sensor signals 210 and 211 and the single sensor signal phase shift 213. The processing system 203 can determine at least the phase difference and the frequency from the two sensor signals 210 and 211 and the single phase shift 213. As a result, either a first or second phase shifted sensor signal (such as one of the upstream or downstream pickoff signals) can be processed by the processing system 203 according to the invention in order to determine a phase difference, a frequency, a time difference (Δt), and/or a mass flow rate for the flow material.
The storage system 204 can store flow meter parameters and data, software routines, constant values, and variable values. In one embodiment, the storage system 204 includes routines that are executed by the processing system 203. In one embodiment, the storage system 204 stores a phase shift routine 212, a phase difference routine 215, a frequency routine 216, a time difference (Δt) routine 217, and a flow characteristics routine 218.
In one embodiment, the storage system 204 stores variables used to operate the Coriolis flow meter 5. The storage system 204 in one embodiment stores variables such as the first sensor signal 210 and the second sensor signal 211, which are received from the velocity/pickoff sensors 170L and 170R. In addition, the storage system 204 can store a 90 degree phase shift 213 that is generated in order to determine the flow characteristics.
In one embodiment, the storage system 204 stores one or more flow characteristics obtained from the flow measurements. The storage system 204 in one embodiment stores flow characteristics such as a phase difference 220, a frequency 221, a time difference (Δt) 222, a mass flow rate 223, a density 224, and a volume flow rate 225, all determined from the sensor signal 210.
The phase shift routine 212 performs a 90 degree phase shift on an input signal, i.e., on the sensor signal 210. The phase shift routine 212 in one embodiment implements a Hilbert transform (discussed below).
The phase difference routine 215 determines a phase difference using the single 90 degree phase shift 213. Additional information can also be used in order to compute the phase difference. The phase difference in one embodiment is computed from the first sensor signal 210, the second sensor signal 211, and the 90 degree phase shift 213. The determined phase difference can be stored in the phase difference 220 of the storage system 204. The phase difference, when determined from the 90 phase shift 213, can be calculated and obtained much faster than in the prior art. This can provide a critical difference in flow meter applications having high flow rates or where multi-phase flows occur. In addition, the phase difference can be determined independent of the frequency of either sensor signal 210 or 211. Moreover, because the phase difference is determined independently of the frequency, an error component in the phase difference does not include an error component of the frequency determination, i.e., there is no compounding error in the phase difference measurement. Consequently, the phase difference error is reduced over a phase difference of the prior art.
The frequency routine 216 determines a frequency (such as that exhibited by either the first sensor signal 210 or the second sensor signal 211) from the 90 degree phase shift 213. The determined frequency can be stored in the frequency 221 of the storage system 204. The frequency, when determined from the single 90 phase shift 213, can be calculated and obtained much faster than in the prior art. This can provide a critical difference in flow meter applications having high flow rates or where multi-phase flows occur.
The time difference (Δt) routine 217 determines a time difference (Δt) between the first sensor signal 210 and the second sensor signal 211. The time difference (Δt) can be stored in the time difference (Δt) 222 of the storage system 204. The time difference (Δt) comprises substantially the determined phase divided by the determined frequency, and is therefore used to determine the mass flow rate.
The flow characteristics routine 218 can determine one or more flow characteristics. The flow characteristics routine 218 can use the determined phase difference 220 and the determined frequency 221, for example, in order to accomplish these additional flow characteristics. It should be understood that additional information may be required for these determinations, such as the mass flow rate or density, for example. The flow characteristics routine 218 can determine a mass flow rate from the time difference (Δt) 222, and therefore from the phase difference 220 and the frequency 221. The formula for determining mass flow rate is given in U.S. Pat. No. 5,027,662 to Titlow et al., and is incorporated herein by reference. The mass flow rate is related to the mass flow of flow material in the meter assembly 10. Likewise, the flow characteristics routine 218 can also determine the density 224 and/or the volume flow rate 225. The determined mass flow rate, density, and volume flow rate can be stored in the mass flow rate 223, the density 224, and the volume 225 of the storage system 204, respectively. In addition, the flow characteristics can be transmitted to external devices by the meter electronics 20.
In step 302, the sensor signals can be conditioned. In one embodiment, the conditioning can include filtering to remove noise and unwanted signals. In one embodiment, the filtering can comprise band-pass filtering centered around the expected fundamental frequency of the Coriolis flow meter 5. In addition, other conditioning operations can be performed, such as amplification, buffering, etc. If the sensor signals comprise analog signals, the step can further comprise any manner of sampling, digitization, and decimation that are performed in order to produce digital sensor signals.
In step 303, a single 90 degree phase shift is generated. The 90 degree phase shift comprises a 90 degree phase shift of the sensor signal. The 90 degree phase shift can be performed by any manner of phase shift mechanism or operation. In one embodiment, the 90 degree phase shift is performed using a Hilbert transform, operating on digital sensor signals.
In step 304, a phase difference is computed, using the single 90 degree phase shift. Additional information can also be used in order to compute the phase difference. In one embodiment, the phase difference is determined from the first sensor signal, the second sensor signal, and the single 90 degree phase shift. The phase difference comprises a phase difference in the response signal, i.e., in a pickoff sensor, that is seen due to the Coriolis effect in the vibrating meter assembly 10.
The resulting phase difference is determined without the need for any frequency value in the calculation. The resulting phase difference can be obtained much faster than a phase difference calculated using a frequency. The resulting phase difference has a greater accuracy than a phase difference calculated using a frequency.
In step 305, a frequency is computed. The frequency according to the invention is advantageously computed from the 90 degree phase shift. The frequency in one embodiment uses the 90 degree phase shift and the corresponding sensor signal from which the 90 degree phase shift is derived. The frequency is a vibrational response frequency of one of the first sensor signal and the second sensor signal (the frequencies of the two sensor signals are substantially identical in operation). The frequency comprises a vibrational frequency response of the flowtube or flowtubes to a vibration generated by the driver 180.
The frequency thus derived is obtained without the need for any independent frequency reference signal. The frequency is obtained from the single 90 degree phase shift in an operation that is much faster than in the prior art. The resulting frequency has a greater accuracy than a frequency calculated in the prior art.
In step 306, a mass flow rate of flow material is computed. The mass flow rate is computed from the resulting phase difference and the resulting frequency computed in steps 304 and 305. In addition, the mass flow rate computation can compute a time difference (Δt) from the phase difference and the frequency, with the time difference (Δt) being ultimately used to compute the mass flow rate.
In step 307, the density can optionally be determined. The density can be determined as one of the flow characteristics, and can be determined from the frequency, for example.
In step 308, the volume flow rate can optionally be determined. The volume flow rate can be determined as one of the flow characteristics, and can be determined from the mass flow rate and the density, for example.
The meter electronics 20 in this embodiment includes the first sensor signal 210 and the second sensor signal 211. The processing system 203 processes the first and second (digital) sensor signals 210 and 211 in order to determine one or more flow characteristics from the signals. As previously discussed, the one or more flow characteristics can include a phase difference, a frequency, a time difference (Δt), a mass flow rate, a density, and/or a volume flow rate for the flow material.
In the embodiment shown, the processing system 203 determines the flow characteristics from only the two sensor signals 210 and 211, without the need for any external frequency measurement and without the need for an external frequency reference signal. The processing system 203 can determine at least the phase difference and the frequency from the two sensor signals 210 and 211.
As was previously discussed, the storage system 204 stores a phase shift routine 212, a phase difference routine 215, a frequency routine 216, a time difference (Δt) routine 217, and a flow characteristics routine 218. The storage system 204 stores the first sensor signal 210 and the second sensor signal 211. The storage system 204 also stores a first 90 degree phase shift 213 and a second 90 degree phase shift that are generated from the sensor signals in order to determine the flow characteristics. As was previously discussed, the storage system 204 stores the phase difference 220, the frequency 221, the time difference (Δt) 222, the mass flow rate 223, the density 224, and the volume flow rate 225.
The phase shift routine 212 performs a 90 degree phase shift on an input signal, including on the first sensor signal 210 and on the second sensor signal 211. The phase shift routine 212 in one embodiment implements a Hilbert transform (discussed below).
The phase difference routine 215 determines a phase difference using the first 90 degree phase shift 213 and the second 90 degree phase shift 214. Additional information can also be used in order to compute the phase difference. The phase difference in one embodiment is computed from the first sensor signal 210, the second sensor signal 211, the first 90 degree phase shift 212, and the second 90 degree phase shift 213. The determined phase difference can be stored in the phase difference 220 of the storage system 204, as previously discussed. The phase difference, when determined using the first and second 90 phase shifts, can be calculated and obtained much faster than in the prior art. This can provide a critical difference in flow meter applications having high flow rates or where multi-phase flows occur. In addition, the phase difference can be determined independent of the frequency of the sensor signals 210 and 211. Moreover, because the phase difference is determined independently of the frequency, an error component in the phase difference does not suffer from an error component of the frequency determination, i.e., there is no compounding error in the phase difference measurement. Consequently, the phase difference error is reduced over a phase difference of the prior art.
The frequency routine 216 determines a frequency (such as that exhibited by either the first sensor signal 210 or the second sensor signal 211) from the first 90 degree phase shift 213 and the second 90 degree phase shift 214. The determined frequency can be stored in the frequency 221 of the storage system 204, as previously discussed. The frequency, when determined from the first and second 90 phase shifts, can be calculated and obtained much faster than in the prior art. This can provide a critical difference in flow meter applications having high flow rates or where multi-phase flows occur.
The time difference (Δt) routine 217 determines a time difference (Δt) between the first sensor signal 210 and the second sensor signal 211. The time difference (Δt) can be stored in the time difference (Δt) 222 of the storage system 204, as previously discussed. The time difference (Δt) comprises substantially the determined phase divided by the determined frequency, and is therefore used to determine the mass flow rate.
The flow characteristics routine 218 can determine one or more of the mass flow rate, the density, and/or the volume flow rate, as previously discussed.
In step 502, the second sensor signal is received. In one embodiment, the second sensor signal comprises either a downstream or upstream pickoff sensor signal (i.e., the opposite of the first sensor signal).
In step 503, the sensor signals can be conditioned. In one embodiment, the conditioning can include filtering to remove noise and unwanted signals. In one embodiment, the filtering can comprise band-pass filtering, as previously discussed. In addition, other conditioning operations can be performed, such as amplification, buffering, etc. If the sensor signals comprise analog signals, the step can further comprise any manner of sampling, digitization, and decimation that are performed in order to produce digital sensor signals.
In step 504, a first 90 degree phase shift is generated. The first 90 degree phase shift comprises a 90 degree phase shift of the first sensor signal. The 90 degree phase shift can be performed by any manner of mechanism or operation. In one embodiment, the 90 degree phase shift is performed using a Hilbert transform, operating on digital sensor signals.
In step 505, a second 90 degree phase shift is generated. The second 90 degree phase shift comprises a 90 degree phase shift of the second sensor signal. As in the first 90 degree phase shift, the 90 degree phase shift can be performed by any manner of mechanism or operation.
In step 506, a phase difference is computed between the first sensor signal and the second sensor signal, using the first 90 degree phase shift and the second 90 degree phase shift. Additional information can also be used in order to compute the phase difference. In one embodiment, the phase difference is determined from the first sensor signal, the second sensor signal, the first 90 degree phase shift, and the second 90 degree phase shift. The phase difference comprises a phase difference in the response signal, i.e., in the two pickoff sensors, that is seen due to the Coriolis effect in the vibrating meter assembly 10.
The resulting phase difference is determined without the need for any frequency value in the calculation. The resulting phase difference can be obtained much faster than a phase difference calculated using a frequency. The resulting phase difference has a greater accuracy than a phase difference calculated using a frequency.
In step 507, a frequency is computed. The frequency according to the invention is advantageously computed from the first 90 degree phase shift and the second 90 degree phase shift. The frequency in one embodiment uses the 90 degree phase shift and the corresponding sensor signal from which the 90 degree phase shift is derived. The frequency is a vibrational response frequency of one of the first sensor signal and the second sensor signal (the frequencies of the two sensor signals are substantially identical in operation). The frequency comprises a vibrational frequency response of the flowtube or flowtubes to a vibration generated by the driver 180.
The frequency thus derived is obtained without the need for any independent frequency reference signal. The frequency is obtained from the 90 degree phase shifts in an operation that is much faster than in the prior art. The resulting frequency has a greater accuracy than a frequency calculated in the prior art.
In step 508, a mass flow rate of flow material is computed. The mass flow rate is computed from the resulting phase difference and the resulting frequency computed in steps 506 and 507. In addition, the mass flow rate computation can compute a time difference (Δt) from the phase difference and the frequency, with the time difference (Δt) being ultimately used to compute the mass flow rate.
In step 509, the density can optionally be determined, as previously discussed.
In step 510, the volume flow rate can optionally be determined, as previously discussed.
In one embodiment, the stage 1 filter block 601 and the stage 2 filter block 602 comprise digital Finite Impulse Response (FIR) polyphase decimation filters, implemented in the processing system 203. These filters provide an optimal method for filtering and decimating one or both sensor signals, with the filtering and decimating being performed at the same chronological time and at the same decimation rate. Alternatively, the stage 1 filter block 601 and the stage 2 filter block 602 can comprise Infinite Impulse Response (IIR) filters or other suitable digital filters or filter processes. However, it should be understood that other filtering processes and/or filtering embodiments are contemplated and are within the scope of the description and claims.
The Hilbert transform block 603 is a first step to providing the phase measurement. The Hilbert transform block 603 receives the filtered, decimated LPO and RPO signals and performs a Hilbert transform. The Hilbert transform produces 90 degree phase-shifted versions of the LPO and RPO signals, i.e., it produces quadrature (Q) components of the original, in-phase (I) signal components. The output of the Hilbert transform block 603 therefore provides the new quadrature (Q) components LPO Q and RPO Q, along with the original, in-phase (I) signal components LPO I and RPO I.
The inputs to the Hilbert transform block 603 can be represented as:
LPO=A
lpo cos(ωt) (2)
RPO =A
rpo cos(ωt+ø) (3)
Using the Hilbert transform the output becomes:
LPO
hilbert
=A
lpo sin(ωt) (4)
RPO
hilbert
=A
rpo sin(ωt+ø)] (5)
Combining the original terms with the output of the Hilbert transform yields:
LPO=A
lpo[cos(ωt)+isin(ωt)]=Alpoej(ωt) (6)
RPO=A
rpo[cos(ωt+ø)+isin(ωt+ø)]=Arpo ej(ωt+ø) (7)
In the embodiment of
The join blocks 801a and 801b receive both in-phase (I) and quadrature (Q) components of a sensor signal and pass them on. The conjugate block 802 performs a complex conjugate on a sensor signal (here the LPO signal), and forms a negative of the imaginary signal. The complex multiplication block 803 multiplies the RPO signal and the LPO signal, implementing equation (8) below. The filter block 804 implements a digital filter, such as the FIR filter discussed above. The filter block 804 can comprise a polyphase decimation filter that is used to remove harmonic content from the in-phase (I) and quadrature (Q) components of the sensor signal, as well as to decimate the signal. The filter coefficients can be chosen to provide decimation of the inputted signal, such as decimation by a factor of 10, for example. The phase angle block 805 determines the phase angle from the in-phase (I) and quadrature (Q) components of the LPO signal and the RPO signal. The phase angle block 805 implements equation (11) shown below.
The phase portion 604a shown in
LPO
where
A
Rpo
=A
Lpo
=A (9)
then:
The resulting differential phase angle is:
As previously discussed, the join block 901 receives both in-phase (I) and quadrature (Q) components of a sensor signal and passes them on. The conjugate block 902 performs a complex conjugate on a sensor signal, here the LPO signal, and forms a negative of the imaginary signal. The delay block 903 introduces a sampling delay into the frequency portion 604b, and therefore selects a digital signal sample that is chronologically older in time. This older digital signal sample is multiplied with the current digital signal in the complex multiplication block 904. The complex multiplication block 904 multiplies the LPO signal and the LPO conjugate signal, implementing equation (12) below. The filter block 905 implements a digital filter, such as the FIR filter previously discussed The filter block 905 can comprise a polyphase decimation filter that is used to remove harmonic content from the in-phase (I) and quadrature (Q) components of the sensor signal, as well as to decimate the signal. The filter coefficients can be chosen to provide decimation of the inputted signal, such as decimation by a factor of 10, for example. The phase angle block 906 determines a phase angle from the in-phase (I) and quadrature (Q) components of the LPO signal. The phase angle block 906 implements a portion of equation (13) below. The constant block 907 supplies a factor comprising a sample rate FS divided by two pi, as shown in equation (14). The division block 908 performs the division operation of equation (14).
The frequency portion 604b implements the following equation:
(n−1)
×LPO
(n)
=A
lpo
e
−j(ωt−1)
×A
Lpo
e
j(ωt)
=A
2
lpo
ee
j(ωt−ωt−1) (12)
The angle between two consecutive samples is therefore:
which is the radian frequency of the left pick-off. Converting to Hz:
where “Fs” is the rate of the Hilbert transform block 603. In the example previously discussed, “Fs” is about 2 kHz.
This processing embodiment uses the Hilbert transform/phase shift of only one sensor signal in order to derive both the frequency and the phase difference (see FIGS. 2-3). This significantly reduces the number of computations needed to perform a phase measurement and significantly reduces the number of computations needed to obtain the mass flow rate.
In this embodiment, the output of the Hilbert transform block 603′ will provide the quadrature (Q) component of either the left or right sensor signal, but not both. In the example below, the LPO signal is phase shifted.
LPO=A
lpo cos(ωt) (26)
RPO=A
rpo cos(ωt+Ø) (27)
Using the Hilbert transform, the output becomes:
LPO
hilbert
=A
lpo sin(ωt) (28)
RPO=A
rpo cos(ωt+Ø) (29)
Combining the LPO original term with the output of the Hilbert transform (i.e., with the 90 phase shift) yields:
LPO=A
lpo[cos(ωt)+isin(ωt)]=Alpoej(ωt) (30)
while the RPO stays the same:
The low-pass filter block 1201 comprises a low-pass filter that removes a high-frequency component produced by the complex multiplication block 803. The low-pass filter block 1201 can implement any manner of low-pass filtering operation. The result of the multiplication operation produces two terms. The (−ωt+ωt+Ø) term combines and simplifies to a phase-only Ø term (a DC result), since the (−ωt) and the (ωt) terms cancel each other out. The (ωt+ωt+Ø) simplifies to a (2ωt+Ø) term, at twice the frequency. Since the result is the sum of 2 terms, the high frequency (2ωt+Ø) term can be removed. The only signal of interest here is the DC term. The high frequency (2ωt+Ø) term can be filtered out of the result using a low-pass filter. The cut-off of the low-pass filter can be located anywhere between zero and 2ω).
After filtering, the result is:
Therefore, the differential phase angle is:
By taking the Hilbert transform of one pick-off signal instead of two, the computational load needed to perform phase and frequency estimation in Coriolis mass flow meters is advantageously reduced. The phase and frequency can therefore be determined using two sensor signals, but using only one 90 degree phase shift.
It should be understood that the meter electronics 20 of this figure can include various other components and/or routines discussed above. Components and/or routines in common with other embodiments share common reference numbers.
The meter electronics 20 can be in communication with the meter assembly 10, where the meter assembly 10 can comprise any manner of flow meter that generates at least a frequency response. In one embodiment, the meter assembly 10 comprises a Coriolis flow meter. In another embodiment, the meter assembly 10 comprises a vibrating densitometer.
The meter electronics 20 of this embodiment can store and execute processing routines. The processing routines in one embodiment include a vibrational response processing routine 1401, an anomaly detect routine 1402, an anomaly indicate routine 1403, and an anomaly alarm routine 1404. It should be understood that the processing system 203 can include other routines, such as the routines that were previously discussed.
The meter electronics 20 can include variables and working values. The meter electronics 20 of this embodiment includes a vibrational response 1410, one or more anomaly profiles 1411, an anomaly condition 1412, an anomaly alarm 1413, and an anomaly count 1414. It should be understood that the processing system 203 can include other variables, such as the variables that were previously discussed.
In operation, the meter electronics 20 processes a vibrational response that is received from the meter assembly 10 (see
The flow characteristics, when determined using the single or dual phase shifts described above, can be quickly obtained, in contrast to the prior art. Moreover, the flow characteristics can be determined substantially instantaneously. Other flow characteristics can be determined using the frequency and the phase difference. The determinations of the flow characteristics can provide estimated flow characteristics. The nearly instantaneous flow characteristic determination(s) are advantageously available for use in other determinations, such as in the anomaly detection according to the invention. Because the flow characteristics can be substantially instantaneously determined, anomalies in the flow material can be quickly and accurately detected.
The anomaly can include entrained gas/air and/or bubbles in the flow material. The anomaly can include a foreign liquid in the flow material. The anomaly can include a solid in the flow material. The anomaly can include a two-phase or multi-phase flow material.
The flow characteristics will change when an anomaly passes through the meter assembly 10. When a significant anomaly moves through the flow meter, the meter will experience an instantaneous shift in frequency and a corresponding instantaneous shift in mass flow if the density/specific gravity of the anomaly differs from that of the flow material. The frequency of the meter assembly 10 can increase with lower density of the flow material (such as when entrained air is present, for example). Conversely, the frequency of the meter assembly 10 can decrease when high densities are present (such as when pieces of metal or other solids pass through, for example). Likewise, a density of the flow material can be used to detect anomalies such as air bubbles when the density characteristically decreases. For air bubbles, the frequency of the flow meter increases with the lower density fluid and the mass flow decreases due to the low mass of an air bubble. In addition, the phase difference and/or time delay can be used to detect such anomalies.
The meter electronics 20 can subsequently set the anomaly condition 1412 that indicates the occurrence of the anomaly. The meter electronics 20 can subsequently set the anomaly alarm 1413 that can perform or initiate some manner of anomaly handling routine, process, or notification. The meter electronics 20 can subsequently increment the anomaly count 1414 that counts the detected anomaly conditions. The anomaly detection, indication, alarms, and count are discussed in more detail below in conjunction with the flowchart 2000 of
It should be understood that the meter electronics 20 can iteratively receive and process the vibrational response. As a result, the meter electronics 20 can detect anomalies during operation of the associated flow meter. The meter electronics 20 can substantially continuously perform the anomaly indication, alarm, and count processes over time as various anomalies pass through the flow meter.
The vibrational response processing routine 1401 receives the vibrational response. As previously discussed, the vibrational response can include first and second sensor signals that reflect the response of the one or more flow conduits to a drive vibration imposed on the flow meter. The vibrational response processing routine 1401 in some embodiments processes the vibrational response in order to obtain one or more flow characteristics of the flow material. The one or more flow characteristics can include a frequency response, a phase difference between the first and second sensor signals, a density, a mass flow rate, a volume flow rate, etc. The frequency response is inherently related to the flow of flow material through the flow meter (as are all of the derived flow characteristics). The frequency therefore varies with the mass flow rate in the flow meter. The frequency also varies with the density of the flow material. For example, where the flow material comprises a liquid, entrained gas passing through the flow meter will cause the frequency to momentarily spike up to a higher frequency value, as the mass in the flow meter drops and as the vibrational response is temporarily less damped by flow material. Therefore, by employing the fast frequency and phase difference determinations, the meter electronics 20 can detect anomalies in the flow, and can substantially instantaneously detect the anomalies. In addition, the meter electronics 20 in some embodiments and under some flow conditions can quantify the anomalies.
The anomaly detect routine 1402 in one embodiment compares the vibrational response to at least one anomaly profile 1411 (discussed below). If the vibrational response falls within the anomaly profile 1411, then the anomaly detect routine 1402 determines that an anomaly is occurring.
The anomaly indicate routine 1403 in one embodiment sets an anomaly condition 1412 (discussed below). The anomaly indicate routine 1403 therefore indicates the occurrence of the anomaly. In one embodiment, the anomaly indicate routine 1403 increments the anomaly count 1414.
The anomaly alarm routine 1404 in one embodiment sets the anomaly alarm 1413. The anomaly alarm 1413 can perform or initiate any manner of anomaly handling routine, process, or notification.
The vibrational response 1410 stores a vibrational response received from the meter assembly 10. The vibrational response 1410 can comprise any manner of data storage, such as a circular queue, for example. The vibrational response 1410 can comprise digital representations of an analog electrical signal received from the meter assembly 10. The vibrational response 1410 can comprise sampled portions of the electrical signal. The vibrational response 1410 can include first and second sensor signals and can further include flow characteristics derived from the first and second sensor signals. For example, the vibrational response 1410 can include a frequency value (i.e., a frequency approximation or estimation) that is derived from the first and second sensor signals.
The anomaly profile 1411 stores one or more profiles that are used in order to detect anomalies in the flow material. Multiple anomaly profiles can be included where multiple anomaly types are desired to be detected. A stored anomaly profile can include any information that enables an anomaly determination.
In one embodiment, the anomaly profile can include an anomaly frequency profile. The anomaly frequency profile can comprise a frequency threshold that is above or below an expected flow material frequency characteristic. When the vibrational response exceeds the anomaly frequency threshold, then an anomaly occurrence is determined to exist. Alternatively, in another embodiment, the anomaly frequency profile can comprise a frequency range. The anomaly frequency range can comprise a frequency range that is above or below the associated flow characteristic. When the vibrational response is within the anomaly frequency range, then an anomaly occurrence is determined to exist. The anomaly frequency range can be specific to the phase and composition of the anomalous material. For example, the anomaly frequency range can be specific to a particular gas, such as natural gas in a crude oil flow stream, and the meter electronics 20 therefore can detect natural gas bubbles in the crude oil.
In one embodiment, the anomaly profile can include an anomaly amplitude profile. The anomaly amplitude profile can include an anomaly amplitude threshold or an anomaly amplitude range. The anomaly amplitude threshold/range can comprise a density, mass flow rate, or time or phase delay amplitude value, for example. However, the anomaly amplitude threshold/range can include other flow characteristics. The anomaly amplitude threshold/range can be above or below an expected flow material flow characteristic. When the vibrational response exceeds or falls within the anomaly amplitude threshold/range, then an anomaly occurrence is determined to exist.
In one embodiment, the anomaly profile can include a time duration profile. The time duration profile can comprise a time duration of a deviation from the expected flow material characteristic. For example, a typical air bubble in water will transit through the meter assembly 10 in about 100 milliseconds (ms). If a frequency response includes a frequency spike that is about 100 ms in duration, the time duration profile alone may be used in order to make an air bubble anomaly determination. As a result, when an associated flow characteristic deviates from the expected flow material frequency characteristic for a time period that falls within the time duration profile, then an anomaly occurrence is determined to exist.
In one embodiment, the anomaly profile can include one or more of the above frequency, amplitude, and time duration thresholds/ranges. For example, for air bubble detection, the anomaly profile 1411 can comprise both a frequency threshold/range and an anomaly time duration profile. Other combinations can be used, depending on the anomalous material or materials to be detected. The detection in one embodiment employs pattern recognition.
The anomaly condition 1412 can comprise a state variable that indicates whether an anomaly is currently occurring. For example, because the meter electronics 20 can quickly or substantially instantaneously determine flow characteristics, the anomaly condition 1412 can indicate an anomaly in substantially real time. In one example, the anomaly condition 1412 can be set to a TRUE or ON value while an air bubble is passing through the meter assembly 10, and can be set to FALSE otherwise.
The anomaly alarm 1413 can comprise a state variable that indicates an alarm condition. The anomaly alarm 1413 can be set to TRUE when an anomaly is determined to be occurring. The anomaly alarm 1413 can be used to initiate some manner of routine, processing, or notification to be performed during the anomaly. For example, if a solid is detected in the flow material, the anomaly alarm 1413 can initiate an anomaly display to an operator, can initiate an anomaly message to another device, etc.
The anomaly count 1414 can be used to count anomaly occurrences. The anomaly count 1414 can count gas or air bubbles, pockets of foreign liquids, or solids in the flow material. The anomaly count 1414 can be incremented at every detection of an anomaly. The anomaly count 1414 can be incremented when the anomaly condition 1412 is set to a TRUE state, for example.
In step 2002, the vibrational response is compared to an anomaly profile. As previously discussed, the anomaly profile can provide information that enables detection of an anomaly of many different types. The anomaly profile can specify a gas anomaly to be detected. The anomaly profile can specify a foreign liquid anomaly to be detected. The anomaly profile can specify a solid anomaly to be detected.
The anomaly profile can include an amplitude profile, such as an amplitude anomaly threshold or an amplitude anomaly range. The amplitude profile can comprise a profile of a frequency, density, or mass flow rate flow characteristic.
The anomaly profile can include a frequency profile, such as a frequency anomaly threshold or frequency anomaly range that can be used to determine an anomaly in the flow material.
The anomaly profile can include a time duration profile. The time duration profile can indicate an anomaly if the vibrational response deviates from an expected response according to the time duration profile.
The anomaly profile can comprise a bubble profile, including an air bubble profile. The bubble profile can specify any combination of amplitude, frequency, and/or time values that indicate an anomaly in the flow material. For example, the bubble profile in one embodiment can include a frequency threshold of frequencies above 135 Hz and a time duration of about 100 ms, where the flow material is water and the bubble comprises an air bubble. However, other frequency thresholds and time durations are contemplated and are within the scope of the description and claims.
It should be understood that the anomaly profile can include one or more of the above factors. The anomaly profile can be selected or created for a predetermined flow material and for one or more predetermined anomaly types that are expected in the flow material.
In step 2003, if the vibrational response is within the anomaly profile, then the method proceeds to step 2004; otherwise, the method branches around steps 2004 and 2005.
In step 2004, because the vibrational response falls within the anomaly profile, then a shift in the vibrational response is detected.
In step 2005, because the shift has occurred, an anomaly is indicated. As previously discussed, the indication can include multiple actions. In one embodiment, the anomaly condition 1412 can be set to a TRUE state as long as the anomaly is detected. For an air bubble in a water flow material, an air bubble will typically take about 100 ms to pass through the flow meter. In one embodiment, the anomaly alarm 1413 can be set to TRUE, wherein the alarm state can perform or initiate some manner of anomaly handling routine, process, or notification. In one embodiment, an anomaly count 1414 can be incremented, wherein the anomaly count 1414 counts occurrences of anomalies in the flow condition. For example, the anomaly count 1414 can count occurrences of gas bubbles, air bubbles, or solids in the flow material.
It should be understood that the above method steps can be iteratively performed. As the vibrational response is continuously received, it can be iteratively processed and compared, and anomalies in the flow material can be substantially continuously detected and indicated. Any anomalies can be detected and indicated substantially in real time. The flowchart therefore loops back to step 2001.
The meter electronics and method according to the invention can be employed according to any of the embodiments in order to provide several advantages, if desired. Advantageously, by employing the fast frequency and phase determinations, the meter electronics can detect anomalies in the flow. The invention can quickly and accurately detect a flow anomaly. The invention can detect anomalies substantially instantaneously. The invention in some embodiments and under some flow conditions can quantify the anomalies.
The invention can detect a gas bubble in the flow material. The invention can detect an air bubble in the flow material. The invention can count air bubbles in the flow material. The invention can determine bubble boundaries of bubbles in the flow material. The invention can detect foreign liquids in the flow material. The invention can detect solids in the flow material. The invention can count solids in the flow material.
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/US2006/020188 | 12/7/2006 | WO | 00 | 11/19/2007 |
Number | Date | Country | |
---|---|---|---|
60685739 | May 2005 | US |