kicad2ems.core.lines.dispersion

The line model with the wideband dielectric (R-E4, `--diel wideband`): each
layer's er and tan d at each frequency from its Djordjevic-Sarkar curve
(materials.djordjevic_sarkar, matched at the layer's fref, else --diel-fref), as
mom25d and the FDTD layer have them.

The line model's sections hold one er (scikit-rf's media take a
frequency-invariant one; qucsator's substrates are constant), so the network is
solved with its materials frozen at a few frequencies f_k across the band, each
solve over every frequency, and S at f is interpolated between the solves to the
materials at f itself: at each f, S of the materials' frequency u is smooth (the
curves change er a few per cent per decade), a polynomial in log u through the K
solves, read at u = f. K follows the phase the change can move along the longest
path (a Chebyshev interpolation of exp(j theta x) on K nodes misses by 2 (theta
/ 2)^K / K!).

A frozen copy: each section's er and tan d from its own layers (Element.diel,
the averages lines.reference takes), its effective er by its filling factor q =
(eeff - 1) / (er - 1) (Hammerstad's form: q does not depend on er), Z0 with the
air capacitance kept (Z0 sqrt(eeff) fixed), a coupled group's dielectric
capacitance (C - Ca) by the same factor. qucsator's RLCG sections (the
field-solved ones) keep their G and R at the band centre, as without the
wideband model: held at f_k, G (proportional to f_k) would spread over the band
as no few solves interpolate.

    plan = nodes(lm, freq, fref)        # None: nothing to do (no loss, so no
                                        # dispersion), else the f_k
    copy = frozen(lm, fk, fref)         # the line model with its materials at
                                        # fk
    S = interpolate(freq, plan, [S_k])  # S at each f from the K solves
kicad2ems.core.lines.dispersion.frozen(lm, fk, fref)[source]
A copy of the line model with its materials at fk (Hz). The copper's
records (outlines, cuts, parts) are shared, not copied.
kicad2ems.core.lines.dispersion.interpolate(freq, fk, Sk)[source]
S at each f of freq from the solves Sk (K, nf, n, n) with the materials
at fk: the polynomial in log f through them, read at f (barycentric
Lagrange).
kicad2ems.core.lines.dispersion.layer_at(er, tand, fref, f)[source]
(er, tan d) of one layer at f: its Djordjevic-Sarkar curve through er (1
- j tand) at fref.
kicad2ems.core.lines.dispersion.nodes(lm, freq, fref)[source]
The materials' frequencies f_k for the band of freq (Hz), or None when
nothing disperses (no section has loss: a lossless curve is flat). Chebyshev
nodes in log f; K from the phase the er change can move.
kicad2ems.core.lines.dispersion.section_at(e, f, fref)[source]
(er, tan d) of an element at f: its layers' curves (e.diel; a layer
without fref at fref), averaged as built; without layers its own er and tan
d as one material.