Field Core Loss (magnetics.fieldCoreLoss)
Menu: Design › Field Solver › Core Loss from Last Run · 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 carrypreview: trueand a note.
What it does
Preview. Core loss from the field: the model magnetics.fieldSolve meshes, driven by one period of winding current, B(t) on every core element: when the material has a data-sheet B-H curve (N87, N97, 3C90 and 3C95) a nonlinear Newton solve at every time point on the curve at the temperature, warm-started from the point before; otherwise, or with linear, one solve per winding at 1 A scaled by the currents; then the iGSE per element with the material's Steinmetz data at the waveform's fundamental and the temperature, summed over the core's volume (the planar slice as deep as the core). The map lists every core element as [xMm, yMm, areaMm2, W/m³]. In 2D, model.provenance names the loss solve's solver version and a hash of its input (fnv1a64 of the model, the windings, the core regions, the depth, the waveform, the material's loss data, temperature and saturation, and with field the reference solves the loss is scaled from), so a stored result can be checked against a fresh one: the same call gives the same hash. Saturation: the core's 99th percentile of element |B| by area (bP99: per core region the |B| below which 99 % of its area lies, the largest region's; by volume in 3D) is checked against the material's saturation flux density at the temperature, the peak reported beside it; a peak on a corner of the drawing, where the linear field is singular, gets a cornerPeak warning. In 2D on a B-H curve, a bP99 at or above 0.9 of the saturation flux density gets a warning that the planar model under-represents the flux spreading through a real core's depth near saturation (8.3 % off the 3D loss for the E 25/13/7 buck at full load, 0.5 % at half load) and suggests dimension: 3. An inductor design whose winding current peaks above bsatMargin·isat (the limit magnetics.design held it to) gets a warning naming both currents, in 2D and 3D: the design was made for a smaller current, and its core saturates at this one. With field and a B-H curve, the field view's potentials are the linear solves at 1 A (the loss map is the nonlinear one). A job: cancel stops before the loss is computed. With magnets the magnets are solved once with no current and their field is added at every time point (on a B-H curve every time point is solved with the magnets in place): the core's DC bias, which the iGSE takes as DC premagnetization (dcBias, totalLossIgseW and the DC-bias warnings as for a DC current); a magnet region is not core and takes no B-H curve. In 3D a magnet is its region's body through the depth, magnetized in the drawing's plane, and the extrusion keeps its half through the depth but is never quartered; a ring design takes no magnets in 3D. B-H tables and more than two circuits are refused. An axisymmetric sketch (2D only) takes each element's loss over its ring 2π r̄ |Δ|, so the loss and coreVolume are the whole core's, and reports model.form axisymmetric (planar otherwise); with magnets their direction is [r, z]; field is refused. With dimension 3 the reply adds dimension:3 and provenance:{solverVersion,inputHash} (a hash of the 3D mesh, the fields, the waveform and the material), coordinates gain z (peak, hottest and dcBias give atMm:[x,y,z] instead of xMm,yMm; bMean and bPeak add bz; the map's columns are [xMm,yMm,zMm,volumeMm3,lossDensity], one row per core tetrahedron of the meshed part (with model.symmetry 2 the half z ≥ 0, whose rows sum to half the total; with 4 the quarter x ≥ 0, z ≥ 0, a quarter); coreVolume is the 3D core's; regions, p99 and bP99 are over tetrahedra, weighted by volume where 2D weighs by area, and no peak is at a sketch corner), and model is the 3D one (construction extruded|revolved|wound, layers, nodes, elements and coreElements in tetrahedra, edges, freeEdges, iterations and residual per winding, estimatedPeakMemoryBytes, provenance per winding's solve); field is magnetics.fieldSolve's 3D field (nodes, tetrahedra, elementRegions, regions, circuits, b per winding at 1 A) with lossDensity per tetrahedron, peakCurrents, peakTimeS and waveform. B(t) comes from one 3D solve per winding at 1 A, scaled by the currents, or, for a core whose material has a data-sheet B-H curve (without linear), from a 3D Newton solve on the curve at every time point with every winding at its current, warm-started from the two points before (extrapolated along the currents) or the point before, and a waveform whose every current is half-wave symmetric, i(t+T/2) = -i(t) at the points, solved on its first half period only (nonlinear:true; model adds newton:{tolerance,maxSteps,cgTolerance} and steps:[{step,timeS,start (cold|warm|extrapolated (from the two points before, along the currents)|coldAfterWarm|ramped (the cold start failed too; the currents ramped to the point in 4 stages from the point before)|halfWave|repeated (the point's currents are an earlier point's, bit for bit: it takes that point's B and is not solved again)),warmStartError (why the warm start, and for ramped the cold one, failed),mirrorsStep (halfWave: the step half a period before whose B, sign changed, this one takes),repeatsStep (repeated: the earlier step whose B this one takes),newtonSteps,cgIterations,residual}] (with method incremental only the two check steps), method (scaled|perStep|incremental), provenance solver names the Newton drive; with method incremental the reply adds incremental:{dcCurrents:[A],dcNewtonSteps,dcResidual,inductanceH:[[H]] (the incremental inductance matrix at the DC point),checkSteps,bError,swingError,lossError (fractions: the expansion against the full solve at the ripple's extremes; lossError is the loss its swing error gives by the iGSE's ΔB^β scaling),limit (0.01)} and an incrementalError warning when lossError is above limit, and with field the field view's B is the linear solve at 1 A).. The 3D model past the node or element limit, or whose memory estimate (the solve and the per-tetrahedron loss) is past 60 % of the memory available (unless ignoreMemoryCheck), is refused before it is built; progress counts the windings solved (or the time points solved on a curve) and the loss, and cancel stops the 3D solve within a second.
Parameters
design: object? (a magnetics.design reply, or its best design)network: {"windings":[str] (every winding element of a core drawn in the circuit as a magnetic network, its reluctances, leakage paths and flux probes),"core":{"shape":str,"material":str,"wire":str (catalogue names),"parallel":int=1,"core":str?,"stacks":int?,"gapOuterMm":number?,"gapCentreMm":number? (as a design takes them)}}? (instead of design or sketch, not with component or apply: the windings one flux runs through in series are one leg, their turns summed, and the two legs are the windings A and B of the outer-legs design of the core (layout outerLegs), the leg of the first winding named being A; the reply adds network:{legs:[{circuit,windings,turns,totalTurns}],reversed (leg B's current is turned round to match the template's sense),network:{l1,l2,m,k} (from the network's reluctances),field?:{l1,l2,m,k},difference?:{l1,l2,m,k} ((field − network)/|network|, M in the network's sense)})sketch: object? (instead of design: the planar drawing magnetics.fieldSolve takes, or an axisymmetric (r, z) section, axisymmetric: true with no depthMm, revolved a full turn about x = 0, as magnetics.fieldFluxMap takes it: each element's loss is its density times the ring it sweeps, 2π r̄ |Δ|, with no depth; 2D only, without field; its muR labels are the core)muR: number? (design only, as magnetics.fieldSolve)clearanceMm: number=0.1 (design only)elementMm: number? (as magnetics.fieldSolve)legZones: {"centreHalfWidthMm","windowHalfWidthMm","windowTopMm"}? (planar sketch only, 2D: where its E set's legs lie, the set centred on the origin as a design is drawn: the centre leg within centreHalfWidthMm of x = 0, the outer legs beyond windowHalfWidthMm, the yokes beyond ±windowTopMm; each > 0 mm, centre below window; the reply's legs then names them as for a design)material: str? (sketch only, required there: the catalogue material of the core regions; a design uses its own)temperatureC: number? (core temperature, -55 to 250 °C; default the design's, else 25)waveform: object? ({t:[s], i:[[A] one list per circuit, in the order magnetics.fieldSolve reports the circuits]}: one period, the last point starting the next one)signals: [str|null|[[str,number]]]? (instead of waveform: one current signal per circuit from the last run, such as "i(L1)", null for a winding that carries no current, or a list of 1 to 64 [signal, weight] pairs summed (weights finite, at most 1e6); with network the default is each leg's windings' currents weighted by their share of its turns; a new run when the result is missing or stale)t0: s? (signals: the period's start; default t1 - 1/fsw)t1: s? (signals: the period's end; default the end of the run)fsw: Hz? (signals: the period is 1/fsw; default the circuit's PWM frequency)tEnd: s? (signals: run the circuit to tEnd first)points: int=200 (signals: the period resampled to this many intervals, 4 to 10000)map: bool=true (return the loss-density map)field: bool=false (also return the solved field for a field view: what magnetics.fieldSolve's field holds, with lossDensity [W/m³ per element, 0 outside the core] peakCurrents [A per circuit at the instant of the peak |B|], peakTimeS and waveform {t, i} [the period's currents, for field.exportImage {at}])dimension: int=2 (2 or 3; 3 builds the 3D model magnetics.fieldSolve builds with dimension 3, a sketch or an E-core design extruded straight through its depth or a ring design revolved, and computes the loss per tetrahedron)layers: int? (dimension 3, extruded: element layers through the depth, 1 to 64; default 8; an even count meshes only the half z ≥ 0, the middle plane being a symmetry plane no flux crosses, and doubles the totals: model.symmetry 2; when the section is also antisymmetric about x = 0 (every region mirrored by one of the same material, coils by the same circuit with opposite turns), only the quarter x ≥ 0, z ≥ 0: model.symmetry 4; with field the reply's field and lossDensity are the whole extrusion reflected from the half or quarter, the meshed part's elements first)endTurns: bool=false (dimension 3, an E or planar E design with one or two round or litz windings on the centre leg: the wound model magnetics.fieldSolve builds with endTurns, each winding wound around the leg as a bobbin with its end turns, one eighth of the core meshed (x, y, z ≥ 0); the loss, coreVolume and incremental's inductance are the whole core's, eight times the eighth's, model.construction is wound and model.symmetry 8, the map lists the eighth's core tetrahedra, and field is the whole core reflected from the eighth; on the core's B-H curve unless linear:true; not with sketch, layers or magnets)ignoreMemoryCheck: bool=false (dimension 3: solve even when the memory estimate is past the limit)lossPoints: [{"frequencyHz":Hz,"bPeakT":T,"loss":number (in lossUnit),"temperatureC":number? (on every point or on none)}]? (3 to 1000: your own tabulated core-loss curves, Pv against the sine's peak B at two or more frequencies, read off the data sheet's loss curves or measured, as the loss model instead of the catalogue's Steinmetz data: with tables at several temperatures, a core between two of them takes the two tables' laws interpolated with ln Pv linear in temperature (the two tables at the same frequencies), outside their span the nearest table as it is; one Steinmetz law fitted between each two neighbouring frequencies to their points, the iGSE taking the one that holds the fundamental (the nearest outside the table); no DC-bias correction; the reply adds lossPoints:{points,given,lossUnit,temperatureC,interpolatedC:[lo,hi]?,weight?,frequencyHz:[min,max],ranges:[{fMinHz,fMaxHz,k,alpha,beta,points,rmsLnError}]} and a note; refused when a pair of neighbouring frequencies gives no law)lossUnit: "W/m3|kW/m3|mW/cm3"="W/m3" (of lossPoints)linear: bool=false (keep the core linear at its muR even when the material has a data-sheet B-H curve, in 2D and 3D)method: str="perStep" (dimension 3, on a B-H curve: perStep solves the curve at every time point; incremental solves it once at the period's mean currents and adds the ripple on the incremental field there (the first-order expansion, for a ripple small against its DC level, as in a buck inductor), with full solves at the ripple's two extremes as its error estimate; refused without a curve or with linear)magnets: [{region:str (the name of a region of the drawing that is not a coil; with a design, \"centre-leg gap\" draws the centre leg's gap as its own region, a slot the magnet fills, refused for a ring or a gapless design),direction:[x,y] (the magnetization direction, any length; [r, z] in an axisymmetric section),temperatureC:number,grade:str (a built-in grade: Arnold N35, Arnold N42, Arnold N42H or Arnold N42UH, sintered NdFeB, each from its Arnold Magnetic Technologies data sheet) | {name:str,source:str (the data sheet the values come from: document, revision, table),recoilMuR:number (≥ 1),points:[{temperatureC,brT (remanence),hcjAPerM (intrinsic coercivity),hkAPerM (knee field, H_k ≤ H_cJ)}] (1 to 64, rising temperature)}}]? (permanent magnets, at most 64: each region becomes a magnet on its recoil line B = μ0 μrec H + Br at the temperature, Br, H_cJ and H_k linear between the sheet's points and the nearest point outside them with an outsideMaterialData warning; any other grade's values are the caller's, and the grade must name its sheet; demagCurve:[[H,B]]? (field.lineProfile, field.regionTable, magnetics.fieldFluxMap, magnetics.fieldSolve {dimension: 3} and field.force {dimension: 3} only, every other command refuses it: the grade's normal demagnetization curve at temperatureC from the same data sheet, A/m and T, 2 to 200 points from [0, Br] with H and B both falling through the knee, its Br within 1 % of the grade's; the magnet is then solved by Newton's method on it, a reverse field along the magnetization on the curve and a forward or crosswise one on the recoil line, reversibly, with Br from the curve))
Reply
- source
- nonlinear (the core was solved on its B-H curve)
- magnets? (with magnets: each magnet's data and demagnetization check, as field.lineProfile gives them, at the worst of the time points where a winding's current is largest and smallest, with atTimeS and atCurrentsA; in 3D by volume: volumeMm3 (the whole model's) for areaMm2, direction [x,y,0] and worstAtMm [x,y,z])
- magnetWarnings? ([{code,message,messageZh,data,region}], the magnet warnings; their sentences are in warnings too)
- result:{values}
- totalLossW
- totalLossIgseW (the plain iGSE total; equal to totalLossW unless the material's DC-bias data corrected it: N87 and 3C90 carry Steinmetz Premagnetization Graphs fitted from the Princeton MagNet measurements, the table measured nearest the temperature; a dcBiasNotCovered warning when the material has none or the most biased element is outside the measured H_dc, frequency, flux amplitude or temperature)
- dcBias:{element,xMm,yMm,hDc [A/m, the period mean of H],fluxDc [T, the period mean of B],corrected} (the core element with the largest DC premagnetization)
- coreVolume
- meanLossDensity
- frequency
- peak:{b,timeS,element,xMm,yMm}
- p99 (T: the largest core region's 99th percentile by element count, the element at index ⌊0.99 n⌋ of the ascending list; it moves with the mesh, kept for compatibility)
- bP99 (T: the same percentile by area, each element's peak |B| over the period weighted by its area, the largest of the core regions: it does not lean towards the small elements the mesh crowds into corners; what the saturation check reads and the Field Core Loss window shows)
- regions:[{region,name,elements,p99BT (by count),bP99BT (by area),meanBT,peakBT,peakElement,peakAtCorner}] (per core region, each element's peak |B| over the period)
- legs:[{leg (centre|left|right|top|bottom: the yokes),elements,areaMm2,meanBT (by area),bP99BT (by area),peakBT}]|null (a design's E, ETD, EFD or RM set in 2D: per leg, over the core elements whose centroid lies in it, each element's peak |B| over the period; a leg's mean is the flux density a reluctance model gives it, which the corners do not move; for a planar sketch with legZones the same over the zones it gives; null for a sketch without them or a ring core; not in a 3D reply)
- saturation
- hottest:{element,xMm,yMm,lossDensity}
- bMean:{t,bx,by} (the area-weighted mean vector over the core, which cancels where the flux returns through other legs)
- bAbsMean:[T] (the area-weighted mean |B| over the core at each time point)
- bPeak:{t,bx,by} (B(t) of the element with the peak |B|)
- waveform:{source,signals,t0,t1,points}
- material:{name,temperatureC}
- model:{family,circuits,turns,form (planar|axisymmetric),depthMm,gapMm,muR,elementMm,nodes,elements,coreElements,solverVersion,provenance:{solverVersion,inputHash}}
- map:{columns,elements}?
- field?
- warnings
- notes
- preview
- previewNote