Skip to main content

Create AWS Palace FEM Models from GDSII layout files

Intro

The files provided here enable RFIC FEM simulation using AWS Palace from GDSII layouts created in IHP SG13G2 RFIC technology.

Palace, is an open-source, parallel finite element code for full-wave 3D electromagnetic simulations. It can be scaled from single computer to large high performance simulation clusters and cloud-based computing.
https://awslabs.github.io/palace/stable/

In addition to AWS Palace, gds2palace can also generate models for Elmer FEM, as an additional workflow option for EM (S-parameter) simulation as well as steady-state thermal simulation. See CHANGES.md for this and other recent additions.

The gds2palace workflow in this repository is pre-configured for GDSII layout files in the IHP SG13G2 Open PDK. Special thanks to IHP and the public funded German project FMD-QNC (16ME0831) https://www.elektronikforschung.de/projekte/fmd-qnc for financial support, which has contributed to this work.

Install

pip install gds2palace

Full documentation, installation guide, and usage walkthrough: https://github.com/VolkerMuehlhaus/gds2palace_ihp_sg13g2

Recent changes

12 November-2026

gds2palace 0.10.4

Changes
Tests on the shipped examples: python -m pytest tests runs the scripts in workflow/ and selected ones from more_examples/ and compares the GDS reader output and the gmsh model with the layout and the stackup. python -m pytest tests -m examples also meshes the models and compares the model files with stored records. See tests/README.md. Both run on GitHub for every push and pull request.

Without a display (Linux with neither DISPLAY nor WAYLAND_DISPLAY set, e.g. over ssh, in a container or a batch job), the model is built without the gmsh window, as with settings['no_gui'] = True, and a line in the output says so. Before, such a script stopped with "Can't open display" unless it set no_gui. This also covers scripts exported from setupEM.

combine_extend_snp.py (combine_snp) has --help and --version, and takes the folder to search as an optional argument (default: the current folder). Before, any option was ignored and the conversion ran.

Fix
Repair of polygons with cutouts: a splitting step that could stall model generation without a message is no longer used. A polygon that cannot be repaired without it is left as read, with the existing warning.

Documentation
User's guide, chapter "Dielectric loss modelling": redone with conductor_model = 'solve_inside_skin' and Palace 0.19.0, against the measured 880 µm and 2580 µm lines, including the line's attenuation from the two lengths. The earlier agreement up to 40 GHz came from the surface model's extra loss in the Metal1 ground plane; with the right conductor loss, a SiO2 loss tangent of about 0.015 explains most of the measured line loss from 20 to 110 GHz. The supplied stackups stay lossless. New section on the loss of the silicon substrate. Chapter "Conductor loss modelling" and the appendix no longer describe conductors as always hollow; the appendix describes the PEC material and how dielectrics and semiconductors are written to Palace (loss tangent or conductivity), and its stackup example uses PEC sheets for SUBGND and BACKSIDEGND (the old one, a sheet with a conductor material, stops with an error). Sheets need a resistor or PEC material.

12 November-2026

gds2palace 0.10.3

Fix
A metal strip that reaches into a cutout could be missing in the model. It happened when the GDSII file encodes the cutout with its connecting slit along the cutout edge, past the root of the strip, as KLayout can write it. Example: a ground plane with a slot and a feed strip into the slot.

11 November-2026

gds2palace 0.10.2

Changes
Faster Palace runs without adaptive mesh refinement: the error estimate, which is then only reported, is computed with EstimatorTol 1e-2 instead of Palace's default 1e-6. S-parameters are unchanged. Example: a Butler matrix with 8 ports at one frequency took 254 s instead of 507 s.

New features
settings['wall_extension']: per side, e.g. {'xmax': 2000}, continues the layout's cross-section at that edge outward to the wall, for a side that is not a port wall. setupEM writes it for the pieces of a split region.

Port walls with several lines: D (span of the lines + 2 x distance to ground, which sets the length of the standards) is now that of the largest group of coupled lines, not of the whole span of the lines on the wall. This gives shorter standards and a calibration valid to higher frequency.

Fix
A via port in the plane of a PEC wall was shorted by the wall, with no message. The model is no longer written, and the error names the port and the side.

Port walls: next to a wall with a port_wall_extension, the metal in the standards ended at the layout edge. It now continues to the extended wall, as in the model.

Full history: CHANGES.md


Note: the gds2palace PyPI package itself only requires:

  • gdspy>1.6.0
  • gmsh
  • numpy
  • shapely>=2.0

(Other Python modules mentioned above are only needed to run the example/model scripts in this repository, not to use the installed package.)

Metadata

Release files for gds2palace 0.10.4

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

Source distribution (sdist)

Source distribution for gds2palace 0.10.4
File Size Uploaded Provenance Actions
gds2palace-0.10.4.tar.gz 171.4 kB Without provenance Details for gds2palace-0.10.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gds2palace 0.10.4
File Interpreter ABI Platform Actions
gds2palace-0.10.4-py3-none-any.whl Python 3 none any Details for gds2palace-0.10.4-py3-none-any.whl

Total release size: 330.4 kB

Release files / gds2palace-0.10.4.tar.gz

Download URL gds2palace-0.10.4.tar.gz
Size 171.4 kB
Tags Source
SHA-256 checksum
How to use checksums
789d008d6c0a0c1d5ef06c9cff367deefbc37d04257abc3527c6c836a48fe53a
BLAKE2b-256 checksum
How to use checksums
4b727401008bd345daf598b74e9692b1cae0f25df0722e0783118e2abcd41d0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / gds2palace-0.10.4-py3-none-any.whl

Download URL gds2palace-0.10.4-py3-none-any.whl
Size 159.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8acbedfb6df8c584372fa6342075eb79167755eb3a3fa7fd1c3171b9d4e9360d
BLAKE2b-256 checksum
How to use checksums
65b44ae1f59c0018ea13cae2a397701174a9e78706d3f59668d91a83769f99e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for gds2palace 0.10.4

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.10.4 This release

2 release files No 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