klayout-pex-plugin-palace
Palace electrostatic decks from KLayout-PEX PEX25D scenes: the capacitance matrix of every net, floating conductor and the ground plane, by FEM.
Usage
pip install klayout-pex-plugin-palace
pex25d export cell.pex25d --to palace --out_dir deck
cd deck && palace -np 4 config.json
- Output of the exporter:
config.jsonmesh.mshandmesh.json, from klayout-pex-plugin-gmsh
- Run Palace in the deck directory: paths in the config are relative.
- Results: in
postpro/terminal-C.csv: the Maxwell matrixterminal-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,mpirunrefuses to start, so usepalace -serial config.json.
Options
The mesh options of klayout-pex-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 (klayout-pex 0.6.3 or later) or options={...} in Python.
Development
poetry install # uses ../klayout-pex-plugin-gmsh until it is on PyPI
poetry run pytest # runs Palace too, if it is on PATH
Metadata
Release files for klayout-pex-plugin-palace 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| klayout_pex_plugin_palace-0.1.0.tar.gz | 15.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| klayout_pex_plugin_palace-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.9 kB
Release files / klayout_pex_plugin_palace-0.1.0.tar.gz
| Download URL | klayout_pex_plugin_palace-0.1.0.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed816180dee653911a4c5d4431f46cedac04e95700012f9ab7c8a5e2e02f2fe7
|
|
BLAKE2b-256 checksum How to use checksums |
19eca679ad2b3e451e76368ea7c3ce16d7b6ff24b5aece82c8ad635dda56f5d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 6, 2026.
Transparency logRelease files / klayout_pex_plugin_palace-0.1.0-py3-none-any.whl
| Download URL | klayout_pex_plugin_palace-0.1.0-py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f709f9618b6cebc57f7928ae8416af13f115a05062ad613db4ca1caa8122c652
|
|
BLAKE2b-256 checksum How to use checksums |
27c64bfeaa44917aacb8bb0fa66d93ceebe8f2ccbbcc017c477883306738192e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 6, 2026.
Transparency log