Voltecx is in beta. The macOS build comes first; Windows and Linux packages are still being tested.Beta. macOS comes first; Windows and Linux are still in testing. What's new
Documentation

Field-Check Designs (magnetics.fieldCheck)

Component reference · 繁體中文

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. Field-checks the top candidates of a magnetics.design reply and ranks them again: each candidate is solved with Voltecx's own 2D field solver on the drawing magnetics.fieldSolve solves (linear, the core at the candidate's muRPeak, 1 A in the primary alone), giving its field L and the core's peak flux at the design's peak current ipkA (the area-weighted 99th percentile of |B| in the core, the saturation rule of the field reports, times ipkA). A candidate passes when that flux is at most its saturation flux at the hottest corner (bSatHotT; the field rule of magnetics.fieldCoreLoss, without the design's bsatMargin, which is a margin on the analytic mean flux), and, with lTolerance, when its field L is within that fraction of the design's. Ranked: the passing candidates first, then the least total loss (the design's core and copper loss), then the smallest |lError|, then the design's own order. The planar model leaves out the end turns, so lField reads low by their share (magnetics.fieldSolve dimension 3 with endTurns adds them). A job: progress counts the candidates solved, and cancel stops within one iteration. Candidates from a reply made before magnetics.design reported ipkA are refused with that said.

Parameters

  • design: object (a magnetics.design reply, with its candidates)
  • top: int=3 (check the first 1 to 10 candidates, in the design's order)
  • elementMm: number? (largest element in the core and the windings, 0.01 to 50 mm, as magnetics.fieldSolve takes it)
  • clearanceMm: number=0.1 (space between drawn regions)
  • lTolerance: number? (0 to 1: a candidate whose field L is off the design's l by more than this fraction fails; default no L limit, the error is only reported)
  • ignoreMemoryCheck: bool=false

Reply

  • checked
  • candidates:[{rank,designRank,core,shape,material,turns,gapMm,wire,parallel,lDesign (H),lField (H, from the field energy),lError (lField/lDesign − 1),ipkA,bPeakDesignT,bPerAmpT (the core's area-weighted 99th-percentile |B| at 1 A),bPeakFieldT (bPerAmpT × ipkA),bSatHotT,saturation (bPeakFieldT/bSatHotT),coreLossW,copperLossW,totalLossW,temperatureC,pass,fails:[saturation|inductance],model:{nodes,elements,minAngleDeg,residual,inputHash,solverVersion}}]
  • best (the first passing row, or null)
  • lTolerance
  • rankedBy
  • notes
  • preview
  • previewNote