mom25d.model - a planar model ready to solve: the stack, metal per interface,
vias, lumped elements and port definitions. A subclass fills in
(board.BoardModel: from a kicad2ems board)
stack multilayer.LayerStack (ground at z = 0, interfaces 1..N)
iface {copper layer name: interface index}
shapes {interface: [shapely geometry, metres, y up]}
vias [sim.Via]; lumped: [sim.SeriesLumped]
port_specs [dict(name, c (m), d (unit vector into the circuit),
k (interface), w (m), z0, kind 'auto' | 'wave' | 'via' |
'gap', kref (reference interface of a lumped port),
radius (m))] or, for a differential pair,
dict(name, legs={'+': spec, '-': spec}); port_z0 {name: ohms}
ground, cover, notes
and the methods here turn the port definitions into solver ports (wave ports
where a straight feed allows, lumped via ports otherwise), characterise the wave
ports' line impedance and build the Simulation.