Electromagnetic simulation for photonics and electronics, powered by GDSFactory+
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.
| Module | Solver | Method | Use Case |
|---|---|---|---|
gsim.palace |
Palace | FEM | RF/microwave, impedance extraction, driven simulations |
gsim.meep |
Meep | FDTD | Photonic components, S-parameters, mode propagation |
- 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)
pip install gsimFor development (requires uv):
git clone https://github.com/gdsfactory/gsim
cd gsim
uv sync --devOr use the justfile:
just devSee the documentation for API reference and examples.
