# Modeling a TVS Diode voltage-current behavior in Plecs

**URL:** <https://forum.plexim.com/t/modeling-a-tvs-diode-voltage-current-behavior-in-plecs/898>\
**Category:** PLECS\
**Tags:** diode, tvs, zener, algebraic-component\
**Created:** [November 16, 2020, 4:37pm UTC](https://forum.plexim.com/t/modeling-a-tvs-diode-voltage-current-behavior-in-plecs/898 "2020-11-16T16:37:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pchannegowda](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@pchannegowda](https://forum.plexim.com/u/pchannegowda)\
**Post date:** [November 16, 2020, 4:37pm UTC](https://forum.plexim.com/t/modeling-a-tvs-diode-voltage-current-behavior-in-plecs/898/1 "2020-11-16T16:37:18Z")

</div>

Hello,

Is it possible to implement an accurate diode behavioral model in Plecs? I am looking something similar to the Simscape Electrical Diode model ([https://www.mathworks.com/help/physmod/sps/ug/tvs-diode-parameterization.html](https://www.mathworks.com/help/physmod/sps/ug/tvs-diode-parameterization.html)) which implements the diode current/voltage behavior with voltage clamping. I think it should possible with the electrical algebraic component but I can’t find good examples. I would to implement a bidirectional current model. (Matlab example is unidirectional)

---

<div class="post-metadata">

**Author:** ![Bryan\_Lieblick](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/bryan_lieblick/32/10_2.png) [@Bryan\_Lieblick](https://forum.plexim.com/u/Bryan_Lieblick)\
**Post date:** [November 20, 2020, 10:18am UTC](https://forum.plexim.com/t/modeling-a-tvs-diode-voltage-current-behavior-in-plecs/898/2 "2020-11-20T10:18:13Z")

</div>

Have you looked at the Two Stage LED Driver demo model in the PLECS library? The LED component (right side of the schematic) is a masked subsystem that implements the diode V-I curve using a lookup table and a controlled current source. Would this meet your needs?
