# Power electronics simulations with Julia

**URL:** <https://discourse.julialang.org/t/power-electronics-simulations-with-julia/80999>\
**Category:** General Usage\
**Tags:** question, simulations, modelling\
**Created:** [May 13, 2022, 8:34am UTC](https://discourse.julialang.org/t/power-electronics-simulations-with-julia/80999 "2022-05-13T08:34:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [May 13, 2022, 8:34am UTC](https://discourse.julialang.org/t/power-electronics-simulations-with-julia/80999/1 "2022-05-13T08:34:34Z")

</div>

Are there any packages for the simulation of power electronics with Julia?

Or did anybody look into this topic but did not create a package yet?

I am looking for an open source alternative to [PLECS | Plexim](https://www.plexim.com/products/plecs)

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [May 13, 2022, 9:23am UTC](https://discourse.julialang.org/t/power-electronics-simulations-with-julia/80999/2 "2022-05-13T09:23:03Z")

</div>

I hadn’t seen Plecs before:

> Included with PLECS is a comprehensive component library, which covers the [electrical](https://www.plexim.com/products/plecs/electrical), as well as the [magnetic](https://www.plexim.com/products/plecs/magnetic), [thermal](https://www.plexim.com/products/plecs/thermal), and [mechanical](https://www.plexim.com/products/plecs/mechanical) aspects of power conversion systems and their [controls](https://www.plexim.com/products/plecs/control). Power electronics circuits are captured with a schematic editor in a way that is familiar and intuitive for electrical engineers. Typical power electronics components such as semiconductors, inductors and capacitors are placed on the circuit diagram and simply connected by drawing wires.

But the ModelingToolkit Standard Library covers all of that:

> **[GitHub - SciML/ModelingToolkitStandardLibrary.jl: A standard library of...](https://github.com/SciML/ModelingToolkitStandardLibrary.jl)**
>
> A standard library of components to model the world and beyond - GitHub - SciML/ModelingToolkitStandardLibrary.jl: A standard library of components to model the world and beyond

> The following are the constituent libraries of the ModelingToolkit Standard Library.
> 
> - [Basic Blocks](http://mtkstdlib.sciml.ai/dev/API/blocks/)
> - [Mechanical Components](http://mtkstdlib.sciml.ai/dev/API/mechanical/)
> - [Electrical Components](http://mtkstdlib.sciml.ai/dev/API/electrical/)
> - [Magnetic Components](http://mtkstdlib.sciml.ai/dev/API/magnetic/)
> - [Thermal Components](http://mtkstdlib.sciml.ai/dev/API/thermal/)

So ModelingToolkit might be the answer.

For something that’s for a bit larger type of power system, there’s PowerSimulationsDynamics.

> **[GitHub - NREL-Sienna/PowerSimulationsDynamics.jl: Julia package to run...](https://github.com/NREL-Sienna/PowerSimulationsDynamics.jl)**
>
> Julia package to run Dynamic Power System simulations. Part of the Scalable Integrated Infrastructure Planning Initiative at the National Renewable Energy Lab. - GitHub - NREL-Sienna/PowerSimulatio...

Though I’m not sure if that’s the kind of power system you’re looking for.

Then for something in the SPICE / EDA tools there’s Cedar

> **[Cedar EDA](https://cedar-eda.com/)**
>
> CedarEDA is a ground up re-think of analog verification tooling brought to you by Julia Computing.

According to this article’s definitions:

> **[PLECS vs SPICE vs. Measurement Design Tools | Wolfspeed](https://www.wolfspeed.com/knowledge-center/article/selecting-between-wolfspeeds-design-tools/)**
>
> Explore Wolfspeed’s SiC and GaN design tools, such as PLECS®, SPICE and dynamic performance characterization.

PLECS is more like the modeling that the ModelingToolkit standard library does, while Cedar is a circuit-level power systems tool. Both of course are ModelingToolkit though (Cedar is built on ModelingToolkit) so composition works between the levels of components, and we’re trying to achieve the same with the power systems level.

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [May 13, 2022, 11:32am UTC](https://discourse.julialang.org/t/power-electronics-simulations-with-julia/80999/3 "2022-05-13T11:32:33Z")

</div>

Well, but PLECS has components like transistors and diodes and coils and transformers which the standard library of modelling toolkit does not have.

---

<div class="post-metadata">

**Author:** ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Post date:** [May 13, 2022, 11:36am UTC](https://discourse.julialang.org/t/power-electronics-simulations-with-julia/80999/4 "2022-05-13T11:36:18Z")

</div>

> [@ufechner7](#):
>
> which the standard library of modelling toolkit does not have

…yet. There is nothing preventing those being added, it’s just that someone needs to get around to it 🙂

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [May 13, 2022, 11:38am UTC](https://discourse.julialang.org/t/power-electronics-simulations-with-julia/80999/5 "2022-05-13T11:38:37Z")

</div>

Sounds good!
