# Field Transient (`magnetics.fieldTransient`)

[Component reference](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/) · [繁體中文](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/commands/magnetics-fieldTransient/)

**Menu:** none (Quick Open, the CLI, Python and MCP) · **Runs as:** a job, with progress and Cancel

> Preview: turn on Preview features in Edit › Preferences › Simulation, or run `preview.set {"enabled":true}`. Its replies carry `preview: true` and a note.

## What it does

Preview. Solves σ ∂A/∂t − ∇·(ν∇A) = σu + J\_s on the planar mesh from A = 0 at t = 0: eddy currents in the conducting regions, each a solid conductor whose net current is its winding's (or zero), and the windings driven by current or by voltage. A design's core whose material has a catalogue B-H curve (N87, N97, 3C90, 3C95), or a sketch's cores given material, sit on that curve at the core temperature: every step is a Newton solve warm-started from the step before, so a drive past the knee gives the saturating i(t) and λ(t) (with no conductivity each step's λ(i) is the static magnetics.fieldFluxMap's); muR, linear:true or a material with no curve keeps the cores linear (a note says which), and a step whose Newton iteration does not converge is an error naming the core, its curve and the time. A jilesAtherton region starts demagnetized at t = 0 and follows its loop (one scalar model along x and one along y, or with rotational one vector model; the parameters are the scalar fit's either way, and the vector model is isotropic); it takes no B-H curve, and a coil side, a magnet or an open boundary's shell cannot take one. A voltage is the winding's terminal voltage over the model's depth (a planar model has no end turns). A job: cancel stops at the next step. Changes nothing.

## Parameters

- `sketch`: object? (a planar drawing in mm, the form magnetics.fieldSolve reads) or "design":object? (a magnetics.design reply or its best design, with "muR":number? and "clearanceMm":number=0.1 as in magnetics.fieldSolve)
- `elementMm`: number? (largest element in cores and coils, mm)
- `conductivity`: {region: S/m}? (regions with eddy currents, by label name; each is a solid conductor carrying no net current unless a solid winding drives it; take σ from the material's data sheet)
- `windings`: {circuit: {"drive":"current|voltage|solid"="current","waveform":{"step":value}|{"sine":{"amplitude","frequencyHz","phaseDeg"=0}}|{"table":\[\[t,value\]\],"stepMean":bool=false} (A, or V for a voltage drive; a step starts at t = 0; stepMean drives each step with the table's exact mean over it, its volt-seconds over Δt, so a switched PWM table keeps its edges and backward Euler integrates it exactly, where the default point sample at each step's end moves every edge by up to a step; the rows then show those means),"resistanceOhm":number? (voltage only: the whole winding's)}} (current: thin wire carrying the waveform; voltage: thin wire driven through v = R i + dλ/dt; solid: the circuit's coil regions are conductors in series, each needing a conductivity and ±1 turn, so skin and proximity effect follow; a circuit left out carries no current)
- `stepS`: number (Δt, s)
- `steps`: int (1 to 20000)
- `scheme`: "bdf2|euler"="bdf2" (BDF2 after a first backward-Euler step, or backward Euler throughout)
- `rows`: int=200 (output rows, evenly spaced over the run, 1 to 2000)
- `snapshots`: int=0 (field snapshots, 0 to 50: peak and mean element |B| at evenly spaced times)
- `snapshotTimes`: \[s\]? (#3069 N14: 1 to 50 times, each above 0 and at most steps·stepS, for snapshots at those instants besides the evenly spaced ones; each is taken at the nearest step, round(t/stepS), and two times on one step give one snapshot)
- `snapshotField`: bool=false (also return each snapshot's whole field, potentialWbPerM (nodal A\_z, Wb/m) and bT (\[Bx, By\] per element, T), with snapshotMesh once; refused past 5e6 numbers in all)
- `temperatureC`: number? (core temperature for the B-H curve, -40 to 200 °C; default the design's, else 25)
- `material`: str? (sketch only: the catalogue material of its core regions, which then saturate on its B-H curve)
- `linear`: bool=false (keep every core at its muR even when its material has a B-H curve)
- `jilesAtherton`: {region: {"ms","a","k" (A/m),"c" (0 ≤ c \< 1),"alpha" (≥ 0),"source":str,"rotational":bool=false}}? (magnetic regions, by label name, on the Jiles–Atherton hysteresis model instead of muR or a B-H curve: Ms, a, k, c and α fitted to a published loop, with source naming the paper or data sheet and its table; never guess them, ask; rotational: one isotropic vector model per element driven by B, so a flux that turns, as at a ring's corners or a T-joint, follows rotational hysteresis, instead of one scalar model along x and one along y)
- `laminations`: object? (#3069, as magnetics.fieldSolve takes it: magnetic region name to {stackingFactor:number (above 0, at most 1),normal:"x"|"y"}, up to 64: the region is a stack of sheets, linear at μ along the sheets F·μr + (1 − F) and across them 1/(F/μr + 1 − F) in every step, or, when the cores sit on a B-H curve (a design's material or a sketch's material), each sheet on that curve and the stack on its own curve along the sheets (H shared, B = F·B\_sheet(H) + (1 − F)·μ0·H) and across them (B shared, H = F·H\_sheet(B) + (1 − F)·B/μ0), so it saturates (laminations.md §8); refused on a region given a conductivity (eddy currents inside the sheets: draw the sheets, or use the 3D transient's conductivityStack) or a jilesAtherton loop; model.laminations gives \[{region,stackingFactor,normal,sheetMuR,muAlong,muAcross,bhCurve (the sheet's curve, or null for a linear stack)}\], else null)
- `magnets`: \[{region,direction,temperatureC,grade,demagCurve?}\]? (#3069: permanent magnets in the drawing, each region a magnet as field.regionTable reads them: grade from its data sheet, on its recoil line B = μ0 μrec H + Br at temperatureC; with demagCurve (\[\[H, B\]\] A/m and T from the same sheet at that temperature, 2 to 200 points from \[0, Br\] through the knee, its Br within 1 % of the grade's) every time step is a Newton solve on the curve, a reverse field along the magnetization following it through the knee and a forward or crosswise one the recoil line, reversibly (no recoil from the lowest point reached); a magnet takes no core curve, jilesAtherton loop or lamination, may take a conductivity (eddy currents in the magnet), and is not a core for the core loss)
- `skinLayers`: {region: n}? (#3069 N5: conducting region name to n, 1 to 20, e.g. {"plate":3}: n mesh layers under the region's surface, together 2 skin depths deep at skinFrequencyHz (its own conductivity and muR), each twice as thick as the one outside it (the first 2δ/(2ⁿ − 1)), so a conductor many skin depths thick is resolved without refining its whole inside; every label of that name that conductivity gives a conductivity above 0, others refused)
- `skinFrequencyHz`: number? (with skinLayers only: the frequency, Hz, above 0 and at most 1e9, whose skin depth sizes the layers; default the highest frequency of the sine drives, and required without one: for a switched drive, the highest harmonic that matters)
- `periodS`: number? (#3069 N9: the drive's period, s, at least 4 steps, for steadyState; default 1/f when every sine drive has the same frequency f and no winding has a step or table drive; give it for a periodic table such as a PWM's switching period)
- `steadyTolerance`: number=1e-3 (above 0, below 1: the relative residual under which a period repeats the one before it)
- `dimension`: int=2 (#3069: 3 steps the 3D model magnetics.fieldSolve {dimension: 3, mode: "harmonic"} builds instead: an import, a design with endTurns (the wound E core's eighth), a ring-core design revolved, or an extrusion with layers and stepDeg; eddy currents in conductivity's regions, with conductivityStack's laminations, each winding a stranded coil carrying its current waveform (drive current only), steps 1 to 2000; a conductivity in an extrusion is refused (its conductors run to the end faces, which the 3D transient cannot yet hold at zero net current), and the 2D-only keys (material, linear, temperatureC, jilesAtherton, laminations, skinLayers, skinFrequencyHz, periodS, steadyTolerance) are refused, while snapshots, snapshotTimes and snapshotField are read as in 2D; the reply is then {rows:\[{timeS,currentA:{circuit},fluxLinkageWb:{circuit},voltageV:{circuit} (dλ/dt, no copper drop),eddyLossW,regionLossW:{region},energyJ,iterations}\],final,meanEddyLossW,snapshots:\[{timeS,step,peakBT,meanBT,bT?}\] (peak and mean element |B| of the meshed part, in time order; with snapshotField bT, \[Bx, By, Bz\] per tetrahedron, T, refused past 5e6 numbers in all),snapshotMesh:{nodes (m),tets,elementRegions,regions:\[{name,muR,conductivitySPerM}\],symmetry (the images that make the meshed part the whole model)}? (snapshotField only),conductors:\[{region,conductivity}\],model:{family,construction,nodes,elements,freeEdges,symmetry,stepS,steps,scheme,maxIterations,memoryEstimateBytes,solverVersion},warnings,memory,notes,fieldCache}, every value the whole model's)

## Reply

- nonlinear
- material
- temperatureC
- rows:\[{timeS,currentA:{circuit},voltageV:{circuit},fluxLinkageWb:{circuit},apparentInductanceH:{circuit: λ/i | null},incrementalInductanceH:{circuit: Δλ/Δi over the time step ending at the row | null (the first step)},eddyLossW,copperLossW}\] (an inductance is null where its current, or the current's change, is at most 1e-6 of the winding's peak; with several windings driven, λ includes their mutual flux, so λ/i is not the self-inductance alone)
- steadyState:{periodS,tolerance,cycles (whole periods run),reached (the last whole period repeats the one before within tolerance),residual (the last one's),settledPeriod (the first period, from 2, that repeats the one before)|null,periodicFromS (where that one before starts)|null,residuals:\[{period,startS,residual}\] (max over the period's steps of |x(t) − x(t − T)| over max |x|, for every winding's current and flux linkage),lastPeriod:{eddyLossW,copperLossW (averaged over the last period: the losses the circuit loop takes once reached is true),rmsCurrentA:{circuit},coreLoss:{totalLossW,totalLossIgseW,fromS,toS,coreVolumeM3,bP99T,peakBT,saturationT,warnings:\[{message,messageZh}\],provenance:{solverVersion,inputHash}}|null (#3069 N9: a core on its catalogue B-H curve, or kept linear at its muR (a material with no B-H curve, or a design with linear or muR, which takes the design's material), not jilesAtherton: the iGSE of the material's Steinmetz data, with its DC-bias correction where the data exist, on each core element's own B(t) over the last period, eddy currents and saturation (on a curve) included, over the model's depth; null, with a note, when periodS is not a whole number of stepS, the run is not longer than one period, the material has no Steinmetz data, or a sketch names no material)}}|null (no period: a step drive, a table without periodS, or sines of several frequencies)
- snapshots:\[{timeS,step (the step it ends, from 1),peakBT,meanBT,potentialWbPerM?,bT?}\] (in time order)
- snapshotMesh:{nodes (m),triangles,elementRegions,regions:\[{name,muR,conductivitySPerM}\],fixed (nodes held at A = 0)}? (snapshotField only)
- final:{currentA,voltageV,fluxLinkageWb,eddyLossW}
- meanEddyLossW (over the last fifth of the run)
- model:{family,nodes,elements,elementMm,stepS,steps,scheme,maxNewtonSteps,solverVersion,skinLayers:{frequencyHz,regions:\[{region,layers,depthMm,firstMm}\]}|null,laminations}
- hysteresis:{cores:\[{region,source,ms,a,k,c,alpha,rotational}\],rows:\[{timeS,cores:{region:{hAPerM:\[x,y\],bT:\[x,y\],workJ}}}\] (the rows' times),final:{region:{hAPerM,bT,workJ}}}? (with jilesAtherton only: each core's area-weighted mean H and B per axis (over the whole region, so a ring's opposite legs cancel: label each leg as its own region to read its flux), and the work ∫H·dB dV done on it since t = 0, over the model's depth; over a closed cycle of the drive the work is the core's hysteresis loss per cycle)
- magnets:\[{region,name,grade,source,temperatureC,brT,hcjAPerM,hkAPerM,recoilMuR,direction,demagCurve:{points,brT}|null,areaMm2,pastKnee,sharePastKneePct,elementsPastKnee,worstReverseAPerM,worstElement,worstAtMm}\] (each magnet's demagnetization check on the last step's field: its worst reverse field along the magnetization against the sheet's knee H\_k; empty without magnets)
- warnings:\[{code,message,messageZh,data}\] (planarModel with the depth in m; linearMaterial for each magnetic region kept at its muR, but an open boundary's shells; outsideMaterialData for a core whose peak |B|, at the end or at a snapshot, is past the last point of its B-H curve)
- notes
- preview
- previewNote
