# Zth 曲線 (`zth`)

> 由規格書 Zth(t) 曲線上讀出的點擬合而成的暫態熱阻抗。

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

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

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

## 何時使用

規格書只畫出單脈衝 Zth,jc 曲線、沒有列出 Foster 表時使用。有表時請用 Foster 熱阻抗鏈。

## 接腳

| 接腳 | 訊號域 | 意義 |
|---|---|---|
| `a` | 熱 | 熱端：接面 |
| `b` | 熱 | 冷端：外殼 |

## 常用參數

- `t`: Times of points on the data sheet's Zth(t) curve, rising (預設值: 選填（預設關閉）)
- `z`: Transient thermal impedance at those times (預設值: 選填（預設關閉）)
- `terms`: Foster stages fitted to the curve, 1 to 8 (預設值: 4)

## 參數

| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 |
|---|---|---|---|---|
| `t` | s | 選填（預設關閉） |  | Times of points on the data sheet's Zth(t) curve, rising |
| `z` | K/W | 選填（預設關閉） |  | Transient thermal impedance at those times |
| `terms` | — | 4 |  | Foster stages fitted to the curve, 1 to 8 |
| `form` | — | auto |  | auto: a Foster chain into a side with no heat capacity, else the equivalent Cauer ladder; foster or cauer forces one |

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

**適用於:** 只有曲線的規格書 · 接面到外殼 Zth · 短脈衝的溫升

**不適用於:** 規格書的 Foster 表 → [`foster`](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/thermal/foster/)

## 公式

| 公式 | 方程式 | 出處 |
|---|---|---|
| 脈衝期間的接面溫升 | ΔTj = P·Zth(tp) | Mohan, Undeland & Robbins, Power Electronics, 3rd ed. (2003), ch. 29 (transient thermal impedance) |
| 接面溫度 | Tj = Tc + P·Zth(tp) | Mohan, Undeland & Robbins, Power Electronics, 3rd ed. (2003), ch. 29 (transient thermal impedance) |
| 擬合的曲線 | Zth(t) = Σ r_i·(1 − e^(−t/τ_i)) | Lawson & Hanson, Solving Least Squares Problems (1974), ch. 23 (NNLS) |

## 快速驗算

輸入:

- `tc`: 外殼溫度 = 25 °C
- `p`: 脈衝中的熱量 = 50 W
- `zp`: 在脈衝長度讀出的 Zth = 200m K/W
- `tf`: 曲線上第一個時間 = 10u s
- `tl`: 曲線上最後一個時間 = 1 s

輸出:

- `dtj`: 脈衝期間的接面溫升 = `p*zp` K
- `tj`: 接面溫度 = `tc + dtj` °C
- `cands`: 候選時間常數（約） = `8*log10(tl/(4*tf))` -

## 模型邏輯

- 電路建置時它擬合一條 Foster 鏈：候選時間常數從第一個時間到最後時間的四分之一，每十倍頻八個，熱阻以非負最小平方法（Lawson 與 Hanson）求得。
- 得到的級數多於 terms 時，取熱阻最大的幾級重新擬合；熱阻為零的級會被捨棄。terms 是 1 到 8 的整數。
- 擬合出的鏈之後與 Foster 熱阻抗鏈相同，form 的選擇一樣，接到會儲熱的一側時也一樣轉成 Cauer 梯形網路。

## 模型

電路建置時，以最多 terms 級的 Foster 鏈擬合這些點：候選時間常數從第一個時間到最後時間的四分之一，每十倍頻八個；熱阻以非負最小平方法（Lawson 與 Hanson）求得；若得到的級數多於 terms，取熱阻最大的幾級重新擬合。之後此鏈的行為與 Foster 熱阻抗鏈相同，包括接到會儲熱的一側時轉成 Cauer 梯形網路。

## 常見錯誤

- 最後一點必須在曲線已經平坦處，也就是穩態 Rth,jc：最慢的一級會被擬合成在那之前穩定。各點的時間必須遞增，數值不可下降。
- 每十倍頻至少讀兩個點；只用少數點擬合時，點與點之間可能偏差。請用單脈衝曲線（D = 0），不要用責任比曲線。

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

## 規格書與來源

從規格書的暫態熱阻抗圖（單脈衝、接面到外殼）讀出 t（s）與 Zth（K/W）。

## 範例

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

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