Научная статья на тему 'Adaptive algorithm for estimating vortex frequencies in vortex sonic flowmeters'

Adaptive algorithm for estimating vortex frequencies in vortex sonic flowmeters Текст научной статьи по специальности «Физика»

CC BY
239
35
i Надоели баннеры? Вы всегда можете отключить рекламу.
Ключевые слова
VORTEX FLOWMETERS / VORTEX SONIC FLOWMETERS / ALGORITHM FOR ESTIMATING VORTEX SHEDDING FREQUENCY / TIME SERIES / ВИХРЕВОЙ РАСХОДОМЕР / ВИХРЕАКУСТИЧЕСКИЙ РАСХОДОМЕР / АЛГОРИТМ ОЦЕНКИ ЧАСТОТЫ ВИХРЕОБРАЗОВАНИЯ / ВРЕМЕННОЙ РЯД

Аннотация научной статьи по физике, автор научной работы — Lapin A.P., Druzhkov A.M.

The article focuses on the development of vortex shedding frequency estimation algorithm. It shows the difficulties of the application of classical algorithms (moving average and median fil-tering) for whole measurement range of vortex sonic flowmeter. These algorithms are effective at the high flow region, where frequency of arrival of information about vortex frequency is high. However, at the low flow region where aforementioned frequency equals to tenths of hertz these algorithms are ineffective. A new adaptive algorithm is offered which can operate in a whole range of flowmeter measuring. It combines an ability to react immediately if a flow starts changing, and to provide stable measurements if the flow is stable. The simulation of the proposed algorithm is implemented and its advantages over the algorithms used in serial manufacture are shown. It is noted that the developed algorithm does not need in powerful computing facilities.

i Надоели баннеры? Вы всегда можете отключить рекламу.
iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.
i Надоели баннеры? Вы всегда можете отключить рекламу.

Текст научной работы на тему «Adaptive algorithm for estimating vortex frequencies in vortex sonic flowmeters»

Приборостроение, метрология и информационно-измерительные приборы и системы

DOI: 10.14529/ctcr160308

ADAPTIVE ALGORITHM FOR ESTIMATING VORTEX FREQUENCIES IN VORTEX SONIC FLOWMETERS

A.P. Lapin, a_lapin@mail.ru,

A.M. Druzhkov, sandruzh@gmail.com

South Ural State University, Chelyabinsk, Russian Federation

The article focuses on the development of vortex shedding frequency estimation algorithm. It shows the difficulties of the application of classical algorithms (moving average and median filtering) for whole measurement range of vortex sonic flowmeter. These algorithms are effective at the high flow region, where frequency of arrival of information about vortex frequency is high. However, at the low flow region where aforementioned frequency equals to tenths of hertz these algorithms are ineffective.

A new adaptive algorithm is offered which can operate in a whole range of flowmeter measuring. It combines an ability to react immediately if a flow starts changing, and to provide stable measurements if the flow is stable. The simulation of the proposed algorithm is implemented and its advantages over the algorithms used in serial manufacture are shown. It is noted that the developed algorithm does not need in powerful computing facilities.

Keywords: vortex flowmeters, vortex sonic flowmeters, algorithm for estimating vortex shedding frequency, time series.

Introduction

Today the automatic process control systems (APCS) are wide-spread in many production branches. The most accepted elements of APCS are liquids and gas flowmeters. In the hard service conditions the vortex sonic flowmeters have shown good results but their inherent weakness is measurement error growth under the low-flow condition in comparison with the main measurement range [1]. In the previous review of the measurement accuracy increase methods, the authors demonstrated the efficiency of algorithmic methods. One of them is the modern development of algorithm for estimating a vortex shedding frequency, which allows to support the comparable accuracies of the measurement in the full-scale range of the vortex sonic flowmeter.

The vortex sonic flowmeter principle is based on a physical phenomenon known as Karman vortex sheet [2, 3]. The core of the phenomenon discovered by Theodore Van Karman is described with a formula:

f= St x v/d, (1)

where f is an instantaneous vortex shedding frequency; St is a dimensionless number called Strouhal number; v is instantaneous velocity of the measured medium flow; d is the characteristic dimension of the bluff body. The vortex shedding frequency f for the medium after the bluff body is proportional to the medium flow velocity v and depends on the Strouhal number St and the bluff body dimension d.

The flow rate calculation for each measured value of the vortex shedding frequency f is difficult because of its instability [4]. For this reason, it is necessary to apply the information-processing algorithm to the vortex shedding frequency data in order to estimate a real value. The development of such algorithms is complicated by the vortex shedding frequency varying from tenths (for low flow) to hundreds of hertz in the vortex sonic flowmeters.

1. Disadvantages of existing algorithms for estimating vortex frequencies

The application of the complex algorithms [5-7] requiring the powerful microcontrollers is impractical for most series-produced flowmeters of low and medium price bracket.

The application of simple algorithms like moving average and median filtering [4] does not allow the vortex sonic flowmeters to show equal accuracy under low and high flow conditions. For low flows, the shedding data arrival rate may be tenths and units of hertz. In case of using the algorithm with averaging the great number of instantaneous frequencies, f values it results in sufficient delay of flowmeter response on flow variation. However, if a number of f averaged-values is decreased or the flow calculation is done for each obtained value of f then the instability of flowmeter readout and measurement errors grows up. As for the high-flow measurements, the application of the above-mentioned algorithms is appropriate and maintains the required metrological performance of the flowmeters.

2. New (adaptive) algorithm for estimating vortex frequency

In order to develop the suggested algorithm it is necessary to define two qualitatively different modes of flowmeter behavior: stable (steady) flow mode and flow variation mode. A flowmeter operation can be presented as a sequence of the two defined modes. Whether the measured flows are low or high, the flowmeter readout in the steady flow mode should be stable. As for the flow variation mode, the time of the flowmeter response to change should be minimal to support the desired accuracy of the flow and accumulated volume measurements.

The main requirements for the developed algorithm are the following.

- When the medium flow is stable, the algorithm should provide low dispersion for frequency estimations. As a research showed, the instantaneous values of the vortex frequencies in a vortex sonic flowmeter varied from 3 % to 9 % in the whole range of measurements, while a variation of the reference flowmeter readings did not exceed 0.3 %.

- A time of response on a flow variation should be minimal for both high-flow and low-flow measurements.

The main point of the algorithm is using of several methods for processing the time series of vortex shedding frequency instantaneous values relevant for each measurement mode (steady or variable). The proposed algorithm scheme is given on Fig. 1.

The algorithm allows combining the advantages of the two data processing methods that are the moving average and the exponential smoothing. The first method provides an effective elimination of a noise term while measuring the steady or slowly varying values, so it is applicable to data processing in a steady flow mode. The method of exponential smoothing is adaptive to a new level of a process without substantial delay and significant response on chance deviations. Because of the named properties, this method is applied in the flow variation mode. It should be mentioned that both methods are not resource-intensive.

At the first stage of the algorithm operation, a new measured value of the vortex frequency is input, whereas the oldest value is eliminated. It results in updating a sample of m instantaneous values of vortex frequencies.

At the second stage the calculation for the sample and the coefficient of variation is performed. The value of the variation coefficient is necessary for determining a current mode of a flow measuring.

The third stage includes a choice of a data processing method of instantaneous vortex frequencies based on a comparison of a calculated variation coefficient with a set level defined by the design features of the flowmeter.

If the variation coefficient is less than the set level, it indicates a steady flow mode. In this case the moving average method is used to estimate the vortex shedding frequency [8]. If the variation coefficient exceeds the set level, it is an attribute of a flow variation mode. In this instance the vortex frequency sample estimation is realized by the exponential smoothing [8] using a formula:

Fi = a x f + (1 - a) x Fi-i,

where Fi and Fi-1 are the vortex frequency estimations received by means of the exponential smoothing for i and i - 1 measurements; f is an instantaneous value of the vortex shedding frequency; a is a smoothing parameter; i is an index of a current measurement.

Fig. 1. Scheme of adaptive algorithm for estimating vortex frequency

At the final stage, the flow is calculated by means of the preselected model of the transformation function [2] on the ground of the vortex frequency estimation obtained using one of the methods.

The proposed algorithm is adaptive both to the steady flow mode and the flow variation mode ensuring the operating efficiency either for a high flow or low one.

3. Functional testing for adaptive algorithm

A program for algorithm testing developed in MATLAB environment allows simulating a time series of the instantaneous vortex frequencies with preset parameters as well as applying the algorithm of vortex frequency estimation to it. The time series simulating the flowmeter operation has an expectation value equal to a value of a simulated stable flow. An interference with the normal law of distribution is imposed on the time series. A level of the interference dispersion is to be selected in such a way that the preset variation coefficient is provided at the simulated value of the flow. To simulate an operation of the vortex frequency estimating algorithm, the following parameters can be preset: the number of values in a sample of instantaneous frequencies m, and a level of a comparison with the variation coefficient Level (Fig. 1).

To compare a response time of the algorithms, let us examine a performance of the flowmeter with 50 mm nominal diameter (Dn) and 0.5-50 m3/h flow range under condition of instantaneous (step) flow variation being measured in low flow area. In so doing, the variation coefficient of the simulated time series should be set on the level of 8 % while the number of values in a sample of instantaneous frequencies m = 31, and the level of a comparison with the variation coefficient Level = 10 %. It should be noted that the vortex shedding frequencies for the Dn 50 flowmeter at 2 m3/h and 0.5 m3/h are 10 hz and 2.5 hz respectively.

Fig. 2 demonstrates an instantaneous adaptivity of the algorithm to a flow variation. Under the conditions of rare reception of vortex frequency data, the moving average and exponential smoothing methods have strong delays in comparison with the adaptive algorithm (about 15 and 7 seconds respectively for the example).

20 30 40

Fig. 2. Algorithm response to step flow variation

Along with the instantaneous response to the flow variation, the suggested algorithm shows excellent stability in the steady mode. As a result of the algorithm operation, the variation coefficient of the estimated vortex frequencies reaches 0.5 % while the variation coefficient of the vortex frequency instantaneous values was set at the level of 8 %.

4. Comparison of algorithms

A comparison of the suggested adaptive algorithm accuracy with the moving average and median filtering algorithms is based on a procedure, which is used for a flowmeter calibration test [1]. That is a measuring error calculation of an accumulated volume of a medium in a specified time range.

The operation of the Dn 50 vortex flowmeter should be simulated at low flow with the following sequence of the operating modes.

- For the first 30 seconds, the flow through the flowmeter is 2 m3/h.

- For a 5-second period from the 30th second up to the 35th one, the harmonic variation (in a section from n/2 to n) of the flow takes place.

- Beginning from the 35th second up to the 65th one, the flow corresponds to 0.5 m3/h.

Each of the modes has a random noise with the normal law of the distribution and the dispersion supporting the variation coefficient of 8% at the simulated flow.

Let us apply the above-mentioned algorithms of estimating the vortex shedding frequencies to the simulated time series. A fluent velocity v can be expressed and calculated at every instant using the instantaneous frequencies estimated by the formula (1) for each of the algorithms. Then we can calculate the instantaneous values of the flows (Fig. 3) according to the formula: Q=v ■ S,

where S is a cross-section area of a flow tube.

To estimate an accumulated volume of a medium, let us integrate the flow values over a period t according to the following formula:

v = Z Qi '

i=1

where Vis an accumulated volume; Qi is an instantaneous flow in an instant i; Ati is a period of an integration time; n is a number of readings over a period t.

It is possible to calculate a relative error of an accumulated volume measurement:

V , , - V

o algorithm true 1 0/

5 =--100 % ,

V

true

where Vaigorithm is an accumulated volume based on the vortex frequencies estimated by applying the algorithm; Vtrue is a true (simulated) accumulated volume.

Fig. 3. Simulation of algorithm operation

In order to obtain the average error of measurement 5, the above-mentioned sequence of the operations is to be repeated 5 times. The results are given in Table 1. It is evident that the suggested algorithm provides a measurement error to be an order less in low flow.

Table 1

Comparison of algorithms for estimating vortex frequency

Average error of accumulated volume measurement, % Average

1 2 3 4 5

Adaptive algorithm 0.56 0.77 0.22 1.73 0.90 0.84

Moving average 8.83 8.75 8.32 9.85 7.23 8.60

Median filtering 6.94 6.45 6.34 7.76 9.93 7.48

In case of the low flow measuring, the developed algorithm significantly reduces the time of response on a flow variation and keeps stability in a steady mode. These properties of the algorithm allow decreasing the low flow measurement error considerably. In high flow measuring, the suggested algorithm is also highly competitive with the two others because the more is the data arrival rate, the less is the variation coefficient sensitivity to a flow variation. In this case, the suggested algorithm practically develops into the moving average algorithm.

Conclusion

The proposed adaptive algorithm for processing the vortex frequencies data is able to maintain stable estimating of the vortex shedding frequencies in a steady mode. It is shown that the algorithm allows to reduce the time of a flow variation response. It results in reducing the measurement error in a low flow area. Meanwhile, in high flow measuring, the suggested algorithm is as good as the two others discussed above.

The new adaptive algorithm needs no powerful microcontroller. It can take the place of the classical and widespread algorithms without any modification of the flowmeter construction and element base and herewith increase the accuracy of measurement for series-produced flowmeters.

References

1. Preobrazovateli raskhoda vikhreakusticheskie Metran-300PR. Rukovodstvo po ekspluatatsii [Vortex Sonic Flowmeters Transmitters Metran-300PR. Guidance for User]. Available at: http://www2.emersonprocess.com (accessed 14 February 2016).

2. Kremlevskiy P.P. Raskhodomery i schetchiki kolichestva. Spravochnik [Flowmeters and Counters: Handbook]. Leningrad, Mashinostroenie Publishing House, 1989. 701 p.

3. Pankanin G.L. The Vortex Flowmeter: Various Methods of Investigating Phenomena. Measurement Science and Technology, 2005, no. 16, pp. R1-R16.

4. Pankanin G.L. Influence of Vortex Meter Configuration of Measure Signal Parameters. Instrumentation and Measurement Technology Conference, IMTC/93, Conference Records, IEEE, 1993, pp.337-340.

5. Hongjun Sun, Tao Zhang, Hua-Xiang Wang. Digital Signal Processing Based on Wavelet and Statistic Method for Vortex Flowmeter. Proceedings of the Third International Conference on Machine Learning and Cybernetics, 2004, vol. 5, pp. 3160-3163.

6. Sun Zhi-qiang, Zhou Jie-min, Zhou Ping. Application of Hilbert-Hang Transformer to Denoising in Vortex Flowmeter. Journal of Central South University of Technology, 2006, vol. 13, no. 5, pp.501-505.

7. Meng Hua, Wang Hui, Li Mingwei. High Precision Flow Measurement for an Ultrasonic Transit Time Flowmeter. Intelligent System Design and Engineering Application, 2010. IEEE, 2010, vol. 1, pp. 823-826.

8. Korn G., Korn T. Spravochnik po matematike dlya nauchnykh rabotnikov i inzhenerov. Oprede-leniya. Teoremy. Formuly [Handbook for Scientists and Engineers. Definitions. Theorems and Formulas for Reference and Review]. Moscow, Nauka Publ., 1973. 832 p.

Received 18 February 2016

УДК 681.2 DOI: 10.14529/ctcr160308

АДАПТИВНЫЙ АЛГОРИТМ ОЦЕНКИ ЧАСТОТЫ ВИХРЕОБРАЗОВАНИЯ В ВИХРЕАКУСТИЧЕСКИХ РАСХОДОМЕРАХ

А.П. Лапин, А.М. Дружков

Южно-Уральский государственный университет, г. Челябинск

Статья посвящена вопросу разработки алгоритма оценки частоты вихреобразования для применения его в вихреакустических расходомерах. Показано, что применение классических алгоритмов (скользящего среднего и медианной фильтрации) во всем диапазоне измерения рассматриваемых расходомеров затруднено. Их применение эффективно в области больших расходов, где частота поступления информации о частоте вихреобразования велика. Однако при измерении малых расходов, а вышеупомянутая частота достигает десятых долей герц, применение вышеперечисленных алгоритмов проблематично.

Предложен новый адаптивный алгоритм, работающий во всем диапазоне измерения расходомера. Он сочетает в себе способность мгновенно реагировать на изменение расхода и обеспечивать стабильность измерений в установившемся режиме работы расходомера как в области больших расходов, так и в области малых. Проведено моделирование работы предлагаемого алгоритма, показано его преимущество над алгоритмами, применяемыми в серийном производстве. Отмечено, что разработанный алгоритм не требует больших вычислительных мощностей.

Ключевые слова: вихревой расходомер, вихреакустический расходомер, алгоритм оценки частоты вихреобразования, временной ряд.

Литература

1. Преобразователи расхода вихреакустические Метран-300ПР. Руководство по эксплуатации. - http://www2.emersonprocess.com.

2. Кремлевский, П.П. Расходомеры и счетчики количества. Справочник / П.П. Кремлевский. -Л.: Машиностроение, 2004. - 701 с.

3. Pankanin, G.L. The vortex flowmeter: various methods of investigating phenomena / G.L. Pankanin //Measurement science and technology. - 2005. - No. 16. - P. R1-R16.

4. Pankanin G.L. Influence of vortex meter configuration of measure signal parameters / G.L. Pankanin // Instrumentation and Measurement technology conference, 1993, IEEE. - IEEE, 1993. -P. 337-340.

5. Hongjun Sun. Digital signal processing based on wavelet and statistic method for vortex flowmeter / Hongjun Sun, Tao Zhang, Hua-Xiang Wang // Proceedings of the third international conference on machine learning and cybernetics. - 2004. - No. 5. - P. 3160-3163.

6. Sun Zhi-qiang. Application of Hilbert-Hang transformer to denoising in vortex flowmeter / Sun Zhi-qiang, Zhou Jie-min, Zhou Ping // Journal of central south university of technology. - 2006. -Vol. 13, no. 5. - P. 501-505.

7. Meng Hua. High precision flow measurement for an ultrasonic transit time flowmeter / Meng Hua, Wang Hui, Li Mingwei // Intelligent system design and engineering application, 2010. - IEEE. -2010. - Vol. 1. - P. 823-826.

8. Корн, Г. Справочник по математике для научных работников и инженеров. Определения, теоремы, формулы /Г. Корн, Т. Корн; пер. с англ. И. Г. Абрамовича. -М. : Наука, 1973. - 832 с.

Лапин Андрей Павлович, канд. техн. наук, доцент кафедры информационно-измерительной техники, Южно-Уральский государственный университет, г. Челябинск; a_lapin@mail.ru.

iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.

Дружков Александр Михайлович, аспирант кафедры информационно-измерительной техники, Южно-Уральский государственный университет, г. Челябинск; sandruzh@gmail.com.

Поступила в редакцию 18 февраля 2016 г

ОБРАЗЕЦ ЦИТИРОВАНИЯ

Lapin, A.P. Adaptive Algorithm for Estimating Vortex Frequencies in Vortex Sonic Flowmeters / A.P. Lapin, A.M. Druzhkov // Вестник ЮУрГУ. Серия «Компьютерные технологии, управление, радиоэлектроника». -2016. - Т. 16, № 3. - С. 75-82. DOI: 10.14529/ctcr160308

FOR CITATION

Lapin A.P., Druzhkov A.M. Adaptive Algorithm for Estimating Vortex Frequencies in Vortex Sonic Flowmeters. Bulletin of the South Ural State University. Ser. Computer Technologies, Automatic Control, Radio Electronics, 2016, vol. 16, no. 3, pp. 75-82. DOI: 10.14529/ctcr160308

i Надоели баннеры? Вы всегда можете отключить рекламу.