# 將導體阻抗插入電路 (`field.peecInsert`)

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

**選單:** 無（快速開啟、CLI、Python 與 MCP） · **執行方式:** 立即完成

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

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

## 說明

Preview. Puts the conductor impedance a field.peec solve gave into the open circuit as one undo step: each port in series with the part's terminal (the terminal moves to a new net peec\_\<port\>\_\<net\>, the winding joins it back). One port becomes an inductor (L, dcr = R); two become one coupled inductor (l1, l2, rw1, rw2 and k = M/√(L1 L2), the second winding turned round when M is negative). The ports left out are open, so the inserted matrix is the solved one's rows and columns for them. The mutual resistance has no place in a coupled inductor: it is left out and its size is given. Three or more ports: use field.peec's export spice. With \`capacitance\`, the solved Maxwell capacitance goes in as two-terminal capacitors Cpeec\_\<net\> to ground and Cpeec\_\<a\>\_\<b\> between nets, whose nodal matrix is the solved one; a lossy dielectric's conductance goes in beside them as resistors Rpeec\_\<net\> and Rpeec\_\<a\>\_\<b\> of 1/G (Pozar 2012, §2.1). A second run updates the parts of the same names.

## 參數

- `peec`: object (a field.peec reply, or its \`ports\` and \`frequencies\`)
- `frequencyHz`: number? (the solved row to insert; required when the reply has several frequencies)
- `at`: \[{"port":str (a port of the reply),"part":str (a part of the open circuit),"pin":str (its terminal the port goes in series with),"reverse":bool=false (the port current flows out of the terminal into the net, not in)}\] (1 or 2 ports, each once; may be left out when \`capacitance\` is given)
- `capacitance`: \[{"net":str (a signal net of the reply's \`capacitance\`, from field.peec {capacitance}),"circuitNet":str (a net of the open circuit, not a ground net)}\]? (1 to 16, each net and circuit net once: one capacitor from each net to the circuit's ground, its Maxwell row sum over the nets listed, and one between each pair, minus the Maxwell entry; a solved net left out is held at 0 V; solved in a lossy dielectric, the C and G of the capacitance row at frequencyHz, each capacitor with a resistor Rpeec\_… of 1/G in parallel)

## 回覆

- frequencyHz
- inserted:\[{name, kind:"inductor|coupledInductor", ports, nets:\[\[from, to\]\], valueH|{l1H, l2H, k}, dcrOhm|{rw1Ohm, rw2Ohm}, mutualResistanceOhm|null, updated, at} | {name, kind:"capacitor", capacitanceNets:\[str\], nets:\[\[from, to\]\], valueF, valuePf, updated, at} | {name, kind:"resistor", capacitanceNets:\[str\], nets:\[\[from, to\]\], valueOhm, conductanceS, updated, at}\]
- notes:\[{en, zh}\]
