PalaceToolkit

PalaceToolkit#

PalaceToolkit is a lightweight Python package that integrates Palace and Gmsh into a unified open-source electromagnetic FEM simulation workflow.


What is PalaceToolkit?#

PalaceToolkit bridges the gap between mesh generation and full-wave electromagnetic solving. In a single Python script you can:

  • Define geometry with the Entity abstraction and Gmsh’s OpenCASCADE kernel.

  • Generate meshes via an automatic boolean pipeline that handles material priorities, interface labelling, and physical-group assignment.

  • Configure & run Palace — build JSON configs from entity definitions and launch solves with the downloaded executable by default, or an Apptainer/SIF image when needed.

  • Post-process results — extract S-parameters, impedance, effective index, and render interactive 3D mesh viewers.