kicad2ems.mom25d.fast¶
mom25d.fast - the solvers: Z filled by the compiled core and solved directly
(LU, double or mixed precision, on the CPU or the GPU) or by the block
low-rank LU and GMRES
Z = Z_far + dZ_near
Z_far : every interaction with a 1-point (centroid) rule per triangle
dZ_near : sparse correction (accurate - centroid) for triangle pairs
closer than near_fac cell sizes: analytic singular /
near-singular parts + higher-order quadrature
Vias and lumped elements add a few dense rows/columns and sparse entries.
The compiled core is required (its mesher too): python -m
kicad2ems.mom25d.core.build.
- class kicad2ems.mom25d.fast.FastOperator(sim, near_fac=None)[source]¶
Builds Z for a mom25d.sim.Simulation with the compiled core and solves with it (solve: policy.choose's plan at each frequency).
- kh2(f)[source]¶
(k h)^2 at f: k in the densest dielectric, h the mesh's median edge - about the ratio of a cell's jw part of the MPIE to its 1/(jw) part.
- matvec_exact(X, Sx=None)[source]¶
Z X in double precision without storing Z, X: N or N x k (far: triangle-aggregated, one kernel pass for all columns; near: dZ_exact, or on the fly).
- plan(f)[source]¶
policy.choose's SolvePlan at f, from the simulation and what this operator holds and learnt; its notes once.