WOLFRAM SYSTEM MODELER
This information is part of the Modelica Standard Library maintained by the Modelica Association.
Three examples of ideal diodes are shown:
the totally ideal diode (Ideal) with all parameters to be zero, the nearly ideal diode with Ron=0.1 and Goff=0.1 and the nearly ideal but displaced diode with Vknee=5 and Ron=0.1 and Goff=0.1. The resistance and conductance are chosen untypically high since the slopes should be seen in the graphics.
Simulate until T=1 s. Plot in separate windows: Ideal.i versus Ideal.v, With_Ron_Goff.i versus With_Ron_Goff.v, With_Ron_Goff_Vknee.i versus With_Ron_Goff_Vknee.v