# Thyristor (`thyristor`)

> Turns on with a gate pulse and stays on until its current reverses.

![thyristor](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/img/thyristor.svg)

[Component reference](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/) · [繁體中文](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/switches/thyristor/)

**Group:** Switches · **Kind:** `{"kind":"thyristor"}`

## When to use it

Use it for phase-controlled rectifiers and AC switches. Use Diode when no gate is needed, and IGBT or MOSFET when you must command turn-off.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `a` | electrical | Anode; forward current flows from a to k |
| `k` | electrical | Cathode; the other end |
| `gate` | signal | Signal input; above 0.5 can trigger it |

## Common parameters

- `vf`: Voltage lost while it conducts (Default: 0)
- `ron`: Resistance when it is on (Default: 1m)
- `roff`: Resistance when it is off (Default: 1meg)

## Parameters

| Key | Unit | Default | Typical range | Description |
|---|---|---|---|---|
| `ron` | Ω | 1m |  | Resistance when it is on |
| `roff` | Ω | 1meg |  | Resistance when it is off |
| `vf` | V | 0 |  | Voltage lost while it conducts |
| `device` | — | optional (off) |  | Device name used to look up losses |
| `thermal` | — | optional (off) |  | Where the lost heat goes |
| `eon` | J | 0 |  | Energy lost each time it turns on |
| `eoff` | J | 0 |  | Energy lost each time it turns off |
| `err` | J | 0 |  | Energy lost when the diode recovers |
| `vref` | V | 0 |  | Voltage used to measure those energies |
| `iref` | A | 0 |  | Current used to measure those energies |
| `tc` | 1/K | 0 |  | How on-resistance changes with heat |
| `tj` | °C | 25 |  | Junction temperature for the loss tables |
| `nParallel` | — | 1 |  | Identical devices this one switch stands for: the current is shared, the losses add up, each device keeps its own junction |
| `tjMax` | °C | optional (off) |  | Highest junction temperature allowed; overrides the device's rating |
| `ls` | H | 0 | 500p – 50n H | Unwanted inductance in series with it |
| `coss` | F | 0 | 10p – 5n F | Capacitance across the device |
| `cj` | F | 0 | 5p – 2n F | Extra capacitance across the junction |
| `tdon` | s | 0 | 1n – 500n s | Delay before it turns on |
| `tdoff` | s | 0 | 1n – 500n s | Delay before it turns off |
| `qrr` | C | 0 | 1n – 5u C | Charge released as the diode recovers |
| `trr` | s | 100n | 10n – 1u s | How long the diode takes to recover |
| `qrrTemp` | — | optional (off) |  | Junction temperature (°C) and factor pairs that scale qrr, from the datasheet's curve |
| `part` | — | optional (off) |  | Part number; the catalogue part number, such as BSC070N10NS5, written on the schematic; information only, not simulated |
| `vRating` | V | optional (off) |  | Voltage rating; the largest blocking voltage of the data sheet's maximum ratings (VDS, VCES, VRRM), written on the schematic; information only, not simulated |
| `iRating` | A | optional (off) |  | Current rating; the continuous current of the data sheet's maximum ratings (ID, IC, IF), written on the schematic; information only, not simulated |

_Parameter descriptions are in English in both languages._

**Use for:** Phase-controlled rectifiers · AC switches · Crowbars

**Not for:** Gate turn-off → [`gto`](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/switches/gto/) · Bidirectional AC switching → [`triac`](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/switches/triac/)

## Formulas

| Formula | Equation | Source |
|---|---|---|
| Half-wave average output | Vavg = (√2·Vs/(2π))·(1 + cos α) | Rashid, Power Electronics, 4th ed. (2014), ch. 10 (controlled rectifiers, single-phase half-wave) |
| Average load current | Iavg = Vavg/R | Rashid, Power Electronics, 4th ed. (2014), ch. 10 |
| Conduction loss | P = vf·Iavg + ron·Irms² | IEC 60747-6:2016 (threshold voltage and on-state slope resistance of thyristors) |

## Quick check

Inputs:

- `vs`: Supply RMS voltage = 230 V
- `alpha`: Firing angle in degrees = 60 —
- `rload`: Load resistance = 50 Ω
- `vf`: Threshold voltage = 1 V, `vf`
- `ron`: Slope resistance = 5m Ω, `ron`

Outputs:

- `vavg`: Average output voltage = `sqrt(2)*vs/(2*pi)*(1 + cos(alpha*pi/180))` V
- `iavg`: Average current = `vavg/rload` A
- `ploss`: Conduction loss = `vf*iavg + ron*(sqrt(2)*vs/rload)^2*(pi - alpha*pi/180 + sin(alpha*pi/90)/2)/(4*pi)` W

## Model logic

- It fires when the gate is above 0.5 while v(a) - v(k) exceeds vf, then conducts i = (v - vf)/ron and stays on with the gate low.
- It turns off only when its current goes negative; no holding or latching current is modelled, so on DC it never turns off.
- Off means the resistor roff, 1 Mohm by default; vf defaults to 0 and ron to 1 mohm.
- The firing is checked at the end of each step, so a gate pulse must last at least one step inside the positive half-wave; there is no reverse recovery.

## Model

The thyristor turns on when the gate is above 0.5 and v(a) - v(k) exceeds vf. It then conducts i = (v - vf) / ron and stays on, even with the gate low, until its current goes negative. Blocking is through roff. A holding current and forced commutation are not modelled.

## Common mistakes

- In a DC circuit the current never reverses, so the thyristor never turns off once it fires. Use it on AC, or add a path that forces the current negative.
- The gate must be high while the anode is above the cathode. A pulse shorter than one step, or one that arrives while v(a) - v(k) is below vf, does nothing, so make it several steps long and time it inside the positive half-wave.

## Datasheet and sources

vf and ron come from the on-state curve, with the voltage at a low current and the slope near your working current. The gate trigger level on the datasheet does not matter here, because the gate is a logic signal.

## Example

Open the example with the command `file.openExample` and the name `demo:thyristor`.

---
Generated by `cargo xtask reference` from the usage texts and parameter specs. Do not edit by hand.
