Hi everyone,
I would like to share some work I have just released on GitHub, FPSS.jl, a new rigorous Fourier split-step method for solving Maxwell’s equations. It comes along with an arXiv paper that explains the method and illustrates it through several examples.
It is not registered in the General registry, because it should serve as foundations to rewrite FluxOptics.jl and extend it to bidirectional propagation, which I will do only after gaining more perspective on the method through practical applications. You can install it with ] add https://github.com/anscoil/FPSS.jl.
To explain the principle in a few words, a rigorous split-step scheme is first derived for the vectorial Maxwell’s equations, each slice of the domain being crossed with exact elementary steps around a homogeneous reference medium. In the modal step of each slice, the field is decomposed into the forward and backward waves of the reference medium, while the sheets in real space act on the full field. A forward pass then propagates the forward waves through the structure and a backward pass the backward ones, and the backward amplitudes stored at the slices are the unknown of this round trip, which Krylov solvers find as its fixed point. Stopping after one or two round trips gives back the usual BPM and multislice models, so the same code goes from fast approximations to the full-wave solution. It runs on CPU and on CUDA GPUs.
For the moment I have tested it on various numerical phantoms, like cells with the low refractive index contrast typical of biological applications, or silicon nanopillars that could be building blocks of larger metasurfaces. It is compared to Mie theory (MSTM) in the first case, and to FMMAX and FDTDX in the second, validating the accuracy of the method on these examples.
Error against computing time on the tomography phantoms (top and bottom left) and on a silicon pillar (top right), and warm start on a 10×10 supercell (bottom right). Details in the paper and the notebooks.
Of course the method has its limits, especially on large high-contrast structures where the solver needs many iterations, but it opens perspectives for a nice research project! Feedback and ideas are very welcome.
Best,
Nicolas
