kicad2ems.fdtd.converge¶
Mesh convergence check: the same model on several mesh levels. Level f uses res
x f cells per wavelength, fine / f at the copper edges (the fine cell of level 1
as the base) and ceil(nz x f) cells through each dielectric; everything else
unchanged. The finest level is the reference; each coarser level is compared
with it.
- kicad2ems.fdtd.converge.compare_levels(S_levels, names, floor_db=-40.0)[source]¶
Each level against the last (finest). S_levels: list of (nf, n, n) arrays. Returns one dict per coarser level: {'params': {'S(a,b)': (max |d dB|, max |d phase| deg)}, 'max_db', 'max_deg'}. Points where the reference is below floor_db are left out (noise floor, undefined phase).
- kicad2ems.fdtd.converge.describe_levels(levels)[source]¶
Cells, time step and relative run time (cells / time step, level 1 = first) per level.