Ideal diode

electrical.ideal_diode

Diode that conducts with resistance Ron when the voltage of p over n is positive and leaks with conductance Goff otherwise.

Ports

NameDomain
pelectrical
nelectrical

Parameters

NameUnitDefaultRangeDescription
RonOhm0.000011e-12 to ∞Resistance when conducting
GoffS0.000010 to ∞Conductance when blocking

Variables

NameUnit
vV
iA

Equations

v = p.v - n.v
0 = p.i + n.i
i = p.i
i = if v > 0 then v / Ron else Goff * v