scieee AI-readable full text Open interactive document viewer

A Comparison Between Kalman Filters and STDFT for Harmonic Estimation in Power Systems

Rosendo Macías, José Antonio; Gómez Expósito, Antonio

Abstract

This paper presents a comparison between Kalman filter and the running DFT for the computation of harmonics in power systems applications. The performance of both filters is compared for events like voltage dips or those in which a decaying DC component is present. The comparison considers also the presence of higher order harmonics.

Full text

A Comparison Between Kalman Filters and STDFT for Harmonic Estimation in Power Systems J. A. ROSENDO MACÍAS A. GÓMEZ EXPÓSITO Department of Electrical Engineering University of Sevilla Camino de los Descubrimientos s/n, Sevilla SPAIN Abstract: - This paper presents a comparison between Kalman filter and the running DFT for the computation of harmonics in power systems applications. The performance of both filters is compared for events like voltage dips or those in which a decaying DC component is present. The comparison considers also the presence of higher order harmonics. Key-Words: - Digital filters, Harmonic analysis, Kalman filtering, Power system harmonics, Power system protection, short time discrete Fourier transform 1 Introduction Many power systems applications, like digital protection or power quality assessment, rely on the accurate computation of harmonics. Although the use of the short-time discrete Fourier transform (STDFT) has been extensively considered for this purpose, other techniques are also available [1], [2], [3]. Among them, Kalman filtering shows great promise because its estimate is unbiased and optimal in the sense that the covariance of the estimation error is minimized. In this paper the basic theory of the STDFT and Kalman filter will be first reviewed, as well as the Kalman filter models available for harmonic estimation. The comparison presented in this paper considers three main scenarios: A) Single harmonic model and sudden amplitude dips at different phase angles of the purely sinusoidal signal. B) Decaying DC component at different phase angles, and C) Presence of higher harmonics to be modeled in the Kalman filter. 2 Short-time Discrete Fourier Transform The Short-time discrete Fourier transform (STDFT) or running discrete Fourier transform of a signal )(nz and window length Ncan be seen as the discrete Fourier transform (DFT) of the sequence )1( +− Nnz , )2( +− Nnz , …, )1( −nz , )(nz : ∑ − = − ++−= 1 0 2 )1()( N i N i j neiNnzkZ π (1) where n kZ )( is the harmonic number k (1,1,0 −= Nk K) at time instant n. The computation of every harmonic can be seen as the output a digital filter, with a frequency response similar to that of figure 1, for the fundamental harmonic ( 1=k), where it can be easily verified that each filter rejects perfectly the presence of other harmonics: 0 1 2 3 4 5 6 7 8 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 k Magnitude Fig. 1: Frequency response of the fundamental harmonic filter n Z)1( . Direct computation of a single harmonic using equation (1) involves O( N) floating operations but several algorithms have been developed to reduce this computational cost. Recursive algorithms like [4] or [5] have low cost, independent of N, but long-term accuracy deterioration has been reported [6]. Non-recursive algorithms, like [7], [8] are free of these Proc. of the 5th WSEAS/IASME Int. Conf. on Electric Power Systems, High Voltages, Electric Machines, Tenerife, Spain, December 16-18, 2005 (pp574-578) problems and still have a low computational cost, O( Nlog ). 3 Kalman Filters Kalman filtering theory assumes a system model with the following equation in the state space )()()()1( nwnxnnx +Φ=+ and a measurement model given by )()()()( nvnxnHnz += where • )(nx is the state vector • )(nΦ is the state transition matrix • )(nH is the measurement matrix. • )(nw and )(nv are the model and the measurement error vectors. Each of their components is considered to be a white noise. The covariance matrices, )()( T wwEnQ = and )()( T vvEnR = respectively, are assumed to be diagonal matrices of constant terms: IQnQ 0 )( = and IRnR 0 )( =. Having a priori knowledge of error covariances Q and R , the filter can be implemented with the following equations [] [] [] )()()()( )( ˆ )()()()( ˆ )( ˆ )()()()()()()( )()1()1()1()( )1( ˆ )1()( ˆ 1 nPnHnKInP nxnHnznKnxnx nRnHnPnHnHnPnK nQnnPnnP nxnnx TT T − −− − −− − −− −= −+= += +−Φ−−Φ= −−Φ= where )( ˆnx is the estimation of )(nx , )(nK is the Kalman gain, )(nP is the covariance matrix of the estimation error, [ ] T xxxxEnP ) ˆ )( ˆ ()( −−= , )( ˆnx− and )(nP− are estimations at instant n using only information available at instant 1−n. The filter needs initial values for the state estimation vector )0( ˆ x and estimation error covariance )0(P, which is considered to be diagonal, IPP 0 )0( = . However, these values are not especially relevant since their effect only last for the first instants. 3.1 Model for a single harmonic Estimating a single harmonic leads to the state vector ⎥ ⎦ ⎤ ⎢ ⎣ ⎡ = 1 1 )( S C nx where 1 C and 1 S are the real and imaginary components. For the fundamental harmonic, two approaches are possible for the transition and measurement matrices. Let N be the number of samples for a period of the signal, so, the first approach leads to a constant phasor in steady state: ⎥ ⎦ ⎤ ⎢ ⎣ ⎡ =Φ 10 01 )(n [ ] )/2sin()/2cos()( NnNnnH π π − = while the second one leads to a rotating phasor: ⎥ ⎦ ⎤ ⎢ ⎣ ⎡− =Φ )cos()sin( )sin()cos( )( φφ φφ n [ ] 01)( = nH where N/2 π φ = . Although the same results are obtained in both cases provided the rotation is taken into account, the second approach has the advantage of having matrices of constant coefficients. 3.2 Model for decaying DC component This is a usual case in digital protection applications where an exponentially decaying component is present during the faulted period. In this case, the state vector ⎥ ⎥ ⎥ ⎦ ⎤ ⎢ ⎢ ⎢ ⎣ ⎡ = 1 1 0 )( S C X nx should be used, being 0 X the decaying DC component. With this state vector and considering the rotating phasor approach, the transition and measurement matrices are: ⎥ ⎥ ⎥ ⎦ ⎤ ⎢ ⎢ ⎢ ⎣ ⎡ −=Φ − )cos()sin( )sin()cos()( /1 φφ φφ λ e n [ ] 011)( = nH where λ is the time constant of decay, which can be estimated from the equivalent impedance of the network, eqeq RL / = λ . Proc. of the 5th WSEAS/IASME Int. Conf. on Electric Power Systems, High Voltages, Electric Machines, Tenerife, Spain, December 16-18, 2005 (pp574-578) 3.3 Model for higher harmonics When p harmonics have to be modeled: ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎦ ⎤ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎣ ⎡ = p p S C S C nx M 1 1 )( The transition and measurement matrices are ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎦ ⎤ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎣ ⎡ − − =Φ )cos()sin( )sin()cos( )cos()sin( )sin()cos( )( φφ φφ φφ φφ pp pp nO [] 0101)( K=nH 4 Comparison Performance of STDFT and Kalman filters is compared in this section for several cases. The signal under study is sampled 16=N times every period and the Kalman filter uses 1 0=Q, 01.0 0 = R, 0)0( ˆ=x and 10000 0=P, like in [9]. 4.1 Single harmonic To compare both techniques, a signal which is purely sinusoidal except for a two-cycle dip is supposed: ⎩ ⎨ ⎧ + << =elsewhereNn n nz )/2cos(100 64320 )( ϕπ 0 8 16 24 32 40 48 56 64 72 80 88 96 104 0 10 20 30 40 50 60 70 80 90 100 110 Samples Harmonic magnitude Fourier Kalman Fig. 2: Performance for sinusoidal signal, 0= ϕ 0 8 16 24 32 40 48 56 64 72 80 88 96 104 0 20 40 60 80 100 120 Samples Harmonic magnitude Kalman STDFT STDFT Kalman Fig. 3: Performance for different phase angles In figure 2, the performance for Kalman and STDFT is shown for the signal with 0= ϕ . The Kalman filter converges within the first 3 samples due to the high value of 0 P. Convergence time at the subsequent dip transitions still remains faster than that of SFDFT, which is one period ( 16 = N). Figure 3 shows the performance for different values of ϕ , including 0 = ϕ and 2/ π ϕ =. It can be seen that the Kalman filter presents strong oscillations for some sinusoids, while SDTFT has a quite uniform behavior, but a little bit slower than the Kalman filter. 4.2 Decaying DC component This comparison considers the case of a decaying DC component added to the sinusoidal signal from the instant 32 = n on: ⎩ ⎨ ⎧<+ = −− elsewherens nens nz n )( 32100)( )( /)32( λ where )/2cos(100)( ϕ π + = Nnns and 16 = λ . Figure 4 shows that the Kalman filter is able to converge to the correct value of the harmonic in the presence of the decaying DC component, while the STDFT remains with oscillations even after one period. This good behavior of the Kalman filter is checked for different phase angles in the sinusoid, as shown in figure 5. In this figure, it can seen that the convergence time and the results of the DC component do not depend on the phase angle. Proc. of the 5th WSEAS/IASME Int. Conf. on Electric Power Systems, High Voltages, Electric Machines, Tenerife, Spain, December 16-18, 2005 (pp574-578) 0 8 16 24 32 40 48 56 64 72 80 88 96 104 0 20 40 60 80 100 120 140 160 180 200 Samples Harmonic magnitude Kalman DC Kalman harmonic STDFT harmonic Fig. 4: Comparison for decaying DC component 0 8 16 24 32 40 48 56 64 72 80 88 96 104 0 20 40 60 80 100 120 140 160 180 200 Samples Harmonic magnitude Kalman harmonic Kalman DC Fig. 5: Kalman performance for decaying DC component and several phase angles 4.3 Higher harmonics This test is carried out improving the model of the Kalman filter to consider up to 4=p harmonics. The result is shown in figure 7, where it is clear that even the model for 2=pharmonics slows down the Kalman filter convergence time compared with that of the STDFT. Convergence is similar to that for larger values of p . These results are not significantly affected by the presence of the modeled harmonics, as shown in Figure 7 for the case 4=p and purely sinusoidal harmonics 2, 3 and 4 of amplitude 10. 0 8 16 24 32 40 48 56 64 72 80 88 96 104 0 10 20 30 40 50 60 70 80 90 100 110 Samples Harmonic magnitude Kalman STDFT p=1 p=4 Fig. 6: Performance for large number of harmonics in the model 0 8 16 24 32 40 48 56 64 72 80 88 96 104 0 10 20 30 40 50 60 70 80 90 100 110 Samples Harmonic magnitude Kalman STDFT p=1 p=4 Fig. 7: Performance for large number of harmonics in signal and model. 5 Conclusion The STDFT shows quite a uniform convergence within a period to the proper value of the harmonic, despite the presence of higher harmonics. However it can not deal properly with the presence of decaying DC component, which produces ripple around the correct harmonic magnitude. On the other hand, the Kalman filter shows faster convergence than a period when a single harmonic is present, but sensitivity of this filter to non-modeled components makes it necessary to enlarge the Kalman model. The enlarged model comprising higher harmonics slows down the filter convergence, but in the case of decaying DC component provides the correct output as soon as the DC component is properly estimated. Proc. of the 5th WSEAS/IASME Int. Conf. on Electric Power Systems, High Voltages, Electric Machines, Tenerife, Spain, December 16-18, 2005 (pp574-578) References: [1] A.G. Phadke, J.S. Thorp, Computer Relaying for Power, Ed. Somerset, England: Research Studies Press, 1988. [2] K.K. Li, C. Cheung, Y.Q. Xia, Performance comparison and evaluation of digital distance protection algorithms, International Conference on Advances in Power System Control Operation and Management, 1991. APSCOM-91., Vol.1, Nov 1991, pp.455-460. [3] E.O. Schweitzer, D. Hou, Filtering for Protective Relays, WESCANEX 93, “Communications, Computers and Power in the Modern Environment” Conference Proceedings, IEEE, May 1993, pp. 15-23. [4] J.H. Halberstein, Recursive, complex Fourier analysis for real-time applications, Proc. IEEE, Vol. 54, no. 6, Jun, 1966, p. 903. [5] A. Gómez, J. A. Rosendo, J. L. Ruiz, Discrete Fourier Transform Computation for Digital Relaying, Int. Journal of Electrical Power & Energy Systems, Vol. 16(4), Aug 1994, pp. 229-233. [6] J.A. Rosendo, A. Gómez, Efficient Moving-Window DFT Algorithms, IEEE Transac. on Circuits and Systems, part II Analog and Digital Signal Processing, Vol. 45 (2), Feb. 1998, pp. 256-260. [7] A. Gómez, J.A. Rosendo, Fast Non-Recursive Computation of Individual Running Harmonics, IEEE Transac. on Circuits and Systems, part II Analog and Digital Signal Processing, Vol. 47 (8), Aug. 2000, pp. 779-782. [8] A. Gómez, J.A. Rosendo, Fast Harmonic Computation for Digital Relaying. IEEE Transac. on Power Delivery, Vol. 14 (4), Oct. 1999, pp. 1263-1268. [9] J.A. Rosendo, A. Gómez, Kalman Filter Tuning for Digital Protection Applications, IEEE PowerTech 2003. Bolonia, Italy, Paper 240, Jun. 2003. Proc. of the 5th WSEAS/IASME Int. Conf. on Electric Power Systems, High Voltages, Electric Machines, Tenerife, Spain, December 16-18, 2005 (pp574-578)