# 閘流體 (`thyristor`)

> 閘極脈衝觸發導通，並一直導通到電流反向。

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

[元件參考](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/) · [English](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/switches/thyristor/)

**分類:** 開關元件 · **種類:** `{"kind":"thyristor"}`

## 何時使用

用於相位控制整流器與交流開關。不需要閘極時用二極體，要能下指令關斷時用 IGBT 或 MOSFET 開關。

## 接腳

| 接腳 | 訊號域 | 意義 |
|---|---|---|
| `a` | 電氣 | 陽極；順向電流由 a 流向 k |
| `k` | 電氣 | 陰極；另一端 |
| `gate` | 訊號 | 訊號輸入；大於 0.5 時可觸發導通 |

## 常用參數

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

## 參數

| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 |
|---|---|---|---|---|
| `ron` | Ω | 1m |  | Resistance when it is on |
| `roff` | Ω | 1meg |  | Resistance when it is off |
| `vf` | V | 0 |  | Voltage lost while it conducts |
| `device` | — | 選填（預設關閉） |  | Device name used to look up losses |
| `thermal` | — | 選填（預設關閉） |  | 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 | 選填（預設關閉） |  | 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` | — | 選填（預設關閉） |  | Junction temperature (°C) and factor pairs that scale qrr, from the datasheet's curve |
| `part` | — | 選填（預設關閉） |  | Part number; the catalogue part number, such as BSC070N10NS5, written on the schematic; information only, not simulated |
| `vRating` | V | 選填（預設關閉） |  | 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 | 選填（預設關閉） |  | Current rating; the continuous current of the data sheet's maximum ratings (ID, IC, IF), written on the schematic; information only, not simulated |

_參數說明在兩種語言中都是英文。_

**適用於:** 相控整流器 · 交流開關 · 短路保護

**不適用於:** 閘極關斷 → [`gto`](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/switches/gto/) · 雙向交流開關 → [`triac`](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/switches/triac/)

## 公式

| 公式 | 方程式 | 出處 |
|---|---|---|
| 半波平均輸出 | Vavg = (√2·Vs/(2π))·(1 + cos α) | Rashid, Power Electronics, 4th ed. (2014), ch. 10 (controlled rectifiers, single-phase half-wave) |
| 平均負載電流 | Iavg = Vavg/R | Rashid, Power Electronics, 4th ed. (2014), ch. 10 |
| 導通損失 | P = vf·Iavg + ron·Irms² | IEC 60747-6:2016 (threshold voltage and on-state slope resistance of thyristors) |

## 快速驗算

輸入:

- `vs`: 供電均方根電壓 = 230 V
- `alpha`: 觸發角（度） = 60 —
- `rload`: 負載電阻 = 50 Ω
- `vf`: 臨界電壓 = 1 V, `vf`
- `ron`: 斜率電阻 = 5m Ω, `ron`

輸出:

- `vavg`: 平均輸出電壓 = `sqrt(2)*vs/(2*pi)*(1 + cos(alpha*pi/180))` V
- `iavg`: 平均電流 = `vavg/rload` A
- `ploss`: 導通損失 = `vf*iavg + ron*(sqrt(2)*vs/rload)^2*(pi - alpha*pi/180 + sin(alpha*pi/90)/2)/(4*pi)` W

## 模型邏輯

- 閘極大於 0.5 且 v(a) - v(k) 超過 vf 時觸發，之後 i = (v - vf)/ron，閘極變低後仍維持導通。
- 只有電流變負時才關斷；沒有模擬維持電流與閂鎖電流，所以在直流電路中永遠不會關斷。
- 關斷時是電阻 roff，預設 1 Mohm；vf 預設為 0，ron 預設為 1 mohm。
- 觸發在每個時間步終點判斷，所以閘極脈衝至少要持續一個步長並落在正半週內；沒有逆向恢復。

## 模型

閘極大於 0.5 且 v(a) - v(k) 超過 vf 時閘流體導通，之後遵循 i = (v - vf) / ron，即使閘極變低也保持導通，直到電流變成負值。阻擋時經 roff。不模擬維持電流與強制換相。

## 常見錯誤

- 在直流電路中電流不會反向，閘流體一旦觸發就不會關斷。請用在交流電路，或加入能強制電流變負的路徑。
- 閘極必須在陽極高於陰極時為高。短於一個步長的脈衝，或在 v(a) - v(k) 低於 vf 時到來的脈衝都沒有作用，所以請讓脈衝長達數個步，並放在正半波之內。

## 規格書與來源

vf 與 ron 取自導通狀態曲線，取低電流處的電壓與工作電流附近的斜率。規格書的閘極觸發準位在此不影響結果，因為閘極是邏輯訊號。

## 範例

以指令 `file.openExample` 開啟範例，名稱為 `demo:thyristor`.

---
由 `cargo xtask reference` 依使用說明文字與參數規格產生，請勿手動編輯。
