Skip to main content

kpex-plugin-palace

Palace electrostatic decks from KPEX PEX25D scenes: the capacitance matrix of every net, floating conductor and the ground plane, by FEM.

Usage

pip install kpex-plugin-palace
pex25d export cell.pex25d --to palace --out_dir deck
cd deck && palace -np 4 config.json
  • Output of the exporter:
  • Run Palace in the deck directory: paths in the config are relative.
  • Results: in postpro/
    • terminal-C.csv: the Maxwell matrix
    • terminal-Cm.csv: mutual capacitances
    • terminal i is the group with tag i in mesh.json
  • In IIC-OSIC-TOOLS: Palace is in /foss/tools/bin. As root, mpirun refuses to start, so use palace -serial config.json.

Ground openings and electrical identity

Ground openings, retained ground islands and their coatings follow the selected PEX25D scene. The reference net identifies the terminal independently of the ground profile name. Floating bodies remain separate even when their names match connected nets; an optional body_names.json records disambiguated solver labels.

These features require a Gmsh backend that explicitly supports both ground cutouts and electrical identity. An older or incomplete backend is rejected before files are written.

Scenes requiring capacitance accounting are rejected before output. Ground openings and electrical ownership alone do not implement exclusion masks, charge groups or filtered capacitance results.

Options

The mesh options of kpex-plugin-gmsh, plus:

Option Default Meaning
order 1 Polynomial order of the finite elements; 2 is about 1% more accurate with the default mesh, at about 9 times the run time
outer_boundary zero_charge Domain box: zero_charge (no field crosses it) or ground (0 V)
linear_tol 1e-8 Relative residual of the linear solver
linear_max_iterations 200

Pass them with pex25d export --option NAME=VALUE or options={...} in Python.

Migration

Moving from klayout-pex-plugin-palace? Install the renamed plugins in a fresh environment with kpex>=0.12.0 to avoid registering the same exporters twice.

Requirements

  • kpex>=0.12.0,<1 (plugin API v1 is provisional)
  • kpex-plugin-gmsh>=0.3.0,<0.4

Development

poetry install
poetry run pytest # runs Palace too, if it is on PATH

Acknowledgements

This project is funded by the JKU/SAL IWS Lab, a collaboration of Johannes Kepler University and Silicon Austria Labs.

This project is further funded by the European project ODE4EC-AMS, which has received funding from the Chips Joint Undertaking (Chips JU) under Grant Agreement No 101252962.

Funded by the European Union. Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the Chips Joint Undertaking. Neither the European Union nor the granting authority can be held responsible for them.

Johannes Kepler University: Institute for Integrated Circuits and Quantum Computing            Silicon Austria Labs

Co-funded by the European Union            Chips Joint Undertaking

Metadata

Release files for kpex-plugin-palace 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kpex-plugin-palace 0.3.0
File Size Uploaded Provenance Actions
kpex_plugin_palace-0.3.0.tar.gz 17.0 kB With provenance Details for kpex_plugin_palace-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kpex-plugin-palace 0.3.0
File Interpreter ABI Platform Actions
kpex_plugin_palace-0.3.0-py3-none-any.whl Python 3 none any Details for kpex_plugin_palace-0.3.0-py3-none-any.whl

Total release size: 36.3 kB

Release files / kpex_plugin_palace-0.3.0.tar.gz

Download URL kpex_plugin_palace-0.3.0.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ad4a5e7472286e9c6fa347784cd25b8fffb3934ab3edaa50846ceb8b0c7665de
BLAKE2b-256 checksum
How to use checksums
835eefac114d5a8d191e45716c3799b18efa151e0b7cdcd08eeaf377b19d9ee8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / kpex_plugin_palace-0.3.0-py3-none-any.whl

Download URL kpex_plugin_palace-0.3.0-py3-none-any.whl
Size 19.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57b0bd272ca9e02a3b1e7ec83545e6c6e656e0f92081a0fa621988c19e929bd8
BLAKE2b-256 checksum
How to use checksums
6b43998b3183427a9ccf5a8944fc368102040330614e45d7cd0b2273ba50b668
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for kpex-plugin-palace 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for kpex_plugin_palace-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page