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 , copper loss 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 ?
goes as the RMS current squared: four times. The turns and gap, set by the peak current, don't change, but the window must hold four times the copper cross-section for the same loss, or the loss quadruples in the same core.
Name it
What the lab computes
- Required core constant (SI units, ρ = 1.724 × 10⁻⁸ Ω·m for copper):
and a core's own , usually quoted in cm⁵ (1 m⁵ = 10¹⁰ cm⁵).
- Completing the design on a chosen core: , gap , wire area , resistance and copper loss .
- Transformer optimum: minimize ; at the minimum, copper loss is β/2 times core loss.
- Skin depth , 0.209 mm at 100 kHz. A round wire of diameter d has for , and about for .
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 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 .
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?
For a given core and window, raising the peak AC flux density lets the winding use fewer turns, because each turn links more flux for the same volt-seconds. Fewer turns mean thicker wire in the same window and much less copper loss, which falls as the inverse square of the flux density. But core loss rises steeply with flux density, typically to the power 2.6 to 2.8. One loss falls while the other rises, so their sum has a minimum where the copper loss is about β/2 times the core loss, and because the minimum is broad, designers can choose a slightly lower flux density for thermal margin without much penalty.