# 散熱風扇 (`coolingFan`)

> 吹過散熱片的風扇：在熱模擬中使這些散熱片改用規格書在其風速下的熱阻，並列入物料清單與電路板。

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

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

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

## 何時使用

當風扇冷卻一個或多個型錄散熱片時使用。用 thermal.placeFan {part, airflow, cools} 放置，它會以風扇的風速重新讀取每個散熱片的規格書。可用變體或 DNP 比較有無風扇的電路板。

## 常用參數

- `part`: Order number: the fan's, from its data sheet; it puts the fan on the bill of materials, and the solver never reads it (預設值: 選填（預設關閉）)
- `airflow`: Airflow across the heatsinks: the air speed the fan drives across them, from its data sheet's curve and the duct; thermal.placeFan reads them at it (預設值: 選填（預設關閉）)
- `cools`: Heatsinks it cools: the names of the heatsinks the fan blows across, with commas (預設值: 選填（預設關閉）)

## 參數

| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 |
|---|---|---|---|---|
| `part` | — | 選填（預設關閉） |  | Order number: the fan's, from its data sheet; it puts the fan on the bill of materials, and the solver never reads it |
| `airflow` | m/s | 選填（預設關閉） |  | Airflow across the heatsinks: the air speed the fan drives across them, from its data sheet's curve and the duct; thermal.placeFan reads them at it |
| `cools` | — | 選填（預設關閉） |  | Heatsinks it cools: the names of the heatsinks the fan blows across, with commas |
| `footprint` | — | 選填（預設關閉） |  | KiCad library id of the footprint the fan mounts on, from its data sheet's drawing; board.addFootprints places it with every pad on no net; information only, not simulated |

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

**適用於:** 強制風冷

**不適用於:** 馬達軸上的風扇負載 → [`fan`](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/mechanical/fan/)

## 模型邏輯

- 網路表不為它建立任何元件。建立熱網路前，每個已安裝且參與模擬的風扇會標記 cools 中的散熱片（在它旁邊查找）；名稱不是參與模擬的散熱片時發出警告。
- DNP、模擬關閉或排除風扇的變體會讓每個散熱片維持自己的 rth，因此電氣結果不變，熱結果隨變體而定。

## 模型

沒有接腳也不接任何網路。風扇已安裝且參與模擬時，cools 列出的每個散熱片改用 fanRth（以及 fanCurveW、fanCurveK），而不是 rth（以及 curveW、curveK）。這些值由 thermal.placeFan 從散熱片規格書讀出，使用不高於風扇風速的最快列出風速。

## 常見錯誤

- airflow 是吹過散熱片的風速，而不是風扇的自由風量：請從風扇曲線與風道或量測得出。cools 中的散熱片若沒有 fanRth，建置會停止；請用 thermal.placeFan 放置風扇。
- 風扇本身的功耗與噪音不納入模型，而 fanRth 是在散熱片的 watts 下讀取：以其他散熱量或風速重新放置散熱片時 fanRth 不會更新，之後請再放置一次風扇。

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

## 規格書與來源

part 為風扇的訂購料號；熱型錄（元件庫的 fans）中的風扇在物料清單上會帶出製造商與規格書。散熱片數值來自 parts/heatsinks.json，其中註明每份規格書。

## 範例

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

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