kicad2ems.mom25d.base

mom25d.base - the pieces of the 2.5D planar Method-of-Moments solver its layers
share beyond the RWG functions and rules of emsdev.numerics.base: the
frequency-independent 1/R moment integrals (the inner integral analytic, Wilton
et al.), the smooth kernels' moments by quadrature, the Gram matrix and the
travelling-wave fits on a port's feed line.

Time convention exp(+j w t).
kicad2ems.mom25d.base.fit_gamma(Ik, step)[source]
Propagation constant from uniformly spaced samples of a 2-exponential
current.
kicad2ems.mom25d.base.fit_waves(Ik, s, gamma)[source]
I(s) = a e^{-g s} + b e^{+g s}  ->  (a, b) per excitation.
kicad2ems.mom25d.base.gram_matrix(rwg)[source]
int f_m . f_n dS (for a surface-impedance term Zs * Gram), sparse (CSR):
combine's sum with its triangle-pair moments diagonal (a basis function
overlaps another only on the triangles they share). Built from dense
Nt x Nt diagonals and Ne x Ne products it had taken 5 x 8 Ne^2 bytes (836 MB
at 4,485 unknowns, ~65 GB at 40k) on the first frequency with --sigma.
kicad2ems.mom25d.base.moments7(GA, GQ, ra, rb)[source]
The seven moments of the kernels between points ra (observation) and rb
(source), (..., 2) each: G_A x [1, x_a, y_a, x_b, y_b, r_a . r_b] and G_q
(combine's triangle-pair moments, unsummed).
kicad2ems.mom25d.base.quad_moments(P, W, p, q, gt, chunk=20000)[source]
(7, len(p)) moments7 of the smooth kernels (gt.AQ) between triangles p
and q by quadrature (points P, weights W per triangle).
kicad2ems.mom25d.base.singular_moments(rwg, nb=16)[source]
Frequency-independent 1/R integrals between all triangle pairs, inner
integral analytic:
  M0[p,q]  = int_p int_q 1/R          Mr[p,q,:] = int_p r  int_q 1/R
  Mrr[p,q] = int_p int_q r.r'/R