Results¶
← Examples · Index · Next: openEMS meshing →
Usage lists the output files. This page explains what’s in them.
S-parameters¶
Each solver writes a Touchstone file, <name>_<solver>.sNp.
Ports that weren’t driven. openEMS only drives the ports in
--excite. The missing columns are filled in by reciprocity (S_ik = S_ki). Terms that are still unknown are written as 0 and listed in the file header.Differential pairs become a differential mode (
P1d, 2·Z0) and a common mode (P1c, Z0/2).Reference impedances. The file uses Touchstone v1 when all ports share one impedance, and v2 otherwise.
The plot
<name>_<solver>.pngshows |S| in dB and a Smith chart of the reflections for the first solver, with the others and any--comparefile drawn over it.Passivity. S’s largest singular value over the band is checked; above 1.002 the run warns where, and
--passivewrites<name>_<solver>_passive.sNpwith the singular values clipped to 1.Causality. Each term is checked against its band-limited Kramers-Kronig reconstruction (generalised dispersion relations with 2 to 8 subtractions,
kicad2ems.core.causality), on the inner 80 % of the band: the miss beyond what any data outside the band could explain (|S| <= 1 there) is in the run summary (causality), and above 0.1 the run warns, naming the term and the frequency. Causal solver outputs read 0 to 0.06; a time-reversed response 1.5 to 4, one advanced 0.4 ns past its delay 0.3 to 2.8 (from 1 GHz; a narrow band such as 2-3 GHz cannot show that). A de-embedded result is checked too: a reference plane moved past the true one shows there.
Mesh convergence¶
With --converge, openEMS also runs coarser meshes and compares them with the finest
(details). <name>_converge.png shows each level, and the log and the
report give a verdict. A WARNING means the result hasn’t converged.
Antenna mode¶
With mode = "antenna", kicad2ems computes the far field after the run:
Result |
How it is computed |
|---|---|
resonance, S11, input impedance |
from the driven port; the resonance is the lowest |S11| |
directivity |
from the far field over the whole sphere |
efficiency |
radiated power / accepted power (dielectric and copper loss) |
gain |
directivity × efficiency |
realized gain |
gain including the mismatch loss |
polarisation |
at the gain maximum: the axial ratio, the hand (RHCP / LHCP, IEEE: seen from behind the wave, clockwise is right-handed; linear above 20 dB) and the gain in each hand ( |
patterns |
the xz, yz and xy cuts, and a 3D pattern |
θ is measured from +z (the board’s top normal) and φ from +x.
File |
Contents |
|---|---|
|
match, impedance, directivity, gain and efficiency over frequency |
|
the pattern cuts and a 3D pattern |
|
the numbers behind both |
mom25d writes the same files with _mom25d in the name (details).
Field dumps¶
--dump FIELD@REGION[@GHz,...] saves a field during an FDTD run (openEMS or gfdtd). It can be repeated.
Part |
Values |
|---|---|
FIELD |
|
REGION |
|
GHz |
frequencies: a frequency-domain dump, saved as HDF5 with a PNG map per frequency. Leave them out for a time-domain dump (a series of frames) |
kicad2ems board.toml --dump [email protected]@2,6 --dump [email protected]@4 --dump E@[email protected]
Dumps are recorded in the run of the first driven port;
--dump-portpicks another.Frequency-domain dumps are scaled to a 1 V incident wave at the driven port.
--previewchecks the specs and reports the size of each dump.The files go to
<out>/<solver>/exc_<port>/. The GUI’s Viewer (its Cut and 3D views) reads them, and so does ParaView.
Animations¶
A frequency-domain dump holds a complex value at each point. Playing Re(F·e^jφ) for φ from 0 to 2π shows
what the field does over one cycle: standing waves pulse in place, travelling waves move.
--dump-animate gif (or mp4) writes this for every frequency-domain plane dump, from openEMS and from
mom25d’s --mom-dump.
The same is available from Python:
from kicad2ems.core import fields
src = fields.find_dumps('out')[0]
fields.save_animation(src, 'ez.gif', axis=2, index=0, component='z')
The run summary¶
<name>_run.json records the whole run, including previews:
Key |
Contents |
|---|---|
|
every option |
|
outline, nets, stack, copper, ports, parts |
|
the openEMS mesh and convergence levels |
|
the line sections |
|
per solver: its file, run time, ports, S-parameter table, and comparison with the first solver |
|
the first solver’s results |
|
openEMS: time and timesteps per driven port |
|
what each solver changed from the board, and the What each solver saw table |
|
after a preview: each solver’s estimated time and memory |
|
when they apply |
|
every message |
The report¶
<name>_report.html is one self-contained page built from the run summary. It covers the model, the line
sections, the mesh, the S-parameters with a table at key frequencies, a section per solver, what each
solver saw of the board, antenna and convergence results, field maps, warnings and the full log.
The S-parameters are an interactive plot, drawn in the page itself (no library, nothing loaded from the network), from each solver’s Touchstone file next to the report: hover for every trace’s value at a frequency, tick the solvers and S-parameters to show, switch between |S| in dB and the phase, drag across the plot to zoom and double-click for the whole band. The static image is folded below it.
The report can be rebuilt from the summary, for example after changing report.py:
import json
from kicad2ems.core.report import write_report
write_report(json.load(open('out/board_run.json')), 'out/board_report.html')