Diode bridge rectifier
power.diode_bridge
Full-wave rectifier of four ideal diodes. ac1 and ac2 take the AC input; the bridge feeds pos and neg with the magnitude of the input voltage, less two diode drops of Ron times the current. Each diode conducts with resistance Ron when forward biased and leaks with conductance Goff otherwise.
Ports
| Name | Domain |
|---|---|
ac1 | electrical |
ac2 | electrical |
pos | electrical |
neg | electrical |
Parameters
| Name | Unit | Default | Range | Description |
|---|---|---|---|---|
Ron | Ohm | 0.00001 | 1e-12 to ∞ | Resistance of a conducting diode |
Goff | S | 0.00001 | 0 to ∞ | Conductance of a blocking diode |
Variables
| Name | Unit | Description |
|---|---|---|
i1 | A | Current of the diode from ac1 to pos |
i2 | A | Current of the diode from ac2 to pos |
i3 | A | Current of the diode from neg to ac1 |
i4 | A | Current of the diode from neg to ac2 |
Equations
i1 = if ac1.v - pos.v > 0 then (ac1.v - pos.v) / Ron else Goff * (ac1.v - pos.v) i2 = if ac2.v - pos.v > 0 then (ac2.v - pos.v) / Ron else Goff * (ac2.v - pos.v) i3 = if neg.v - ac1.v > 0 then (neg.v - ac1.v) / Ron else Goff * (neg.v - ac1.v) i4 = if neg.v - ac2.v > 0 then (neg.v - ac2.v) / Ron else Goff * (neg.v - ac2.v) ac1.i = i1 - i3 ac2.i = i2 - i4 pos.i = -i1 - i2 neg.i = i3 + i4