kicad2ems.core.susceptibility

kicad2ems.core.susceptibility - radiated susceptibility: the voltage a plane
wave puts on each of the board's ports, on its load with the other ports on
theirs, the worst over every direction it may come from and every linear
polarisation, at IEC 61000-4-3's levels (3 and 10 V/m, 80 MHz to 6 GHz).

    python -m kicad2ems.core.susceptibility board.kicad_pcb --out sus
        [--fmin 0.08 --fmax 6 --points 41] [--field 3,10] [--threshold 100]
        [--load P2=1e6] [--step 5] [--array out/x_mom25d_array.npz]

By reciprocity (kicad2ems.core.radiated): mom25d solves the board once a
frequency for a source at every port (one factor), and each port's transmit far
field on its load, the others loaded, is what it receives from that direction:
V_j = 4 pi / (j k0 eta0) z_j E0 (p . F_j). An antenna run's array file
(--array: mom25d's, or an FDTD solver's with every port excited) stands for the
solve at its frequencies. A differential pair's legs give its differential
voltage too (each leg's complex voltage, the same wave). Each level's table: the
worst port voltage over the band (RMS of the unmodulated carrier; with the
standard's 80 % AM at 1 kHz its peak is 1.8 sqrt 2 times that), its frequency,
direction and polarisation; ports above --threshold (mV RMS) are flagged.

Writes <out>/susceptibility.json and <name>_susceptibility.png. Left out: what
the board is connected to (cables, which most often take a product's immunity),
the board edge and anything below mom25d's infinite ground.
class kicad2ems.core.susceptibility.Susceptibility[source]
Radiated susceptibility (this module).
check()[source]
(usable, one line): its version and origin, or what is missing and
how to get it.
command(values, board, out, preview=False, results=None)[source]
[program, argument ...] that runs it into folder `out`; ValueError:
what is missing.
curves(folder)[source]
What the result in `folder` holds, to plot: a list of curve sets.
figures(folder)[source]
The figures of the answer in `folder`, by name: [dict(name, value,
unit)], or [].
options()[source]
Its settings, [Option].
report(folder)[source]
What the result in `folder` holds, to read (the module docstring has
the form), or None.
status(line)[source]
The progress a line of its output states, or None.
tag(values)[source]
The highest level: 10Vm.
kicad2ems.core.susceptibility.board_options(group='Solve', fmin=0.08, fmax=6.0, points=41, step=5.0)[source]
The options both EMC analyses take: the band, the directions, the
loads, mom25d's cell and stack, an antenna run's array file.
kicad2ems.core.susceptibility.worst(Vt, Vp, theta, phi)[source]
Per row of Vt, Vp (k, ntheta, nphi): the largest |V| over the grid's
directions and the linear polarisations, where (theta, phi deg) and the
polarisation's angle from theta's unit vector (deg).