Two windings, and the band between them

The core the solver has to remember

A saturating inductor's state is one number, because the current is a function of the flux linkage. A hysteretic core's is not: half an amp is one flux on the way up and a different flux on the way down, and there is no function of the current that returns the flux. So the march's state vector gains twenty-four more numbers, one per play operator, and the Newton loop is forbidden to touch them. The circuit and the bench then agree on the loss to three parts in ten million — one integral taken at two wires, the other inside the material.

Assumes: The area a curve cannot have · A boundary in volt-seconds · One step, computed twice

The area a curve cannot have gave this collection a core that dissipates. It marches a superposition of play operators against a stated field, closes a loop with twelve joules per cubic metre in it, and measures a coercivity and a remanence that were never handed in. Five rungs of measurement have been taken on it since, and every one of them was taken on a bench.

That word is doing real work. A bench states the field: a drive is applied, the operators advance, and the flux is read out. It is the direction the model is written in and it is the direction nothing in a circuit ever goes.

A circuit states a voltage. The winding integrates it, so what exists at the end of a step is a flux linkage; the current is whatever the material asks for at that flux, and the field is whatever the current implies. The whole calculation runs backwards, and running it backwards is not a matter of rearranging the arithmetic.

One part, three saturation currents: 1.90 A, 2.40 A, 2.69 A. computed by solving, not by drawing. B(H) is μ₀H plus a saturating magnetisation, written as a flux linkage, and the inductance drawn here is dλ/di — the slope of that flux, which is what a small signal on a direct current actually meets. It is 18.92 µH at no current, 16.73 µH at two amps and 10.43 µH at three, and it never reaches zero: the vacuum is still there, so the part falls to its air-core 0.05 µH and stays. The three marks are the ten, twenty and thirty per cent drops different manufacturers print as the saturation current — 1.896, 2.395, 2.694 amps, a spread of 42 per cent on one part.
Fig. 1 The core every marched circuit in this collection has used: inductance against the direct current in it, from a single-valued B(H). Every point on the curve is a function of the current alone, which is exactly the property that makes it possible to march and exactly the property a loop does not have.

The inverse that does not exist

The march this site uses carries two kinds of nonlinear reactive element and both are defined by a state that is not a value. A capacitor whose capacitance moves with bias is written as a charge, q(v), so that the trapezoidal rule is applied to dq/dt = i rather than to i = C dv/dt. An inductor whose inductance moves with current is written as a flux linkage, and it needs one more thing: the inverse, i(λ), because the unknown a solver can offer an element is the voltage across it, and the voltage integrates to a flux.

That inverse is required rather than computed, and the docstring beside it says why: every saturating law worth marching has one in closed form, and a bisection buried inside a Newton loop is a way of making a convergence failure look like a physical result.

A hysteretic core has no inverse at all. Fifty milliamperes through this winding is one flux linkage on the ascending branch and a measurably different one on the descending branch, and the two are both correct. There is no function of the current that returns the flux, so there is nothing to write in the slot the element wants filled — and this is not a numerical difficulty that a better algorithm would remove. It is the physical content of the model. A part with memory is a part whose present state is not a function of its present terminal quantities, and asking for the function is asking the model to stop being what it is.

A major hysteresis loop at 9.0 A/m of coercivity, and the anhysteretic curve it closes onto. computed by solving, not by drawing. The B–H loop of a core driven sinusoidally to ±400 A/m, marched through a superposition of twenty-four play operators and drawn over the single-valued curve the two rungs below this one measured. The loop encloses 12.481 joules per cubic metre per cycle, which is the core loss and which no single-valued model can produce, because a curve has no area. The coercivity is 8.96 amperes per metre and the remanence 22.3 millitesla; both are read off the marched descending branch rather than handed in. The slider takes the threshold spread down to zero, where the two branches become one, the area falls to 9.8e-15 J/m³, and the object is exactly the core the field already had.
Fig. 2 Why there is no inverse, in one picture. Every flux density inside the loop occurs at two fields and every field inside it at two fluxes. A single-valued curve has one of each, which is what lets a solver be handed i(λ) and get on with it.

What the element carries instead

So the element carries the core object, and the core object carries an array. Twenty-four play operators, each with its own threshold and its own remembered field, and the array is the branch: it is the answer to where has this core been, and it is the only thing that distinguishes the two fluxes at fifty milliamperes.

The march’s state vector gains it. Where a saturating inductor contributes one number to the state and a linear one contributes one number, this element contributes twenty-five — the flux linkage and the twenty-four operator fields — and a snapshot of the array is taken at the end of every accepted step, exactly as the flux linkage is.

The state the solver carries: 24 operator fields at four instants of one cyclecomputed by solving, not by drawing. A linear inductor's state is one number and a saturating one's is also one number — the flux linkage — because the current is a function of it. A hysteretic core's is not: the same flux linkage occurs twice per cycle at two different currents, so the march has to carry 24 more numbers, one per play operator, and this is what they are doing. Each line is the operator field against the operator's own threshold at one instant of the cycle; a soft operator on the left follows the drive closely and a hard one on the right hardly moves. The four lines are a quarter cycle apart. The slider moves the flux the drive demands.-50050010203040operator threshold r, amperes per metrethat operator's own field, amperes per metreat 0% of the cycleat 25% of the cycleat 50% of the cycleat 75% of the cycleH = 8.69 A/mH = 58.63 A/mH = -9.41 A/mH = -59.44 A/msolved, then checked — one flux linkage, 24 operators25 numbers of state
Fig. 3 The extra state, drawn. Each line is the operator field against the operator’s own threshold at one instant of a cycle, a quarter cycle apart. The soft operators on the left follow the drive closely and the hard ones on the right hardly move at all; the spread between them is what a single flux linkage cannot carry.

The word accepted is the load-bearing one. Inside a step, the solver runs a Newton iteration on trial voltages, and it is emphatically forbidden to advance the operators while it does so. Every trial restores the committed snapshot before it inverts, so the whole iteration sees one branch.

Advancing them inside the loop would work, in the sense that it would produce numbers and a plot. It would also make the branch a function of how many iterations the solver happened to take, which is a march whose answer depends on its own convergence history. That failure has no symptom: the waveform looks like a waveform, the loop looks like a loop, and the only way to notice is to change the tolerance and watch the loss move. The core model already owns the discipline for this — it has a peek that reads the flux at a field without advancing anything, written for the bench and used here for the reason it was written.

Inverting against a history rather than against a curve

What is left is a scalar solve at every trial: given the flux the trapezoidal rule proposes, find the field that produces it on the branch the operators are standing on. That is not inverting a curve, because the curve is different after every step.

Two properties make it exact rather than approximate, and both are asserted in the site’s gate rather than assumed. The flux is strictly increasing in the field — every term is non-decreasing, and the vacuum term μ₀H is strictly increasing on its own — so a root exists, is unique, and is bracketed by any pair that straddles it. And the slope is bounded below by μ₀, so a bracket of a stated width carries a residual bound without evaluating anything.

The solve is Newton on the one-sided differential permeability with a bisection safeguard, which on a monotone function cannot leave its bracket and cannot converge to the wrong root. The residual is returned rather than discarded, which is the whole difference between this and the bare bisection the flux-defined element refuses: the caller can assert that the flux on the plot is the flux the field implies, and does.

Opening the bracket around the previous step’s field rather than around zero takes the inversion from about nineteen evaluations to about five. In a march that is not an optimisation — it is the difference between a hysteretic core being affordable inside a Newton loop and not being.

The winding current a hysteretic core asks for, and the current the same circuit's single-valued core asks for. computed by solving, not by drawing. One netlist — a 9.4 volt peak sinusoid at 5.00 kHz through 4 ohms into a sixty-turn winding — marched twice, once with the core as a superposition of play operators and once with the single-valued saturating curve every earlier figure in this field used. The two currents differ in shape and not only in size: the hysteretic one leads the flux by an angle that is not ninety degrees, which is the whole of the core loss, and its peak is 28.55 milliamperes against 20.16. The energy the source delivers over a complete cycle is 2.57 microjoules for the loop and 3.9e-6 for the curve, which is zero to the resolution of the march. The slider takes the flux the drive demands from a twentieth of the material's saturation to most of it.
Fig. 4 The same netlist marched twice, once with the operator superposition and once with the single-valued curve, at a lower flux than the hero. The two currents differ in shape and not only in size: the hysteretic one leads the flux by an angle that is not ninety degrees, and that angle is the loss.

Two integrals that share no arithmetic

The verification that matters is not that the march converges. It is that the object inside the circuit is the same object the five rungs below measured on a bench.

Drive the winding from a stiff sinusoidal voltage, so the flux is a pure sinusoid of known amplitude, and integrate ∮v·i dt at the two terminals over a settled cycle. That number never touches a material variable: it is a voltage and a current at two wires, which is what an instrument sees. Then impose the same peak flux on the material directly and take ∮H dB around the loop it encloses. That number never touches a terminal.

At twenty millitesla the two agree to three parts in ten million. At fifty they agree to twelve parts in ten million, and at a hundred and twenty to thirty-one — the drift being the marching grid rather than the model, and moving the right way as the loop gets sharper.

The loop a circuit traces, drawn from the two terminal quantities alone. computed by solving, not by drawing. Neither axis here is a material variable. The field comes from the winding current through Ampère's law and the flux density from the integral of the winding voltage, so the whole loop is built out of what an oscilloscope on two wires can see. Over it is the loop the material encloses when the same peak flux is imposed on a bench. The areas are 2.8645 and 2.8640 joules per cubic metre per cycle — 0.018 per cent apart, from two integrals that share no arithmetic. The slider moves the flux the drive demands.
Fig. 5 The loop a circuit traces, with neither axis a material variable: the field from the winding current through Ampère’s law, the flux from the integral of the winding voltage. Over it, the loop the material encloses when the same peak flux is imposed on a bench. The areas differ by eighteen parts in a hundred thousand.

This is the same discipline the area a curve cannot have used when it measured one loss two ways inside the model, and it is a stronger version of it: there the two integrals shared a marched trajectory, and here they share nothing but the material constants.

The loop a circuit traces, drawn from the two terminal quantities alone. computed by solving, not by drawing. Neither axis here is a material variable. The field comes from the winding current through Ampère's law and the flux density from the integral of the winding voltage, so the whole loop is built out of what an oscilloscope on two wires can see. Over it is the loop the material encloses when the same peak flux is imposed on a bench. The areas are 6.0570 and 6.0560 joules per cubic metre per cycle — 0.016 per cent apart, from two integrals that share no arithmetic. The slider moves the flux the drive demands.
Fig. 6 The two integrals at a larger swing: 200 mT demanded, 199.8 mT reached, 6.0570 J/m³ counted at the terminals against 6.0560 in the material. They agree to two parts in ten thousand at four times the flux density of the figure above, which is what makes the agreement a check on the coupling between the circuit and the material rather than on either alone.

What the circuit sees that the bench did not

With a series resistance in front of it — a real source, rather than a stiff one — the comparison between the two cores becomes a comparison of two circuits, and the differences are not subtle.

Twenty-two and a half volts peak at five kilohertz through four ohms into sixty turns demands a hundred and twenty millitesla and reaches a hundred and nineteen point eight. The single-valued core draws fifty point one milliamperes at the peak. The hysteretic one draws fifty-nine point five — nineteen per cent more current for the same flux, because part of the field is spent on the branch rather than on the magnetisation.

Over a complete cycle the source delivers seventeen point two microjoules to the hysteretic winding and two and a half hundredths of a nanojoule to the single-valued one, which is zero to the resolution of the march. That is the whole of the difference between a core that can get warm and a core that cannot, priced in the only currency a power supply has.

The winding current a hysteretic core asks for, and the current the same circuit's single-valued core asks for. computed by solving, not by drawing. One netlist — a 37.7 volt peak sinusoid at 5.00 kHz through 4 ohms into a sixty-turn winding — marched twice, once with the core as a superposition of play operators and once with the single-valued saturating curve every earlier figure in this field used. The two currents differ in shape and not only in size: the hysteretic one leads the flux by an angle that is not ninety degrees, which is the whole of the core loss, and its peak is 100.80 milliamperes against 91.24. The energy the source delivers over a complete cycle is 36.34 microjoules for the loop and 9.8e-5 for the curve, which is zero to the resolution of the march. The slider takes the flux the drive demands from a twentieth of the material's saturation to most of it.
Fig. 7 And what the circuit sees at that swing: a peak magnetising current of 100.80 mA and 36.34 µJ a cycle. The bench measurement the loss data came from drives a sinusoid of flux; a converter drives a rectangle of voltage, and the current it draws is neither sinusoidal nor small. Every number on this page comes out of the second arrangement.

The gap, and how much of the current stops being history

Ampère around the path is N·i = le·H + lg·B/μ₀, and only the first term carries the material’s history. The second is a length and a flux density: single-valued, exactly linear, and completely indifferent to where the core has been.

So opening a gap moves a growing share of the winding current into a term with no memory in it. At half a millimetre most of the ampere-turns are the gap’s; at one millimetre it is ninety-six per cent, and the part has become an air-cored inductor with some iron in it to keep the flux together.

How much of a gapped core's current is geometry, and how much is history. computed by solving, not by drawing. Ampère around the path is N·i = le·H + lg·B/µ₀, and only the first term carries the material's history — the second is a length and a flux density and nothing else. So opening a gap moves a growing share of the winding current into a term that is single-valued and exactly linear, from nothing at zero to 96 per cent at one millimetre. The peak current rises from 59.45 to 1583.1 milliamperes across the same range, which is what the gap costs, and the loss per cubic metre moves by a factor of 1.07 because the material still traverses very nearly the same loop.
Fig. 8 The share of the peak ampere-turns the gap alone accounts for, against gap length. The peak current rises from fifty-nine milliamperes to one and a half amperes over the same range, which is what the gap costs, and the loss per cubic metre barely moves, because the material still traverses very nearly the same loop.

That last clause is the part worth carrying. A gap does not reduce core loss — the fourth rung of this ladder established that at fourteen figures on a bench — and now the circuit says it too, from a different direction: the loss density moves by seven per cent while the peak current moves by a factor of twenty-seven. The energy is in the gap priced the storage this buys; what the march adds is that the price is paid in current and the loss is not part of the transaction.

The defect that was in the solver and not in the element

The first run of this circuit reported a worst node-sum residual of two hundred and thirty-five milliamperes on a sixty-milliampere circuit. That is not a small error; it is the answer being wrong.

It was not the new element. The identical run with the single-valued core reported the identical residual, which is what said so — and is why both runs exist rather than only the interesting one.

The cause is the Newton damping. The march limits how far a device’s voltage may move in one iteration, and the default limit is a fifth of a volt, which was chosen for semiconductors — where a fifth of a volt is an enormous excursion, as a bias point is a solution spends its length establishing. The voltage across this winding has to travel twenty-two volts in the first step of the march, and at a fifth of a volt an iteration the sixty-iteration budget covers twelve of them. Sizing the limit from the drive takes the residual to nine parts in ten thousand billion and the worst iteration count to six.

What this does not yet let the field do

The element exists and it is verified, and there are three things it is one step away from rather than capable of.

It has no temperature. The loss is computed and nothing is done with it, which is the omission the next rung is about: a core’s dissipation raises its own temperature, its permeability and its saturation flux both move with temperature, and the loop that closes is a fixed point of the same shape the diode that conducts backwards solves for a junction.

It carries no eddy currents. The current inside the iron solves the diffusion inside a lamination and gets two exact exponents out of it; that solve is a frequency-domain statement about a sinusoid, and putting it into a march means a distributed state inside the sheet rather than one operator array at its surface.

And its operators are advanced once per step. They are rate-independent, so their state depends on the path the field took and not on how fast, and a step that jumps the field past a reversal lands them where a continuous traverse would only if the traverse is monotone inside the step. That holds for every waveform here at a sane step count, and the sub-stepping factor is exposed rather than assumed so the assumption can be tested.

Where this leaves the field

Five rungs of this ladder measured a material. This one puts the material in a circuit, and the two statements it makes are worth separating.

The modelling statement is that a state which is not a number can be threaded through an ordinary trapezoidal march without any new solver: one Newton loop per step, one snapshot per accepted step, one monotone scalar inversion per trial, and Kirchhoff’s current law rebuilt from the element laws and checked at every step of every run on this page.

The physical statement is smaller and sharper. A hysteretic core asks its source for nineteen per cent more current than the single-valued model predicts at the same flux, delivers seventeen microjoules a cycle to the material instead of nothing, and stops caring about either as soon as a gap takes the ampere-turns away from the iron. None of that is available from an inductance, because an inductance is a derivative at a point and this part does not have one — the same objection the capacitance that is not one number raises against a class II ceramic’s printed value, arrived at from the magnetic side.

Two inductances at one current made that last point on a bench, with two branch slopes at one bias that never converge. The circuit makes it again in the only place it costs anything: the current a supply has to find.

Twenty-four numbers the Newton loop must not touch

The construction that makes this work — state variables carried alongside the solve and forbidden to the iteration — is worth naming as a construction, because it is what separates a model with memory from a model with a complicated law.

Every other nonlinear element in this collection is handled by a bias point is a solution, not a choice’s recipe: replace the device by a conductance and a current source that agree with its own law at the present guess, solve, repeat. That works because the law is a function — one voltage, one current — so a guess can be improved. A play operator is not a function of the present field, so there is no law to linearise and nothing for Newton to converge on; what there is instead is a rule for updating the operator once the step’s field is known.

The diode that conducts backwards is the same construction in the transients field, arrived at independently: a junction that holds charge has one extra state variable, updated after the step rather than solved within it, and it produces a behaviour — 3.83 amperes backwards for 48 nanoseconds — that no refinement of an instantaneous law approaches.

The two together say what a state variable is for. It is not a more accurate parameter; it is the thing that makes the model’s answer depend on how it got here, and both essays measure a quantity that is identically zero without one.

Three parts in ten million, between two integrals

The circuit and the bench agreeing on the loss to three parts in ten million is the check this whole construction rests on, and its value is entirely in the two routes sharing nothing.

One integral is taken at the two wires — voltage times current, integrated over a cycle, which is what an instrument connected to the winding would report and which knows nothing about play operators. The other is taken inside the material — HdB\oint H\,dB over the locus, which is what the model is made of and which knows nothing about the circuit it is embedded in. A state variable updated in the wrong place, a locus traced in the wrong direction, or an operator updated before the step rather than after would satisfy one of those and not the other.

That is the same construction what a network answers sets up for a linear solve — a current law rebuilt from the element laws and an energy balance computed by a route that reads no resistance — and it is the answer to that essay’s own limitation, which is that neither of its two checks can see a coupling. A hysteretic core cannot be checked by either, and this pair is what replaced them.

Part 6 on magnetic loss

One argument about Magnetic loss, and one of 8 essays on it so far, each part numbered by how much of the idea it assumes. What sits either side of it:

What links here

Essays that reach for this one mid-argument — the half of a link its own author cannot write down.

The objects named here

The third axis, after the field and the idea: the things themselves, and every essay that touches each one.

Air gapB h loopCoreMagnetic lossMarchingNewton raphsonPlay operatorSaturationState vectorThreshold density