A converter's input loop in Palace (R-E22): the loop pcbqs's near-field run
found (its converter, input net, ground and input capacitors, and the copper it
cropped to), solved again in 3D, for its inductance and resistance beside
pcbqs's.
python -m kicad2ems.fem.palace.loop --mqs <pcbqs near-field run> --out loop
The board is kicad2ems's of the KiCad file the run read: the input net's and the
ground's copper inside the crop, its vias, as Palace's PEC sheets and holes
(model.py). The input capacitors are metal straps across their pads (0 ohm):
what pcbqs's copper_L_H and copper_R_ohm are, the copper without the parts' own
impedance (pcbqs takes their ESR and ESL apart). The other parts are left out,
as pcbqs leaves them. The source is a lumped port across the gap between the
converter's closest input and ground pads, in their copper plane (pcbqs: a
source between the pads' nodes at part height 0). Palace solves the run's
harmonics; Z = R (1 + S11) / (1 - S11), L = Im Z / w, the port's R near the
loop's own |Z|.
PEC copper is the high-frequency limit of pcbqs's: its current is at the
copper's surfaces facing the loop, as pcbqs's at the harmonics where the copper
is a few skin depths thick (35 um copper: ~10 MHz and up), so compare at the
higher harmonics; at the switching frequency pcbqs's L is higher (the current
still in the bulk). Writes <out>/loop.json: the frequencies, L_H, R_ohm
(Palace's, ~0 with PEC), pcbqs's beside them, the model's counts.