# Current source modeling in the plecs

**URL:** <https://forum.plexim.com/t/current-source-modeling-in-the-plecs/712>\
**Category:** PLECS\
**Tags:** plecs, source\
**Created:** [October 28, 2019, 4:33am UTC](https://forum.plexim.com/t/current-source-modeling-in-the-plecs/712 "2019-10-28T04:33:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shurikspk](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@shurikspk](https://forum.plexim.com/u/shurikspk)\
**Post date:** [October 28, 2019, 4:33am UTC](https://forum.plexim.com/t/current-source-modeling-in-the-plecs/712/1 "2019-10-28T04:33:15Z")

</div>

Hello, I am trying to make the model of the current source converter in the plecs. I have two inductors in the filter and transformer leakage inductance. Between these components appears current mismatch and some current spikes. How I can model this situation in the PLECS? The model of the power part and control in the attachment.

[Rectifier\_mode\_PCB2\_25\_10\_19.plecs](https://forum.plexim.com/uploads/short-url/lJg42S2Wq1sGrtZyndQChNvFcnw.plecs) (267 KB)

 ![Capture1.PNG](https://europe1.discourse-cdn.com/flex006/uploads/plecs/original/1X/64ba04bd23e3d49e70b18be8dca8e6f4db01cfce.png)

---

<div class="post-metadata">

**Author:** ![tinivella](https://avatars.discourse-cdn.com/v4/letter/t/b77776/32.png) [@tinivella](https://forum.plexim.com/u/tinivella)\
**Post date:** [October 31, 2019, 7:23am UTC](https://forum.plexim.com/t/current-source-modeling-in-the-plecs/712/2 "2019-10-31T07:23:58Z")

</div>

hi

This is physical impossible if you try to force a current step in the inductor, you can solve adding the resistive part of inductor, this will equal the fluxes. ​it does not depend from simulation tool

Just as reminder the transformer resistance in series is what you measure at the switching frequency not the DC one.

Unfortunately PLECS simulation miss some model and I cannot launch it
