# Winding Capacitance (`field.windingCapacitance`)

[Component reference](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/) · [繁體中文](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/commands/field-windingCapacitance/)

**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 −∇·(ε∇V) = 0 on an automatic mesh of the drawing with Voltecx's own 2D electrostatic solver, one solve per terminal 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). With windings, the energy method with a linear voltage along each winding (turn k of N at (k − ½)/N of the way from start to end) reduces it to the winding ends, then to each winding's self-capacitance and the interwinding capacitance. Planar values are for the depth given (the end turns are not in a 2D section); axisymmetric ones for the full revolution. With component, each winding of more than one turn gets a parallel capacitor CW\<n\> across its pins at its selfCapacitanceF, and each pair of windings one capacitor CIW\<n\> between their starts (p1 and p2) at its interwindingF (the capacitance with each winding's ends joined, which one capacitor between any pin of each reproduces); the part is checked before any solve. A job: progress counts the solves, and cancel stops before the next. Without component it changes nothing.

## Parameters

- `sketch`: object (a drawing in mm as magnetics.fieldSolve takes it, planar {depthMm, …} or {axisymmetric:true, …} about x = 0 (the axis is a line of symmetry, not ground), with electrostatic labels: \[{name?, at:\[x,y\], maxSizeMm?, winding:str + turn:int (turn 1 at the winding's start; a turn drawn twice, as its go and return sides, gives both labels the same winding and turn) | conductor:str (a core, screen or other conductor; labels with one name are one conductor), floating:bool=false (conductor only: left floating with no net charge instead of a terminal) | epsR:number (a dielectric, 1e-3 to 1e5) | none of these (air, εr 1)}\]; the outer boundary of the drawing is the ground, 0 V, and no conductor may touch it; openBoundary?:{radiusMm, centreMm=\[0,0\] (on the axis when axisymmetric), layers=4 (1 to 10)} instead puts the drawing in a circle of air of that radius with Meeker's graded-permittivity shells outside it, so the ground is at infinity (open space: a line, a sphere, a winding with no screen); the air between the drawing and the circle is labelled "open boundary air" unless the drawing labels it, and the shells are regions "open boundary shell 1…N"; planar, only charge-neutral excitations are exact, so the capacitance between conductors is open space's but each one's capacitance to the ground depends on radiusMm)
- `elementMm`: number? (largest element in every conductor and dielectric region, 0.01 to 50 mm; default the automatic mesher's)
- `component`: str? (the inductor (1 winding, p–n), coupled inductor, common-mode choke or transformer (2 windings, p1–n1 and p2–n2) the drawing models: the drawing's windings in the order their first labels appear are the part's windings, each one's start at the dot pin; the capacitors go into the circuit as a pending proposal)
- `apply`: bool=false (with component: add the capacitors at once, in ONE history step, instead of a proposal)
- `closedForm`: \[{winding:str (a winding of the drawing),conductorDiameterMm:number (bare wire, Dc),outerDiameterMm:number (over the enamel, Do \> Dc),coatingEpsR:number (the enamel's εr),turnLengthMm?:number (one turn, lt; default depthMm when planar, required when axisymmetric),layout:singleLayer|singleLayerOnCore|twoLayers|twoLayersOnCore|threeLayers (two and three layers from 10 and 11 turns)}\]? (the Massarini–Kazimierczuk closed form for a coil of round enamelled wire, reported beside that winding's selfCapacitanceF, not checked against it)
- `ignoreMemoryCheck`: bool=false

## Reply

- conductors:\[{name,kind:turn|conductor,winding?,turn?,floating}\]
- matrix:{names,byChargeF:\[\[F\]\],byEnergyF:\[\[F\]\],twoWaysRelative} (the Maxwell matrix of the terminals: every turn, then each conductor that is not floating, the ground the reference)
- windings:\[{name,turns,selfCapacitanceF,closedForm?:{model,layout,turnLengthMm,thetaStarRad,turnToTurnF (eq. 15),turnToTurnExactF (eq. 9),networkFactor (Cs/Ctt, eq. 16–23),selfCapacitanceF,fieldOverClosedForm}}\] (between the winding's two ends, every other end, conductor and the ground floating; 0 for one turn)
- interwindingF:\[\[F\]\] (between two windings, each with its ends joined, the others floating; 0 on the diagonal)
- terminals:{names ("\<winding\> start", "\<winding\> end", then the other terminals),byChargeF,byEnergyF,twoWaysRelative} (the lumped matrix on the winding ends)
- model:{form:planar|axisymmetric,depthMm,elementMm,nodes,elements,minAngleDeg,solves,openBoundary:{centreMm,radiusMm,layers}|null,solverVersion}
- capacitors?:\[{part,kind:parallel|interwinding,winding?|between?,component,pins?,nets,cF}\] (with component: the parts planned)
- apply?
- proposal?|applied?
- notes
- warnings:\[{code,message,messageZh,data}\] (planarModel with the depth in m for a planar sketch; none axisymmetric)
- preview
- previewNote
