kicad2ems.fdtd.thick

Copper thickness in the FDTD model (--thickness on).

kicad2ems's board keeps copper as zero-thickness levels between the dielectrics.
Here each copper layer gets its stackup thickness t and everything above it
moves up by t, so that every dielectric keeps its own thickness between the
copper, as the line model's cross-sections do (kicad2ems lines/reference.py,
_cut_section). The bottom copper layer grows down (outward); every other layer
grows up: the top layer into the air or mask over the board, an inner layer into
the dielectric above it, which fills between its copper.

Each copper level maps onto that layer's two faces:

    dielectric boundaries    the layer's lower face (z_map): a dielectric above
                             an inner layer starts there
    vias, edge walls         from the lower face of their lowest layer to the
                             upper face of their highest
    ports across the stack   from the reference copper's face toward the trace
                             to the trace's face toward it
    gap ports, lumped parts  across the slab, lower face to upper

With --sigma the copper is a solid metal body whose two faces are conducting
sheets: each face is one side of a conductor t / 2 thick (sigma / 4 and 2 t in
openEMS's symmetric sheet model give exactly that impedance:
k / (sigma tanh(k t / 2)), k = (1 + j) / delta), so the faces carry the
skin-effect loss where their fields are.

The plan is plain data (dict(t, up)), kept in the mesh dict as mesh['thick'], so
that runs in other processes get it with the mesh.
kicad2ems.fdtd.thick.all_faces(m, th)[source]
{layer: (lower, upper)}.
kicad2ems.fdtd.thick.faces(m, th, lay)[source]
(lower, upper) z of copper layer `lay` in the thick model.
kicad2ems.fdtd.thick.layer_at(m, z)[source]
The copper layer on level z, or None.
kicad2ems.fdtd.thick.plan(m)[source]
dict(t={layer: mm}, up={layer: bool}) of board m's copper, or None when
no layer has a thickness.
kicad2ems.fdtd.thick.slab(m, th, z)[source]
The copper slab (lower, upper) on level z (a flat part or gap port
there), or (z_map, z_map) off copper.
kicad2ems.fdtd.thick.span(m, th, z0, z1)[source]
An interval between levels (z0 <= z1) mapped to cover the copper at its
ends.
kicad2ems.fdtd.thick.toward(m, th, z, other)[source]
z of a copper level mapped to its layer's face toward `other` (z_map off
a copper level).
kicad2ems.fdtd.thick.z_map(m, th, z)[source]
z (board model, mm) in the thick model: moved up by the layers below it
that grow up.