Skip to main content

EM package to create inverse / generative designs for your photonic devices with ease and efficiency.

Project description

BEAMZ

BEAMZ is an electromagnetic simulation package using the FDTD method. It features a high-level API for fast prototyping with just a few lines of code, an inverse design module for topology optimization using the adjoint method with Jax-based autodiff and a thermal solver.

pip install beamz

License Last Update Stargazers

✨ Core Features

  • 100% Python, free (MIT license) & open-source.
  • Modular architecture with a high-level API.
  • GPU-accelerated (but CPU-capable).
  • Built-in layout flow (GDSII import/export).
  • FDTD simulation in 2D and 3D.
  • PML absorbing boundaries.
  • Sub-pixel smoothing.
  • Gaussian and mode sources with TE and TM polarization.
  • Custom source time profiles.
  • Dedicated visualization module for ...almost everything.
  • Streamlined parametric design module.
  • Thermal workflows (transient coupling + static thermal solves).
  • Optimization/autodiff utilities for gradient-based inverse-design with Jax.

🚀 Example Library

Read and try out our example notebooks or download and run examples/ from this repository.


Planned / Work in Progress for v1.0.0

Much is in place already. The modules are established and the core features are working. Further development will hence focus on introducing more advanced EM physics and tooling. Please read TODO.md for a detailed list.

About

BEAMZ's goal is to become the pragmatic FDTD engine of choice for photonic chip designers.

It focuses on streamlined workflows to produce useful results without tedious setup or configuration files. This is not a research project with the goal to demo a novel framework we can publish, nor a costly, closed API that hides how it works and gives you no ownership.

We are building in Python and choosing a modular architecture that is composable over a brutalist object-oriented architecture to make the code readable and development easy. So that, if there is something that isn't working or missing, you can quickly add it yourself!

This project is part of my long-term ambition to push towards something like COMSOL + Tidy3D, a programmatic, differentiable multi-physics engine for coupled electromagnetics + thermodynamics + charge carrier dynamics + mechanics (maybe even microfluidics) simulations and optimization of complex devices. Who doesn't dream of that? And I am wondering what devices AI could create with a tool like that, too.

Contributing

If any of this excites you or if have any questions, please open an issue on GitHub!

Feel free to fork this project, to suggest or contribute new features. The WIP section contains a list of features that are planned to be implemented. Help is very much appreciated! That said, the easiest way to support the project is to give this repo a ⭐!

Thank you!

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

beamz-0.2.0.tar.gz (6.0 MB view details)

Uploaded Source

Built Distribution

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

beamz-0.2.0-py3-none-any.whl (115.6 kB view details)

Uploaded Python 3

File details

Details for the file beamz-0.2.0.tar.gz.

File metadata

  • Download URL: beamz-0.2.0.tar.gz
  • Upload date:
  • Size: 6.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for beamz-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cb7e63b6685921ef0295061015e710489240623877a22eab1b3d9128a5dcaf35
MD5 489bfa6ca5f6e1d1d348d94a9781df4f
BLAKE2b-256 1f44d6397934ba2d28dfc977a692803e78a30f54e9eacf0000d341ab918c6fe8

See more details on using hashes here.

File details

Details for the file beamz-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: beamz-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 115.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for beamz-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab12ac6e82a279a19fcfcb1bc415d3d4fe10a7ec754fe3cb2446fca2cbd8eb88
MD5 7e23f0900bf6548bb90892e43f36c841
BLAKE2b-256 214305973236260d53e0fcba3c329375283346c09b81a59efa3d633fd6292c66

See more details on using hashes here.

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