The shunt active power filter (SAPF) system oscillation is a massive threat to the security and stability of the power grid. This study classifies SAPF oscillation into two categories according to the difference in mechanisms. The SAPF oscillation in one category is caused by the resonant characteristics of a switching noise filter and is called external loop amplification. The SAPF oscillation in the other category is induced by the presence of a capacitor in the load current for SAPF and is called self-excited oscillation. Unlike previous studies, this study tried to reveal the internal relationship between the two kinds of SAPF oscillation, present a general shunt virtual-damping-based SAPF oscillation suppression strategy covering the previous resonant damping method, and provide the discrete domain stability criterion of the control system. The sampling frequency was at least six times the resonant frequency. The stability region was enlarged with an increase in the sampling frequency and narrowed with a rise in the resonant frequency. As to the harmful self-excited oscillation problem, this study proposes a composite control strategy combining selective harmonic compensation and grid-side current feedback. Moreover, this study considers the more general resistance–inductance–capacitance load situations and analyzes the stability of the SAPF–Thyristor Switched Capacitor (TSC) hybrid compensation system. Simulations and experiments demonstrated that the proposed compound control method can reduce the primary harmonics of the system by more than 90% and has a better oscillation suppression performance than previous suppression methods. In particular, if we selected the TSC series reactance rate following more than 6%, self-excited oscillation could usually be avoided.
The recursive discrete Fourier transformation (RDFT) method can be used for grid voltage phase-locking and harmonic current detection in a shunt active power filter (SAPF). However, in weak power grids such as microgrids, significant errors might occur in the amplitude and phase detection due to grid frequency deviation. In this study, to resolve this problem, a directly modified RDFT (DMRDFT) method is proposed for SAPF weak grid application. Through theoretical analysis, the errors of phase and amplitude detection were found to consist of fixed error and fluctuating error. The fixed error is only determined by frequency deviation, whereas the fluctuating error is also related to the recursive pointer and the initial phase. The DMRDFT algorithm can obtain the real grid frequency through the calculation of the phase angle difference for two consecutive periods. Then it can employ the grid frequency deviation and the recursive pointer value to directly correct the detection results gathered by the conventional RDFT algorithm. As a result, DMRDFT can yield accurate amplitude and phase information of the grid voltage or current with a simple calculation. Simulation results verify the high precision of the proposed DMRDFT method in both steady and dynamic situations. Experimental results show that the DMRDFT method can significantly increase the SAPF compensation performance when grid frequency shifts.