# 散熱片 (`heatsink`)

> 型錄散熱片的散熱片到環境熱阻，依某個散熱量與風速從其規格書讀出。

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

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

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

## 何時使用

用在元件外殼（經介面墊片熱阻）與環境之間。用 thermal.placeHeatsink 放置，它會從 parts/heatsinks.json 複製熱阻；design.thermal 會提供要傳入的料號、散熱量與風速。

## 接腳

| 接腳 | 訊號域 | 意義 |
|---|---|---|
| `a` | 熱 | 安裝面，散熱片最熱點 |
| `b` | 熱 | 環境側：在這裡接環境溫度 |

## 常用參數

- `part`: Catalogue part number the resistance was read from (預設值: 選填（預設關閉）)
- `rth`: Sink-to-ambient resistance, read off the catalogue by thermal.placeHeatsink (預設值: 選填（預設關閉）)
- `airflow`: Airflow the resistance was read at; 0 is natural convection (預設值: 0)
- `watts`: Heat the resistance was read at; the data sheet's resistance falls as the heatsink gets hotter (預設值: 選填（預設關閉）)
- `massG`: Weight from the data sheet; with material it gives the heatsink its heat capacity, so it warms over its own time constant (預設值: 選填（預設關閉）)

## 參數

| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 |
|---|---|---|---|---|
| `rth` | K/W | 選填（預設關閉） |  | Sink-to-ambient resistance, read off the catalogue by thermal.placeHeatsink |
| `part` | — | 選填（預設關閉） |  | Catalogue part number the resistance was read from |
| `airflow` | m/s | 0 |  | Airflow the resistance was read at; 0 is natural convection |
| `watts` | W | 選填（預設關閉） |  | Heat the resistance was read at; the data sheet's resistance falls as the heatsink gets hotter |
| `lengthMm` | mm | 選填（預設關閉） |  | Extrusion cut length the resistance was read at |
| `curveW` | W | 選填（預設關閉） |  | Heat at each point of the data sheet's temperature-rise table, rising, with commas; with curveK the run reads the resistance at the heat the heatsink carries |
| `curveK` | K | 選填（預設關閉） |  | Temperature rise at each of those points, from the same table |
| `massG` | g | 選填（預設關閉） |  | Weight from the data sheet; with material it gives the heatsink its heat capacity, so it warms over its own time constant |
| `material` | — | aluminium |  | Metal of the heatsink for its specific heat: aluminium or copper |
| `fanRth` | K/W | 選填（預設關閉） |  | Resistance under the cooling fan: sink to ambient at the airflow of the fan that names it, read off the catalogue by thermal.placeFan; used while that fan is fitted and simulated |
| `fanCurveW` | W | 選填（預設關閉） |  | Rise table under the fan, heat: each point's heat in the data sheet's table at the fan's airflow, rising, with commas; used with fanCurveK while that fan is fitted and simulated |
| `fanCurveK` | K | 選填（預設關閉） |  | Rise table under the fan, rise: the temperature rise at each of those points, from the same table |
| `footprint` | — | 選填（預設關閉） |  | KiCad library id of the footprint the heatsink sits on, such as Heatsink:Heatsink_Fischer_SK104-STC-STIC_35x13mm; board.addFootprints places it with every pad on no net; information only, not simulated |

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

**適用於:** 型錄散熱片 · 強制風冷 · 自然對流

**不適用於:** 導熱墊或介面材料 → [`rth`](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/thermal/rth/)

## 公式

| 公式 | 方程式 | 出處 |
|---|---|---|
| 散熱片溫度 | Ts = Ta + P·Rsa | Mohan, Undeland & Robbins, Power Electronics, 3rd ed. (2003), ch. 29 (heat sinks) |
| 接面溫度 | Tj = Ta + P·(Rjc + Rcs + Rsa) | Mohan, Undeland & Robbins, Power Electronics, 3rd ed. (2003), ch. 29 (series thermal resistances) |
| 容許的最大散熱片熱阻 | Rsa = (Tjmax − Ta)/P − Rjc − Rcs | Mohan, Undeland & Robbins, Power Electronics, 3rd ed. (2003), ch. 29 (heat sink selection) |

## 快速驗算

輸入:

- `p`: 元件發熱 = 20 W, `watts`
- `rsa`: 散熱片到環境熱阻 = 2 K/W, `rth`
- `ta`: 環境溫度 = 40 °C
- `rjc`: 接面到外殼熱阻 = 500m K/W
- `rcs`: 外殼到散熱片熱阻 = 300m K/W
- `tjmax`: 容許最高接面溫度 = 125 °C

輸出:

- `tsink`: 散熱片溫度 = `ta + p*rsa` °C
- `tj`: 接面溫度 = `ta + p*(rjc + rcs + rsa)` °C
- `rneed`: 容許的最大散熱片熱阻 = `(tjmax - ta)/p - rjc - rcs` K/W

## 模型邏輯

- 它是從 a 到 b 的單純熱阻 rth，與熱阻元件的處理方式相同。
- 有 curveW 與 curveK 時，每個熱步與每輪穩態求解都依它承載的熱量從表中重新讀取 rth；超過最後一點時保持最後一點的值，並發出警告。part、airflow、watts 與 lengthMm 只記錄數值讀取的條件。
- massG 與 material（鋁 903 或銅 385 J/(kg·K)，Çengel & Ghajar《Heat and Mass Transfer》第 5 版表 A-3）構成 a 到參考點的熱容；沒有它時散熱片在同一步就穩定。沒有 rth 也沒有溫升表，或 rth 不是正數時，建置會停止。

## 模型

從 a 到 b 的熱阻 rth。thermal.placeHeatsink 以規格書在 watts 時的溫升除以 watts 得到它，使用不高於 airflow 的最快列出風速（表格點之間取直線）。對流使散熱片變熱時熱阻下降，所以元件也保留規格書的溫升表（curveW、curveK），模擬時依散熱片實際承載的熱量讀取熱阻。massG（規格書重量）在 a 上給它熱容 m·cp。

## 常見錯誤

- 有 massG 時散熱片要數分鐘才升溫（τ = rth·m·cp）：只跑數毫秒幾乎看不到它的溫升。請用 thermalStart steady 或多速率模擬，也不要在 a 另加熱容，否則質量會算兩次。
- 從元件庫放置的散熱片沒有 rth，建置會停止；請用 thermal.placeHeatsink 放置，或輸入你自己散熱片規格書上的熱阻。

Problems 規則: `solver.thermal`, `compile.error`

## 規格書與來源

所有數值都來自 parts/heatsinks.json，其中每個散熱片都註明了規格書、版本與讀取的表格。

## 範例

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

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