kicad2ems.core.finish¶
Copper surface finish (--finish): the metal plated on the outer copper where no
solder mask covers it (ENIG, HASL, immersion silver or tin, or none: OSP and
bare copper). A finish only covers the copper's outer face and its sides: the
face against the dielectric, where a microstrip carries most of its current,
stays bare copper, and inner layers and copper under the mask have none.
The finished face's impedance: each finish layer (conductivity sigma_i,
thickness t_i, outermost first) a section of line of Z_i = gamma_i / sigma_i,
gamma_i = (1 + j) / delta_i, loading the one beneath it, down to the copper
face, gamma / sigma coth(gamma t) (one face of the copper's thickness t):
Z_in = Z_i (Z_load + Z_i tanh(gamma_i t_i))
/ (Z_i + Z_load tanh(gamma_i t_i))
5 um of ENIG's nickel (electroless Ni-P, mid-phosphorus: about 1.45 MS/m and, as
plated, non-magnetic) puts a face at 2.2x bare copper's resistance at 1 GHz and
4-5x from 3 to 30 GHz; lead-free HASL 2.3-2.9x; immersion silver none. How much
of that a line sees depends on the share of its loss on the finished faces:
loss_share() takes it from the 2D field solver (the line's current goes as its
charge with no dielectric, TEM).
Each solver applies it as it can (its capabilities' 'finish'): FDTD with
--thickness on as the outer faces' own sheets (gfdtd over the band, openEMS as
their conductivity at the band centre); mom25d per layer, weighted by the share
at each frequency; the line model and zero-thickness FDTD sheets weighted by the
share at the band centre. Values are typical fab figures (IPC-4552 / 4553 / 4554
thicknesses): a fab's own are the better input.
- class kicad2ems.core.finish.Finish(name, layers, faces, notes)[source]¶
A run's finish (resolve): name, description, metal layers (outermost first), and per finished copper layer (the outer two) its copper thickness (m) and loss shares (strip, line; loss_share of its narrowest port trace, 0 on a layer without ports: a plane, whose outer face carries next to no current).
- kicad2ems.core.finish.band_sigma(sigma, finish, share, fmin_hz, fmax_hz, t=3.5e-05)[source]¶
The one conductivity whose skin-effect loss at the band centre is the finished conductor's: sigma / K^2, K = resistance_ratio() there.
- kicad2ems.core.finish.face_z(f, sigma=58000000.0, t=3.5e-05, finish=())[source]¶
Complex impedance (ohm per square) of one copper face, thickness t (m), under the finish layers.
- kicad2ems.core.finish.factor(f, finish, sigma=58000000.0, t=3.5e-05)[source]¶
The finished face's impedance over the bare face's (complex; 1 without a finish).
- kicad2ems.core.finish.kicad_name(text)[source]¶
(finish, note): the --finish name of KiCad's copper_finish text; unknown ones (hard gold, immersion nickel, user defined) as none, with a note.
- kicad2ems.core.finish.layers(name)[source]¶
The finish's metal layers, outermost first: [(metal, sigma, t m), ...] ([] for none / osp).
(strip, line): the share of a microstrip's conductor loss on its finished faces (the outer face and both sides) - of the strip's own loss, and of the line's (with the plane's). w, h, t mm: the strip, its height over the plane, its thickness. TEM: the surface current goes as the charge with no dielectric, from the 2D field solver's grid (each node's charge q over its share of the surface ds: loss ~ sum q^2 / ds). The ground plane's current is on its face towards the strip (a plane's outer face, finished or not, carries next to none).
- kicad2ems.core.finish.resistance_ratio(f, finish, share, sigma=58000000.0, t=3.5e-05)[source]¶
The finished conductor's resistance over its bare copper's: Re(z weighted()) / Re(z), z the bare face's (the finished face's impedance has another phase, so this is not the real part of weighted()).
- kicad2ems.core.finish.resolve(s, m)[source]¶
resolve_once, kept on the board for its settings (every solver of a run asks).