S1127 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

S11 · Lesson 27 · Magnetics lab

Sizing an inductor by the core geometry constant, completing its turns, gap and wire, finding a transformer's loss-optimal flux density numerically, and estimating AC resistance from the skin depth

Lessons 24 to 26 designed magnetics by hand, one constraint at a time. Design tools chain the same steps into code that can sweep through a catalog of cores in seconds: required Kg, then turns, gap, wire and loss for each candidate, then the transformer's flux density that balances core and copper loss, then a check that the wire isn't so thick that skin effect undoes the copper loss estimate. In this lab you'll write that chain and check it against the lessons' worked examples.

  • The curves are a transformer's core loss kBacβ, copper loss c/Bac2 and their total, for k = 20, c = 0.0004 and the Steinmetz exponent β on the slider.
  • The total has a broad minimum where the copper loss is β/2 times the core loss: 0.094 T for β = 2.7.
  • Because the minimum is flat, flux density can be chosen a little below it to leave margin for hot cores without much penalty.

Predict

An inductor's RMS current doubles while its peak stays the same. What happens to the required Kg?

Name it

What the lab computes

  • Required core constant (SI units, ρ = 1.724 × 10⁻⁸ Ω·m for copper):
Kg≥ρL2Imax2Irms2Bmax2PcuKu

and a core's own Kg=Ac2WA/MLT, usually quoted in cm⁵ (1 m⁵ = 10¹⁰ cm⁵).

  • Completing the design on a chosen core: N=⌈LImax/(BmaxAc)⌉, gap g=μ0LImax2/(Bmax2Ac), wire area Aw=KuWA/N, resistance ρNMLT/Aw and copper loss Irms2R.
  • Transformer optimum: minimize kBacβ+c/Bac2; at the minimum, copper loss is β/2 times core loss.
  • Skin depth δ=ρ/(πfμ0), 0.209 mm at 100 kHz. A round wire of diameter d has Rac/Rdc≈1 for d≤2δ, and about d/4δ+1/4 for d≫δ.

Check

Write kg_required(L, Ipk, Irms, Bmax, Pcu, Ku) returning cm⁵ (SI inputs), and core_kg(Ac, WA, MLT) from centimeter dimensions, returning cm⁵.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write design(L, Ipk, Irms, Bmax, Ku, Ac_cm2, WA_cm2, MLT_cm): return (N, gap in mm, wire area in mm², resistance in mΩ, copper loss in W), with N rounded up.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write transformer_optimum(k, beta, c): the flux density minimizing kBβ+c/B2 by golden-section search between 0.001 and 1 T, returning (B, core loss, copper loss).

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write skin_depth_mm(f) for copper and rac_ratio(d_mm, f): 1 when d ≤ 2δ, otherwise d/4δ+1/4.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Explain why

Why does a transformer's total loss have a minimum at an intermediate flux density?