Legume: A free implementation of the guided-mode expansion method for photonic crystal slabs

Published: 9 July 2024| Version 1 | DOI: 10.17632/kf3cwknx4d.1
, Momchil Minkov,


We describe legume, a free electromagnetic solver that implements the guided-mode expansion method for patterned multilayer waveguides, or photonic crystal slabs. legume has a built-in tool for automatic differentiation, which makes it suitable for the inverse design of photonic crystal structures with desired physical properties. Compared to a previous version of the method (M. Minkov et al., 2020 [12]), here we introduce several new features of the code, we discuss additional technical aspects of the method and its numerical implementation. The novel features that are treated in this paper include: (i) the separation of modes according to their mirror symmetry with respect to a vertical symmetry plane of the photonic structure, (ii) the problem of polarization mixing in coupling to far-field radiation modes, and (iii) the description of active two-dimensional layers through a suitably formulated radiation-matter coupling Hamiltonian, allowing to describe the physics of both weakly and strongly coupled exciton-photon modes, the latter leading to photonic crystal polariton eigenmodes. Detailed and direct comparisons with rigorous coupled-wave analysis simulations are used to test the accuracy of the method and the numerical efficiency of the code. These newly added features of the legume code significantly increase the prospective applications of guided-mode expansion, making it a very practical and versatile tool enabling the design of advanced photonic structures and the description of radiation-matter interaction.



Condensed Matter Physics, Computational Physics, Photonics