磁場磁鏈表 (magnetics.fieldFluxMap)
選單: 無(快速開啟、CLI、Python 與 MCP) · 執行方式: 背景工作,有進度與取消
預覽功能:在「編輯 › 偏好設定 › 模擬」開啟預覽功能,或執行
preview.set {"enabled":true}。回覆會帶有preview: true與說明。
以下參數與說明取自指令本身的定義,與 CLI、Python 及 MCP 讀到的文字相同,因此保留英文。
說明
Preview. Sweeps one winding's current through the model magnetics.fieldSolve meshes (planar, or an axisymmetric sketch's (r, z) section) and solves each point with the nonlinear Newton solve, the core on its catalogue B-H curve at the core temperature (N87, N97, 3C90 and 3C95 have data-sheet curves; another material stays linear, with a note), warm-started from the point before. Records every winding's flux linkage λ = d·Σ J/i·∫A dS (an axisymmetric sketch: λ = 2π·Σ J/i·∫ψ dr dz on the flux function ψ = r·A_φ, with no depth), so the driven winding's λ(i) is the saturating inductor's flux-linkage table and the other windings' the mutual one. With apply, an inductor gets l (dλ/di at zero current) and psiCurve; refsolve and fastsolve then follow the table's incremental inductance. A part that links no core also gets the design's core, material, turns and gap (a sketch cannot give them: link the core first). A part with bhCurve is refused (give one curve). With two or more windings each table row also has the incremental L/M matrix ∂λ_k/∂i_w, from the Newton Jacobian at that point (symmetric; its coupling coefficient is M/√(L1·L2)); with exactly two windings, apply writes a coupled inductor's l1, l2, k (at zero current) and coupledCurve (winding 1 = the driven winding, M the mean of the two mutual terms), and both solvers then follow the matrix at the magnetizing current i1 + n_e·i2 (n_e = √(L22/L11)). Into a transformer, apply writes coupledCurve and n = √(L11/L22) at zero current: the table becomes its whole magnetic model (magnetizing inductance, saturation and leakage; llk1, llk2, rw1, rw2 and rcore still add), its winding currents read i(T1.1) and i(T1.2), and a transformer that sets lm, isat, lmsat, im0, psiCurve, bhCurve or a core is refused (remove them first). With magnets the origin is solved too (the magnets' field alone), every row's inductance is the incremental dλ/di from the Newton Jacobian at that point and apparent is measured from the bias, (λ − λ(0))/i; on its recoil line a magnet's load does not depend on the current, so their bias shifts the saturation knee (by about B_r g/(μ0 μrec N) for a magnet in the gap, less with fringing). A biased λ(i) is not odd about zero current, so a biased sweep also runs −maxCurrent/points to −maxCurrent from the same bias (the table then runs from −maxCurrent, current rising, and the demagnetization check covers both sides), and its psiCurve is two-sided, from −maxCurrent through the bias point 0:λ(0) to maxCurrent; apply writes it and l (the incremental inductance at zero current) into an inductor, and both solvers follow its dλ/di on each side. With two windings its coupledCurve is two-sided the same way, from −maxCurrent through the bias row at 0 A to maxCurrent, and the coupled inductor or transformer that apply writes it into reads the matrix at the signed magnetizing current (so the side whose ampere-turns add to the magnets' flux saturates first). A magnet given its demagCurve is solved on that curve at every point: past its knee its load depends on the current, and each row's incremental inductance takes the curve's slope there from the Newton Jacobian. A job: progress counts the swept currents, and cancel stops before the next one.
參數
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, its magnets' direction [r, z] in the section; its cores stay linear at their muR)maxCurrent: A (the largest swept current, above zero)points: int=12 (swept currents, 2 to 40, evenly spaced from maxCurrent/points to maxCurrent; the origin is added)winding: str? (the circuit to drive; default the first)along: {circuit:number}? (the other windings carry this multiple of the swept current, -1000 to 1000, a winding left out none: {B:1} sweeps a coupled inductor's two legs together as their DC flows, so each row's incremental matrix is L and M at that bias; not with component, apply or magnets)temperatureC: number? (design only: core temperature for its B-H curve, -40 to 200; default the design's, else 25)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 Newton solve of the sweep, or, when the core is on a B-H curve (a design whose material has one), each sheet on that curve and the stack on its own curve along the sheets (H shared) and across them (B shared), so it saturates (laminations.md §8); model.laminations gives [{region,stackingFactor,normal,sheetMuR,muAlong,muAcross,bhCurve (the sheet's curve, or null for a linear stack)}])clearanceMm: number=0.1 (design only)elementMm: number? (as magnetics.fieldSolve)component: str? (the inductor, coupled inductor or transformer to write)apply: bool=false (an inductor: write l and psiCurve, and core, material, turns and gap when the part links no core; a coupled inductor: write l1, l2, k and coupledCurve; a transformer: write n and coupledCurve; in ONE history step)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))
回覆
- source
- result:{headline,values:[l0,lMax,maxCurrent]}
- table:[{current,fluxLinkage:[Wb per winding],inductance (dλ/di of the driven winding, H),apparent:[λ_k/i, H],incremental? (two or more windings: the incremental L/M matrix [k][w] = ∂λ_k/∂i_w at this point, H)}]
- reciprocity? (two or more windings: the largest |M_jk − M_kj|/|M| over the table)
- coupledCurve? (exactly two windings: i:L11:M:L22 rows, A and H, winding 1 the driven one; two-sided from −maxCurrent for a biased sweep)
- psiCurve (i:λ pairs of the driven winding, A and Wb; two-sided from −maxCurrent for a biased sweep)
- bias? (with magnets: λ(0) of every winding, Wb, the magnets' flux linkage at zero current)
- biased? (with magnets: whether λ(0) ≠ 0)
- magnets? (with magnets: each magnet's data and demagnetization check at the swept point with the most area past the knee, else the largest reverse field, as field.lineProfile gives them, plus atCurrentA)
- warnings? ([{code,message,messageZh,data,region}], the magnet warnings)
- windings
- driven
- along (each winding's multiple of the swept current)
- nonlinear
- material?
- temperatureC?
- model:{family,form (planar or axisymmetric),nodes,elements,elementMm,newtonSteps:[per point],residuals:[per point],solverVersion}
- apply:[edits]
- applied
- notes
- preview
- previewNote