Voltecx is in beta. The macOS build comes first; Windows and Linux packages are still being tested.Beta. macOS comes first; Windows and Linux are still in testing. What's new
Documentation

Inductor (inductor)

Stores energy in its current. Can add winding resistance, core loss and saturation.

inductor

Component reference · 繁體中文

Group: Passive · Kind: {"kind":"inductor"}

When to use it

Use it for filters, buck and boost stages and energy storage. For two windings, use Coupled Inductor or Transformer.

Pins

Pin Domain Meaning
p electrical One end; positive current flows from p to n
n electrical The other end

Common parameters

  • l: Inductance (Default: required)
  • i0: Initial current; the current through it at the start (Default: 0)
  • dcr: Winding resistance; the wire resistance of the winding (Default: 0)
  • isat: Current where the core starts to saturate (Default: optional (off))

Parameters

Key Unit Default Typical range Description
l H required Inductance
i0 A 0 Initial current; the current through it at the start
dcr Ω 0 1m – 500m Ω Winding resistance; the wire resistance of the winding
isat A optional (off) 100m – 200 A Current where the core starts to saturate
lsat H optional (off) 100n – 1m H Inductance once the core is saturated
isatTemp — optional (off) Temperature (°C) and factor pairs that scale isat at coreTemp, from the datasheet's curve
rcore Ω optional (off) 1k – 1meg Ω Resistance that models core loss
core — optional (off) Core from the catalogue; it sets the inductance curve and the core loss
material — optional (off) Core material; needed when core names a shape
turns — optional (off) Turns on the core
gap m optional (off) Air gap in the core; unset uses the catalogue core's gap
fsw Hz optional (off) Switching frequency; core and winding losses are worked out once per period
coreTemp °C 25 Core and winding temperature
wire — optional (off) Wire from the catalogue; gives the winding's extra resistance at high frequency
layers — 1 Winding layers; used for the extra resistance at high frequency
coreAe m² optional (off) Effective area of a core you describe yourself; use with coreLe instead of core
coreLe m optional (off) Magnetic path length of a core you describe yourself; use with coreAe
coreVe m³ optional (off) Volume of that core for its core loss; coreAe times coreLe when unset
bhCurve — optional (off) B-H curve of the core; pairs H:B in A/m and T, such as 0:0, 50:0.3, 200:0.45; replaces the material's curve
psiCurve — optional (off) Flux linkage of the winding against its current from a field solve; pairs i:λ in A and Wb, such as 0:0, 1:2e-3, 4:5e-3 (odd about zero current), or from a negative current through 0 for a magnet-biased winding, such as -4:-1e-3, 0:2e-3, 4:4e-3; replaces the core's curve
steinmetzK W/m³ optional (off) Steinmetz k of the core loss k·f^α·B^β, with f in Hz and B the peak flux density in T
steinmetzAlpha — optional (off) Steinmetz α, the frequency exponent of the core loss
steinmetzBeta — optional (off) Steinmetz β, the flux-density exponent of the core loss
magneticsDesign — optional (off) Saved design from magnetics.design; the separate core parameters win over it
surface m² optional (off) Outside surface of the wound part to the air; design.thermal gives its temperature rise from it and the loss
part — optional (off) Part number; the catalogue part number, such as XAL8080-123MEC or 2 × XAL8080-123MEC for two in series; information only, not simulated

Parameter descriptions are in English in both languages.

Use for: Buck and boost inductors · LC filters · PFC chokes

Not for: Two coupled windings → coupledInductor · Isolation with a turns ratio → transformer

Formulas

Formula Equation Source
Ripple current (peak to peak) Δi = vl·ton / l Erickson & Maksimović, Fundamentals of Power Electronics, 3rd ed. (2020), §2.2
Stored energy at the peak E = ½·l·(idc + Δi/2)² Mohan, Undeland & Robbins, Power Electronics, 3rd ed. (2003), ch. 3
Saturation margin isat − (idc + Δi/2) Erickson & Maksimović, Fundamentals of Power Electronics, 3rd ed. (2020), ch. 11 (inductor design, peak current)

Quick check

Inputs:

  • l: Inductance = 100u H, l
  • vl: Voltage across it while on = 36 V
  • ton: On time = 2.5u s
  • idc: DC current = 5 A
  • isat: Saturation current = 8 A, isat

Outputs:

  • di: Ripple current (peak to peak) = vl*ton/l A
  • energy: Stored energy at the peak = 0.5*l*(idc + di/2)^2 J
  • margin: Saturation margin = isat - (idc + di/2) A

Model logic

  • Each step it is a conductance with a current source (trapezoidal rule, backward Euler on the step after a switching event), starting from the current i0.
  • dcr is a resistor in series and rcore a resistor across the inductance; zero or unset leaves each one out.
  • With isat set, a step uses l or lsat (0.2·l when unset) by the current of the previous accepted step: a hard two-slope knee, not iterated.
  • With core, or coreAe and coreLe, set, the core's curve replaces isat and lsat and its core loss replaces rcore, with a warning.

Model

The voltage is v = L * di/dt, starting from the current i0 (p to n). dcr is a resistance in series, and rcore is a resistance across the inductance for core loss. When isat is set, the inductance is l while the current magnitude stays below isat and lsat above it (0.2 * l when lsat is unset), using the current of the previous accepted step. Saturation is a two-slope knee, not a measured B-H curve.

Common mistakes

  • A current source that feeds only inductors leaves its node without a resistive path. Put a large resistor across the source.
  • Inductance is in henry, so 100 means 100 H, not 100u. Set isat below the peak current only on purpose, because the ripple grows sharply above it.
  • When the inductor current falls to zero, the converter runs in discontinuous mode. The simulator tells you which mode the inductor ran in.

Problems rules: param.non_positive, cutset.inductor_current, param.out_of_range, inductor.mode

Datasheet and sources

l is the inductance at the rated DC current, dcr is the maximum DC resistance, and isat is the current where the inductance has dropped by the stated percentage. lsat is the inductance read from the curve at high current, and rcore is a one-frequency estimate of core loss.

Example

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


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