# 磁場區域積分表 (`field.regionTable`)

[元件參考](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/) · [English](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/commands/field-regionTable/)

**選單:** 無（快速開啟、CLI、Python 與 MCP） · **執行方式:** 背景工作，有進度與取消

> 預覽功能：在「編輯 › 偏好設定 › 模擬」開啟預覽功能，或執行 `preview.set {"enabled":true}`。回覆會帶有 `preview: true` 與說明。

以下參數與說明取自指令本身的定義，與 CLI、Python 及 MCP 讀到的文字相同，因此保留英文。

## 說明

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.

## 參數

- `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)

## 回覆

- 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
