TExcelTAD
Home › Electromagnetic Theory: Maxwell's Equations to Waves › Magnetic Boundary Conditions and Magnetic Circuits

Magnetic Boundary Conditions and Magnetic Circuits

An inductor for a switch-mode supply has to hold 20 mH20\ \text{mH} with 4 A4\ \text{A} 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):

B1n=B2n,n^×(H1−H2)=KB_{1n} = B_{2n}, \qquad \hat{\mathbf{n}} \times (\mathbf{H}_1 - \mathbf{H}_2) = \mathbf{K}

The normal component of B\mathbf{B} is continuous (no magnetic charge), and the tangential H\mathbf{H} jumps only by a surface current K\mathbf{K}, which is zero at the surface of ordinary materials. With K=0K = 0 and linear materials, field lines refract by

tan⁡θ1tan⁡θ2=μ1μ2\frac{\tan\theta_1}{\tan\theta_2} = \frac{\mu_1}{\mu_2}

with θ\theta measured from the normal. From iron (μr=4000\mu_r = 4000) into air, a line inside the iron at 89∘89^\circ to the normal leaves the iron at only 0.8∘0.8^\circ: 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

g = 1 mm N = 200 path lc = 20 cm A = 2 x 2 cm steel core, mu_r = 4000 NI Rc Rg Phi NI = Phi (Rc + Rg)

Ampère's law around the mean path of a core with NN turns gives ∮H⋅dl=NI\oint \mathbf{H} \cdot d\mathbf{l} = NI. If the flux Φ\Phi stays in the core, B=Φ/AB = \Phi/A in each section and H=B/μH = B/\mu, so each section of length ℓk\ell_k contributes Hkℓk=Φ ℓk/(μkAk)H_k\ell_k = \Phi\,\ell_k/(\mu_k A_k):

F=NI=Φ∑kRk,R=ℓμA  (A/Wb, also written A-turns/Wb)\mathcal{F} = NI = \Phi \sum_k \mathcal{R}_k, \qquad \mathcal{R} = \frac{\ell}{\mu A}\ \ (\text{A/Wb, also written A-turns/Wb})
Electric circuit Magnetic circuit
EMF VV (V) MMF F=NI\mathcal{F} = NI (A, "ampere-turns")
current II (A) flux Φ\Phi (Wb)
resistance R=ℓ/(σA)R = \ell/(\sigma A) reluctance R=ℓ/(μA)\mathcal{R} = \ell/(\mu A)
KVL: ∑V=∑IR\sum V = \sum IR Ampère: ∑NI=∑ΦR\sum NI = \sum \Phi\mathcal{R} around a loop
KCL: ∑I=0\sum I = 0 at a node ∇⋅B=0\nabla \cdot \mathbf{B} = 0: ∑Φ=0\sum \Phi = 0 at a junction of limbs

Series and parallel reluctances combine like resistors. The inductance of the winding follows at once: flux linkage NΦ=N2I/RtotalN\Phi = N^2 I/\mathcal{R}_\text{total}, so

L=N2RtotalL = \frac{N^2}{\mathcal{R}_\text{total}}

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 μ\mu depends on BB, 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 ℓc=20 cm\ell_c = 20\ \text{cm}, cross-section A=4 cm2A = 4\ \text{cm}^2, μr=4000\mu_r = 4000, an air gap g=1 mmg = 1\ \text{mm}, N=200N = 200 turns.

Find: the reluctances, the current for B=1.0 TB = 1.0\ \text{T} in the core, and the inductance (ignoring fringing, then with it).

Solve:

Rc=0.20 m4000⋅4π×10−7 H/m⋅4×10−4 m2=9.95×104 A/WbRg=10−3 m4π×10−7 H/m⋅4×10−4 m2=1.99×106 A/WbNI=Φ(Rc+Rg)=4×10−4 Wb⋅2.089×106 A/Wb=836 A,I=4.18 AL=N2Rc+Rg=40 0002.089×106 H=19.2 mH\begin{aligned} \mathcal{R}_c &= \frac{0.20\ \text{m}}{4000 \cdot 4\pi \times 10^{-7}\ \text{H/m} \cdot 4 \times 10^{-4}\ \text{m}^2} = 9.95 \times 10^4\ \text{A/Wb} \\ \mathcal{R}_g &= \frac{10^{-3}\ \text{m}}{4\pi \times 10^{-7}\ \text{H/m} \cdot 4 \times 10^{-4}\ \text{m}^2} = 1.99 \times 10^6\ \text{A/Wb} \\ NI &= \Phi(\mathcal{R}_c + \mathcal{R}_g) = 4 \times 10^{-4}\ \text{Wb} \cdot 2.089 \times 10^6\ \text{A/Wb} = 836\ \text{A}, \qquad I = 4.18\ \text{A} \\ L &= \frac{N^2}{\mathcal{R}_c + \mathcal{R}_g} = \frac{40\,000}{2.089 \times 10^6}\ \text{H} = 19.2\ \text{mH} \end{aligned}

With fringing (gap area 2.1×2.1 cm22.1 \times 2.1\ \text{cm}^2): Rg=1.80×106 A/Wb\mathcal{R}_g = 1.80 \times 10^6\ \text{A/Wb}, I=3.81 AI = 3.81\ \text{A}, L=21.0 mHL = 21.0\ \text{mH}.

Check: the 1 mm1\ \text{mm} gap is 1/2001/200 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: LL and the saturation current are set by the gap, a dimension you can control, instead of by μr\mu_r, which varies with temperature and from batch to batch by ±25 %\pm 25\ \% 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 400 μA400\ \mu\text{A}, meaning Φ=400 μWb\Phi = 400\ \mu\text{Wb} (B=1.0 TB = 1.0\ \text{T}), and node b sits at 795.8795.8, the ampere-turns across the gap.

node voltages (to ground 0)a835.6 Vb795.8 VnetlistVMMF a 0 835.6RCORE a b 99.47kRGAP b 0 1.989megelement currents (node 1 to node 2 through it)VMMFa>0-400 uARCOREa>b400 uARGAPb>0400 uA

Halve the gap reluctance (a 0.5 mm0.5\ \text{mm} gap, about 995 k995\ \text{k}): the flux nearly doubles for the same current, so LL nearly doubles too, and the core saturates at half the current.

In Python: linear model against a saturating core

python · try it yourself
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 1.4 T1.4\ \text{T} (3 % error); by 1.6 T1.6\ \text{T} the core needs 13 % more current, and asking for 1.7 T1.7\ \text{T} 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 ℓe\ell_e, AeA_e and μr\mu_r from its datasheet, L=N2/(Rc+g/(μ0Ae))L = N^2/(\mathcal{R}_c + g/(\mu_0 A_e)). Ferrite datasheets also give ALA_L, the inductance per turn squared (L=ALN2L = A_L N^2), 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 N=50N = 50 turns on the bobbin of a two-part ferrite core (an E or pot core), clamp the halves, and measure LL with an LCR meter at 10 kHz10\ \text{kHz} and a small test level (LCR Meters). Then insert paper or plastic shims of 0.10.1, 0.20.2 and 0.5 mm0.5\ \text{mm} 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 1/L1/L against the total gap: the model predicts a straight line with slope 1/(μ0AeN2)1/(\mu_0 A_e N^2) and intercept Rc/N2\mathcal{R}_c/N^2. Expect the ungapped value to scatter by ±25 %\pm 25\ \% (ferrite μr\mu_r tolerance, how tightly the halves mate) while the gapped values agree within about 10 %, with the measured LL a little higher than predicted (points below the 1/L1/L 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 μr\mu_r 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

  1. A toroid of mean diameter 10 cm10\ \text{cm}, cross-section 1 cm21\ \text{cm}^2, μr=2000\mu_r = 2000, has N=300N = 300 turns. Find R\mathcal{R} and LL.
  2. A 0.5 mm0.5\ \text{mm} gap is cut in it. Find the new LL (no fringing).
  3. Field lines in a material with μr=1000\mu_r = 1000 meet air at 45∘45^\circ from the normal (inside the material). At what angle do they leave?
Answer
  1. ℓ=π⋅0.1=0.314 m\ell = \pi \cdot 0.1 = 0.314\ \text{m}, R=0.314/(2000⋅4π×10−7⋅10−4)=1.25×106 A/Wb\mathcal{R} = 0.314/(2000 \cdot 4\pi \times 10^{-7} \cdot 10^{-4}) = 1.25 \times 10^6\ \text{A/Wb}, L=9×104/1.25×106=72 mHL = 9 \times 10^4/1.25 \times 10^6 = 72\ \text{mH}.
  2. Rg=5×10−4/(4π×10−7⋅10−4)=3.98×106\mathcal{R}_g = 5 \times 10^{-4}/(4\pi \times 10^{-7} \cdot 10^{-4}) = 3.98 \times 10^6; total 5.23×1065.23 \times 10^6, L=17.2 mHL = 17.2\ \text{mH}.
  3. tan⁡θ2=tan⁡45∘/1000=0.001\tan\theta_2 = \tan 45^\circ/1000 = 0.001, so 0.057∘0.057^\circ from the normal: essentially perpendicular.

Test yourself

At the boundary between iron and air (no surface current), which component is continuous?

  1. normal H\mathbf{H}
  2. tangential B\mathbf{B}
  3. normal B\mathbf{B}
  4. all of H\mathbf{H}

In the magnetic circuit analogy, flux corresponds to…

  1. voltage
  2. current
  3. resistance
  4. power

A 1 mm gap in a 20 cm steel path with μr=4000\mu_r = 4000 takes what share of the MMF?

  1. about 0.5 %
  2. about 20 %
  3. about 50 %
  4. about 95 %

The inductance of a winding on a magnetic circuit is…

  1. NRN\mathcal{R}
  2. N2/RN^2/\mathcal{R}
  3. R/N2\mathcal{R}/N^2
  4. N/R2N/\mathcal{R}^2