Selective Harmonic Elimination PWM (SHEPWM) of two level, three phase inverter

SHEPWM of 3 phase, 2 level inverter with 3, 5 and 7 switching angles per quarter cycle.
2.7K Downloads
Updated 7 Jul 2016

View License

This set of models and scripts demonstrate how SHEPWM works. The Simulink models generate pulses for two level inverter based on precomputed SHEPWM angles and modulation index. Three models are provided, with 3, 5 and 7 switching angles per quarter cycle of the output fundamental frequency. The models have preload functions, that compute the angles whenever the models are started. The models also have sine triangle PWM with comparable frequency carrier to show how SHEPWM excels at low switching frequencies, relative to output fundamental frequency. For 5 and 7 angles per quarter cycle, there are four solutions of angles and some are better than others. In the given scripts, 2 sets have been provided for each case (3,5 and 7 pulse).
The preload functions have also been provided separately as .m files, with comments about the initial values given for Newton Raphson method for each iteration. The expressions used in the equations for SHEPWM are taken from the following reference.
V. G. Agelidis, A. Balouktsis, I. Balouktsis and C. Cossar, "Multiple sets of solutions for harmonic elimination PWM bipolar waveforms: analysis and experimental verification," in IEEE Transactions on Power Electronics, vol. 21, no. 2, pp. 415-421, March 2006.
doi: 10.1109/TPEL.2005.869752

Cite As

Rohit Baranwal (2024). Selective Harmonic Elimination PWM (SHEPWM) of two level, three phase inverter (https://www.mathworks.com/matlabcentral/fileexchange/58045-selective-harmonic-elimination-pwm-shepwm-of-two-level-three-phase-inverter), MATLAB Central File Exchange. Retrieved .

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

Inspired by: Selective Harmonic Elimination

Communities

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0

Updated the description regarding THD. Out of multiple possible solutions for firing angles (for a given number of angles per quarter cycle), some lead to better THD than the others, as also given in the reference article (by Prof. Agelidis).