SOGI-FLL grid frequency monitoring with an error-based algorithm for a better response in face of voltage sag and swell faults
Full text
electronics Article SOGI-FLL Grid Frequency Monitoring with an Error-Based Algorithm for a Better Response in Face of Voltage Sag and Swell Faults Sajad Abdali Nejad * , JoséMatas , Jordi Elmariachet , Helena Martín and Jordi de la Hoz Citation: Abdali Nejad, S.; Matas, J.; Elmariachet, J.; Martín, H.; de la Hoz, J. SOGI-FLL Grid Frequency Monitoring with an Error-Based Algorithm for a Better Response in Face of Voltage Sag and Swell Faults. Electronics 2021,10, 1414. https:// doi.org/10.3390/electronics10121414 Academic Editor: Ahmed Abu-Siada Received: 24 April 2021 Accepted: 4 June 2021 Published: 11 June 2021 Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. Copyright: © 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https:// creativecommons.org/licenses/by/ 4.0/). Electric Engineering Department, Polytechnic University of Catalonia (EEBE-UPC), 08019 Barcelona, Spain; [email protected] (J.M.); [email protected] (J.E.); [email protected] (H.M.); [email protected] (J.d.l.H.) *Correspondence: [email protected] Abstract: The SOGI-FLL (second-order generalized-integrator frequency-locked-loop) is a wellknown and simple adaptive filter that allows estimation of the parameters of the grid voltage with a small computational burden. However, this structure has shown to be sensitive to the events of voltage sags and swell faults, especially to voltage sags that deeply distort the estimated frequency. In this paper an algorithm is proposed to face the fault that modifies the SOGI-FLLs gains in order to achieve a better transient response with a reduced perturbation in the estimated frequency. The algorithm uses the SOGI’s instantaneous and absolute error to detect the fault and change the SOGIFLL gains during the fault. Moreover, the average of the absolute error is used for returning to normal operating conditions. The average value is obtained by means of a single low pass filter (LPF). The approach is easy to implement and represents a low computational burden for being implemented into a digital processor. The performance is evaluated by using simulations and real-time Typhoon Hardware in the Loop (HIL) results. Keywords: algorithm for override voltage sag and swell faults; grid frequency estimation; SOGI-FLL; voltage sag; voltage swell; power quality 1. Introduction Phase, amplitude, and frequency of the utility voltage are critical information for the operation of inverter-based distributed generators (DG), due to synchronization requirements with the grid network [ 1 – 4 ]. DG can use different grid monitoring techniques for obtaining online estimates of the grid parameters and stay synchronized with the grid. However, the performance of these estimators is perturbed by faults in the grid, such as voltage sags and swells, which in turn implies a worse DG performance of DG when injecting power to the grid [ 5 – 15 ]. Therefore, during grid faults, a fast and accurate detection of the grid voltage parameters is essential to keep a high quality in the DG’s operation [ 6 ]. Additionally, the grid monitoring used by the power converters should be able to perform a fast detection of the fault event while minimizing the distortion impact that faults cause on the estimated grid parameters and in the DG injected currents. This impact is particularly strong for the case of voltage sags in the estimated frequency, which is considered here, including also the case of voltage swells [6,15]. Several approaches can be found in literature for achieving the grid parameters [ 16 – 32 ]. Among them, the SOGI-FLL had become popular due to its simplicity of implementation and low computational needs. The SOGI-FLL has been widely analyzed and behaves well under grid normal conditions and even considering harmonic distortion [ 20 , 23 – 26 , 30 , 33 ]. The SOGI can be seen as a second-order Band-Pass Filter (BPF), coupled to the FLL, which is in charge of tuning the SOGI with the grid frequency [ 23 ]. The dynamic behavior of the SOGI-FLL is described in [ 24 , 26 , 33 ], which show that can be affected by grid perturbations Electronics 2021,10, 1414. https://doi.org/10.3390/electronics10121414 https://www.mdpi.com/journal/electronics
Electronics 2021,10, 1414 2 of 12 such as DC-offset voltage, subharmonics and faults. The behavior of the SOGI-FLL is deeply perturbed by voltage sags, which produce high distortion peaks in the FLL response [ 32 ]. The behavior is also perturbed by voltage swells but with less impact. Voltage sags and swells are defined by the IEEE 1159 as short-time reductions and increases in the grid voltage amplitude. Voltage sags are produced by faults in the line due to short-circuits, overloads, or starting of large motors [ 2 , 3 ]. Voltage sags can have a duration ranging from of 0.5 cycles to 1 min and can go from 0.9 per-unit (pu) to 0.1 pu in voltage magnitude. According to their duration, voltage sags are classified into three categories: instantaneous sags lasting from 0.5 cycles to 30 cycles, momentary sags from 30 cycles to 3 s, and temporary sags from 3 s to 1 min. Additionally, they are classified as an undervoltage when they exceed more than 1 min. In the same way, voltage swells are defined as a short-time increase in the grid voltage amplitude due to a single line-to- ground fault or by the de-energization of huge loads, among other causes. Voltage swells are also classified into the same three categories as for voltage sags. Voltage swells can be instantaneous, from 0.5 cycles to 30 cycles and from 1.1 pu to 1.8 pu; momentary, from 30 cycles to 3 s and from 1.1 pu to 1.4 pu; and temporary, from 3 s to 1 min and from 1.1 pu to 1.2 pu. The impact of strong voltage swells such as 1.8 pu in the SOGI-FLL estimated frequency is also high but with less magnitude than the case of 0.2 pu voltage sags [ 32 , 33 ]. In [ 32 ] the response of the SOGI-FLL to voltage sags and swells was studied. In this paper a saturation of ± 1 Hz around the estimated frequency was used to limit the size of the perturbation and a Finite State Machine (FSM) algorithm was defined to minimize the transient response. The FSM used the pattern produced at the estimated frequency transient response for defining a set of five states that correspond to each relevant part of the pattern. The gains of the SOGI-FLL were adjusted by the FSM at each part of the pattern according to the voltage sag/swell depth/height level to minimize the size of the perturbation in the estimated frequency. However, the reaction to the fault with this approach presents some drawbacks as: an inherent slow response that is difficult to overcome due to the method’s definition around the integrator-block of the FLL; the necessity of measuring the depth/height of the voltage sag/swell; and the use of a set linear and nonlinear equations to obtain the SOGI-FLL gains, which made complex the proposal implementation. In this paper, a different approach is presented for facing this problem by means of an algorithm that uses the SOGI’s instantaneous, absolute and averaged error signal. The approach is easier to implement than [ 32 ] since it doesn’t need to measure the depth or height of the voltage sag or swell, it uses a simpler algorithm employing less states and uses constant gains for the SOGI-FLL for dealing with the fault. In this algorithm, the use of the SOGI’s error allows a faster transient response to the fault event, since the error is directly affected by it, with no-delay, and allows differentiating voltage sags from voltage swells. The absolute value of the error allows determining a fast detection of the fault, which can be applied to both, sags and swells. The detection is made using a given threshold that triggers the algorithm when is surpassed by the absolute error value. The threshold is designed to preserve the capability of the SOGI-FLL to respond to step changes in the grid frequency of ± 2 Hz and, also, to harmonic distortions till 3% amplitude regarding nominal voltage. The algorithm works with nominal gains at normal conditions and changes to reduced gains when a fault happens. The average of the error is used as a means to detect when the perturbation induced by the fault ends. Another threshold is also used for returning to normal operating conditions when the average is below it. This threshold is designed to cover all the possible depths or heights that voltage sags and swells could have. The algorithm is simple and easy to implement, representing a low computational burden for being implemented in a digital processor. The response of the proposed algorithm is better than the reported in [ 32 ], which is assessed using simulations and HIL test using MATLAB/Simulink and Typhoon HIL 402 platforms.
Electronics 2021,10, 1414 3 of 12 2. SOGI-FLL Response to Voltage Sags and Swells The structure of the SOGI-FLL is shown in Figure 1, where vg is the grid voltage, ωo is the center frequency of the SOGI filter, vd and vq are the in-phase and quadraturephase outputs and ω is the FLL estimated grid frequency acting as center frequency of the SOGI filter. Figure 1. Block diagram of the SOGI-FLL filter. The SOGI has a second-order band-pass filter (BPF) and a low-pass filter (LPF) behavior for vdand vq[23], with the following transfer functions Hd(s)=vd(s) vg(s)=2ξωo·s s2+2ξωo·s+ω2 o (1) Hq(s)=vq(s) vg(s)=2ξω2 o s2+2ξωo·s+ω2 o (2) The FLL is a gradient descent estimator [20,23], defined as dω dt =−λ A2e·vq(3) where Ais the estimate of the grid voltage amplitude, A=qv2 d+v2 q. The linearized model of the SOGI-FLL in a quasi-locked operating point regarding the voltage amplitude and frequency is defined in [ 24 , 26 , 33 ], as (4) and (5), depicted in Figure 2. A(s) Ag(s)=ξωn s+ξωn(4) ω(s) ωg(s)=λ/2 s2+ξωn·s+λ/2 (5) where ωg and Ag are the frequency and amplitude of the grid voltage, respectively, and ωn is the nominal value of the grid frequency, ωn=2π50 rad/s. Figure 2. Linearized models of the SOGI-FLL: ( a ) estimated voltage amplitude; ( b ) estimated voltage frequency. The linearized models of (4) and (5) allow obtainment of the transient response of A and ω for a sudden change in Ag and ωg , respectively, for a given value of ξ and λ .
Electronics 2021,10, 1414 4 of 12 The model of (4) is of a first-order system with constant time τ= 1 /ξωn and, from linear control theory, it is well known that using ξ= 1 /√2 an optimal relationship is achieved in the transient response of the system [ 1 ]. The model of (5) corresponds to a second-order system, whose transient response comes determined by the roots of (6): s2+ξωn·s+λ/2 =0 (6) In (6), it can be seen that ξωn and λ/ 2 are related to the damping factor, ξ0 , and natural undamped frequency, ω0 , respectively, in the standard definition of a second-order system, i.e., a system with roots s2+ 2 ξ0ω0·s+(ω0)2= 0. Then, by identifying ξωn= 2 ξ0ω0 and λ/2 =(ω0)2, it can be inferred that: λ=2ω02(7) and extracting ω0from the other identification: ω0=ξωn 2ξ0(8) and, putting (8) in (7) leads to: λ=ξ2ω2 n 2ξ02(9) Which choosing the optimal ξ0=ξ= 1 /√2 leads to a transient response that only relies on λ: λ=0.5ω2 n(10) Then, by inserting these gains, ξ and λ , in (6) gives roots located at s1,2 =−111.07 ±111.07 j , which corresponds to a transient response in ω that achieves an overshoot of Mp = 4.32% and settling time ts1= 4 τ= 4 / 111.07 = 36 ms , depicted in blue as the pair of gains (ξ1,λ1) in Figure 3. Figure 3. Linearized response to a frequency step perturbation of 1 Hz for two sets parameters: ( ξ1= 0.707, λ1= 0.5 ω2 n ), in blue with Mp = 4.32% and ( ξ2= 0.707, λ2= 0.25 ω2 n ), in red with Mp =0%. By choosing this pair of gains, the transient response is optimal for the second-order system regarding achieved overshoot and settling time [ 1 ]. This, from the harmonic rejection point of view, it implies that a 3rd harmonic with a 3% amplitude voltage regarding nominal produces a ripple distortion around ω of 0.435 Hz, measured peak-to-peak. However, another interesting design point can be chosen instead for λ= 0.25 ω2 n that corresponds to double real roots at s1,2 =−111.07, i.e., a transient response without overshoot, Mp = 0%, since there are no imaginary parts in s1,2 , see depicted in red as the pair (ξ2,λ2)
Electronics 2021,10, 1414 5 of 12 in Figure 3. In this case, as the gain has been reduced by half, an extra attenuation to harmonics has been achieved and the ripple is reduced also by half, to 0.217 Hz. Notice that for λ= 0.25 ω2 n the settling time is identical than for λ= 0.5 ω2 n , since the real part of the roots for both gains are identical, i.e., ts2=ts1= 4 / 111.07. Therefore, we can consider λ= 0.25 ω2 n as an optimal gain regarding harmonic-attenuation and ts . Additionally, this gain could be an interesting choice for those designers that are more interested in keeping the same ts but with an extra harmonic attenuation. From now on, in this paper, λ1 and λ2 are considered as two reference optimal gains for facing the perturbation induced by voltage sags and swells in the estimated frequency. The first one is better for achieving a faster transient response and the second one achieves a response with the same settling time but with better harmonic rejection capability. Regarding the impact of voltage sags in the SOGI-FLL, the model in (4) can be used to obtain the transient response to the fault in the estimated grid voltage amplitude. But the model in (5) can provide the transient response of ω to a perturbation in the grid frequency, ωg , but not to changes in Ag since there are no-crossing terms between (4) and (5). Therefore, the impact in ω should be assessed using the real model depicted in Figure 1 . Additionally, it is well known that the impact of voltage sags in the estimated ωg is really high. Moreover, the transient response induced by the fault is nonlinear, and its magnitude size depends nonlinearly on the voltage sag’s depth, being worst for the deepest voltage sags. Figure 4provides an idea about the high impact of the perturbation induced in the estimated frequency by a voltage sag. Figure 4a depicts the estimated frequency for a series of voltage sags ranging from 0.8 pu to 0.2 pu for the optimal pair ( ξ1= 0.707, λ1= 0.5 ω2 n ). Figure 4b depicts the measured peak-to-peak value of the perturbation for each case. In this figure, the two pair of optimal gains, ( ξ1= 0.707, λ1= 0.5 ω2 n ) and ( ξ2= 0.707, λ2= 0.25 ω2 n ) had been considered. Notice that the size of the perturbation for λ1 can arrive to 15 Hz for the pair (ξ1,λ1) and of 6 Hz for (ξ2,λ2). Figure 4. ( a ) Estimated frequency perturbations in the SOGI-FLL for different voltage sag depths ranging from 0.8 pu to 0.2 pu and FLL gain λ1= 0.5 ω2 n . ( b ) Measured peak-to-peak maximum amplitude distortion in Hz, in blue for λ1= 0.5 ω2 n , in red for λ2=0.25ω2 n. A similar impact, but with less peak-to-peak size, can be observed for a voltage swell in Figure 5a for voltage swells ranging from 1.2 to 1.8 pu and for the pair ( ξ1 , λ1 ). Additionally, Figure 5b depicts the measured peak-to-peak magnitude for the two pair of optimal gains, (ξ1,λ1) in blue and (ξ2,λ2) in red.
Electronics 2021,10, 1414 6 of 12 Figure 5. ( a ) Estimated frequency perturbations in the SOGI-FLL for different voltage sag swells ranging from 1.2 to 1.8 pu and FLL gain λ1= 0.5 ω2 n . ( b ) Measured peak-to-peak maximum amplitude distortion in Hz, in blue for λ1= 0.5 ω2 n , in red for λ2=0.25 ω2 n. 3. Reducing the Perturbation Impact by Means of a SOGI’s Error-Based Algorithm The most effective approach for reducing the perturbation in the FLL estimated frequency is by means of using directly the error signal of the SOGI filter, because it receives directly the impact of the fault through the input voltage, i.e., e=vg−vd . In this paper, a proposal is made using the error signal, the absolute value of the error signal, |e| , and a low-pass filtering of |e| , noted as LPF(|e|) and also as avg(|e|) . The proposal consists in an algorithm that uses these variables as inputs and that provides a proper value of ξ and λ to the SOGI-FLL for facing the fault and reduce the impact of the perturbation. This proposal is defined first for voltage sags and after is also applied to voltage swells. The block diagram that schematizes this proposal can be seen in Figure 6. Figure 6. SOGI-FLL-EbA proposal using e, |e| and avg(|e|) for reducing the impact of voltage sags and swells in the estimated frequency. The algorithm is depicted in Figure 7and is defined using only three states, named as S1, S2 and S3. From now on, the proposal will be named as SOGI-FLL “Error-based Algorithm”, SOGI-FLL-EbA. In the algorithm, S1 means normal operation. In this case, the SOGI-FLL-EbA operates with nominal gains ( ξN , λN) . This gains can be the pair ( ξ1 , λ1 ) or ( ξ2 , λ2 ), but the pair ( ξ1 , λ1 ) are used mainly in this paper. Then, at a fault event, |e| spikes such as a sharp impulsive transient response. The error |e| is compared to a given threshold eγ and, if |e|>eγ , the algorithm goes to state S2 were the SOGI-FLL-EbA runs with different gains named as ( ξF , λF) . These gains had been designed by a series of trial-and-error simulations for achieving a proper transient response and reduce the impact of the perturbation. The threshold eγ is designed to be able respond to a frequency step change of ± 2 Hz and to pass a harmonic distortion that can reach a 3% THD. The main objective had consisted into reducing the perturbation size to less than 2 Hz for the case of 0.2 pu, i.e., an 80% depth. To this purpose, the FLL gain, λF, has been strongly reduced.
Electronics 2021,10, 1414 7 of 12 Figure 7. SOGI-FLL-EbA using e, |e| and avg(|e|) signals for improving the frequency response in face of voltage sags and swells. At this stage, the average input, avg(|e|) is used for transitioning to S3. This average is obtained by using a LPF with a suitable cutoff frequency, ωc , with the aim of filtering |e| and generate an energy-like function for giving an indication of when the perturbation has passed over. The transitory of avg(|e|) will consists in an impulsive function, see Figure 7 in red, that exponentially decays to zero, which, when is close to zero, means that the perturbation is over. Therefore, the algorithm goes to S3 only when avg(|e|) is a given threshold, avg(|e|)<eo . Finally, a counter timer Tc is started for giving a specific exit-time, texit . This counter helps to set a specific time delay to be performed before returning to state S1, in order to ensure a smooth returning to normal state. The exit-time is designed to cover all the different voltage sag depths. When the condition Tc>texit meets, the algorithm returns back to state S1 and the SOGI-FLL-EbA operates again with (ξN,λN). Additionally, the same algorithm can be applied to voltage swells using e to identify a swell from a voltage sag. As e=vg−vd , at the event of a fault, if e< 0 means that the fault consists in a voltage sag and e> 0 in a voltage swell. The gains ( ξF , λF) , threshold eo and exit time texit are different for voltage sags and swells and the values are depicted in Table 1. Table 1. SOGI-FLL-EbA parameters responding to voltage sags and swells. Parameter Mp State S1 S2–S3 (ξ1,λ1)4.32% 0.707, 0.5ω2 n 0.82, 0.06ω2 n (ξ2,λ2)0% 0.707, 0.25ω2 n 0.82, 0.16ω2 n Parameter Value Fault-type Sag Swell eγ25 V 25 V eo1.5 V 7 V texit 8.5 ms 12 ms 4. Simulation and HIL Results The SOGI-FLL-EbA proposal of Figure 6has been discretized and simulated with Matlab/Simulink software. The SOGI-FLL-EbA gains during S1, S2 and S3 states and the thresholds eγ , eo and exit-time texit are shown in Table 1. A third-order Adam–Bashforth method has been adopted, (11), for discretizing the SOGI filter following the discretization analysis performed in [ 34 ]. This method provides an exact − 90 ◦ phase delay at the SOGI
Electronics 2021,10, 1414 8 of 12 quadrature output and doesn’t have the drawbacks reported with backward, forward and trusting related methods, especially for low sampling frequencies. 1 s↔Ts 12 5z−3−16z−2+23z−1 1−z1(11) and, the integrator of the FLL has been discretized using the backward Euler method: 1 s↔Ts 1−z1(12) Ts being the sample time of 100 µs, consistent with the 10 kHz frequency. Figure 8a,b depicts the transient response of the SOGI-FLL and SOGI-FLL-EbA for a 0.2 pu voltage sag and 1.8 pu voltage swell, respectively. The faults happen at time 0.205 s. Notice how the perturbation in both cases had been reduced considerably, above 1 Hz peak-to-peak. Figure 8. SOGI-FLL and SOGI-FLL-EbA estimated frequency transient responses to 0.2 pu voltage sag and 1.8 pu voltage swell at 0.205 s, respectively. The value chosen for the threshold eγ has been designed to be able to accommodate a frequency step change of ± 2 Hz and including a 3% THD harmonic distortion. Figure 9a depicts the transient response of the SOGI-FLL-EbA for a 2 Hz frequency step change at 0.2 s. Figure 9b shows the same transient response with a 3rd harmonic with 3% amplitude from nominal. Notice how the threshold allows the SOGI-FLL-EbA to respond to these perturbations, which do not trigger the proposed algorithm. It is important to remark that, since the “EbA” algorithm has not been triggered, these transient responses are identical to the achieved by a traditional SOGI-FLL, so they are not depicted in the figure. Figure 9. Transient responses of the SOGI-FLL-EbA to a frequency step perturbation of 2 Hz. ( a ) without harmonic distortion. (b) with a 3rd harmonic and 3% voltage amplitude regarding nominal.
Electronics 2021,10, 1414 9 of 12 Figures 10 and 11 depict the transient response of the SOGI-FLL and SOGI-FLL-EbA to voltage sags and swells with different durations. As fault transient, we consider here the event of a voltage sag or swell and recovery to nominal grid voltage in a short time. Fault events of Figure 10a extend for three and three quarters cycles while those in Figure 11a do so for three cycles and half. These responses show that the proposed algorithm reduces the impact of the perturbation and that allows a faster transient response. For this reason, Figures 10b and 11b show the results for shorter fault lengths and have a contrast. Figure 10. Transient response of the SOGI-FLL and SOGI-FLL-EbA to short-duration voltage sags. ( a ) SOGI-FLL response to a 0.2 pu voltage sag at 0.2 s with three cycles and three quarters of duration. ( b ) SOGI-FLL-EbA response to 0.2 pu voltage sag at 0.2 s with two and half cycles of duration. Figure 11. Transient response of the SOGI-FLL and SOGI-FLL-EbA to short-duration voltage swell. ( a ) SOGI-FLL response to a 1.8 pu voltage swell at 0.205 s with three and half cycles of duration. ( b ) SOGI-FLL-EbA response to 1.8 pu voltage swell at 0.205 s with one and half cycles of duration. Additionally, the grid voltage and the SOGI-FLL and SOGI-FLL-EbA had been implemented in a real-time HIL Typhoon 402 and HIL DSP100 platforms and the responses being captured in the typhoon SCADA panel [ 35 ]. Figure 12 shows the HIL results for the SOGI-FLL and SOGI-FLL-EbA to a periodic voltage sag fault transient that goes from 1 pu to 0.2 pu and then return back to 1 pu., the voltage sags go down to 0.2 pu and then return to 1 pu. In a similar way, Figure 13 depicts the transient results for a voltage swell that goes from 1 pu to 1.8 pu and back to 1 pu. As in the Simulink simulations, these HIL