The invention will now be explained in greater detail on the basis of the appended drawings, the figures of which show as follows:
In
According to the invention, the control/evaluation unit 11 ascertains a plurality of sampled values (α, with i=1, 2, 3, . . . ) of a received measuring signal at defined points in time (t) within a predetermined time range. Then, the sampled values in the predetermined time range are interpolated by a continuous function (f(t)), with the continuous function (f(t)) being formed by a sum of a predetermined number (n ε N) of wavelets (W) and with each wavelet (W) corresponding to the product of a sampled value with a sinc function
and with a Gaussian bell curve (e−αχ
In the time domain, the formula has the following form:
By means of the above calculation, an efficient and rapid interpolation can be achieved at relatively small calculational capacity.
Let us consider the case of oversampling and assume that the oversampling rate is equal to σ, where σ is a whole number and greater than or equal to 2. As a result, each sampling range of duration T is divided into σ sampling range portions of duration T/σ.
In the following, let us concentrate on the time range −T/2<t≦+T/2. Of course, also other values of t can be calculated, analogously, by shifting the sampling range correspondingly. The formula for the function f(iT/σ) is, for i in the range −(σ/2+1)≦i≦+(σ/2), wherein i ≠0:
c(i/σ,n) converges with increasing n very rapidly to zero, so that, in practice, the approximation can be made, that c(i/σ,n) is equal to zero, as soon as the absolute value of n reaches a predetermined limit value. This limit value depends, in the final analysis, on the required, respectively necessary, accuracy of measurement and is referenced in the following as MaxSamples. It has been found, that a desired accuracy of measurement can be achieved in practice, when the value of MaxSamples lies in the range of about 3 to 10.
In this way, the following equation results:
The coefficients c(i/σ,n) are calculated once and then stored in a table of size (2×MaxSamples+1)×(σ−1). In this way, essentially a processing of the measured values in real time can be achieved.
It is essential, on the basis of the amplitude values sampled in a time range T, to ascertain that point in time tmax, at which a relative maximum amplitude value (or also a relative minimum amplitude value) of the function f(t) occurs. For example, this value can lie between two sequentially following, sampled values. If tmax is known, then it is also possible to determine the actual maximum f(tmax) (or minimum) of the function f(t).
The manner of proceeding is as follows (see also
In the case of the abscissa value tmax, the first derivative f′(t) of the function f(t) is equal to zero. The formula is, consequently: f′(tmax)=0. Therefore, a0 is the maximum (or the minimum) of the time range, respectively time interval [ai], with the following holding: −T<tmax<T.
The value tmax can be found by a linear interpolation of the first derivative according to the following formula:
As already stated, the following interpolation wavelet is used in the invention:
The first derivative g′(x) and the second derivative g″(x) of the Function g(x) are:
A limit value calculation with x=0 leads to g(0)=1, g′(0)=0, g″(0)=(−2α−1)/3.
Therewith, there results for f(t), f′(t), f″(t) the following mathematical equations:
As a result, the following hold for t=0:
If it is additionally assumed, that only the sampled values within the sub time range of a−Maxsamples to aMaxsamples are relevant, then an=0, when |n|>MaxSamples. The last equation is then:
When the range [ai] is vertically shifted into the range [ai−a0], then the last formula can be simplified and one obtains:
In order to find the optimum value for the coefficient α, the equality tmax1=tmax2 should hold, since the abscissa value of the maximum should not change in the case of a translational shifting, since it must be invariant relative to a translation. However, in the strict theory, tmax1≠tmax2 (even when MaxSamples=∞). The reason is, that the function which interpolates the shifted region [ai−a0] is not a simple translation of the function which interpolates the region [ai]. Therefore, the assumption, that tmax1≈tmax2, is only valid for the residuum formulated as follows:
The absolute value of this residuum is an indicator of how good the selected wavelet is for practical use. The analysis of the residuum by means of a mathematical simulation program (e.g. Mathcad) enables the finding of an optimum value for α for a predetermined number of (2×MaxSamples) around a0. Optimum values for α lie in the order of magnitude of 0.01 to ca.0.04. If a value for α is inserted, which lies away from the optimum value, then the interpolation function between two sampled values is not ‘smooth’, respectively it has significant harmonics beyond the Nyquist limit, but small deviations from the optimum value (e.g. 5%) have little influence on the result. This last shows how good the proposed device is for performing practical measurements. Especially, rounding errors affect the measurement results minimally.
In practice, two coefficient tables [ci] and [di] (0<i≦MaxSamples), are constructed. Then, the following relationship is obtained:
The coefficient domains [ci] and [di] are normalized, so that the following holds: c1=1. The optimum value for α, which depends on the number of sampled values MaxSamples, is read into a table. The coefficients are calculated and stored in a table. During operation, this means for the microprocessor, respectively the control/evaluation unit, of the ultrasonic flow measuring device, that only simple calculative operations, like additions, 2×MaxSamples multiplications and a division need to be performed.
As already mentioned above a number of times, a travel-time difference method is used for measuring flow by means of an ultrasonic flow measuring device. An ultrasonic pulse is radiated into the pipeline, respectively into the measuring tube, in the stream direction (Up) of the medium being measured, received by an ultrasonic transducer, and, thereafter, a plurality of sampled values [upi] are collected by a high-speed A/D converter within a predetermined time range. The same signal is then sent into the pipeline, respectively into the measuring tube, counter to the stream direction (Down), likewise received by an ultrasonic transducer, and sampled by the A/D converter. Within a predetermined time range, likewise a plurality of sampled values [dni] are collected. The time difference between the two measurement signals is proportional to the flow velocity of the medium in the pipeline. The two sampled values are correlated with one another according to the formula:
The maximum value of this range corresponds to the time difference of the two aforementioned ultrasonic measuring signals. For a highly accurate calculation of the volume flow, this correlation method is, however, much too inaccurate. Consequently, the above method of the invention is applied to the correlation function.
Essential components of the inline ultrasonic flow measuring device 1 are the two ultrasonic transducers 5, 6 and the control/evaluation unit 11. The two ultrasonic sensors 5, 6 are applied to the pipeline 2 at a distance L from one another by means of a securement apparatus (not shown). Appropriate securement apparatuses are sufficiently know from the state of the art and are also sold by the assignee. The pipeline 2 has a predetermined inner diameter di.
An ultrasonic transducer 5; 6 includes as an essential component at least one piezoelectric element 9; 10, which produces and/or receives the ultrasonic measuring signals. The ultrasonic measuring signals are, in each case, via the coupling elements 7, 8, coupled into, respectively coupled out of, the pipeline 2 through which the medium is flowing. The coupling elements 7, 8 care for a best possible impedance matching of the ultrasonic measuring signals as they move from one medium into the other. SP indicates the sound path, on which the ultrasonic measuring signals propagate in the pipeline 2, respectively medium 4. The illustrated case is that of a so-called two-traverse arrangement, in which the ultrasonic transducers 5, 6 are arranged. A “traverse” refers, in such case, to that portion of the sound path SP, on which an ultrasonic measuring signal crosses the pipeline 2 one time. The traverses can, depending on the arrangement of the ultrasonic transducers 5, 6 and, as required, with the insertion of a reflector element into the sound path SP, run diametrally or chordally in the pipeline, respectively in the measuring tube, 2.
Number | Date | Country | Kind |
---|---|---|---|
10361464.8 | Dec 2003 | DE | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/EP04/53515 | 12/15/2004 | WO | 00 | 3/30/2007 |