# 三維靜電場 (`field.electrostatic3d`)

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

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

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

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

## 說明

Preview. Solves −∇·(ε∇V) = 0 on the bodies meshed on a lattice with Voltecx's own 3D electrostatic solver, one solve per conductor at 1 V with the others at 0 V, and gives the Maxwell capacitance matrix two ways (from the conductor charges and from the field energy, which agree to the solver tolerance). A face that does not lie on a lattice plane is cut through the cells, so curved faces are less accurate than flat ones. With component, each pair of windings gets one capacitor CIW\<n\> between their starts (p1 and p2) at its interwindingF, which the EMI commands then measure; a winding modelled as one body has no self-capacitance, so none goes across a winding; the part is checked before any solve. A job: progress counts the solves, and cancel stops before the next. Without component it changes nothing.

## 參數

- `import`: {path:str (an STL, STEP or IGES file, read as magnetics.fieldSolve's import reads it),unitMm:number? (mm per file unit: 1 by default for STL; a STEP or IGES file states its own),bodies:\[{name?:str, conductor:str (a conductor, meshed as metal; bodies with one conductor name are one conductor) | epsR:number (a dielectric, 1e-3 to 1e5)}\] (each solid of the file, in its order),boxMm?:{lo:\[x,y,z\],hi:\[x,y,z\]} (the box of air round the bodies, εr 1, its sides the ground at 0 V; no conductor may touch them; default the bodies' bounds grown by half their largest extent on every side)}
- `elementMm`: number? (largest cell side, 0.01 to 50 mm; default a twentieth of the box's largest side)
- `voltagesV`: {\<conductor\>:V}? (the conductors' voltages for fieldStress, each 0 V when not named)
- `strengthKVPerMm`: {\<dielectric body or air\>:kV/mm}? (needs voltagesV: each material's dielectric strength from its data sheet, none assumed)
- `windings`: \[str\]? (the conductors that are a part's windings, in the order of its pins, each modelled as one body with its turns joined)
- `component`: str? (needs windings: the coupled inductor, common-mode choke or transformer (p1–n1, p2–n2) whose windings they are; the interwinding capacitor goes into the circuit as a pending proposal)
- `apply`: bool=false (with component: add it at once, in ONE history step, instead of a proposal)
- `ignoreMemoryCheck`: bool=false

## 回覆

- conductors:\[{name,bodies:\[str\]}\]
- matrix:{names,byChargeF:\[\[F\]\],byEnergyF:\[\[F\]\],twoWaysRelative} (the Maxwell matrix, the ground the reference)
- fieldStress?:\[{body,peakVPerM,element,atMm:\[x,y,z\],strengthVPerM?,margin?}\] (with voltagesV: the largest |E| in each dielectric body and the air, the mean over the tetrahedron it is in, and where (that tetrahedron's centroid, mm); with a strength, margin = strength / peak)
- hotSpot?:{body,peakVPerM,atMm,margin?} (with voltagesV: the row with the least margin, or the largest |E| when no strength is given)
- windings?:\[str\]
- interwindingF?:\[\[F\]\] (with windings: between two windings with every other conductor and the ground floating; 0 on the diagonal)
- capacitors?:\[{part,kind:interwinding,between,component,nets,cF}\] (with component: the parts planned)
- apply?
- proposal?|applied?
- model:{construction:"imported",elementMm,nodes,elements,dihedralDeg:\[min,max\],solves,iterations,solverVersion}
- notes
- preview
- previewNote
