kicad2ems.fdtd.boundaries

Boundary conditions: per-side selection and the closed-box resonance check.
kicad2ems.fdtd.boundaries.bottom_is_plane(m, frac=0.85, edge=1.0)[source]
True when the lowest copper layer is the bottom of the model (z = 0) and
one solid plane over the outline: >= 85 % of it, one piece, and bare only
within `edge` mm of the board edge (pours stop short of it). A PEC wall
there would short anything cut out of the plane (a slot, a defected ground,
an antipad) or set in it.
kicad2ems.fdtd.boundaries.cavity_check(m, mesh, bc, fmax, log=<built-in function print>)[source]
A box closed by PEC side walls resonates; warn when its lowest mode is
below fmax.
kicad2ems.fdtd.boundaries.resolve_bc(spec, m)[source]
Boundary per side. 'auto' (default): PEC directly on a solid bottom plane
(exact, no air below, an infinite ground), MUR elsewhere. Otherwise one
value for all sides (MUR, PML_8, PEC) or six comma-separated values
xmin,xmax,ymin,ymax,zmin,zmax.