Switch with antiparallel diode

power.switch_with_diode

Ideal semiconductor switch, such as a MOSFET or IGBT, with a diode across it that conducts from n to p. The switch conducts from p to n while the gate u is above 0.5. The diode conducts whenever the voltage of p over n is negative, whatever the gate does. Conducting it has resistance Ron, blocking a leak conductance Goff.

Ports

NameDomainDirection
pelectrical
nelectrical
usignalin

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 u > 0.5 then v / Ron else if v < 0 then v / Ron else Goff * v