# Reduce Conductor Impedance Matrix (`field.peecReduce`)

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

**Menu:** none (Quick Open, the CLI, Python and MCP) · **Runs as:** at once

> 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. Runs the matrix reductions of a Q3D-class extractor (docs/specs/q3d-matrices/SPEC.md R2 to R6, R10) on the port matrix a field.peec solve gave, without solving again: return path (loop L from partials), join in series or parallel (parallel dies or terminals), reverse, float, ground, move and add sink; and gives the coupling coefficients k = |Xij| / √(Xii Xjj) of the result (R12). With field.peec's other ports open, each is exact for the structure it describes. The reply has field.peec's ports and frequencies, so it goes on to field.peecInsert. Changes nothing.

## Parameters

- `peec`: object (a field.peec reply, or its \`ports\` and \`frequencies\`; or a field.peecReduce reply)
- `frequencyHz`: number? (one solved row; default every row)
- `ops`: \[{"op":"returnPath","port":str (this port carries the others' return current: each other port k becomes the loop out through k and back through it, L'ij = Lij − Lip − Ljp + Lpp, the same for R; the port is removed)} | {"op":"joinSeries","ports":\[str,str\] (the second port's minus joined to the first's plus: one port named after the first, L = L11 + L22 + 2 L12)} | {"op":"reverse","port":str (plus and minus swapped: its mutual terms change sign)} | {"op":"joinParallel","ports":\[str,str\] (both plus nodes joined and both minus nodes joined, one port named after the first; a 3-port matrix only, as SPEC R5 gives it; a lossy row through Z = R + jωL at its frequency)} | {"op":"float","ports":\[str\] (left open: removed, every other entry unchanged)} | {"op":"ground","port":str (shorted: one elimination step on Z = R + jωL, which needs a frequency above 0 when R is not 0)} | {"op":"moveSink","port":str (a 3-port matrix: this port's terminal becomes the common sink, L'ij = Lij − Lik − Ljk + Lkk, L'ik = Lkk − Lik; R carried over)} | {"op":"addSink","ports":\[str\] (each shorted to the sink, for L; R's rows and columns dropped)}\] (1 to 64, applied in order)

## Reply

- ports:\[str\]
- frequencies:\[{frequencyHz,resistanceOhm:\[\[Ω\]\],inductanceH:\[\[H\]\],inductanceNh:\[\[nH\]\],couplingL:\[\[k\]\],couplingR:\[\[k\]\]|null (null when a self-resistance is 0)}\]
- ops:\[str\]
- notes
- sources
