Thyristor
power.thyristor
Ideal thyristor (SCR). It turns on when the gate u rises above 0.5 while the voltage of p over n is positive, or when that voltage turns positive while the gate is high. Once on it stays on without gate until its current falls below zero. On it has resistance Ron, off a leak conductance Goff. Starts off.
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 on |
Goff | S | 0.00001 | 0 to ∞ | Conductance when off |
Variables
| Name | Unit | Description |
|---|---|---|
v | V | |
i | A | |
on | 1 | 1 while the thyristor conducts, 0 while it blocks |
Equations
v = p.v - n.v 0 = p.i + n.i i = p.i der(on) = 0 when min(u - 0.5, v) > 0 then reinit(on, 1) when i < 0 then reinit(on, 0) i = if on > 0.5 then v / Ron else Goff * v