klayout-pex-plugin-elmer
Elmer FEM electrostatics cases from KLayout-PEX PEX25D scenes: the capacitance matrix of every net, floating conductor and the ground plane, by FEM (StatElecSolver).
Usage
pip install klayout-pex-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 klayout-pex-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.
Options
The mesh options of klayout-pex-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 (klayout-pex 0.6.3 or later) or options={...} in Python.
Elements are linear. On the same mesh, the matrix matches Palace with order 1.
Development
poetry install # uses ../klayout-pex-plugin-gmsh until it is on PyPI
poetry run pytest # runs ElmerGrid and ElmerSolver too, if they are on PATH
Metadata
Release files for klayout-pex-plugin-elmer 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_elmer-0.1.0.tar.gz | 16.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| klayout_pex_plugin_elmer-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.7 kB
Release files / klayout_pex_plugin_elmer-0.1.0.tar.gz
| Download URL | klayout_pex_plugin_elmer-0.1.0.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
696a7844ba543504a25f436f4f15cce6790b2950930314bf1c759242002965fc
|
|
BLAKE2b-256 checksum How to use checksums |
232951fe4f24d6d49da7ea48515a020ef645d505037bc124f72d7419d5d0a42e
|
| 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_elmer-0.1.0-py3-none-any.whl
| Download URL | klayout_pex_plugin_elmer-0.1.0-py3-none-any.whl |
|---|---|
| Size | 18.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
224a4a2a7cbee8c0c80dbdce146f433db542c810be46460f4b9196516ff9f75c
|
|
BLAKE2b-256 checksum How to use checksums |
937cfa4abd8e96116b3d7c13eb924d8fdf31a636f49e7c354cf9629242392c58
|
| 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