LTspicePowerSim is a Simulink-like power electronics simulation environment built on LTspice. It provides a library of reusable circuit-level models together with extensive example circuits, making power electronics simulation easier and more accessible for engineers and researchers.
- Optimized Models for Convergence: Includes circuit models specifically designed to enhance simulation convergence.
- Transparent Model Definitions: All models are defined using LTspice schematic files (.asc), allowing users to view and edit the circuits directly as needed.
- Extensive example circuits: A wide range of example circuits covering DC-DC converters, resonant converters, Totem-Pole PFC, motor drivers, battery charger, and digitally controlled power stages.
Nerural-Network Controlled Buck Converter using pytorch2ltspice
More Examples Available!
➡️ Go to Full Gallery 🖼️
To use LTspicePowerSim, you need to have the following installed:
- LTspice – A high-performance SPICE simulation software.
- Windows or macOS – The steps below cover installation for both operating systems.
-
Copy the contents of the
sym\PowerSimfolder from this repository to:For LTspice 24.0.12 or earler C:\Users\<username>\AppData\Local\LTspice\lib\sym\PowerSim For LTspice 24.1.0 and up C:\Users\<username>\Documents\LTspice\lib\sym\PowerSim -
Replace
<username>with your username. -
Or you can use following batch files in
batfolders.File Name Description install.batCopies the model files into the LTspice folder. clean.batRemoves all copied files from the LTspice folder. open_install_folder.batOpens the LTspice directory where the files are installed. Note:
Updated batch files to follow 24.1.0 onwards while keeping old ones in "old(-24.0.12)" folder. -
For LTspice 24.1.0 and up you also need to set the path for the PowerSim folder to be able to open the example files correctly. Just go to Tools > Setting and add the path as shown below.
- Copy the contents of the
sym\PowerSimfolder from this repository to:/Users/<username>/Library/Application Support/LTspice/lib/ - Replace
<username>with your username.
- Simulation Convergence
- In most cases, simulations run stably with:
Try other option if simulation didn't converge.
.options solver="norm" <-- Other option: "alt" .options method="gear" <-- Other option:"trap", "modtrap"
The.options solverdirective is available starting from LTspice v24.1.0. - If convergence issues still occur, add:
This helps identify which devices or nodes are causing difficulties in convergence.
.options debugtran
The.options debugtrandirective is also supported from v24.1.0.
- In most cases, simulations run stably with: