# 熱阻 (`rth`)

> 在兩個熱節點之間限制熱流，單位是 K/W。

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

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

**分類:** 熱 · **種類:** `{"element":"rth","kind":"thermal"}`

## 何時使用

用於外殼到散熱片、散熱片到環境與其他傳導路徑。儲存熱量用熱容，固定溫度用環境溫度。

## 接腳

| 接腳 | 訊號域 | 意義 |
|---|---|---|
| `a` | 熱 | 熱節點；a 較熱時熱量流向 b |
| `b` | 熱 | 另一個熱節點 |

## 常用參數

- `r`: Resistance to heat flowing through (預設值: 必填)

## 參數

| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 |
|---|---|---|---|---|
| `r` | K/W | 必填 |  | Resistance to heat flowing through |
| `part` | — | 選填（預設關閉） |  | Catalogue thermal pad, grease or phase-change material the resistance was read from; it puts the interface on the bill of materials, and the solver never reads it |
| `footprint` | — | 選填（預設關閉） |  | KiCad library id of the footprint a thermal pad sits on, when the board holds it; board.addFootprints places it with every pad on no net; information only, not simulated |

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

**適用於:** 外殼到散熱片路徑 · 散熱片到環境路徑 · 穿過一層材料的傳導

**不適用於:** 物體中儲存的熱量 → [`cth`](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/thermal/cth/)

## 公式

| 公式 | 方程式 | 出處 |
|---|---|---|
| 兩端溫升 | ΔT = P·Rth | Incropera, DeWitt, Bergman & Lavine, Fundamentals of Heat and Mass Transfer, 7th ed. (2011), §3.1 (thermal resistance) |
| 熱端溫度 | Ta + P·Rth | Mohan, Undeland & Robbins, Power Electronics, 3rd ed. (2003), ch. 29 (heat sinks, series thermal resistances) |

## 快速驗算

輸入:

- `p`: 流過的熱量 = 10 W
- `r`: 熱阻 = 500m K/W, `r`
- `ta`: 冷端溫度 = 25 °C

輸出:

- `dt`: 兩端溫升 = `p*r` K
- `tj`: 熱端溫度 = `ta + dt` °C

## 模型邏輯

- 它是熱網路中兩個節點之間的電導 1/r；熱網路是獨立的線性系統，不在電路矩陣裡。
- 每個電路步被接受後，熱網路以該步的損耗作為熱量，走一步後向尤拉法；設定 thermalStep 時則依自己的時間格點前進。
- 開關以前一步熱節點的溫度查損耗表，所以發熱與損耗之間相差一步耦合。
- r 是固定值：不隨溫度或風速改變。

## 模型

熱域依電學類比。溫度（degC）相當於電壓，熱流（W）相當於電流，所以由 a 到 b 的熱流為 (T(a) - T(b)) / r。熱節點與電節點各自獨立，開關把損耗送進 thermal 參數所指名的節點。

## 常見錯誤

- 每個熱網路都要有通往環境溫度的路徑。沒有通往固定溫度或熱容的節點會被回報，完全沒有環境溫度的網路則無法編譯。
- 熱腳只能接熱節點。接到電節點會被提醒。

Problems 規則: `solver.thermal`, `pin.domain_mismatch`

## 規格書與來源

r 取自規格書的熱阻：接面到外殼取自元件，外殼到散熱片取自介面材料，散熱片到環境取自散熱片。串聯的熱阻相加。

## 範例

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

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