Simone Zanotti , Momchil Minkov , Davide Nigro , Dario Gerace , Shanhui Fan , Lucio Claudio Andreani
{"title":"Legume: A free implementation of the guided-mode expansion method for photonic crystal slabs","authors":"Simone Zanotti , Momchil Minkov , Davide Nigro , Dario Gerace , Shanhui Fan , Lucio Claudio Andreani","doi":"10.1016/j.cpc.2024.109286","DOIUrl":null,"url":null,"abstract":"<div><p>We describe <span>legume</span>, a free electromagnetic solver that implements the guided-mode expansion method for patterned multilayer waveguides, or photonic crystal slabs. <span>legume</span> 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 <span>[12]</span>), 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 <span>legume</span> 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.</p></div><div><h3>Program summary</h3><p><em>Program Title:</em> <span>legume</span></p><p><em>CPC Library link to program files:</em> <span>https://doi.org/10.17632/kf3cwknx4d.1</span><svg><path></path></svg></p><p><em>Developer's repository link:</em> <span>https://github.com/fancompute/legume</span><svg><path></path></svg></p><p><em>Licensing provisions:</em> MIT</p><p><em>Programming language:</em> Python</p><p><em>Nature of problem:</em> Dispersion and radiative losses of photonic eigenmodes in patterned multilayer waveguides/photonic crystal slabs/periodic metasurfaces. Interaction of photonic modes with exciton resonances leading to exciton-polaritons. Inverse design by optimization of the parameters.</p><p><em>Solution method:</em> Finite-basis expansion using a basis of guided modes of an effective homogeneous waveguide, perturbation theory to describe coupling with far-field radiation. Quantum theory of excitons, photons and their interaction to describe the occurrence of exciton-polaritons. Automatic differentiation via Autograd to implement inverse design. In this upgraded version of the <span>legume</span> code we implement symmetrization with respect to a vertical mirror plane and light-matter interaction for exciton-polaritons. Inverse design has been described previously, here we focus on the new features and applications of the code.</p></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":null,"pages":null},"PeriodicalIF":7.2000,"publicationDate":"2024-06-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.sciencedirect.com/science/article/pii/S0010465524002091/pdfft?md5=c9a5f8f0d85ec817bff548b0b92ec8f6&pid=1-s2.0-S0010465524002091-main.pdf","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computer Physics Communications","FirstCategoryId":"101","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0010465524002091","RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS","Score":null,"Total":0}
引用次数: 0
Abstract
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.
Program summary
Program Title:legume
CPC Library link to program files:https://doi.org/10.17632/kf3cwknx4d.1
Nature of problem: Dispersion and radiative losses of photonic eigenmodes in patterned multilayer waveguides/photonic crystal slabs/periodic metasurfaces. Interaction of photonic modes with exciton resonances leading to exciton-polaritons. Inverse design by optimization of the parameters.
Solution method: Finite-basis expansion using a basis of guided modes of an effective homogeneous waveguide, perturbation theory to describe coupling with far-field radiation. Quantum theory of excitons, photons and their interaction to describe the occurrence of exciton-polaritons. Automatic differentiation via Autograd to implement inverse design. In this upgraded version of the legume code we implement symmetrization with respect to a vertical mirror plane and light-matter interaction for exciton-polaritons. Inverse design has been described previously, here we focus on the new features and applications of the code.
期刊介绍:
The focus of CPC is on contemporary computational methods and techniques and their implementation, the effectiveness of which will normally be evidenced by the author(s) within the context of a substantive problem in physics. Within this setting CPC publishes two types of paper.
Computer Programs in Physics (CPiP)
These papers describe significant computer programs to be archived in the CPC Program Library which is held in the Mendeley Data repository. The submitted software must be covered by an approved open source licence. Papers and associated computer programs that address a problem of contemporary interest in physics that cannot be solved by current software are particularly encouraged.
Computational Physics Papers (CP)
These are research papers in, but are not limited to, the following themes across computational physics and related disciplines.
mathematical and numerical methods and algorithms;
computational models including those associated with the design, control and analysis of experiments; and
algebraic computation.
Each will normally include software implementation and performance details. The software implementation should, ideally, be available via GitHub, Zenodo or an institutional repository.In addition, research papers on the impact of advanced computer architecture and special purpose computers on computing in the physical sciences and software topics related to, and of importance in, the physical sciences may be considered.