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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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).