# Reluctance (`reluctance`)

> A linear flux path: a core leg, an air gap or a whole core, from its geometry or a catalogue core.

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

[Component reference](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/) · [繁體中文](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/magnetics/reluctance/)

**Group:** Magnetics · **Kind:** `{"element":"reluctance","kind":"magnetic"}`

## When to use it

Use it for every leg of a core that stays well below saturation, and for air gaps. Use Saturable Core for a leg that saturates.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `a` | magnetic | One end of the path |
| `b` | magnetic | The other end |

## Common parameters

- `r`: Reluctance of the flux path; when set, the geometry is not used (Default: optional (off))
- `core`: Catalogue core or shape that gives the area, path length, permeability and gap (Default: optional (off))
- `ae`: Cross-section area of the flux path (Default: optional (off))
- `le`: Length of the flux path through the core material (Default: optional (off))
- `mur`: Relative permeability of the core material (Default: 1)

## Parameters

| Key | Unit | Default | Typical range | Description |
|---|---|---|---|---|
| `r` | A/Wb | optional (off) |  | Reluctance of the flux path; when set, the geometry is not used |
| `core` | — | optional (off) |  | Catalogue core or shape that gives the area, path length, permeability and gap |
| `material` | — | optional (off) |  | Core material; needed when core names a shape |
| `ae` | m² | optional (off) |  | Cross-section area of the flux path |
| `le` | m | optional (off) |  | Length of the flux path through the core material |
| `mur` | — | 1 |  | Relative permeability of the core material |
| `gap` | m | optional (off) |  | 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 |

_Parameter descriptions are in English in both languages._

**Use for:** Core legs · Air gaps · A whole linear core

**Not for:** A leg that saturates → [`saturableCore`](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/magnetics/saturableCore/)

## Formulas

| Formula | Equation | Source |
|---|---|---|
| Reluctance of the path | R = (lg + le/μr) / (μ0·Ae) | Erickson & Maksimović, Fundamentals of Power Electronics, 3rd ed. (2020), ch. 10 (magnetic circuits) |
| Permeance (inductance per turn squared) | P = 1 / R | Erickson & Maksimović, Fundamentals of Power Electronics, 3rd ed. (2020), ch. 10 (magnetic circuits) |
| Inductance of n turns on it | L = N² / R | Erickson & Maksimović, Fundamentals of Power Electronics, 3rd ed. (2020), ch. 10 (magnetic circuits) |

## Quick check

Inputs:

- `ae`: Cross-section area = 100u m², `ae`
- `le`: Path length in the core = 100m m, `le`
- `mur`: Relative permeability = 2k -, `mur`
- `gap`: Air gap = 500u m, `gap`
- `n`: Turns of a winding on it = 20 -

Outputs:

- `rel`: Reluctance of the path = `(gap + le/mur)/(4e-7*pi*ae)` A/Wb
- `perm`: Permeance = `1/rel` H
- `l`: Inductance of the n turns = `n^2/rel` H
- `gapshare`: Share of the reluctance in the gap = `gap/(gap + le/mur)` -

## Model logic

- It is a capacitor of value P = 1/R between magnetic nodes: the flux is its charge and the MMF its voltage, integrated with the step's own method (trapezoidal, backward Euler after an event).
- P = mu0·ae / (gap + le/mur), or 1/r when r is set, with no fringing; a catalogue core gives ae, le, the initial permeability at coreTemp and its own gap.
- The path is linear: no saturation, hysteresis or core loss.
- A magnetic network that touches no 0, gnd or GND net is referenced at its first net by name, which is exact because only MMF differences count.

## Model

The path is a permeance P = mu0 * ae / (gap + le / mur), or 1 / r when r is set, without fringing. A catalogue core gives ae, le, the initial permeability at coreTemp and its own gap; gap overrides the gap. In the solvers P is a capacitance between magnetic nodes, so the flux is its charge and the MMF its voltage. The MMF of a magnetic net is recorded as F(net).

## Common mistakes

- le is the length through the core material only; put the gap in gap. Mixing them up makes the inductance far too high or too low.
- A closed core needs no ground: a magnetic network that reaches no 0 net is referenced at its first net by name.

## Datasheet and sources

Take ae, le and the initial permeability from the core and material data sheets, or name a catalogue core such as E 42/21/15 - N87 - Gapped 0.500 mm. For a gap, ae is the leg area and gap the gap length.

## Example

Open the example with the command `file.openExample` and the name `demo:reluctance`.

---
Generated by `cargo xtask reference` from the usage texts and parameter specs. Do not edit by hand.
