RepositoryAGS Script
kosokno

kosokno/LTspicePowerSim

A Simulink-like power electronics simulation environment built on LTspice, featuring ready-to-use circuit libraries and custom tools.

87stars
20forks
0issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: ltspice-symbols

#1 Repository of the week

1
TINIX TRENDING·Topic: simulink

#1 Repository of the week

1
TINIX TRENDING·Topic: ltspice

#1 Repository of the week

LTspicePowerSim hero image

LTspicePowerSim

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.

Features✨

  • 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.

Symbols🧩

LTspicePowerSim custom symbols for power electronics schematics

Example Screen Shot🖼️

Type-II Compensator (FRA)

LTspice schematic: Type-II compensator for DC-DC converter loop stability (FRA)

Peak Current Mode Buck Converter (Current-Mode Control)

LTspice schematic: Peak current mode buck converter (PCM control)

Peak Current Mode Boost Converter (Current-Mode Control)

LTspice schematic: Peak current mode boost converter (current-mode control)

CCCV Buck Converter for Battery Charging (CC/CV control)

LTspice schematic: CCCV buck converter for battery charging (CC/CV control)

Boundary Conduction Mode Flyback Converter (BCM / CrCM)

LTspice schematic: Boundary conduction mode flyback converter (BCM / CrCM)

Phase-Shift Full-Bridge Converter (PSFB with ZVS)

LTspice schematic: Phase-shift full-bridge converter with ZVS (PSFB)

LLC Resonant Converter (Frequency Control)

LTspice schematic: LLC resonant converter (gain curve and frequency control)

Single-Phase Totem-Pole PFC (2-Phase Interleaved)

LTspice schematic: Single-phase totem-pole PFC (2-phase interleaved bridgeless)

Single-Phase 4-Level Totem-Pole PFC

LTspice schematic: Single-phase 4-level totem-pole PFC (bridgeless topology)

Three-Phase Totem-Pole PFC (VOC + SVPWM Control)

LTspice schematic: Three-phase totem-pole PFC using VOC and SVPWM control

Discrete-Time PID Controller (Z-Domain FRA)

LTspice schematic: Discrete-time PID controller (z-domain FRA analysis)

Discrete-Time Voltage-Mode Buck Converter (Digital Control)

LTspice schematic: Discrete-time voltage-mode buck converter (digital control)

Two-Phase Stepper Motor Control using FOC

LTspice schematic: Two-phase stepper motor control using field-oriented control (FOC)

Neural-Network Controlled Buck Converter using pytorch2ltspice

LTspice schematic: Neural-network-controlled buck converter (LTspice and PyTorch)


More Examples Available!
➡️ Go to Full Gallery 🖼️


Getting Started💡

Prerequisites

To use LTspicePowerSim, you need to have the following installed:

  1. LTspice – A high-performance SPICE simulation software.
  2. Windows or macOS – The steps below cover installation for both operating systems.

Model Installation (Windows)

  • Copy the contents of the sym\PowerSim folder from this repository to:

    For LTspice 24.0.12 or earlier
    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 the bat folders.

    File NameDescription
    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 > Settings and add the path as shown below. LTspice setting: add PowerSim symbol search path

Model Installation (macOS)

  • Copy the contents of the sym\PowerSim folder from this repository to:
    /Users/<username>/Library/Application Support/LTspice/lib/
    
  • Replace <username> with your username.

Tips💡

  • Simulation Convergence
    • In most cases, simulations run stably with:
      .options solver="norm"       <-- Other option: "alt"
      .options method="gear"       <-- Other option:"trap", "modtrap"
      
      Try other option if the simulation does not converge.
      The .options solver directive is available starting from LTspice v24.1.0.
    • If convergence issues still occur, add:
      .options debugtran
      
      This helps identify which devices or nodes are causing difficulties in convergence.
      The .options debugtran directive is also supported from v24.1.0.

Similar Projects

Discover other similar projects and AI models.

RepositoryMATLAB
mohammadrezwankhan/matlab-simulink-energy-lab

Run reduced-order battery, thermal, converter and BESS control models with transparent equations and repeatable testing.

383
Nov 23, 2026
RepositoryAGS Script
Cushychicken/ltspice-guitar-pedals

A collection of LTSpice simulation files for popular guitar effects. :guitar: :electron: :musical_note: :chart_with_upwards_trend: Pull requests welcome :smiley:

162
Aug 14, 2021
RepositoryPython
Aalto-Electric-Drives/motulator

Motor drive and grid converter simulator in Python

272
Nov 27, 2026
RepositoryMATLAB
ThunderMat/Introduction-to-MCU-Programming-for-Power-Electronics-Control-Applications

This repository contains the MATLAB/Simulink source code to reproduce the experiments presented in the book: "Introduction to Microcontroller Programming for Power Electronics Control Applications"

121
Dec 20, 2023
RepositoryC
EFeru/hoverboard-firmware-hack-FOC

With Field Oriented Control (FOC)

1.9k
Jul 4, 2026
RepositoryC++
ethz-adrl/control-toolbox

The Control Toolbox - An Open-Source C++ Library for Robotics, Optimal and Model Predictive Control

1.7k
Nov 9, 2022
RepositoryHTML
matlab/simulink-agentic-toolkit

The Simulink Agentic Toolkit gives your AI agent both the tools and the expertise to work effectively with Simulink and Model-Based Design.

1.4k
Nov 25, 2026
RepositoryPython
pnnl/neuromancer

Pytorch-based framework for solving parametric constrained optimization problems, physics-informed system identification, and parametric model predictive control.

1.4k
Oct 22, 2026
RepositoryC++
ros-controls/ros2_control

Generic and simple controls framework for ROS 2

1.1k
Dec 2, 2026