kpex-plugin-elmer
Elmer FEM electrostatics cases from KPEX PEX25D scenes: the capacitance matrix of every net, floating conductor and the ground plane, by FEM (StatElecSolver).
Usage
pip install kpex-plugin-elmer
pex25d export cell.pex25d --to elmer --out_dir case
cd case && ElmerGrid 14 2 mesh.msh -autoclean && ElmerSolver case.sif
- Output of the exporter:
case.sifmesh.mshandmesh.json, from kpex-plugin-gmsh
- Running it: ElmerGrid converts the mesh into the directory
mesh/, whichcase.sifreads. - Result:
cmatrix.dat- mutual capacitances off the diagonal
- capacitance to ground on the diagonal, which is zero with the default
outer_boundary - body i is the group with tag i in
mesh.json
- IIC-OSIC-TOOLS doesn't include Elmer.
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 |
|---|---|---|
outer_boundary |
zero_charge |
Domain box: zero_charge (Elmer's natural boundary condition) or ground (0 V) |
linear_tol |
1e-10 | Relative residual of the linear solver (BiCGStabl, ILU1) |
linear_max_iterations |
1000 |
Pass them with pex25d export --option NAME=VALUE or options={...} in Python.
Elements are linear. On the same mesh, the matrix matches Palace with order 1.
Migration
Moving from klayout-pex-plugin-elmer? 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 APIv1is provisional)kpex-plugin-gmsh>=0.3.0,<0.4
Development
poetry install
poetry run pytest # runs ElmerGrid and ElmerSolver too, if they are 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.
Metadata
Release files for kpex-plugin-elmer 0.3.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 | Provenance | Actions |
|---|---|---|---|---|
| kpex_plugin_elmer-0.3.0.tar.gz | 17.4 kB | With provenance | Details for kpex_plugin_elmer-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kpex_plugin_elmer-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for kpex_plugin_elmer-0.3.0-py3-none-any.whl |
Total release size: 37.1 kB
Release files / kpex_plugin_elmer-0.3.0.tar.gz
| Download URL | kpex_plugin_elmer-0.3.0.tar.gz |
|---|---|
| Size | 17.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
41fd94753a7141c4b2d74843e424cbb17c605e3232c3d4091bf5f7f769416129
|
|
BLAKE2b-256 checksum How to use checksums |
637689dc51c87d977cb8c9328a0cd7bca07489b0e6143962948d3a0304a5b0fa
|
| 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 logRelease files / kpex_plugin_elmer-0.3.0-py3-none-any.whl
| Download URL | kpex_plugin_elmer-0.3.0-py3-none-any.whl |
|---|---|
| Size | 19.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d208a825911c02a6a8fee9e68c4344bafb1176ee412c618dd2a189b72482e8f3
|
|
BLAKE2b-256 checksum How to use checksums |
4260ae1726897a2459d50b4e4d2c42af53e78a30e3614f52c9d4534cdf9e4ca4
|
| 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 logSecurity for kpex-plugin-elmer 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.
Attestation for kpex_plugin_elmer-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 logA 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.