kicad2ems.gui.viewer

The Viewer: everything about the board and its fields in one page.

    Plan    the board from above: one layer's copper, a solver's mesh on it, the
            ports
    2D      a cut through a field dump, with its values (time frames, phases,
            live while openEMS runs)
    3D      the board in 3D: copper, vias, a solver's mesh, plane and volume
            dumps in place, the far field
    Images  the plots a run wrote (the openEMS mesh with its side views, the
            model, the line model)

The line model is an overlay of Plan and 3D: its sections coloured by Z0 against
the ports' impedance, listed beside the view with their Z0, length, delay and
eeff. Pick a section in the list, or click it in the plan: both views mark it.
The views a folder has nothing for are disabled.

The field across the section picked is a page of its own, the window's Section
(Viewer.section, a SectionView: the window puts it in a dock under the board, so
the plan and the section are seen together). It is solved only while that page
is in view (set_section_shown); sections(bool) says whether the folder loaded
has any.
class kicad2ems.gui.viewer.Viewer(win=None)[source]
clear()[source]
No run's results: the board as drawn (if any) in the plan, the other
views off (another board chosen: the last one's run had stayed in the
pages).
follow(out_dir)[source]
A running simulation's newest field frames (the 2D view's live
mode).
has_sections()[source]
Whether the folder shown has a line model with cross-sections to
solve (the Section page's).
load(out_dir)[source]
A results folder in every view; the first view with something in it
shown unless the one shown still has. False: nothing to show.
select(i, source=None)[source]
Select a section in every view (i None: none).
set_section_shown(on)[source]
The Section page came into view (or went out of it): the section
picked is solved only while it is.
show_dump(label)[source]
The dump of that label as the one the 2D and 3D views show (a
folder's default is its first).
show_layout(layout)[source]
The board as drawn (kicad2ems.core.layout; None: none), in the plan
wherever no run's board is: now, and after a folder without one is
loaded. False: the plan shows no board.
class kicad2ems.gui.viewer.Z0Legend[source]
The Z0 colours: blue below the ports' impedance, grey at it, red
above.