kicad2ems.mom25d.near

mom25d.near - the near triangle pairs of a mesh and the sparse matrix of their correction
(fast.py's, split out: R-F3)
kicad2ems.mom25d.near.near_pairs(sim, near_fac=None)[source]
(nP, nQ): the near triangle pairs of sim's mesh (sorted, near if within
either's radius), found once: the memory plan counts them before the
FastOperator is made (policy.memory_plan's pairs), which takes the same.
kicad2ems.mom25d.near.near_sparse(op, pairs=None)[source]
The n x n CSR of the core's exact near-field correction for operator op
(fast.FastOperator: its core, mesh, tables, quadrature, near pairs), and
its per-pair via-fan correction, built a piece of `pairs` near pairs at a
time (NEAR_PAIRS). All the triplets at once had peaked at ~625 bytes a pair
(a CM5 carrier's F.Cu, 74 M pairs: more than this machine's RAM, where the
CSR is a fraction of it). The structure is found on the first frequency (a
pass over the pieces for their entries alone, merged) and kept on op: each
piece's sort of its slots and where its entries go. Then, and at every
later frequency, each piece's values are summed straight into the CSR.