Skip to main content

No project description provided

Project description

Gsim 0.0.0

a GDSFactory Simulation Plugin

gsim-logo

Overview

Gsim bridges the gap between circuit layout design (using GDSFactory) and electromagnetic simulation (using Palace). It automates the conversion of IC component layouts into simulation-ready mesh files and configuration.

Features

  • Layer Stack Extraction: Extract layer stacks from PDK definitions with a comprehensive material properties database
  • Port Configuration: Convert GDSFactory ports into Palace-compatible port definitions (inplane, via, and CPW ports)
  • Mesh Generation: Generate GMSH-compatible finite element meshes with configurable quality presets

Installation

pip install gsim

For development:

git clone https://github.com/doplaydo/gsim
cd gsim
pip install -e .[dev]

Quick Start

from gsim.palace import (
    get_stack,
    configure_inplane_port,
    extract_ports,
    generate_mesh,
    MeshConfig,
)

# Get layer stack from active PDK
stack = get_stack()

# Configure ports on your component
configure_inplane_port(c.ports["o1"], layer="topmetal2", length=5.0)
configure_inplane_port(c.ports["o2"], layer="topmetal2", length=5.0)

# Extract configured ports
ports = extract_ports(c, stack)

# Generate mesh
result = generate_mesh(
    component=c,
    stack=stack,
    ports=ports,
    output_dir="./simulation",
    config=MeshConfig.default(),
)

Mesh Presets

Preset Refined Size Max Size Use Case
Coarse 10.0 µm 600.0 µm Fast iteration (~2.5 elements/λ)
Default 5.0 µm 300.0 µm Balanced accuracy (~5 elements/λ)
Fine 2.0 µm 70.0 µm High accuracy (~10 elements/λ)

Port Types

  • Inplane ports: Horizontal ports on single metal layer for CPW gaps
  • Via ports: Vertical ports between two metal layers for microstrip structures
  • CPW ports: Multi-element ports for proper Coplanar Waveguide excitation

Documentation

See the documentation for detailed API reference and examples.

License

Copyright 2026 GDSFactory

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gsim-0.0.0.tar.gz (37.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gsim-0.0.0-py3-none-any.whl (39.1 kB view details)

Uploaded Python 3

File details

Details for the file gsim-0.0.0.tar.gz.

File metadata

  • Download URL: gsim-0.0.0.tar.gz
  • Upload date:
  • Size: 37.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gsim-0.0.0.tar.gz
Algorithm Hash digest
SHA256 1d02e8994e3921fedeac51ca3acd50f66150d1085d7a950b7f78561350558611
MD5 4fb27d492f5c662c4d428e6937f99add
BLAKE2b-256 072f79b453dff1b22931ea20364b8d79ec9e3088f547e6882fed7ee2269aaaf1

See more details on using hashes here.

Provenance

The following attestation bundles were made for gsim-0.0.0.tar.gz:

Publisher: release.yml on gdsfactory/gsim

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gsim-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: gsim-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 39.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gsim-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b4597e5a05b0a35238794ce88148d28dfc96e71fda3763e3298b67ad188bfc9e
MD5 13ae2c44016fe08b16c9c90f0fc669c0
BLAKE2b-256 850468e168058fb4f88d9b5b376485addb5d67a1f014b00691a40af24f4210b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for gsim-0.0.0-py3-none-any.whl:

Publisher: release.yml on gdsfactory/gsim

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page