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
| Name | Domain | Direction |
|---|---|---|
p | electrical | |
n | electrical | |
u | signal | in |
Parameters
| Name | Unit | Default | Range | Description |
|---|---|---|---|---|
Ron | Ohm | 0.00001 | 1e-12 to ∞ | Resistance when conducting |
Goff | S | 0.00001 | 0 to ∞ | Conductance when blocking |
Variables
| Name | Unit |
|---|---|
v | V |
i | A |
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