kicad2ems.emsdev.numerics.sing¶
Analytic integrals of 1/R over triangles with an out-of-plane offset d
For the near-singular kernel 1/sqrt(rho^2 + d^2) between metal on two closely
spaced interfaces (thin prepregs, the two sheets of a thick conductor). One
integral analytic (Wilton et al. 1984 / Graglia 1993), the other by a 6-point
rule over the observation triangle; d = 0 reduces to the in-plane formulas
(mom25d.base.singular_moments). pcbqs's compiled static, compressed and layered
kernels and its CuPy kernel integrate the same way, held to this by its tests;
mom25d runs the rule over the smaller triangle of each pair instead
(mom25d.sing).
- kicad2ems.emsdev.numerics.sing.offplane_pairs(nodes, tris, p_idx, q_idx, d, chunk=4000, outer_levels=0, _geometry=None, scalar_only=False)[source]¶
For pairs (p, q) of triangles (observation p, source q) at vertical offset d: m0 = int_p int_q 1/R mro = int_p r int_q 1/R (observation-weighted, 2-vector) mrs = int_p int_q r'/R (source-weighted, 2-vector) mrr = int_p int_q r.r'/R d may be a scalar or one offset per pair. outer_levels subdivides the observation triangle into four per level, improving self and near-singular terms. With scalar_only=True, returns just m0 without computing current moments.