kicad2ems.pcbqs.analyses

pcbqs's tools as kicad2ems analyses (kicad2ems.core.analyses lists them): power
integrity, near field, circuit, thermal and conducted emission, and the
quasi-static solver. kicad2ems lists them as engines of the questions they
answer (a rail's drop and its impedance, a converter's near field, a circuit,
the temperature, the conducted emission:
kicad2ems.core.study), a front end builds each one's settings from its options
table, runs it as its command and shows what its result folder holds
(reports.py); the circuit examples come as configs beside their models
(circuit/examples/*.toml).

Only this module imports kicad2ems; the tools themselves run without it.

    from kicad2ems.pcbqs.analyses import PowerIntegrity
    PowerIntegrity().command(dict(rail='+3V3', load='U1=2'), 'board.kicad_pcb',
                             'out/pdn')
class kicad2ems.pcbqs.analyses.Circuit[source]
check()[source]
pcbqs with ngspice, its engine (it had said available without
looking: every run then failed).
command(values, board, out, preview=False, results=None)[source]
[program, argument ...] that runs it into folder `out`; ValueError:
what is missing.
examples()[source]
The example circuits as configs: [dict(name, config, group, title,
files)]; a config's model (and its board) are its files, copied beside
it.
options()[source]
The model, then pcbqs.circuit's own options (python -m
kicad2ems.pcbqs.circuit --describe). The board is a front end's to
give.
owns(folder, preview=False)[source]
Whether the folder holds its result (preview: its preview).
suggest(folder)[source]
What the run draws from its supply, for the power-integrity and
near-field analyses (reports. circuit_suggest); only for parts that are
on the model's board.
tag(values)[source]
A short name for a run of these settings (its folder's).
class kicad2ems.pcbqs.analyses.Conducted[source]
The conducted emission of a circuit model (pcbqs.conducted): the
circuit with a CISPR network in each supply line, read as a receiver reads
it, against CISPR 32's or CISPR 25's limits.
command(values, board, out, preview=False, results=None)[source]
[program, argument ...] that runs it into folder `out`; ValueError:
what is missing.
examples()[source]
The example circuits as configs: [dict(name, config, group, title,
files)]; a config's model (and its board) are its files, copied beside
it.
figures(folder)[source]
margin (the worst over the bands and detectors, dB), margin peak /
QP / average (each detector's worst), at (MHz: where the worst is).
options()[source]
The model, then pcbqs.conducted's own options (python -m
kicad2ems.pcbqs.conducted --describe); the board is a front end's.
owns(folder, preview=False)[source]
Whether the folder holds its result (preview: its preview).
status(line)[source]
The progress a line of its output states, or None.
suggest(folder)[source]
What the run draws from its supply, for the power-integrity and
near-field analyses (reports. circuit_suggest); only for parts that are
on the model's board.
tag(values)[source]
A short name for a run of these settings (its folder's).
class kicad2ems.pcbqs.analyses.Electrothermal[source]
A rail's DC drop with its copper at its temperature, and the board's
temperature from that copper's loss and the parts' (electrothermal.py):
an engine of the DC drop too, beside the drop at 20 C.
command(values, board, out, preview=False, results=None)[source]
[program, argument ...] that runs it into folder `out`; ValueError:
what is missing.
figures(folder)[source]
The DC question's figures at temperature (drop <load>: the rail's
own copper, as the drop at 20 C's engine names it), then this tool's:
the drop at 20 C, the copper's hottest point and the loss.
status(line)[source]
The progress a line of its output states, or None.
tag(values)[source]
A short name for a run of these settings (its folder's).
class kicad2ems.pcbqs.analyses.NearField[source]
choices(text)[source]
One choice per converter and input net: a regulator with several
candidate inputs (VCC, VDD, VDRV on a buck) would otherwise stop the
run.
command(values, board, out, preview=False, results=None)[source]
[program, argument ...] that runs it into folder `out`; ValueError:
what is missing.
discover(values, board)[source]
A command that proposes settings from the board, or None: it has
none.
figures(folder)[source]
The input loop's copper inductance at each harmonic, nH: the figures
another engine of the loop gives too (kicad2ems-fem's palace_loop,
R-E22), so a study lays them side by side.
status(line)[source]
The progress a line of its output states, or None.
suggest(folder)[source]
Settings the result in `folder` proposes for other analyses.
tag(values)[source]
A short name for a run of these settings (its folder's).
class kicad2ems.pcbqs.analyses.PowerIntegrity[source]
answers(values)[source]
The drop always; the impedance unless no_pdn; the decaps where
they are chosen.
command(values, board, out, preview=False, results=None)[source]
[program, argument ...] that runs it into folder `out`; ValueError:
what is missing.
figures(folder)[source]
Each load's drop in the rail's own copper (what an engine of that
copper alone gives too), then this tool's own: the drop with the
ground's rise, and the loss of both.
for_questions(values, asked)[source]
The settings for a run asked only the questions `asked` of those it
provides.
missing(values, board, results=None)[source]
What command() raises, and a load with no pad on ground whose return
is not named and that the rail cannot find by itself
(pdn.rail.return_part: a bridge's high-side switch returns through its
low-side one): its return would be left out of the drop.
status(line)[source]
The progress a line of its output states, or None.
tag(values)[source]
A short name for a run of these settings (its folder's).
class kicad2ems.pcbqs.analyses.QuasiStatic[source]
pcbqs as an S-parameter solver of kicad2ems (`--solvers pcbqs`): the
board's ports from the resistance and inductance of its copper, with the
return current where it flows, and the copper's charge too where the band
asks for it (R, L and C). For the low end of a band, to about a tenth of a
wavelength, where the full-wave solvers are slow or lose accuracy; it is
never picked by `--solvers auto`.
assess(run)[source]
Why it cannot model this board in this run, a list of reasons ([]: it
can). Called after the board and the line model are built, before any
solver prepares.
check(s=None)[source]
(usable, one line): its version and origin, or what is missing and
how to get it. s: the run's settings, where one says where the solver is
(--qucsator); None for --check.
deviations(run, prep)[source]
[Deviation]: what it models differently from the board, by its own
rules (vias moved onto a mesh, parts split, walls as via rows), for the
report and the parity checks.
outputs(run, prep, res)[source]
The current of each layer with the first port driven, at three
frequencies of the band, for the viewer.
solve(run, prep)[source]
The Result: S-parameters over the board's ports as reported
(differential pairs as mixed-mode ports).
class kicad2ems.pcbqs.analyses.Thermal[source]
command(values, board, out, preview=False, results=None)[source]
[program, argument ...] that runs it into folder `out`; ValueError:
what is missing.
figures(folder)[source]
The copper's hottest point and the board under each part (the grid's,
where both solvers ran).
owns(folder, preview=False)[source]
A thermal.json of pcbqs's: another engine's (Elmer's, of the same
name) says whose it is.
status(line)[source]
The progress a line of its output states, or None.
tag(values)[source]
The circuit case named, else where the losses are from: typed
('losses'), or a circuit run ('circuit').
kicad2ems.pcbqs.analyses.argv(module, options, values, board, out)[source]
[python, -m, module, (board), --out, out, ...] for values {option key:
text, bool or list} (core.options.argv).
kicad2ems.pcbqs.analyses.circuit_run(folder)[source]
A general circuit run's folder (model.json and circuit.json): the board
its model names, '' when it names none or it is gone; None: not such a
folder.