IdealDiode

model IdealDiode "Ideal diode"
    extends Modelica.Electrical.Analog.Interfaces.IdealSemiconductor;
equation
    off = s < 0;

    annotation (
        defaultComponentName = "diode",
        Documentation(
            info = "<html>\n<p>\nThis is an ideal diode, for details see partial model <a href=\"modelica://Modelica.Electrical.Analog.Interfaces.IdealSemiconductor\">IdealSemiconductor</a><br>\nThe diode is conducting if voltage &gt; Vknee.<br>\nThe diode is locking if current &lt; Vknee/Goff.\n</p>\n</html>",
            revisions = "<html>\n<ul>\n<li><em>February 7, 2016   </em>\n       by Anton Haumer<br> extending from partial IdealSemiconductor<br>\n       </li>\n<li><em> March 11, 2009   </em>\n       by Christoph Clauss<br> conditional heat port added<br>\n       </li>\n<li><em>Mai 7, 2004   </em>\n       by Christoph Clauss and Anton Haumer<br> Vknee added<br>\n       </li>\n<li><em>some years ago   </em>\n       by Christoph Clauss<br> realized<br>\n       </li>\n</ul>\n</html>"));
end IdealDiode;