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 Region Table (field.regionTable)

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. Solves the model as magnetics.fieldSolve meshes it (magnetostatic, linear materials) with the currents given, all at once, and integrates over each region (one per label, in label order): its meshed area, the current through it (turns × amperes), the mean vector potential (a one-turn coil side's flux linkage per metre), the stored energy ½∫B·H through the model's depth (in a magnet ½μ|H|², its energy on the recoil line from the remanent state H = 0) and the co-energy ∫B·dH (equal to the energy in a linear region; ½μ|H|² + Br·H in a magnet), the Lorentz force on its current, and the peak |J×B| and |B| on one element, with the 99th percentile by area (bP99BT: the |B| below which 99 % of the region's area lies, the rule the saturation check and the corner warning read), the 99th percentile by element count (p99BT: the element at index ⌊0.99 n⌋ of the ascending list, which moves with the mesh) and the area-weighted mean of element |B| beside it and whether that peak is on a corner of the drawing (a singularity of the field that grows as the mesh is refined). With no magnet the energies add up to ½ Σ L I² of the windings; energy plus co-energy over the model is always the current term ∫J·A dV. The CSV is in SI units. Changes nothing.

Parameters

  • design: object? (a magnetics.design reply, or its best design)
  • sketch: object? (instead of design: the planar drawing magnetics.fieldSolve takes, in mm; field.lineProfile, field.regionTable and field.calculator also take an axisymmetric (r, z) section, axisymmetric: true with no depthMm, revolved a full turn, its magnets' direction [r, z] in the section)
  • muR: number? (design only)
  • clearanceMm: number=0.1 (design only)
  • elementMm: number? (largest element in the core and the windings, 0.01 to 50 mm)
  • currents: object? ({circuit: amperes}; default 1 A in every circuit; a circuit left out carries none)
  • 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))
  • csvPath: str? (the .csv file to write, through the host's file service)

Reply

  • currents
  • rows:[{region,name,areaMm2,currentA,meanAWbPerM,energyJ,coenergyJ,forceN:[x,y],peakForceDensityNPerM3,peakBT,p99BT,bP99BT,meanBT,peakAtCorner}]
  • energyJ
  • coenergyJ
  • csv
  • path
  • written
  • model
  • warnings?:[{code,message,messageZh,data}] (cornerPeak for a core region whose peak is on a corner; left out when there is none)
  • notes
  • preview
  • previewNote