mom25d.slots - openings in a PEC plane of the stack (slot planes)
A plane of the stack (LayerStack.pec) stays a perfect conductor, not meshed, and
each of its openings - a slot, a defected-ground cut, the aperture of an
aperture-coupled patch - is meshed on its own: its unknowns are the tangential
electric field in the opening, so the plane costs about its openings' area
instead of its own. The frill holes (frill.py) are the case of a round hole
round a via, with a few fixed field shapes; here the field is free over the
opening, in RWG functions.
Model ----- The field in an opening is E = z x M on its mesh, M a sum of RWG
functions (their normal component is zero at the opening's rim, so E along the
rim is: the PEC's). Closing the opening and putting E on both faces of the plane
(a magnetic current each side) leaves two problems, each with the plane as its
ground or cover, as for a frill (frill.py, with the same conventions: exp(+jwt),
the spectral network of multilayer.py, T_k = LayerStack.transfer the voltage at
interface k of the network driven by a unit voltage at the plane). A field
element E dA at the origin of the opening gives, on a metal interface k on
either side:
its TM part, a potential Psi_k = (E . rho^) P_k(rho), P_k = -(1/2 pi)
int T_k^e J1(kr rho) dkr
its TE part, a field E_k = (U0_k I + U2_k R2(phi)) E, U_n = (1/4 pi)
int T_k^h J_n(kr rho) kr dkr R2 = [[cos 2 phi,
sin 2 phi], [sin 2 phi, -cos 2 phi]]
along a via in layer span -int E_z dz less its potential part: (E . rho^)
Rem(rho), Rem = -(1/2 pi) int sum_j (T_j -
T_{j-1}) k_j^2 / (kr^2 - k_j^2) J1(kr rho) dkr
(a frill's shapes are these, superposed over its hole: tests/test_slots.py
checks it). The unknowns v_n (the amplitudes of E_n = z x f_n) take one equation
each, H continuous across the opening, tested with f_n; by reciprocity the
system stays symmetric, as frill.py's:
[ Z c ] [I] [E]
[ c^T -Y ] [v] = [0]
c_mn = -<f_m, E_k of E_n> = -int div f_m Psi_k(E_n)
- int f_m . E_k^TE(E_n) (edges), the chains' ends on pads by their
fans' charge and the remainder (frill.py)
Y_mn = int int f_m . f_n G_e + int int div f_m div f_n G_d
(one plane's openings)
G_e = (1/2 pi) int Ye J0 kr dkr,
G_d = (1/2 pi) int (Yh - Ye) / kr^2 J0 kr dkr
Ye, Yh: the TM and TE admittances into both sides of the plane (Yu + Yd). Y is
the dual of the strips' Z (Vh I + (Ve - Vh) k^k^ there, Ye I + (Yh - Ye) k^k^
here), and is filled the same way: G_e / (jw) as its "A" and jw G_d as its "q",
their 1/rho parts eps0 (eps_below + eps_above) / (2 pi) and 1 / (pi mu0) taken
out and integrated analytically (base.singular_moments).
Between an opening's triangle and a strip's, the kernels are smooth (the plane
is no metal interface): one point each where they are far apart, quadrature
where they are near (the opening's triangles subdivided, the field peaking over
the plane's distance to the strip, each pair subdivided to the scale of its own
distance). An opening's field radiates (farfield.py).
A via ending on the plane outside the openings is not at zero potential there:
only a round hole's axisymmetric field leaves the plane at zero, while another
field's TM part has a potential on the plane, P_p = -1 / (2 pi rho) (T = 1),
whose gradient cancels its TE part's field on the metal. The via is charged it
at that end, as its fans are at their ends (+ at its top, - at its bottom).
Without it a port via's potential at its pad stood alone, and a slot's effect on
the line came out about doubled (S21 -12 dB at 8 GHz where the ground meshed
gives -5.1 dB; 2026- 11-15). frill.py's first-order shapes leave such a
potential too, and its chains see it since then.