I created a bunch of power electronic simulations using the popular Matlab Simulink SimPowerSystems package. Below are a few examples.
These examples use notation and parameters from the book
P.C. Krause, O. Wasynczuk, and S.D. Sudhoff, Analysis of Electric Machinery and Drive Systems, Wiley Interscience, 2002.
If you are not familiar with this book, check it out. It provides rigorous, comprehensive, and relevant information for power conversion systems.
A standard six-transistor inverter modeling sine-triangle PWM or 180 degree VSI.
A standard inverter controlled with hysteresis current-regulated modulation.
A standard inverter controlled with delta current-regulated modulation.
A three-level inverter.