# 磁阻 (`reluctance`)

> 線性的磁通路徑：磁芯的一段、氣隙或整個磁芯，依幾何尺寸或型錄磁芯決定。

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

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

**分類:** 磁性元件 · **種類:** `{"element":"reluctance","kind":"magnetic"}`

## 何時使用

用於遠低於飽和的每一段磁芯以及氣隙。會飽和的磁芯段請用飽和磁芯。

## 接腳

| 接腳 | 訊號域 | 意義 |
|---|---|---|
| `a` | 磁 | 路徑的一端 |
| `b` | 磁 | 另一端 |

## 常用參數

- `r`: Reluctance of the flux path; when set, the geometry is not used (預設值: 選填（預設關閉）)
- `core`: Catalogue core or shape that gives the area, path length, permeability and gap (預設值: 選填（預設關閉）)
- `ae`: Cross-section area of the flux path (預設值: 選填（預設關閉）)
- `le`: Length of the flux path through the core material (預設值: 選填（預設關閉）)
- `mur`: Relative permeability of the core material (預設值: 1)

## 參數

| 鍵 | 單位 | 預設值 | 典型範圍 | 說明 |
|---|---|---|---|---|
| `r` | A/Wb | 選填（預設關閉） |  | Reluctance of the flux path; when set, the geometry is not used |
| `core` | — | 選填（預設關閉） |  | Catalogue core or shape that gives the area, path length, permeability and gap |
| `material` | — | 選填（預設關閉） |  | Core material; needed when core names a shape |
| `ae` | m² | 選填（預設關閉） |  | Cross-section area of the flux path |
| `le` | m | 選填（預設關閉） |  | Length of the flux path through the core material |
| `mur` | — | 1 |  | Relative permeability of the core material |
| `gap` | m | 選填（預設關閉） |  | Air gap in series with the path; unset uses the catalogue core's gap (none without one) |
| `coreTemp` | °C | 25 |  | Core temperature the material data is read at |

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

**適用於:** 磁芯腳 · 氣隙 · 整個線性磁芯

**不適用於:** 會飽和的磁芯腳 → [`saturableCore`](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/magnetics/saturableCore/)

## 公式

| 公式 | 方程式 | 出處 |
|---|---|---|
| 路徑磁阻 | R = (lg + le/μr) / (μ0·Ae) | Erickson & Maksimović, Fundamentals of Power Electronics, 3rd ed. (2020), ch. 10 (magnetic circuits) |
| 磁導（每匝平方的電感） | P = 1 / R | Erickson & Maksimović, Fundamentals of Power Electronics, 3rd ed. (2020), ch. 10 (magnetic circuits) |
| n 匝繞在其上的電感 | L = N² / R | Erickson & Maksimović, Fundamentals of Power Electronics, 3rd ed. (2020), ch. 10 (magnetic circuits) |

## 快速驗算

輸入:

- `ae`: 截面積 = 100u m², `ae`
- `le`: 磁芯中的路徑長度 = 100m m, `le`
- `mur`: 相對導磁率 = 2k -, `mur`
- `gap`: 氣隙 = 500u m, `gap`
- `n`: 繞在其上的匝數 = 20 -

輸出:

- `rel`: 路徑磁阻 = `(gap + le/mur)/(4e-7*pi*ae)` A/Wb
- `perm`: 磁導 = `1/rel` H
- `l`: n 匝的電感 = `n^2/rel` H
- `gapshare`: 氣隙佔的磁阻比例 = `gap/(gap + le/mur)` -

## 模型邏輯

- 它是磁路節點之間值為 P = 1/R 的電容：磁通是它的電荷，磁動勢是它的電壓，以該步本身的方法積分（梯形法，事件後用後向尤拉法）。
- P = mu0·ae / (gap + le/mur)，設定 r 時為 1/r，不計邊緣效應；型錄磁芯提供 ae、le、在 coreTemp 下的初始導磁率與它本身的氣隙。
- 此路徑是線性的：沒有飽和、磁滯或鐵損。
- 沒有接到 0、gnd 或 GND 網路的磁路，以名稱排第一的網路當作參考點；因為只有磁動勢的差值有意義，這樣是精確的。

## 模型

路徑的磁導為 P = mu0 * ae / (gap + le / mur)，設定 r 時為 1 / r，不計邊緣效應。型錄磁芯提供 ae、le、在 coreTemp 下的初始導磁率與它本身的氣隙；設定 gap 會取代該氣隙。求解器把 P 當作磁路節點之間的電容，所以磁通是它的電荷，磁動勢是它的電壓。磁路網路的磁動勢記錄為 F(網路名)。

## 常見錯誤

- le 只是磁芯材料中的長度；氣隙請填在 gap。兩者弄混會讓電感大得多或小得多。
- 封閉的磁芯不需要接地：沒有接到 0 網路的磁路，會以名稱排第一的網路當作參考點。

## 規格書與來源

ae、le 與初始導磁率取自磁芯與材料的規格書，或填型錄磁芯名稱，例如 E 42/21/15 - N87 - Gapped 0.500 mm。氣隙的 ae 是該腳的截面積，gap 是氣隙長度。

## 範例

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

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