# Flux Probe (`fluxProbe`)

> Reads the flux, or the flux density, through a magnetic path as a signal.

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

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

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

## When to use it

Use it to check the peak flux density of a core against Bsat, or to feed the flux to control.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `a` | magnetic | Flux enters here |
| `b` | magnetic | Flux leaves here |
| `out` | signal | The flux in Wb, or the flux density in T when ae is set |

## Common parameters

- `ae`: Area the flux is divided by: with it the output is the flux density (T), without it the flux (Wb) (Default: optional (off))

## Parameters

| Key | Unit | Default | Typical range | Description |
|---|---|---|---|---|
| `ae` | m² | optional (off) |  | Area the flux is divided by: with it the output is the flux density (T), without it the flux (Wb) |

_Parameter descriptions are in English in both languages._

**Use for:** Peak flux density against Bsat · Flux as a control signal · Flux walking with a DC offset

**Not for:** Electrical voltages → [`voltmeter`](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/meters/voltmeter/)

## Formulas

| Formula | Equation | Source |
|---|---|---|
| Flux change over the on time | ΔΦ = v·ton / N | Erickson & Maksimović, Fundamentals of Power Electronics, 3rd ed. (2020), ch. 10 (Faraday's law) |
| Flux density change | ΔB = v·ton / (N·Ae) | Erickson & Maksimović, Fundamentals of Power Electronics, 3rd ed. (2020), ch. 10 (Faraday's law) |

## Quick check

Inputs:

- `v`: Winding voltage while on = 48 V
- `ton`: On time = 5u s
- `n`: Turns of the winding = 12 -
- `ae`: Area of the leg = 100u m², `ae`
- `bsat`: Saturation flux density = 300m T

Outputs:

- `dphi`: Flux change over the on time = `v*ton/n` Wb
- `db`: Flux density change = `dphi/ae` T
- `margin`: Margin to Bsat = `bsat - db` T

## Model logic

- It is a gyrator port in series with the path, shorted so it adds no reluctance; the flux rate through it from a to b drives an inner node.
- That rate charges a 1 F capacitor integrated with the step's own method, starting at zero, so its voltage is the flux.
- out = Phi, or Phi / ae when ae is set; a non-positive ae stops the build. The inner nodes are recorded as v(name:rate) and v(name:flux).

## Model

The probe sits in series in the path and adds no reluctance. It integrates the flux rate from a to b with the solver's own method, starting at zero, so out = Phi or Phi / ae.

## Common mistakes

- The flux starts at zero, so a core that starts magnetized needs a run long enough to settle, or a winding current that sets it.
- The probe reads only the flux of the branch it is in series with. Put it in the leg you want to check, not across a gap or a winding.

## Datasheet and sources

Set ae to the effective area of the core leg the probe sits in, from the core data sheet.

## Example

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

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