# 熱源 (`qsource`)

> 把固定的熱量送入熱節點，用於沒有被模擬的元件。

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

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

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

## 何時使用

用於電路沒有模擬的元件損耗，例如控制器、閘極驅動器、分流電阻或物料清單中的電阻，接在它們加熱的散熱片或電路板節點上。

## 接腳

| 接腳 | 訊號域 | 意義 |
|---|---|---|
| `a` | 熱 | 熱量送入的熱節點 |

## 常用參數

- `w`: Heat it puts into its node, such as a controller's or a resistor's loss from the bill of materials; negative takes heat out (預設值: 選填（預設關閉）)

## 參數

| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 |
|---|---|---|---|---|
| `w` | W | 選填（預設關閉） |  | Heat it puts into its node, such as a controller's or a resistor's loss from the bill of materials; negative takes heat out |
| `tOn` | °C | 選填（預設關閉） |  | Thermostat: its node's temperature at which the heat turns on; below tOff it heats when cold, above tOff it acts when hot; give both or neither |
| `tOff` | °C | 選填（預設關閉） |  | Thermostat: its node's temperature at which the heat turns off again; the source starts off and switches on the thermal step |

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

**適用於:** 未模擬元件的損耗 · 閘極驅動器或控制器 · 送入電路板或散熱片的熱量

**不適用於:** 固定溫度 → [`ambient`](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/thermal/ambient/)

## 公式

| 公式 | 方程式 | 出處 |
|---|---|---|
| 高於環境的溫升 | ΔT = P·Rth | Mohan, Undeland & Robbins, Power Electronics, 3rd ed. (2003), ch. 29 (series thermal resistances) |

## 快速驗算

輸入:

- `p`: 熱源的熱量 = 2 W, `w`
- `r`: 到環境的熱阻 = 5 K/W

輸出:

- `rise`: 高於環境的溫升 = `p*r` K

## 模型邏輯

- 它的 w 在每個熱步之前加到送入節點 a 的熱量上，所以它就像一個不隨時間或溫度改變的元件損耗。
- w 可以是電路變數的運算式，在電路編譯時計算一次。

## 模型

一個固定熱流 w（W）送入節點 a，在每個熱步與穩態求解中加到元件損耗上。

## 常見錯誤

- w 沒有預設值：請從元件規格書（在你的工作點的功耗）或你算出的損耗取得；負的 w 會帶走熱量。
- 節點需要有路徑通往環境溫度，否則熱網路無法編譯。

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

## 規格書與來源

IC 在你的電源與頻率下的功耗，或電阻在其電流下的 I²·R，取自你自己的損耗預算。

## 範例

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

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