gsim 0.6.0
Electromagnetic simulation for photonics and electronics, powered by GDSFactory+
Overview
gsim connects GDSFactory layout designs to multiple EM solvers for photonic and electronic simulation. It handles geometry extraction, mesh generation, port configuration, and cloud execution so you can go from GDS to S-parameters with minimal boilerplate.
Solvers
| Module | Solver | Method | Use Case |
|---|---|---|---|
gsim.fdtd |
GDSFactory FDTD | FDTD | PDK-native mesh and runtime configuration generation |
gsim.palace |
Palace | FEM | RF/microwave, impedance extraction, driven simulations |
gsim.meep |
Meep | FDTD | Photonic components, S-parameters, mode propagation |
Features
- Layer stack extraction — build 3D geometry from PDK layer stacks
- Port configuration — convert GDSFactory ports into solver-compatible definitions
- Mesh generation — GMSH finite-element meshes with configurable quality presets (Palace)
- Cloud execution — upload, run, and download results via
gsim.gcloud - Visualization — solver-agnostic 3D/2D component preview (PyVista, Matplotlib)
Installation
pip install gsim
For local Palace execution on Linux x86_64, gsim can auto-download and cache a prebuilt Palace CPU binary on first use.
No additional package installation is required. If you prefer to supply a binary yourself, set PALACE_BIN (path to an
executable) or put palace on your PATH; a Palace SIF image may be given via PALACE_SIF for Apptainer-based runs.
For development (requires uv):
git clone https://github.com/gdsfactory/gsim
cd gsim
uv sync --dev
Or use the justfile:
just dev
Documentation
See the documentation for API reference and examples.
License
Metadata
Release files for gsim 0.6.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 | |
|---|---|---|---|
| gsim-0.6.0.tar.gz | 435.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gsim-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 915.1 kB
Release files / gsim-0.6.0.tar.gz
| Download URL | gsim-0.6.0.tar.gz |
|---|---|
| Size | 435.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cbfaae2593ed1addcfe1ced3a0e74be5430a0398a5beff0b73cb4b673717fef6
|
|
BLAKE2b-256 checksum How to use checksums |
01da9bbd05a8360bfebd0394345b21f15d0cfd4b8dffaeb006d9100b3c661373
|
| 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 Sep 30, 2026.
Transparency logRelease files / gsim-0.6.0-py3-none-any.whl
| Download URL | gsim-0.6.0-py3-none-any.whl |
|---|---|
| Size | 479.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb5f08fd7cd299ff450c88cca6832b33093367e614ad2a168e85e327e96969fe
|
|
BLAKE2b-256 checksum How to use checksums |
97b9e5a16f269e3b7d22af27b53f6d37bf9aee062344b8c61e6e5a1d4e82ddc7
|
| 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 Sep 30, 2026.
Transparency log