Jaxwell: GPU-accelerated, differentiable 3D iterative FDFD electromagnetic solver
Jaxwell is JAX + Maxwell: an iterative solver for solving the finite-difference frequency-domain Maxwell equations on NVIDIA GPUs. Jaxwell is differentiable and fits seamlessly in the JAX ecosystem, enabling nanophotonic inverse design problems to be cast as ML training jobs and take advantage of the tsunami of innovations in ML-specific hardware, software, and algorithms.
Jaxwell is a finite-difference frequency-domain solver that finds solutions to the time-harmonic Maxwell's equations, specifically:
(∇ x ∇ x - ω²ε) E = -iωJ
for the electric field E via the API
x, err = jaxwell.solve(params, z, b)
where E → x, ω²ε → z, -iωJ → b,
params controls how the solve proceeds iteratively, and
err is the error in the solution.
Jaxwell uses
dimensionless units,
assumes μ = 1 everywhere,
and implements stretched-coordinate perfectly matched layers (SC-PML)
for absorbing boundary conditions.
You can install Jaxwell with pip install git+https://github.com/jan-david-fischbach/jaxwell.git
but the easiest way to get started is to go straight to the example
colaboratory notebook.
References:
- PMLs and diagonalization: [Shin2012] W. Shin and S. Fan. “Choice of the perfectly matched layer boundary condition for frequency-domain Maxwell's equations solvers.” Journal of Computational Physics 231 (2012): 3406–31
- COCG algorithm: [Gu2014] X. Gu, T. Huang, L. Li, H. Li, T. Sogabe and M. Clemens, "Quasi-Minimal Residual Variants of the COCG and COCR Methods for Complex Symmetric Linear Systems in Electromagnetic Simulations," in IEEE Transactions on Microwave Theory and Techniques, vol. 62, no. 12, pp. 2859-2867, Dec. 2014
Metadata
Release files for jaxwell 0.2.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 | Provenance | Actions |
|---|---|---|---|---|
| jaxwell-0.2.0.tar.gz | 22.3 kB | Without provenance | Details for jaxwell-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jaxwell-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for jaxwell-0.2.0-py3-none-any.whl |
Total release size: 45.7 kB
Release files / jaxwell-0.2.0.tar.gz
| Download URL | jaxwell-0.2.0.tar.gz |
|---|---|
| Size | 22.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d8f0cd2b25fc6065a51910dbb66673edc1cbcbcd1a1c55fe19b416cb9123c94
|
|
BLAKE2b-256 checksum How to use checksums |
f14816ec017a7a2216be9413a9848e17db6a23fcb8091e70eadb33057882c910
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / jaxwell-0.2.0-py3-none-any.whl
| Download URL | jaxwell-0.2.0-py3-none-any.whl |
|---|---|
| Size | 23.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d22078e4cc71585e60b501b53ad89099edc6c49ed3a6e4ac0d5dd2cce5a1d29d
|
|
BLAKE2b-256 checksum How to use checksums |
91588d769a983622e5dde757c5db9f8a4e18ab2409c30c5844327b66411fb2cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for jaxwell 0.2.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.