kicad2ems.mom25d.blocks

mom25d.blocks - the via and sides blocks (B, C) between the frequencies a
sweep has solved

An entry of B or C is a / (jw) + b + jw c: the layered kernels' integrals of
the charge and of the current, which change with f as the kernels do (the
phase over the board, a wideband dielectric's permittivity). So s B and s C
are smooth in f, s = jw eps (eps: a metal interface's permittivity at f, the
charge's 1 / eps taken out as its 1 / (jw) is), where the blocks themselves
cost a solve's largest share on a board with vias and thick copper (the SMA
launch: 2.4 s of 6.4 s a frequency). The blocks a sweep fills are kept
(anchors: the first in double, the others their complex64 difference from
it), and a frequency between them takes the polynomial in f through the P
nearest, where that and the one through P - 1 agree to TOL on a sample of
rows; else its blocks are filled and kept too. What is not smooth is left
out of them and added at each frequency: the elements in vias and the
barrels' loss (sim._via_loss).

The strips' own block is filled at every frequency, from the Green tables,
and a loop of current (a side's vertical with its folds and the sheet's
edges about its node) sees no charge only where its columns of B, C and of
the strips' block are one kernel's: blocks 1e-8 off the tables' (5 anchors
from 1 to 8 GHz) moved rf_interdig's S by 2e-4 at a resonance, the plates'
loops being 1e-4 of their charge terms. So such a frequency's tables are
the anchors' too (tables: by the same weights, the current's with w^2 and
the charge's without, as s B has them), and its whole matrix is the
polynomial through the anchors'.

The differences are single precision's: of the charge's part what is left
after eps is the layers' permittivities drifting apart (a wideband board's:
0.5 % a decade) and the phase. So a frequency where the current's part is
less than LOOP_TREE_BELOW of the charge's is filled (fast.FastOperator).
class kicad2ems.mom25d.blocks.Anchors[source]
The blocks kept over a sweep (any number of them a frequency, each a
matrix). at(f): the weights of f's polynomial and which blocks it holds
for, or None; mix: a block from them; add: blocks filled, kept.
add(f, X, s, tb, scales, room, spare)[source]
Keep the blocks X filled at f, s x them (what is smooth in f),
and f's tables, where the anchors stay within `room` bytes and
that leaves `spare` bytes of memory available. scales: each
block's (rows', columns') scales for the estimate (None: 1).
at(f)[source]
([(anchor, weight)], [each block's estimate within TOL]) of the
polynomial through the anchors about f (its neighbours first, then
outwards), or None: outside them, or fewer than P. (Anchor 0 is the
base: its weight what the others leave of 1.)
mix(j, kw, s, out=None)[source]
Block j from at(f)'s weights and f's s, into out (a block of Z)
where given.
tables(kw, f, s)[source]
The Green tables at f as the blocks have them: {A, cA, cAi, Q,
cq, cqi} of the anchors' by at(f)'s weights, the current's (s B's
part in w^2) x s_k f_k / (s f), the charge's x s_k f / (s f_k).