Home

Awesome

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: