Insert Conductor Impedance into Circuit (field.peecInsert)
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 carrypreview: trueand a note.
What it does
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.
Parameters
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)
Reply
- 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}]