File Exchange

image thumbnail

Single phase shunt active power filter based on three phase pq theory

version (33.3 KB) by Niranjan Bhujel
Mitigates harmonics current on single phase system. It also compensates reactive power.


Updated 27 Feb 2017

View License

This is same as three phase shunt active power filter. It takes single phase load voltage and current as input and generates signal for other two phase by delay block (delay of 1/150 second which is 2*pi/3 lag for 50Hz system). Then it calculates compensating current but injects the current of 1st phase only.

Cite As

Niranjan Bhujel (2019). Single phase shunt active power filter based on three phase pq theory (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

hello sir I did same model but I dint get output

This is my Email

Nima Maleki

Hi Niranjan. Your simulation is really awesome. I have recently started studying the SAPFs. I was under the impression that the DC link's voltage in Shunt active filter is supplied through a (rectifier+boost) circuit that is connected to the gird. However, it appears that in your simulation and many others, the DC link capacitors are activelye charged through the bridge switches' connection to the grid. I would really appreciate if you could explain to me how the active charging of Capcitor works while mentaining the control of inverter through Hysteresis controller. It means the world to me. Please feel free to email me:

How to do for 3 phase





Some bugs fixed.

MATLAB Release Compatibility
Created with R2016b
Compatible with any release
Platform Compatibility
Windows macOS Linux