Jaxwell is JAX + Maxwell: an iterative solver for solving the finite-difference frequency-domain Maxwell equations on NVIDIA GPUs
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file jaxwell-0.2.0.tar.gz
.
File metadata
- Download URL: jaxwell-0.2.0.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d8f0cd2b25fc6065a51910dbb66673edc1cbcbcd1a1c55fe19b416cb9123c94 |
|
MD5 | 287035202fd3c89e1bd99288b85d4b1e |
|
BLAKE2b-256 | f14816ec017a7a2216be9413a9848e17db6a23fcb8091e70eadb33057882c910 |
File details
Details for the file jaxwell-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: jaxwell-0.2.0-py3-none-any.whl
- Upload date:
- Size: 23.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d22078e4cc71585e60b501b53ad89099edc6c49ed3a6e4ac0d5dd2cce5a1d29d |
|
MD5 | 6c49b566a895b29b6dcc93a78a52d4bf |
|
BLAKE2b-256 | 91588d769a983622e5dde757c5db9f8a4e18ab2409c30c5844327b66411fb2cd |