NicoM1410/three-phase-three-level-flying-capacitor-inverter ? reverse-engineered prompt

Reverse engineered prompt

I want this repository turned into a clean, easy to understand project for a three phase three level flying capacitor inverter used for railway applications.

Please make the PLECS simulation model work smoothly, so I can open it, run it, and see the main results like output voltages, phase currents, THD, efficiency, and thermal behavior. Keep the setup focused on the specs in the README, including the 1000 V DC link, 15 kW output, 20 kHz switching, PS SPWM control, flying capacitor balancing, and SiC MOSFET loss and temperature behavior.

If anything is unclear, check the existing PDF and model and use current PLECS docs online if needed. I also want the README improved so it clearly explains what the project is, how to run the simulation, and what results to expect. Please keep the final result polished and ready for someone to open and explore without needing to guess how it works.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab