kicad2ems.fem.palace.solver

Palace (AWS's finite-element solver, awslabs/palace) as a kicad2ems solver: the
board meshed in tetrahedra by gmsh (model.py), a driven Palace run over the band
with its adaptive frequency sweep (config.py), every port excited in turn
(run.py).

Experimental. What it models: the dielectric slabs inside the board outline,
lossy by their tand; copper as PEC sheets of zero thickness (or lossy ones,
--palace-loss); vias as PEC holes; lumped ports; lumped R / L / C parts as
lumped boundaries across their gaps; edge walls as PEC sheets; drawn solids as
volumes (metal ones holes, PEC or with --palace-loss the metal's surface
impedance, model.py); an air box with
an absorbing boundary around the board, or a closed metal can (--palace-box pec,
--palace-margin its distance from the board). Antenna mode: a second run at a
few frequencies for the far field of the driven port (antenna.py). Eigenmodes
(--palace-modes N, R-E19): after the driven run, the model's N resonances above
fmin, each one's frequency and Q loaded by the ports' resistors, in the summary
and the report. Not yet: roughness, surface finish, phased drives.
class kicad2ems.fem.palace.solver.Palace[source]
assess(run)[source]
Why it cannot model this board in this run, a list of reasons ([]: it
can). Called after the board and the line model are built, before any
solver prepares.
check(s=None)[source]
(usable, one line): its version and origin, or what is missing and
how to get it. s: the run's settings, where one says where the solver is
(--qucsator); None for --check.
deviations(run, prep)[source]
[Deviation]: what it models differently from the board, by its own
rules (vias moved onto a mesh, parts split, walls as via rows), for the
report and the parity checks.
estimate(run)[source]
Its rough cost (R-B21): the mesh built as the run would (gmsh,
seconds), its tetrahedra scaled by the runs above. Only for a run that
has it (a preview estimates every solver: the mesh is seconds to
minutes), gmsh's own output kept out of the run's.
prepare(run)[source]
Its own form of the board (openEMS: the boundaries and the mesh),
handed to solve() and the later steps; None when it needs none. A
preview stops here.
solve(run, prep)[source]
The Result: S-parameters over the board's ports as reported
(differential pairs as mixed-mode ports).
validate(s)[source]
A message when its settings in s cannot be used together (None:
fine); checked for every run.