kicad2ems.pcbqs.mqs_cli

Converter input-loop near fields, from KiCad or a kicad2ems board JSON.
kicad2ems.pcbqs.mqs_cli.discover(board, ground='GND')[source]
Structural candidates only; ambiguity is returned, never resolved by
picking the first net or part.

A regulator IC: an inductor-to-IC switch net, and VIN/GND capacitors (the IC
both switches). A discrete switching cell: a switch node with a transistor
or diode up to a net that has capacitors to ground (the upper part, the
converter's name), and one down to ground (the lower part, `low`). Its input
loop runs from those capacitors through the upper part, the switch node and
the lower part back to ground: a buck's switch and diode (or its two
switches), a boost's diode and switch (its capacitors the output's), a half
bridge's leg. The inductor on the switch node, where there is one, is named
too.
kicad2ems.pcbqs.mqs_cli.draw_layout(ax, layout)[source]
Projection onto the layout: context grey, simulated nets cyan, selected
components gold.
kicad2ems.pcbqs.mqs_cli.spectrum(path, n)[source]
(switching frequency, peak amps of the harmonics n) of a current spectrum
file (circuit/supply.py's): its lowest frequency is the fundamental, and
each harmonic asked for must be in it.
kicad2ems.pcbqs.mqs_cli.validate(a, preview=False)[source]
(harmonics, heights, duty); a preview (mesh only) checks just the mesh
settings and returns None.