Simulation a Shunt Active Power Filter using MATLAB /SIMULINK


 Along with increasing demand on improving power quality, the most popular technique that has been used is Active Power Filter (APF); this is because APF can easily eliminate unwanted harmonics, improve power factor and overcome voltage sags. This paper will discuss and analyze the simulation result for a three-phase shunt active power filter using MATLAB/SIMULINK program. This simulation will implement a non-linear load and compensate line current harmonics under balance and unbalance load. As a result of the simulation, it is found that an active power filter is the better way to reduce the total harmonic distortion (THD) which is required by quality standards IEEE-519.



  1. APF
  2. d-q theorem,
  3. THD
  4. Power Quality
  5. ADS
  6. Instantaneous Power theory




shunt active power filter Fig.1. Diagram illustrating component of shunt connected active filter with the waveform showing cancellation of harmonics from an ASD load.



Fig. 2. Three phase line voltage  

                               Fig. 3. Three phase line current

Fig. 4. Three phase load current

                                          Fig. 5. Active filter current

Fig. 6. Line current for phase A

Fig. 7. Load current for phase A


Fig. 8. Active filter current for phase A

Fig. 9. THD for line current

Fig. 10. THD for load current



The Increasing usage of non-linear load in electrical power system which will produce the current and voltage harmonics and associate harmonics problem in power system become more serious and directly affecting the power quality. Conventional way of harmonics elimination by using passive filter might suffer from parasitic problem. It has been shown that three phase active filter based on p-q theory can be implemented for harmonic mitigation and power factor correction. Harmonics mitigation carried out by the active filter meets the IEEE-519 standard requirements.



 Emadi, A. Nasiri, and S. B. Bekiarov, “Uninterruptible Power Supplies and Active Filter”, Florida, 2005, pp. 65-111.

  • W. Hart, “Introduction to Power Electronics”, New Jersey, 1997, pp. 291-335.
  • McGranaghan, “Active Filter Design and Specification for Control of Harmonics in Industrial and Commercial Facilities”, 2001.
  • Round, H. Laird and R. Duke, “An Improved Three-Level Shunt Active Filter”, 2000.
  • Lev-Ari, “Hilbert Space Techniques for Modeling and Compensation of Reactive Power in Energy Processing Systems”, 2003.

Leave a Reply

Your email address will not be published. Required fields are marked *