kicad2ems.dfsynth.circuit

A small ABCD circuit simulator for the filters: ideal (TEM) elements for
checking a synthesis, and microstrip elements on a Substrate (dispersion, loss,
open ends, gaps, vias) for the expected response of a layout.

    net = [MLine(sub, w, 12.0), MStub(sub, w2, 8.4, 'open'),
           MLine(sub, w, 12.0)]
    s11, s21 = sparams(net, f)  # complex arrays over f (Hz), 50 ohm ports
class kicad2ems.dfsynth.circuit.Ideal[source]
TEM elements: z ohm, electrical length theta0 (rad) at f0.
kicad2ems.dfsynth.circuit.MCoupled(sub, w, s, length, open_ext=True)[source]
An edge-coupled section (diagonal ports, the other ends open): open_ext
adds each open end's extension (as the layout shortens the strips by it).
kicad2ems.dfsynth.circuit.MGap(sub, w, s)[source]
A series gap in a strip: pi of Cp, Cg, Cp.
kicad2ems.dfsynth.circuit.MLine(sub, w, length)[source]
A microstrip line of width w, length (mm).
kicad2ems.dfsynth.circuit.MRadial(sub, w_line, r2, angle, count=1)[source]
`count` radial open stubs (1, or 2 for a butterfly) in shunt at a line of
width w_line, each a fan of apex angle (degrees) and radius r2 (mm) about
the line's centre.
kicad2ems.dfsynth.circuit.MStub(sub, w, length, kind='open', vias=1, drill=0.3)[source]
A shunt stub of width w, physical length (mm). open: the open-end
extension is added; short: ends in `vias` vias of `drill` mm in parallel.
kicad2ems.dfsynth.circuit.radial_admittance(sub, r1, r2, angle, f)[source]
Input admittance (S, array over f) at radius r1 (mm) of an open radial
stub of angle (degrees) and outer radius r2 (mm), as a radial line: E_z ~
J0(kr) + c Y0(kr), H_phi ~ j / eta (J1(kr) + c Y1(kr)), c from H_phi = 0 at
the rim (moved out by the open-end extension of a strip as wide as the rim's
arc). The sector's wave impedance eta h / (theta r) uses an effective angle:
that of a microstrip as wide as the arc at the mean radius (its Z0 and eeff,
so fringing is in), the same eeff in k.
kicad2ems.dfsynth.circuit.sparams(net, f, z0=50.0)[source]
(S11, S21) of the cascade (its elements' ABCD matrices in turn) between
z0 ports.