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.1.tar.gz (14.7 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.1-py3-none-any.whl (164.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: beamz-0.2.1.tar.gz
  • Upload date:
  • Size: 14.7 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.1.tar.gz
Algorithm Hash digest
SHA256 3073085438fbdb8056e51ffd0afd82fce64eecdee41985e67abf97327515b5d0
MD5 312d79d6cbf4932a1307270554fe2486
BLAKE2b-256 4fde9c5d8bd2e3a67494a7f9ef70a3615c449fdb01cdd4eebb7ef6d712f9e907

See more details on using hashes here.

File details

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

File metadata

  • Download URL: beamz-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 164.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f67ab478923692a90944fba03e5dea4c2ff801c003751d7222fc656420a22f9a
MD5 1bedb61bfbc349c0ca6eb6ab20575ed8
BLAKE2b-256 036e3825a9244ea1282c45ca4422b3f5af9a393df9e7468fa8f30ed6acf8d84d

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