원시데이터 수집 시스템
선정목록으로

An approach for electrical harmonic analysis based on interpolation DFT

관련 필름·전자재료 · (18) VENT(방수통기 부품)

기본 정보

저자
  1. Lina Jiao — Shandong Polytechnic, China|||ORCiD
  2. Yang Du — Shandong Polytechnic, China
DOI
10.24425/aee.2022.140721
저널
Archives of Electrical Engineering
발행년도
2022
발행기관
De Gruyter Open
피인용수
6
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.24425/aee.2022.140721
토픽
High voltage insulation and dielectric phenomena
OpenAlex ID
W4362578222

평가 내용

관련도
관련
사업분야
필름·전자재료 · (18) VENT(방수통기 부품)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > VENT(방수통기 부품)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

The discrete Fourier transform (DFT) is the main method of electrical harmonic analysis since it’s easily realized in an embedded system. But there were some difficulties in performing synchronized sampling. The spectral leakage caused by asynchronous sampling affects the accuracy of harmonics analysis. Using window functions and interpolation algorithms can improve the accuracy of harmonics analysis. An approach for electrical harmonic analysis based on the interpolation DFT was proposed. A window function reduces DFT leakage and the interpolation algorithm modifies the calculation results of frequency, amplitude and the initial phase angle. The simulation results indicate that, by using the interpolation DFT electrical harmonic analysis method based on the Hanning window or the Blackman window, the error of calculating amplitudes and frequencies is not greater than 0.5%.

본문 27,852자

본문 펼치기
ARCHIVES OF ELECTRICAL ENGINEERING VOL. 71(2), pp. 445 –454 (2022) DOI 10.24425/aee.2022.140721 # An approach for electrical harmonic analysis based on interpolation DFT LINA JIAO [o](https://orcid.org/0000-0003-3634-449X) <sup>�</sup> , YANG DU _Shandong Polytechnic_ _China_ _[e-mail: sdpjln@163.com](mailto:sdpjln@163.com)_ (Received: 30.08.2021, revised: 03.01.2022) Abstract: The discrete Fourier transform (DFT) is the main method of electrical harmonic analysis since it’s easily realized in an embedded system. But there were some difficulties in performing synchronized sampling. The spectral leakage caused by asynchronous sampling affects the accuracy of harmonics analysis. Using window functions and interpolation algorithms can improve the accuracy of harmonics analysis. An approach for electrical harmonic analysis based on the interpolation DFT was proposed. A window function reduces DFT leakage and the interpolation algorithm modifies the calculation results of frequency, amplitude and the initial phase angle. The simulation results indicate that, by using the interpolation DFT electrical harmonic analysis method based on the Hanning window or the Blackman window, the error of calculating amplitudes and frequencies is not greater than 0.5%. Key words: electrical harmonic analysis, DFT, interpolation 1. Introduction With the development of power electronic technology and devices, a large number of nonlinear loads are widely used in the power system. That produced many harmonic components for the power system [1–3]. A very common harmonic source is the power supply for a computer that is a switched mode power supply [4]. The access of distributed generation also produces harmonic components for the power system [5]. Harmonics worsen power quality, increase the loss of the power grid, affect weak current systems such as computer network, communication system and cable TV, and cause signal interference. The harmonic voltage will cause an unbalanced magnetic pull, and the operational stability of the PMSM will be affected to varying degrees [6]. Harmonic 0 © 2022. The Author(s). This is an open-access article distributed under the terms of the Creative Commons Attribution[NonCommercial-NoDerivatives License (CC BY-NC-ND 4.0, https://creativecommons.org/licenses/by-nc-nd/4.0/), which per-](https://creativecommons.org/licenses/by-nc-nd/4.0/) mits use, distribution, and reproduction in any medium, provided that the Article is properly cited, the use is non-commercial, and no modifications or adaptations are made. <u>446</u> _<u>Lina Jiao, Yang Du</u>_ Arch. Elect. Eng. distortion levels are an important index of power quality. For determining whether harmonics are present in the power system, it is necessary to study the high-precision analysis method for harmonic component parameters of the electrical system. At present, the most direct and effective method to analyze the power system harmonic parameters is the discrete Fourier transform (DFT). Using of DFT is described in IEC 61000-4-7 [7] and IEC 61000-4-30 [8]. However, the inherent time-domain windowing and frequency-domain sampling characteristics of DFT must be selected such that the sampling frequency interval is a whole-number multiple of the frequency of the signal to be measured. If the frequency of the signal to be measured is a whole-number multiple of the sampling frequency interval, it is called synchronous sampling. If not, it is called asynchronous sampling. The asynchronous sampling is easy to cause spectrum leakage and measurement errors, especially phase errors and high-order harmonic parameter errors. There are two common methods to realize the synchronous sampling. One method is to add phase-locked synchronization technology to the acquisition system and realize synchronous sampling by hardware [9, 10]. Another method is to solve the asynchronous problem through a specific algorithm for uniformly (asynchronous) sampled data [11–14]. Suitable windows and interpolation algorithms can reduce undesirable effects due to spectral leakage caused by a sampling process that is not synchronized [15]. M. Novotny _et al_ . [16] is focused on the uncertainty analysis of the RMS value and phase computed from the DFT spectrum of the noncoherently sampled signal using cosine windows. The advantage of the former method is that the signal processing is relatively simple. However, due to the slow response speed of the phase-locked loop, it cannot track the rapid change of the signal frequency in time, so it can not realize the real synchronous sampling. The latter method has certain universality and is a common method for harmonic measurement in the power system. The fundamental frequency (50 or 60 Hz) of the power system often fluctuates, which changes slightly with the change of loads. Even if the frequency tracking technology is adopted, it is difficult to achieve strict synchronous sampling. Aiming at this phenomenon, a DFT algorithm with spectrum-line interpolation is proposed. It is an asynchronous sampling method, which samples the signal with a fixed sampling frequency, and uses the leakage frequency generated when the window function truncates the signal to obtain the actual spectrum value of the signal. Firstly, this paper analyzes the spectrum leakage of DFT, and then, we propose an electrical harmonic analysis method based on spectrum-line interpolation DFT with the rectangular window, Hanning window and Blackman window. This method obviously reduces the impact of spectrum leakage, greatly reduces the amount of calculation, and is easy to implement in an embedded system. The simulation results show that the proposed power harmonic analysis method has high accuracy under the conditions of asynchronous sampling and non-integer period truncation. 2. DFT leakage When a signal is sampled asynchronously, it is easy to cause the spectrum leakage. DFTs are constrained to operate on a finite set of _?_ input values. Think of a continuous cosine wave with a peak amplitude of _?_ at a frequency _?_ 0 described as: _?_ ( _?_ ) = _?_ cos(2 _??_ 0 _?_ + _?_ ), it is sampled at Vol. 71 (2022) _<u>An approach for electrical harmonic analysis based on interpolation DFT</u>_ <u>447</u> the frequency _??_ and a period of discrete-time signal is obtained as below: _?_ ( _?_ ) = _?_ cos - - _?_ <u>0</u> 2 _?_ _??_ - _?_ + _?_ _,_ _?_ ∈{0 _,_ 1 _, . . ., ?_ −1} _,_ (1) where: _?_ is the peak amplitude (V) and _?>_ 0, _?_ 0 is the frequency of the cosine wave (Hz), _?_ is the phase angle. The DFT of the _?_ ( _?_ ) input sequence, _?_ ( _?_ ), is as follows: - - _?_ 2 _?_ _?_ <sup>−</sup> <sup>_?_</sup> _?_ <sup><u>0</u></sup> _?_ - - _?_ 2 _?_ _?_ <sup>−</sup> <sup>_?_</sup> _?_ <sup><u>0</u></sup> _?_ �� + _?_ <sup>−</sup> <sup>_??_</sup> _??_ - - _?_ 2 _?_ _?_ <sup>+</sup> <sup>_?_</sup> _?_ <sup><u>0</u></sup> _?_ ��� _,_ (2) _?_ ( _?_ ) = <sup>_?_</sup> 2 _?_ <sup>_??_</sup> _??_ where _??_ ( _?_ ) = <sup><u>sin(</u></sup> <sup>_??_</sup> <sup>/2)</sup> sin( _?_ /2) - _?_ <sup>�</sup> _?_ <sup>−</sup> <sup>_?_</sup> <sup>_<u>?</u>_</sup> 2 <sup><u>−1</u></sup> _._ It can be seen that (2) contains positive and negative frequencies and is symmetrically distributed. For the convenience of calculation, the negative frequency part is ignored. �� (3) _?_ ( _?_ ) = <sup>_?_</sup> 2 <sup>_?_</sup> <sup>_????_</sup> - - _?_ 2 _?_ _?_ <sup>−</sup> <sup>_?_</sup> _?_ <sup><u>0</u></sup> _?_ and magnitudes (4) ������ _._ | _?_ ( _?_ )| = <sup>_?_</sup> 2 ���� _??_ - - _?_ 2 _?_ _?_ <sup>−</sup> <sup>_?_</sup> _?_ <sup><u>0</u></sup> _?_ , and when _?_ is a whole number, it is It’s discrete spectrum as in Fig. 1. Take _?_ = - _?_ _?_ <sup>−</sup> <sup>_?_</sup> _?_ <sup><u>0</u></sup> _?_ synchronous sampling. The spectrum is shown in Fig. 1(a). On the contrary, if _?_ is not a whole number, i.e. asynchronous sampling, the spectrum is as shown in Fig. 1(b). _<u>fo</u>_ _<u>k-2</u>_ _<u>k-1</u>_ _<u>k</u>_ _<u>k+1</u>_ _<u>k+2</u>_ _<u>fo</u>_ _<u>k</u>_ _<u>k+1</u>_ (a) (b) Fig. 1. Comparison of discrete spectrum: synchronous sampling (a); asynchronous sampling (b) Spectrum leakage can be clearly seen in Fig. 1. If it is synchronous sampling, the spectrum at each discrete frequency point is consistent with the ideal spectrum of the signal, which is an ideal pulse. If it is asynchronous sampling, the spectrum at each discrete point is inconsistent with the <u>448</u> _<u>Lina Jiao, Yang Du</u>_ Arch. Elect. Eng. ideal spectrum of the signal, resulting in leakage. Therefore, the calculation results of DFT must be processed to obtain the real spectrum of the signal. The frequency voltage or current of the power system often contains rich harmonic components, and the amplitude of harmonic components is generally a few percent or less of the fundamental component. In addition, the frequency of the power system is affected by loads, which is also a real-time variable, so it is difficult to measure synchronously. With asynchronous sampling, the spectrum leakage of fundamental components will seriously affect the calculation of harmonic components. At the same time, the harmonic components will leak to each other, resulting in the increase of harmonic analysis errors. Although there’s no way to eliminate leakage completely, we can use the method of adding windows to minimize the leakage. The window function reduces DFT leakage by minimizing the magnitude of side lobes. In fact, _?_ ( _?_ ) = _?_ cos(2 _??_ 0 _?_ + _?_ ) is a signal of infinite length. Intercepting a section of it is equivalent to adding a rectangular window whose magnitude is 1 over the sample interval. Looking at the rectangular window’s magnitude response, the main lobe width (–3 dB) is 4 _?_ / _?_, the maximum peak value of the side lobe is –13 dB, and the asymptotic attenuation rate of the side lobe is 6 dB/octave. The amplitude of the second harmonic in the power system is generally less than 1% of the fundamental wave, that is, the amplitude attenuation of both is less than –40 dB. If DFT spectrum analysis is directly used, the –13 dB sidelobe will submerge the –40 dB actual harmonic signal, affecting the accuracy of harmonic analysis. To reduce spectrum leakage, the window function with a small peak level of a side lobe and a large asymptotic attenuation rate of a side lobe should be selected to process the signal. 3. Harmonics analysis based on interpolation DFT 3.1. Interpolation DFT algorithm When using a DFT algorithm to analyze the spectrum of _?_ ( _?_ ), it is equivalent to sampling at 2 _?_ / _?_ intervals in digital frequency domain. Set the digital frequency corresponding to the frequency _?_ 0 as ( _?_ 1 + _?_ )2 _?_ / _?_, where _?_ 1 is a positive integer and 0 ≤ _?<_ 1. That is, ( _?_ 1 + _?_ )2 _???_ / _?_ = 2 _??_ 0. We can see that in Fig. 1(a), _?_ = 0 and in Fig. 1(b), 0 _<_ _?<_ 1. Suppose that the maximum value of the discrete spectrum of the signal in Fig. 1 is at the discrete frequency points _?_ 1 and _?_ 1 + 1, which are obtained from (4): �� _?_ ( _?_ )�� _?_ = _?_ 1 <sup>=</sup> <sup>_?_</sup> 2 �� _?_ ( _?_ )�� _?_ = _?_ 1+1 <sup>=</sup> <sup>_?_</sup> 2 �� _??_ ( _?_ )�� _?_ = _?_ 1+1 <sup>=</sup> <sup>_?_</sup> 2 <sup>|</sup> <sup>_?_</sup> <sup>(2</sup> <sup>_?_</sup> <sup>(1 −</sup> <sup>_?_</sup> <sup>)/</sup> <sup>_?_</sup> <sup>)|</sup> �� _??_ ( _?_ )�� _?_ = _?_ 1 <sup>=</sup> <sup>_?_</sup> 2 <sup>|</sup> <sup>_?_</sup> <sup>(2</sup> <sup>_?_</sup> <sup>−(</sup> <sup>_?_</sup> <sup>)/</sup> <sup>_?_</sup> <sup>)|</sup>   _._ (5) Let’s define and then | _?_ ( _?_ )| _?_ <u>=</u> _?_ <u>1+1</u> _?_ = | _?_ ( _?_ )| _?_ = _?_ 1 + _?_ ( _?_ )| _?_ 1+1 _,_ | _?_ ( _?_ )| _?_ <u>=</u> _?_ <u>1+1</u> _?_ = | _?_ ( _?_ )| _?_ = _?_ 1 + _?_ ( _?_ )| _?_ = _?_ 1+1 | _?_ (2 _?_ (1 − _?_ )/ _?_ )| = | _?_ (2 _?_ −( _?_ )/ _?_ )| + | _?_ (2 _?_ (1 − _?_ )/ _?_ ) <sup>=</sup> <sup>_?_</sup> <sup>(</sup> <sup>_?_</sup> <sup>)</sup> <sup>_._</sup> (6) Vol. 71 (2022) _<u>An approach for electrical harmonic analysis based on interpolation DFT</u>_ <u>449</u> As a result, we can calculate _?_ . _?_ = _?_ <sup>−1</sup> ( _?_ ) _._ (7) Thus, the actual frequency of the signal is estimated to be _?_ 0 = ( _?_ 1 + _?_ ) <sup>_??_</sup> (8) _?_ <sup>_._</sup> The magnitude is a correction with | _?_ ( _?_ )| _?_ = _?_ 1. | _?_ ( _?_ )| _?_ <u>=</u> _?_ <u>1</u> _?_ = | _?_ (2 _?_ −( _?_ )/ _?_ )| <sup>=</sup> <sup>|</sup> <sup>_?_</sup> <sup>(</sup> <sup>_?_</sup> <sup>)|</sup> <sup>_?_</sup> <sup>=</sup> <sup>_?_</sup> <sup>1</sup> <sup>_ℎ_</sup> <sup>(</sup> <sup>_?_</sup> <sup>)</sup> <sup>_,_</sup> (9) where _?_ is the correction factor of magnitude <u>1</u> _?_ = _ℎ_ ( _?_ ) = | _?_ (2 _?_ −( _?_ )/ _?_ )| <sup>_._</sup> (10) The estimation of the initial phase angle is: _?_ = angle <sup>�</sup> _?_ ( _?_ )| _?_ = _?_ 1 - - angle ( _?_ (2 _?_ −( _?_ )/ _?_ )) _._ (11) 3.2. Interpolation DFT without window Directly truncating the data is equivalent to adding a rectangular window. The expression is _?_ _?_ ( _?_ ) = 1 _,_ _?_ ∈{0 _,_ 1 _, . . ., ?_ −1} _._ (12) Further, according to the characteristics of the rectangular window, the formulas in section 3.1 are given in detail [17, 18]. | _?_ ( _?_ )| _?_ <u>=</u> _?_ <u>1+1</u> _?_ = | _?_ ( _?_ )| _?_ = _?_ 1 + _?_ ( _?_ )| _?_ = _?_ 1+1 So, we can get _?_ = <u>sin(</u> _?_ (1 − _?_ )) <u>sin(</u> _?_ <u>(1 −</u> _?_ <u>)/</u> _?_ <u>)</u> <u>sin(</u> _?_ −( _?_ )) <u>sin(</u> _?_ (1 − _?_ )) sin( _?_ −( _?_ )/ _?_ ) <sup>+</sup> sin( _?_ (1 − _?_ )/ _?_ ) ≈ _?._ (13) _?_ = _?_ <sup>−1</sup> ( _?_ ) = _?._ (14) The correction factor of the magnitude _?_ is <u>1</u> <u>2</u> _??_ _?_ = _ℎ_ ( _?_ ) = | _?_ (2 _?_ −( _?_ )/ _?_ )| <sup>=</sup> _?_ sin( _??_ ) <sup>_._</sup> (15) The estimation of the initial phase angle is: _?_ = angle <sup>�</sup> _?_ ( _?_ )| _?_ = _?_ 1 - - _??._ (16) <u>450</u> _<u>Lina Jiao, Yang Du</u>_ Arch. Elect. Eng. 3.3. Interpolation DFT with Hanning window To minimize the spectral leakage, we have to reduce the sidelobe magnitudes by using window functions other than the rectangular window, such as the Hanning window [17,18]. The expression of the Hanning window function coefficient is: _?_ _??_ ( _?_ ) = 0 _._ 5 − 0 _._ 5 cos(2 _??_ / _?_ ) _,_ _?_ ∈{0 _,_ 1 _, . . ., ?_ −1} _._ (17) The DFT of the Hanning window is as follows: _???_ ( _?_ ) = 0 _._ 5 _??_ ( _?_ ) + 0 _._ 25 _??_ ( _?_ - 2 _?_ / _?_ ) + 0 _._ 25 _??_ ( _?_ + 2 _?_ / _?_ ) _._ (18) Assuming that our original _?_ input signal samples _?_ ( _?_ ) as (1) is multiplied by the corresponding window _?_ ( _?_ ) coefficients before the DFT is performed. The DFT of the windowed _?_ ( _?_ ) input sequence is _???_ ( _?_ ). The peak magnitude of the frequency _???_ ( _?_ 1) and _???_ ( _?_ 1 + 1) are: <u>sin(</u> _??_ ) _?_ (1 − _?_ )(1 + _?_ ) _?_ _?_ <u>sin(</u> _??_ ) _?_ (1 − _?_ )(2 − _?_ ) _?_ _?_ _,_ ������� _._ ������� | _???_ ( _?_ )| _?_ = _?_ 1 ≈ <sup>_?_</sup> 4 ������� ������� (19) | _???_ ( _?_ )| _?_ = _?_ 1+1 ≈ <sup>_?_</sup> 4 So, | _???_ ( _?_ )| _?_ <u>=</u> _?_ <u>1+1</u> _?_ = | _???_ ( _?_ )| _?_ = _?_ 1 + | _???_ ( _?_ )| _?_ = _?_ 1+1 = <sup>(1 +</sup> <sup>_?_</sup> <sup>)</sup> and _?_ = −1 + 3 _?._ (20) 3 Similarly, it can be deduced that the amplitude _?_ is: _?_ = _ℎ_ ( _?_ ) = <sup><u>4</u></sup> <sup>_??_</sup> <sup>(1 −</sup> <sup>_?_</sup> <sup>2)</sup> _._ (21) _?_ sin( _??_ ) The estimation of the initial phase angle is the same as the rectangle window in (15). 3.4. Interpolation DFT with Blackman window Along with the Hanning window and the Hamming window, the Blackman window provides further DFT spectral leakage reduction when performing frequency-domain windowing. The Blackman window function is defined as _?_ _??_ ( _?_ ) = 0 _._ 42 − 0 _._ 5 cos(2 _??_ / _?_ ) + 0 _._ 08 cos(4 _??_ / _?_ ) _,_ _?_ ∈{0 _,_ 1 _, . . ., ?_ −1} _._ (22) The DFT of the Blackman window: _???_ ( _?_ ) = 0 _._ 42 _??_ ( _?_ ) − 0 _._ 25 _??_ ( _?_ - 2 _?_ / _?_ ) − 0 _._ 25 _??_ ( _?_ + 2 _?_ / _?_ ) + 0 _._ 04 _??_ ( _?_ - 4 _?_ / _?_ ) + 0 _._ 04 _??_ ( _?_ + 4 _?_ / _?_ ) _._ (23) Vol. 71 (2022) _<u>An approach for electrical harmonic analysis based on interpolation DFT</u>_ <u>451</u> Similarly to sections 3.1 and 3.2, the calculation expressions of _?_ = _?_ <sup>−1</sup> ( _?_ ) can be derived. However, this process is more complex, which can be solved by polynomial approximation. First, take a group of values and substitute them into (6) to obtain a group of _?_ values. Then _?_ = _?_ <sup>−1</sup> ( _?_ ) can be obtained by using the MATLAB polynomial fitting function _ployfit_ ( _?_ ) coefficient. For the Blackman window, the correction factors are as follows: _?_ = 2 _._ 543007 _?_ <sup>5</sup> - 6 _._ 357519 _?_ <sup>4</sup> + 7 _._ 578482 _?_ <sup>3</sup> - 5 _._ 010204 _?_ <sup>2</sup> + 5 _._ 631278 _?_ - 1 _._ 692522 _._ (24) The amplitude calculation also needs correction. From (14), we can get an expression for _?_ . But, the expression is complex. Similarly, we can use _?_ = _ployfit_ ( _?_ ) to simulate the relationship between _?_ and _?_ . _?_ = 0 _._ 428528 _?_ <sup>6</sup> - 567764 _?_ <sup>5</sup> + 1 _._ 139802 _?_ <sup>4</sup> - 186457 _?_ <sup>3</sup> + 2 _._ 426640 _?_ <sup>2</sup> - 002771 _?_ + 4 _._ 7619555 _._ (25) The estimation of the initial phase angle is the same as the rectangle window in (16). 4. Simulation experiment verification The 11th harmonic signal model used in the simulation is √ 2 _??_ cos 2 _??_ <sup>_?_</sup> <sup><u>0</u></sup> _??_ _,_ _?_ ∈{0 _,_ 1 _, . . ., ?_ −1} _._ (26) _?_ ( _?_ ) = 11 ∑︁ _?_ =1 _?_ + _??_ where: the fundamental frequency _?_ 0 is 49.8√0 Hz, the sampling frequency _??_ is 10 000 Hz, the total number of sampling points _?_ is 2048, 2 _??_ is the amplitude of the fundamental wave and each harmonic, _??_ is the initial phase angle of the fundamental wave and each harmonic. The vluses of _??_ and _??_ are shown in Table 1. Table 1. Components of the simulated harmonic signal Harmonics H1 H2 H3 H4 H5 H6 H7 H8 H9 H10 H11 _??_ (Hz) 49.80 99.60 149.40 199.20 249.00 298.80 348.60 398.40 448.20 498.00 547.80 _??_ (V) 220 1.2 6.1 0.8 3.4 0.6 2.1 0.4 1.5 0.3 0.6 _??_ ( <sup>◦</sup> ) 10 50 30 40 50 60 70 80 90 80 60 The flow of the simulation program is presented in Fig. 2. The input signal _?_ ( _?_ ) is processed with the rectangular window, the Hamming window and the Blackman window respectively, and the discrete spectrum is obtained by DFT operation. According to the spectral line interpolation correction formula of different windows, the frequency _?_ 1, amplitude _?_ 1 and phase angle _?_ 1 are calculated separately. And the frequency _??_, amplitude _??_ and initial phase angle _??_ of each harmonic are also calculated. The error percentage of the measured values of the fundamental wave and each harmonic relative to the true value is given in the Table 2. It can be seen from Table 2 <u>452</u> _<u>Lina Jiao, Yang Du</u>_ Arch. Elect. Eng. that after adding the Hanning window, the calculation results are greatly improved compared with the rectangular window. After the Blackman window processing, the calculation results are ideal, except for the parameter calculation error of the second harmonic. In order to further reduce the error, it is necessary to find a better window function. However, adding a window function also increases the computational complexity. It is necessary to select the appropriate window function according to the calculation requirements and performance. Table 2. Comparisons of relative errors in calculating (%) Without window Hanning window Blackman window Order Frequency Amplitude Phase Frequency Amplitude Phase Frequency Amplitude Phase H1 −9 _._ 1E−02 4 _._ 3E−01 4 _._ 0E+00 −7 _._ 2E−06 3 _._ 6E−05 1 _._ 3E−02 −1 _._ 1E−06 3 _._ 7E−04 5 _._ 2E−03 H2 3 _._ 1E+00 2 _._ 9E+02 1 _._ 3E+02 −6 _._ 5E−02 3 _._ 8E−01 2 _._ 9E−01 −3 _._ 3E−02 1 _._ 3E−01 6 _._ 8E−01 H3 1 _._ 4E+00 −3 _._ 3E+00 −7 _._ 9E+01 −6 _._ 7E−04 −3 _._ 8E−04 −9 _._ 6E−02 −3 _._ 5E−04 7 _._ 1E−05 −2 _._ 3E−02 H4 5 _._ 2E+00 2 _._ 0E+02 3 _._ 3E+02 −2 _._ 8E−03 −7 _._ 9E−03 −2 _._ 8E−01 −1 _._ 3E−03 −3 _._ 3E−03 −6 _._ 8E−02 H5 3 _._ 2E−01 1 _._ 2E+01 3 _._ 6E+01 5 _._ 6E−04 1 _._ 4E−02 −1 _._ 3E−01 3 _._ 1E−04 5 _._ 3E−03 −6 _._ 6E−02 H6 −2 _._ 6E−01 1 _._ 9E+02 1 _._ 6E+02 7 _._ 4E−04 2 _._ 7E−03 −2 _._ 2E−01 3 _._ 1E−04 1 _._ 8E−03 −9 _._ 2E−02 H7 −3 _._ 4E−01 1 _._ 5E+01 8 _._ 6E+01 −9 _._ 2E−05 2 _._ 1E−03 4 _._ 3E−04 −5 _._ 0E−05 5 _._ 2E−04 2 _._ 5E−03 H8 −3 _._ 2E+00 1 _._ 9E+02 −3 _._ 1E+02 −1 _._ 1E−03 1 _._ 9E−02 2 _._ 1E−02 −5 _._ 6E−04 7 _._ 1E−03 3 _._ 1E−02 H9 −6 _._ 9E−01 −8 _._ 7E+00 8 _._ 6E+01 −1 _._ 4E−05 5 _._ 6E−04 −1 _._ 2E−02 −3 _._ 2E−06 −2 _._ 8E−05 −4 _._ 9E−03 H10 −2 _._ 9E+00 1 _._ 5E+02 −3 _._ 1E+02 −2 _._ 1E−03 −8 _._ 9E−02 3 _._ 9E−01 −1 _._ 0E−03 −3 _._ 6E−02 2 _._ 0E−01 H11 2 _._ 5E+00 2 _._ 5E+01 −3 _._ 8E+02 −7 _._ 1E−05 2 _._ 2E−03 2 _._ 8E−02 −3 _._ 9E−05 1 _._ 3E−03 1 _._ 5E−02 Start Input _x_ ( _n_ ) _X_ ( _k_ )=FFT( _x_ ( _n_ ) _·w_ ( _n_ )) Search peak _X_ ( _k1_ ) _,_ _X_ ( _k1+_ 1) in 40~60 Hz Calculate _β,α,γ_ Calculate _f1, A1,φ1_ _i_ =2 _i_ <=11 No Yes Calculate _fi, Ai,φi_ _i_ =i+1 End Search peak _X_ ( _k1_ ) _,_ _X_ ( _k1+_ 1) _in_ _i·f1-10~i·f1+10_ Calculate _β,α,γ_ Fig. 2. Program flow diagram for simulation experiment Vol. 71 (2022) _<u>An approach for electrical harmonic analysis based on interpolation DFT</u>_ <u>453</u> From the data in Table 2, we can see that for the data processed with Hanning window and Blackman window functions, the relative error of harmonic parameters is significantly smaller than that without window functions. In particular, the calculation error of frequency and amplitude is reduced to about 0.001 times. The characteristic of adding the Blackman window function is obviously better than that of adding the Hanning window function. 5. Conclusions It is difficult to realize synchronous sampling because the frequency of the power system changes frequently. Asynchronous sampling DFT is usually used in power system harmonic analysis. Due to spectrum leakage, the calculation error is large. In order to avoid the error of harmonics analysis, the window function interpolation DFT algorithm is used, and the practical interpolation correction formula is obtained by using the fitting function. The simulation results show that the interpolation DFT power harmonic analysis method based on the Hanning window and the Blackman window proposed in this paper has higher calculation accuracy, less calculation and high practical value. References [1] Schlabbach J., Blume D., Stephanblome T., _Voltage quality in electrical power systems_, The Institution of Engineering and Technology (2001). [2] Yudaev I.V., Rud E.V., Yundin M.A., Ponomarenko T.Z., Isupova A.M., _Analysis_ _of_ _the_ _harmonic_ _composition_ _of_ _current_ _in_ _the_ _zero-working_ _wire_ _at_ _the_ _input_ _of_ _the_ _load_ _node_ _with_ _the_ _prevailing_ _non-linear power consumers_, Archives of Electrical Engineering, vol. 70, no. 2, pp. 463–473 (2021), [DOI: 10.24425/aee.2021.136996.](https://doi.org/10.24425/aee.2021.136996) [3] Szulborski M., Kolimas L., Lapczynski S., Szczesniak P., _Single_ _phase_ _UPS_ _systems_ _loaded_ _with_ _nonlinear circuits: Analysis of topology in the context of electric power quality_, Archives of Electrical [Engineering, vol. 68, no. 4, pp. 787–802 (2019), DOI: 10.24425/aee.2019.130683.](https://doi.org/10.24425/aee.2019.130683) [4] Short T., _Electric Power Distribution Handbook_, Second Edition, CRC Press (2014). [5] Abbas A.S., El-Sehiemy R.A., Abou El-Ela A., Ali E.S., Mahmoud K., Lehtonen M., Darwish M.M.F., _Optimal harmonic mitigation in distribution systems with inverter based distributed generation_, Ap[plied Sciences (Switzerland), vol. 11, no. 2, 774, pp. 1–16 (2021), DOI: 10.3390/app11020774.](https://doi.org/10.3390/app11020774) [6] Geng S., Zhang Y., Qiu H., Yang C., Yi. R., _Influence of harmonic voltage coupling on torque ripple of_ _permanent magnet synchronous motor_, Archives of Electrical Engineering, vol. 68, no. 2, pp. 399–410 [(2019), DOI: 10.24425/aee.2019.128276.](https://doi.org/10.24425/aee.2019.128276) [7] IEC 61000-4-30, _Testing and measurement techniques-Power quality measurement methods_ . [8] IEC, IEC 61000-4-7, _Testing_ _and_ _measurement_ _techniques-General_ _guide_ _on_ _harmonics_ _and_ _inter-_ _harmonics_ _measurements_ _and_ _instrumentation,_ _for_ _power_ _supply_ _systems_ _and_ _equipment_ _connected_ _thereto_ . [9] Rodriguez P., Luna A., Candela I. _et al_ ., _Multiresonant frequency-locked loop for grid synchronization_ _of_ _power_ _converters_ _under_ _distorted_ _grid_ _conditions_, IEEE Transactions on Industrial Electronics, [vol. 58, no. 1, pp. 127–138 (2011), DOI: 10.1109/TIE.2010.2042420.](https://doi.org/10.1109/TIE.2010.2042420) [10] Guo L., Wang D., Diao L., Jiang Y., Feng H., _A modified design of phase-locked loop for unbalanced_ _and distorted grid voltage conditions_, Transactions of China Electrotechnical Society, vol. 33, no. 6, [pp. 1390–1399 (2018), DOI: 10.19595/j.cnki.1000-6753.tces.170291.](https://doi.org/10.19595/j.cnki.1000-6753.tces.170291) <u>454</u> _<u>Lina Jiao, Yang Du</u>_ Arch. Elect. Eng. [11] Zhang Fusheng, Geng Zhengxing, Yuan Wei, _The_ _algorithm_ _of_ _interpolating_ _windowed_ _FFT_ _for_ _harmonic analysis of electric power system_, IEEE Trans on Power Delivery, vol. 16, no. 2, pp. 160–164 [(2001), DOI: 10.1109/61.915476.](https://doi.org/10.1109/61.915476) [12] Pang Hao, Li Dongxia, Zu Yunxiao _et_ _al_ ., _An_ _improved_ _algorithm_ _for_ _harmonic_ _analysis_ _of_ _power_ _system using FFT Technique_, Proceedings of the CSEE, vol. 23, no. 6, pp. 50–54 (2003). [13] Xu Y., Liu Y., Li Z., Li Z., _An accurate approach for harmonic detection based on 6-term cosine window_ _and quadruple-spectrum-line interpolation FFT_, Power System Protection and Control, vol. 44, no. 22, [pp. 56–63 (2016), DOI: 10.7667/PSPC151933.](https://doi.org/10.7667/PSPC151933) [14] Zhang C., Wang W., Qiu Y., _Detection Method of_ _Subsynchronous Harmonic in Regions_ _with Large_ _Scale_ _Wind_ _Power_ _Paralleled_ _in_ _Grid_, High Voltage Engineering, DOI: [10.13336/j.1003-6520.hve.](https://doi.org/10.13336/j.1003-6520.hve.20181207008) [20181207008.](https://doi.org/10.13336/j.1003-6520.hve.20181207008) [15] Andria G., Savino M., Trotta A., _Windows and interpolation algorithms to improve electrical measure-_ _ment accuracy_, IEEE Transactions on Instrumentation and Measurement, vol. 38, no. 8, pp. 856–863 (1989). [16] Novotny M., Slepička D., Sedlaček M., _Uncertainty_ _analysis_ _of_ _the_ _RMS_ _value_ _and_ _phase_ _in_ _the_ _frequency domain by noncoherent sampling_, IEEE Transactions on Instrumentation and Measurement, [vol. 56, no. 3, pp. 983–989 (2007), DOI: 10.1109/TIM.2007.894189.](https://doi.org/10.1109/TIM.2007.894189) [17] Schoukens J., Pintelon R., Van Hamme H., _The_ _interpolated_ _fast_ _Fourier_ _transform:_ _A_ _comparative_ _study_, IEEE Transactions on Instrumentation and Measurement, vol. 41, no. 2, pp. 226–232 (1992), [DOI: 10.1109/19.137352.](https://doi.org/10.1109/19.137352) [18] Agrež D., _Weighted Multi-Point Interpolated DFT to Improve Amplitude Estimation of Multi-Frequency_ _Signal_, IEEE Transactions on Instrumentation and Measurement, vol. 51, pp. 287–292 (2002), [DOI: 10.1109/19.997826.](https://doi.org/10.1109/19.997826)

섹션 본문 47문단 · 13,557자

(제목 없음)

1The discrete Fourier transform (DFT) is the main method of electrical harmonic analysis since it's easily realized in an embedded system.But there were some difficulties in performing synchronized sampling.The spectral leakage caused by asynchronous sampling affects the accuracy of harmonics analysis.Using window functions and interpolation algorithms can improve the accuracy of harmonics analysis.An approach for electrical harmonic analysis based on the interpolation DFT was proposed.A window function reduces DFT leakage and the interpolation algorithm modifies the calculation results of frequency, amplitude and the initial phase angle.The simulation results indicate that, by using the interpolation DFT electrical harmonic analysis method based on the Hanning window or the Blackman window, the error of calculating amplitudes and frequencies is not greater than 0.5%.

Introduction

2With the development of power electronic technology and devices, a large number of nonlinear loads are widely used in the power system.That produced many harmonic components for the power system [1][2][3].A very common harmonic source is the power supply for a computer that is a switched mode power supply [4].The access of distributed generation also produces harmonic components for the power system [5].Harmonics worsen power quality, increase the loss of the power grid, affect weak current systems such as computer network, communication system and cable TV, and cause signal interference.The harmonic voltage will cause an unbalanced magnetic pull, and the operational stability of the PMSM will be affected to varying degrees [6].Harmonic distortion levels are an important index of power quality.For determining whether harmonics are present in the power system, it is necessary to study the high-precision analysis method for harmonic component parameters of the electrical system.

3At present, the most direct and effective method to analyze the power system harmonic parameters is the discrete Fourier transform (DFT).Using of DFT is described in IEC 61000-4-7 [7] and IEC 61000-4-30 [8].However, the inherent time-domain windowing and frequency-domain sampling characteristics of DFT must be selected such that the sampling frequency interval is a whole-number multiple of the frequency of the signal to be measured.If the frequency of the signal to be measured is a whole-number multiple of the sampling frequency interval, it is called synchronous sampling.If not, it is called asynchronous sampling.The asynchronous sampling is easy to cause spectrum leakage and measurement errors, especially phase errors and high-order harmonic parameter errors.There are two common methods to realize the synchronous sampling.One method is to add phase-locked synchronization technology to the acquisition system and realize synchronous sampling by hardware [9,10].Another method is to solve the asynchronous problem through a specific algorithm for uniformly (asynchronous) sampled data [11][12][13][14].Suitable windows and interpolation algorithms can reduce undesirable effects due to spectral leakage caused by a sampling process that is not synchronized [15].M. Novotny et al. [16] is focused on the uncertainty analysis of the RMS value and phase computed from the DFT spectrum of the noncoherently sampled signal using cosine windows.

4The advantage of the former method is that the signal processing is relatively simple.However, due to the slow response speed of the phase-locked loop, it cannot track the rapid change of the signal frequency in time, so it can not realize the real synchronous sampling.The latter method has certain universality and is a common method for harmonic measurement in the power system.

5The fundamental frequency (50 or 60 Hz) of the power system often fluctuates, which changes slightly with the change of loads.Even if the frequency tracking technology is adopted, it is difficult to achieve strict synchronous sampling.Aiming at this phenomenon, a DFT algorithm with spectrum-line interpolation is proposed.It is an asynchronous sampling method, which samples the signal with a fixed sampling frequency, and uses the leakage frequency generated when the window function truncates the signal to obtain the actual spectrum value of the signal.Firstly, this paper analyzes the spectrum leakage of DFT, and then, we propose an electrical harmonic analysis method based on spectrum-line interpolation DFT with the rectangular window, Hanning window and Blackman window.This method obviously reduces the impact of spectrum leakage, greatly reduces the amount of calculation, and is easy to implement in an embedded system.The simulation results show that the proposed power harmonic analysis method has high accuracy under the conditions of asynchronous sampling and non-integer period truncation.

DFT leakage

6When a signal is sampled asynchronously, it is easy to cause the spectrum leakage.DFTs are constrained to operate on a finite set of input values.Think of a continuous cosine wave with a peak amplitude of at a frequency 0 described as: () = cos(2 0 + ), it is sampled at the frequency and a period of discrete-time signal is obtained as below:

7where: is the peak amplitude (V) and > 0, 0 is the frequency of the cosine wave (Hz), is the phase angle.The DFT of the () input sequence, (), is as follows:

8where

9It can be seen that ( 2) contains positive and negative frequencies and is symmetrically distributed.For the convenience of calculation, the negative frequency part is ignored.

10and magnitudes

11It's discrete spectrum as in Fig. 1.Take =

12, and when is a whole number, it is synchronous sampling.The spectrum is shown in Fig. 1(a).On the contrary, if is not a whole number, i.e. asynchronous sampling, the spectrum is as shown in Fig. 1(b).Spectrum leakage can be clearly seen in Fig. 1.If it is synchronous sampling, the spectrum at each discrete frequency point is consistent with the ideal spectrum of the signal, which is an ideal pulse.If it is asynchronous sampling, the spectrum at each discrete point is inconsistent with the ideal spectrum of the signal, resulting in leakage.Therefore, the calculation results of DFT must be processed to obtain the real spectrum of the signal.

13The frequency voltage or current of the power system often contains rich harmonic components, and the amplitude of harmonic components is generally a few percent or less of the fundamental component.In addition, the frequency of the power system is affected by loads, which is also a real-time variable, so it is difficult to measure synchronously.With asynchronous sampling, the spectrum leakage of fundamental components will seriously affect the calculation of harmonic components.At the same time, the harmonic components will leak to each other, resulting in the increase of harmonic analysis errors.

14Although there's no way to eliminate leakage completely, we can use the method of adding windows to minimize the leakage.The window function reduces DFT leakage by minimizing the magnitude of side lobes.In fact, () = cos(2 0 + ) is a signal of infinite length.Intercepting a section of it is equivalent to adding a rectangular window whose magnitude is 1 over the sample interval.Looking at the rectangular window's magnitude response, the main lobe width (-3 dB) is 4/, the maximum peak value of the side lobe is -13 dB, and the asymptotic attenuation rate of the side lobe is 6 dB/octave.The amplitude of the second harmonic in the power system is generally less than 1% of the fundamental wave, that is, the amplitude attenuation of both is less than -40 dB.If DFT spectrum analysis is directly used, the -13 dB sidelobe will submerge the -40 dB actual harmonic signal, affecting the accuracy of harmonic analysis.To reduce spectrum leakage, the window function with a small peak level of a side lobe and a large asymptotic attenuation rate of a side lobe should be selected to process the signal.

Interpolation DFT algorithm

15When using a DFT algorithm to analyze the spectrum of (), it is equivalent to sampling at 2/ intervals in digital frequency domain.Set the digital frequency corresponding to the frequency 0 as ( 1 + )2/, where 1 is a positive integer and 0 ≤ < 1.That is, ( 1 + )2 / = 2 0 .We can see that in Fig. 1(a), = 0 and in Fig. 1(b), 0 < < 1. Suppose that the maximum value of the discrete spectrum of the signal in Fig. 1 is at the discrete frequency points 1 and 1 + 1, which are obtained from (4):

16Let's define

17and then

18As a result, we can calculate .

19Thus, the actual frequency of the signal is estimated to be

20The magnitude is a correction with | ()| = 1 .

21where is the correction factor of magnitude

22The estimation of the initial phase angle is:

Interpolation DFT without window

23Directly truncating the data is equivalent to adding a rectangular window.The expression is

24Further, according to the characteristics of the rectangular window, the formulas in section 3.1 are given in detail [17,18].

25So, we can get

26The correction factor of the magnitude is

27The estimation of the initial phase angle is:

Interpolation DFT with Hanning window

28To minimize the spectral leakage, we have to reduce the sidelobe magnitudes by using window functions other than the rectangular window, such as the Hanning window [17,18].The expression of the Hanning window function coefficient is:

29The DFT of the Hanning window is as follows:

30Assuming that our original input signal samples () as ( 1) is multiplied by the corresponding window () coefficients before the DFT is performed.The DFT of the windowed () input sequence is ().The peak magnitude of the frequency ( 1 ) and ( 1 + 1) are:

31So,

32Similarly, it can be deduced that the amplitude is:

33sin()

34The estimation of the initial phase angle is the same as the rectangle window in (15).

Interpolation DFT with Blackman window

35Along with the Hanning window and the Hamming window, the Blackman window provides further DFT spectral leakage reduction when performing frequency-domain windowing.The Blackman window function is defined as

36The DFT of the Blackman window:

37Similarly to sections 3.1 and 3.2, the calculation expressions of = −1 () can be derived.However, this process is more complex, which can be solved by polynomial approximation.First, take a group of values and substitute them into (6) to obtain a group of values.Then = −1 () can be obtained by using the MATLAB polynomial fitting function ployfit() coefficient.For the Blackman window, the correction factors are as follows:

38The amplitude calculation also needs correction.From ( 14), we can get an expression for .But, the expression is complex.Similarly, we can use = ployfit() to simulate the relationship between and .

39The estimation of the initial phase angle is the same as the rectangle window in (16).

Simulation experiment verification

40The 11th harmonic signal model used in the simulation is

41where: the fundamental frequency 0 is 49.80 Hz, the sampling frequency is 10 000 Hz, the total number of sampling points is 2048, √ 2 is the amplitude of the fundamental wave and each harmonic, is the initial phase angle of the fundamental wave and each harmonic.The vluses of and are shown in Table 1.The flow of the simulation program is presented in Fig. 2. The input signal () is processed with the rectangular window, the Hamming window and the Blackman window respectively, and the discrete spectrum is obtained by DFT operation.According to the spectral line interpolation correction formula of different windows, the frequency 1 , amplitude 1 and phase angle 1 are calculated separately.And the frequency , amplitude and initial phase angle of each harmonic are also calculated.The error percentage of the measured values of the fundamental wave and each harmonic relative to the true value is given in the Table 2.It can be seen from Table 2 Arch.Elect.Eng.

42that after adding the Hanning window, the calculation results are greatly improved compared with the rectangular window.After the Blackman window processing, the calculation results are ideal, except for the parameter calculation error of the second harmonic.In order to further reduce the error, it is necessary to find a better window function.However, adding a window function also increases the computational complexity.It is necessary to select the appropriate window function according to the calculation requirements and performance.From the data in Table 2, we can see that for the data processed with Hanning window and Blackman window functions, the relative error of harmonic parameters is significantly smaller than that without window functions.In particular, the calculation error of frequency and amplitude is reduced to about 0.001 times.The characteristic of adding the Blackman window function is obviously better than that of adding the Hanning window function.

Conclusions

43It is difficult to realize synchronous sampling because the frequency of the power system changes frequently.Asynchronous sampling DFT is usually used in power system harmonic analysis.Due to spectrum leakage, the calculation error is large.In order to avoid the error of harmonics analysis, the window function interpolation DFT algorithm is used, and the practical interpolation correction formula is obtained by using the fitting function.The simulation results show that the interpolation DFT power harmonic analysis method based on the Hanning window and the Blackman window proposed in this paper has higher calculation accuracy, less calculation and high practical value.

Fig. 1 .

44Fig. 1.Comparison of discrete spectrum: synchronous sampling (a); asynchronous sampling (b)

Fig. 2 .

45Fig. 2. Program flow diagram for simulation experiment

Table 1 .

46Components of the simulated harmonic signal

Table 2 .

47Comparisons of relative errors in calculating (%)

참고문헌 13건

  1. Voltage Quality in Electrical Power Systems Institution of Engineering and Technology eBooks · Institution of Engineering and Technology · 2001 10.1049/pbpo036e
  2. Windows and interpolation algorithms to improve electrical measurement accuracy IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 1989 10.1109/19.31004
  3. Multiresonant Frequency-Locked Loop for Grid Synchronization of Power Converters Under Distorted Grid Conditions IEEE Transactions on Industrial Electronics · Institute of Electrical and Electronics Engineers · 2010 10.1109/tie.2010.2042420
  4. The interpolated fast Fourier transform: a comparative study IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 1992 10.1109/19.137352
  5. The algorithm of interpolating windowed FFT for harmonic analysis of electric power system IEEE Transactions on Power Delivery · Institute of Electrical and Electronics Engineers · 2001 10.1109/61.915476
  6. Uncertainty Analysis of the RMS Value and Phase in the Frequency Domain by Noncoherent Sampling IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2007 10.1109/tim.2007.894189
  7. Weighted multipoint interpolated DFT to improve amplitude estimation of multifrequency signal IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2002 10.1109/19.997826
  8. AN IMPROVED ALGORITHM FOR HARMONIC ANALYSIS OF POWER SYSTEM USING FFT TECHNIQUE 2003
  9. Influence of harmonic voltage coupling on torque ripple of permanent magnet synchronous motor Archives of Electrical Engineering · De Gruyter Open · 2023 10.24425/aee.2019.128276
  10. Optimal Harmonic Mitigation in Distribution Systems with Inverter Based Distributed Generation Applied Sciences · Multidisciplinary Digital Publishing Institute · 2021 10.3390/app11020774
  11. Electric Power Distribution Handbook CRC Press eBooks · Informa · 2003 10.1201/9780203486504
  12. Single phase UPS systems loaded with nonlinear circuits: analysis of topology in the context of electric power quality Archives of Electrical Engineering · De Gruyter Open · 2023 10.24425/aee.2019.130683
  13. Analysis of the harmonic composition of current in the zero-working wire at the input of the load node with the prevailing non-linear power consumers Archives of Electrical Engineering · De Gruyter Open · 2023 10.24425/aee.2021.136996