Magnetic Boundary Conditions and Magnetic Circuits
An inductor for a switch-mode supply has to hold with flowing and must not saturate. A relay needs enough flux across its armature gap to pull it in. A transformer core has to carry the flux with as little magnetising current as possible. Solving Maxwell's equations in three dimensions for each of these is what field solvers do; an engineer's first answer comes from a much simpler model. Because iron has a permeability thousands of times that of air, flux stays inside a core the way current stays inside a wire, and the core can be analysed as a magnetic circuit with "Ohm's law" and "Kirchhoff's laws". This lesson derives the boundary conditions that justify that picture, builds the circuit model, and shows where it breaks: fringing, leakage and saturation.
Boundary conditions for H and B
At an interface between two materials, apply Gauss's law for magnetism to a flat pillbox and Ampère's law to a thin rectangle straddling the surface (Electrostatic Boundary Conditions uses the same two shapes):
The normal component of is continuous (no magnetic charge), and the tangential jumps only by a surface current , which is zero at the surface of ordinary materials. With and linear materials, field lines refract by
with measured from the normal. From iron () into air, a line inside the iron at to the normal leaves the iron at only : field lines leave iron almost perpendicular to its surface, and inside the iron they run almost parallel to it. The core guides the flux.
The magnetic circuit
Ampère's law around the mean path of a core with turns gives . If the flux stays in the core, in each section and , so each section of length contributes :
| Electric circuit | Magnetic circuit |
|---|---|
| EMF (V) | MMF (A, "ampere-turns") |
| current (A) | flux (Wb) |
| resistance | reluctance |
| KVL: | Ampère: around a loop |
| KCL: at a node | : at a junction of limbs |
Series and parallel reluctances combine like resistors. The inductance of the winding follows at once: flux linkage , so
The analogy has limits that resistors don't: "insulators" for flux are only a few thousand times worse than the core, so some flux leaks across the window; at a gap the flux fringes outward, so the effective gap area is larger than the core's (a common correction adds the gap length to each side of the cross-section); and depends on , so the circuit is nonlinear near saturation (Magnetic Materials, Permeability and Hysteresis).
Worked example: a gapped C-core
Given: the core in the figure: mean path , cross-section , , an air gap , turns.
Find: the reluctances, the current for in the core, and the inductance (ignoring fringing, then with it).
Solve:
With fringing (gap area ): , , .
Check: the gap is of the path, yet holds 95 % of the MMF, because air is 4000 times less permeable. That is the whole point of gapping a core: and the saturation current are set by the gap, a dimension you can control, instead of by , which varies with temperature and from batch to batch by in ferrites.
Interactive: the core as a netlist
The magnetic circuit is a resistor circuit in disguise, so the netlist lab can solve it. Read every quantity through the analogy: the source "volts" are ampere-turns, the "ohms" are reluctances in A/Wb, the "amperes" are webers of flux, and each node "voltage" is a magnetic potential (MMF drop). The defaults are the worked example without fringing: the loop "current" is , meaning (), and node b sits at , the ampere-turns across the gap.
Halve the gap reluctance (a gap, about ): the flux nearly doubles for the same current, so nearly doubles too, and the core saturates at half the current.
In Python: linear model against a saturating core
import numpy as np
from scipy.optimize import brentq
MU0 = 4e-7 * np.pi
lc, A, mur, g, N = 0.20, 4e-4, 4000, 1e-3, 200 # core path (m), area (m^2), rel. permeability, gap (m), turns
Rc = lc / (mur * MU0 * A)
Rg = g / (MU0 * A)
Rg_f = g / (MU0 * (0.02 + g) ** 2) # fringing: add the gap length to each side of the 2 cm square
print(f"core reluctance {Rc:.4g} A/Wb, gap reluctance {Rg:.4g} A/Wb (with fringing {Rg_f:.4g})")
print(f"the 1 mm gap holds {Rg/(Rc+Rg)*100:.1f} % of the MMF")
phi = 1.0 * A # 1 T in the core
for name, Rt in (("no fringing", Rc + Rg), ("with fringing", Rc + Rg_f)):
print(f"{name:13s}: NI = {phi*Rt:6.1f} A-turns, I = {phi*Rt/N:.3f} A, L = N^2/R = {N*N/Rt*1e3:.2f} mH")
# a saturating core: anhysteretic curve B = Bs tanh(H/H0) + mu0 H with initial mu_r = 4000
Bs = 1.6
H0 = Bs / (mur * MU0)
H_of_B = lambda B: brentq(lambda H: Bs * np.tanh(H / H0) + MU0 * H - B, 0, 1e6)
print("B core NI linear NI saturating")
for B in (0.4, 0.8, 1.2, 1.4, 1.5, 1.6, 1.7):
lin = B * A * (Rc + Rg)
sat = H_of_B(B) * lc + B / MU0 * g
print(f"{B:4.1f} T {lin:8.1f} {sat:8.1f}")core reluctance 9.947e+04 A/Wb, gap reluctance 1.989e+06 A/Wb (with fringing 1.804e+06)
the 1 mm gap holds 95.2 % of the MMF
no fringing : NI = 835.6 A-turns, I = 4.178 A, L = N^2/R = 19.15 mH
with fringing: NI = 761.6 A-turns, I = 3.808 A, L = N^2/R = 21.01 mH
B core NI linear NI saturating
0.4 T 334.2 334.6
0.8 T 668.5 671.6
1.2 T 1002.7 1016.8
1.4 T 1169.8 1200.2
1.5 T 1253.3 1302.7
1.6 T 1336.9 1516.6
1.7 T 1420.5 17268.3
The gap keeps the circuit almost linear up to (3 % error); by the core needs 13 % more current, and asking for needs twelve times the linear estimate. Past saturation the inductance collapses and the current in a switching converter's inductor shoots up: size the core so the peak current stays below the knee.
Guided lab: inductance against gap length
Hand calculation. For a ferrite core pair with , and from its datasheet, . Ferrite datasheets also give , the inductance per turn squared (), for standard gaps.
Simulation. The netlist lab with the gap reluctance slider, or the code above with your core's numbers.
What you would measure. Wind turns on the bobbin of a two-part ferrite core (an E or pot core), clamp the halves, and measure with an LCR meter at and a small test level (LCR Meters). Then insert paper or plastic shims of , and in the outer legs. Note that shims in the outer legs of an E core also gap the centre leg's return path; the total gap in the flux path is twice the shim thickness. Plot against the total gap: the model predicts a straight line with slope and intercept . Expect the ungapped value to scatter by (ferrite tolerance, how tightly the halves mate) while the gapped values agree within about 10 %, with the measured a little higher than predicted (points below the line) from fringing.
Hazards and safe setup. Measurement-level signals only. Ferrite is brittle: don't drop it or clamp it hard. If you test with DC bias from a bench supply, set a current limit and switch off from the supply (inductive kick).
Pitfalls
- Forgetting the gap's fringing. For gaps comparable to the core width the effective area is noticeably larger; the simple correction can be 10 % off and FEM is the real answer (FEM, MoM and BEM).
- Assuming no leakage. In a transformer with separate windings, the leakage flux becomes the leakage inductance (Ideal Transformers).
- Using near saturation. The linear model overestimates the flux a given current can make.
- Counting the gap once in an E core. The flux crosses the centre-leg gap and an outer-leg gap in series.
Practice
- A toroid of mean diameter , cross-section , , has turns. Find and .
- A gap is cut in it. Find the new (no fringing).
- Field lines in a material with meet air at from the normal (inside the material). At what angle do they leave?
Answer
- , , .
- ; total , .
- , so from the normal: essentially perpendicular.
Test yourself
At the boundary between iron and air (no surface current), which component is continuous?
- normal
- tangential
- normal
- all of
In the magnetic circuit analogy, flux corresponds to…
- voltage
- current
- resistance
- power
A 1 mm gap in a 20 cm steel path with takes what share of the MMF?
- about 0.5 %
- about 20 %
- about 50 %
- about 95 %
The inductance of a winding on a magnetic circuit is…