Giter Club home page Giter Club logo

jaxwell's Introduction

Jaxwell: GPU-accelerated, differentiable 3D iterative FDFD electromagnetic solver

License: LGPL v3 Continous Integration Coverage Status

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 form of Maxwell's equations, specifically:

$$ \left( \nabla \times \nabla \times - \omega^2 \varepsilon \right) \boldsymbol{E} = -i \omega \boldsymbol{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.

Following meep, Jaxwell uses dimensionless units, and assumes μ = 1 everywhere, and implements Shin's stretched-coordinate perfectly matched layers (SC-PML) for absorbing boundary conditions.

You can install this version of Jaxwell with pip install git+https://github.com/djps/jaxwell.git but the easiest way to get started is to go straight to the example from the original repository 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
  • BiCGStabL algorithm: [Sleijpen1993] G. Sleijpen and D. R. Fokkema. "BiCGstab(l) for linear equations involving unsymmetric matrices with complex spectrum." Electronic Transactions on Numerical Analysis vol 1, pp. 11-32 (1993).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.