以磁場核驗設計 (magnetics.fieldCheck)
選單: 無(快速開啟、CLI、Python 與 MCP) · 執行方式: 背景工作,有進度與取消
預覽功能:在「編輯 › 偏好設定 › 模擬」開啟預覽功能,或執行
preview.set {"enabled":true}。回覆會帶有preview: true與說明。
以下參數與說明取自指令本身的定義,與 CLI、Python 及 MCP 讀到的文字相同,因此保留英文。
說明
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.
參數
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
回覆
- 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