kicad2ems.core.lines.coupled

Coupled lines for the line model: parallel microstrip or stripline sections
close enough to couple.

- coupled_microstrip(w, s, h, er): even / odd mode impedances and effective
  permittivities of a symmetric edge-coupled pair, Kirschning & Jansen (1984),
  quasi-static, zero thickness (the model qucsator's MCOUPLED uses by default,
  without its dispersion and thickness terms).
- coupled_stripline(w, s, b, er): the same for a pair centred between planes b
  apart, Cohn (1955), exact for zero thickness; coupled_offset_stripline(w, s,
  h1, h2, er) for a pair off centre.
- coupled(xs, w, s, h, er) / single(xs, w, h, er): either, by the line model's
  cross-section name.
- group_lc(widths, gaps, h, er, xs): per-unit-length Maxwell capacitance (with
  and without dielectric) of N side-by-side lines, built from the pairs of
  neighbours (coupling beyond the nearest neighbour is left out).
- mtl_s(...): S-parameters of a uniform N-line section (2N ports: near ends
  1..N, far ends N+1..2N), lossless conductors, dielectric loss as a shunt
  conductance.

    Ze, Zo, ee, eo = coupled_microstrip(0.35, 0.58, 0.2, 4.4)
    C, Ca = group_lc([0.35] * 5, [0.58] * 4, 0.2, 4.4)
    S = mtl_s(C, Ca, 4.4, 0.011, 12.3, freq)  # (nf, 10, 10), 50 ohm
kicad2ems.core.lines.coupled.coupled(xs, w, s, h, er)[source]
(Ze, Zo, eeff_even, eeff_odd) of a coupled pair of cross-section xs
('microstrip', 'stripline' or 'offset stripline'; h: the height, or (h1, h2)
to the planes below and above for striplines).
kicad2ems.core.lines.coupled.coupled_microstrip(w, s, h, er)[source]
(Ze, Zo, eeff_even, eeff_odd) of two coupled microstrip lines of width w,
gap s, height h (mm), Kirschning & Jansen (IEEE MTT-32, 1984), quasi-static,
zero strip thickness.
kicad2ems.core.lines.coupled.coupled_offset_stripline(w, s, h1, h2, er)[source]
The pair h1 above one plane and h2 below the other: per mode 2 Z1 Z2 /
(Z1 + Z2), Zi the centred pair of spacing 2 hi (as offset_stripline does for
one strip).
kicad2ems.core.lines.coupled.coupled_stripline(w, s, b, er)[source]
(Ze, Zo, er, er) of two coupled strips of width w, gap s, centred between
planes b apart (mm), Cohn (IRE MTT-3, 1955), exact for zero strip thickness.
The medium is homogeneous: both modes travel at er.
kicad2ems.core.lines.coupled.group_lc(widths, gaps, h, er, xs='microstrip')[source]
(C, C_air) per metre, N x N Maxwell matrices of N side-by-side lines of
cross-section xs (widths[i], gap gaps[i] between line i and i+1). Each
neighbour pair (at its mean width) sets the mutual term and adds its
coupling to both self terms; lines further apart are uncoupled.
kicad2ems.core.lines.coupled.mtl_s(C, Ca, er, tand, length_mm, freq, z0=50.0, R=None)[source]
S-parameters (nf, 2N, 2N) of a uniform N-line section of length
length_mm: ports 1..N at the near ends, N+1..2N at the far ends (line i:
port i -> port N + i), reference z0. R(f): each line's series resistance per
metre, (N,) (its copper and its return's; None: lossless conductors).
kicad2ems.core.lines.coupled.single(xs, w, h, er)[source]
(Z0, eeff) of one zero-thickness line of cross-section xs (as
coupled).
kicad2ems.core.lines.coupled.zy_s(Z, Y, length_mm, z0=50.0)[source]
S-parameters (nf, 2N, 2N) of a uniform N-line section length_mm long
from its per-unit-length series impedance Z and shunt admittance Y (nf, N,
N; ohm/m and S/m, Z = R + j w L, Y = G + j w C, any matrices: an RLGC's):
ports 1..N at the near ends, N+1..2N at the far ends, reference z0. The
modes of Z Y, the section's admittance from them.