kicad2ems.dfsynth.mtl¶
Multiconductor microstrip lines and a nodal network around them, for filters
whose resonators couple to more than one neighbour over their whole length
(interdigital rods, hairpin arms): the ABCD cascade of circuit.py cannot
represent a line shared by two coupled sections.
arr = Array(sub, widths=[w, w, w], gaps=[s1, s2])
# N parallel strips, nearest-neighbour coupling
net = Nodal()
a, b = net.nodes(3), net.nodes(3) # the strips' ends at y = 0 and y = L
net.mtl(arr, a, b, L)
net.via(a[0], sub, drill); net.open(b[0], sub, w) ...
ab = net.two_port(p1, p2) # an element of a circuit.sparams cascade
The per-unit-length capacitance matrix of two or more strips is the full Maxwell
matrix of the cross section (strip_caps: a quasi-static moment method on
zero-thickness strips, every strip coupled to every other, not only to its
neighbours; next-but-one rods of an interdigital array couple a tenth as
strongly as neighbours). The copper's thickness and the dispersion come from the
closed forms on top of it: the nearest-neighbour matrix built from each adjacent
pair's even / odd mode capacitances (Kirschning-Jansen, the pair's mean width; a
single strip's from Hammerstad-Jensen), at f and thickness t, less the same at
zero frequency and thickness. The inductance matrix is that of the strips in air
(L = C_air^-1 / c^2), so the modes of an inhomogeneous array get their own
velocities. Loss is a series resistance 2 Rs / w per strip and a shunt
conductance from tan d on the dielectric's share of C.
- class kicad2ems.dfsynth.mtl.Array(sub, widths, gaps)[source]¶
N parallel strips of widths (mm), edge gaps (mm, N - 1 of them) on a Substrate.
- class kicad2ems.dfsynth.mtl.Nodal[source]¶
A linear network of numbered nodes (ground is implicit), reduced to a 2-port.
- external_q(node, f_lo, f_hi, z0=50.0)[source]¶
(f0, Qe) of the resonance between f_lo and f_hi seen from `node` loaded by z0 ohm: the input susceptance B through zero, Qe = z0 (w0 / 2) dB/dw. Lossless network.
- line(n1, n2, sub, w, length)[source]¶
A single microstrip line between two nodes (its 2-port admittance).
- mtl(arr, a, b, length)[source]¶
The array between node lists a (one end) and b (the other), length mm.
- open(node, sub, w, extra=0.0)[source]¶
A strip's open end: the end capacitance, as the admittance of its length extension, plus `extra` mm of strip beyond the node (negative: the strip ends that much short of it).
- resonances(f_lo, f_hi, n=400)[source]¶
Natural frequencies (Hz) of the network with every node unloaded, between f_lo and f_hi: the zeros of det Y. Build it on a lossless substrate: Y is then j B with B real, and det B changes sign at a zero (and at a pole, where |det B| is large on both sides instead).
- kicad2ems.dfsynth.mtl.strip_caps(widths, gaps, h, er, per=16)[source]¶
Maxwell capacitance matrix (F/m) of side-by-side zero-thickness strips (widths, edge gaps, mm) on a slab of height h (mm) and permittivity er over a ground plane. Pulse charges on `per` edge-refined segments of each strip, matched at their centres to the strip's potential; the Green's function of a line charge on the slab's surface is the image series G(x) = sum_n K^n ln((x^2 + (2 (n + 1) h)^2) / (x^2 + (2 n h)^2)) / (2 pi eps0 (1 + er)), K = (1 - er) / (1 + er). Within 1 % of Hammerstad-Jensen and Kirschning-Jansen (single and coupled strips).