kicad2ems.emsdev.numerics.base

The pieces of the planar solvers (mom25d's MoM, pcbqs's PEEC and statics) on
triangles: RWG basis functions, the assembly of triangle-pair moments into the
basis's matrix (combine), the quadrature rules and the constants.

Time convention exp(+j w t).
class kicad2ems.emsdev.numerics.base.RWG(nodes, tris)[source]
RWG basis functions on interior edges. f = alpha*(r - v) on each adjacent
triangle.
kicad2ems.emsdev.numerics.base.combine(rwg, Mrr, Mrx, Mry, M0)[source]
Assemble the Ne x Ne matrix of  int int f_m . f_n K  from triangle-pair
moments.
kicad2ems.emsdev.numerics.base.edge_frames(V)[source]
Per triangle (vertices V, (Nt, 3, 2), counter-clockwise) and edge:
vector, length, unit tangent, outward normal.
kicad2ems.emsdev.numerics.base.graded(u, grade)[source]
u in 0..1 graded toward both ends (cosine) by `grade` (0: uniform): the
cells across a strip.
kicad2ems.emsdev.numerics.base.qform(S1, M, S2)[source]
S1^T M S2 for sparse S1,S2 (Nt x Ne) and dense M (Nt x Nt).
kicad2ems.emsdev.numerics.base.tri_area2(V)[source]
Twice the signed area of planar triangles V (..., 3, 2+): the z of
(V1-V0) x (V2-V0). np.cross no longer takes 2-vectors (NumPy 2.5), so it is
written out.