S4 : A free electromagnetic solver for layered periodic structures

Abstract We describe S 4 , a free implementation of the Fourier modal method (FMM), which has also been commonly referred to as rigorous coupled wave analysis (RCWA), for simulating electromagnetic propagation through 3D structures with 2D periodicity. We detail design aspects that allow S 4 to be a flexible platform for these types of simulations. In particular, we highlight the ability to select different FMM formulations, user scripting, and extensibility of program capabilities for eigenmode computations. Program summary Program title: S4 Catalogue identifier: AEMO_v1_0. Program summary URL: http://cpc.cs.qub.ac.uk/summaries/AEMO_v1_0..html Program obtainable from: CPC Program Library, Queen’s University, Belfast, N. Ireland Licensing provisions: GNU General Public License, version 2 No. of lines in distributed program, including test data, etc.: 56910 No. of bytes in distributed program, including test data, etc.: 433883 Distribution format: Programming language: C, C++. Computer: Any computer with a Unix-like environment and a C++ compiler. Developed on 2.3 GHz AMD Phenom 9600. Operating system: Any Unix-like environment; developed under MinGW32 on Windows 7. Has the code been vectorized or parallelized?: Yes. Parallelized using MPI. RAM: Problem dependent (linearly proportional to number of layers and quadratic in number of Fourier components). A single layer calculation with approximately 100 Fourier components uses approximately 10 MB. Classification: 10. Electrostatics and Electromagnetics. External routines: Lua [1] and optionally exploits additional free software packages: FFTW [2], CHOLMOD [3], MPI message-passing interface [4], LAPACK and BLAS linear-algebra software [5], and Kiss FFT [6]. Nature of problem: Time-harmonic electromagnetism in layered bi-periodic structures. Solution method: The Fourier modal method (rigorous coupled wave analysis) and the scattering matrix method. Running time: Problem dependent and highly dependent on quality of the BLAS implementation (linearly proportional to number of layers and cubic in number of Fourier components). A single layer calculation with approximately 100 Fourier components takes 4 s on the development machine using the reference BLAS. References [1] R. Ierusalimschy, L.H. de Figueiredo, W.C. Filho, Lua — an extensible extension language, Software: Practice and Experience 26 (1996) 635–652. http://www.lua.org . [2] FFTW, http://www.fftw.org . [3] Y. Chen, T.A. Davis, W.W. Hager, and S. Rajamanickam, Algorithm 887: CHOLMOD, supernodal sparse Cholesky factorization and update/downdate, ACM Trans. Math. Software, Vol. 35, No. 3, 2009. http://www.cise.ufl.edu/research/sparse/cholmod . [4] T.M. Forum, MPI: A Message Passing Interface, in: Supercomputing 93, Portland, OR, 878883, 1993. [5] LAPACK, http://www.netlib.org/lapack . [6] Kiss FFT, http://kissfft.sourceforge.net .

[1]  Lucio Claudio Andreani,et al.  Erratum: Scattering-matrix analysis of periodically patterned multilayers with asymmetric unit cells and birefringent media [Phys. Rev. B 77 , 035324 (2008)] , 2008 .

[2]  Lifeng Li,et al.  Use of Fourier series in the analysis of discontinuous periodic structures , 1996 .

[3]  Wolfgang Osten,et al.  Normal vector method for convergence improvement using the RCWA for crossed gratings. , 2007, Journal of the Optical Society of America. A, Optics, image science, and vision.

[4]  Arash Mafi,et al.  Constrained least squares Fourier modal method for computing scattering from metallic binary gratings. , 2010, Journal of the Optical Society of America. A, Optics, image science, and vision.

[5]  Steven G. Johnson,et al.  Perturbation theory for anisotropic dielectric interfaces, and application to subpixel smoothing of discretized numerical methods. , 2007, Physical review. E, Statistical, nonlinear, and soft matter physics.

[6]  E Popov,et al.  Maxwell equations in Fourier space: fast-converging formulation for diffraction by arbitrary shaped, periodic, anisotropic media. , 2001, Journal of the Optical Society of America. A, Optics, image science, and vision.

[7]  J. Z. Zhu,et al.  The finite element method , 1977 .

[8]  Lifeng Li,et al.  Convergence of the coupled-wave method for metallic lamellar diffraction gratings , 1993 .

[9]  K. Vahala Optical microcavities , 2003, Nature.

[10]  T. Ishihara,et al.  Quasiguided modes and optical properties of photonic crystal slabs , 2002 .

[11]  Chi-Wang Shu,et al.  On the Gibbs Phenomenon and Its Resolution , 1997, SIAM Rev..

[12]  D. Whittaker,et al.  Scattering-matrix treatment of patterned multilayer photonic structures , 1999 .

[13]  J. Joannopoulos,et al.  High Extraction Efficiency of Spontaneous Emission from Slabs of Photonic Crystals , 1997 .

[14]  Karl Knop,et al.  Rigorous diffraction theory for transmission phase gratings with deep rectangular grooves , 1978 .

[15]  Allen Taflove,et al.  Computational Electrodynamics the Finite-Difference Time-Domain Method , 1995 .

[16]  Tuomas Vallius,et al.  Reformulation of the Fourier modal method with adaptive spatial resolution: application to multilevel profiles. , 2002, Optics express.

[17]  Roberto Ierusalimschy,et al.  Lua—An Extensible Extension Language , 1996, Softw. Pract. Exp..

[18]  H. Kogelnik Coupled wave theory for thick hologram gratings , 1969 .

[19]  Masaya Notomi,et al.  S-matrix calculation of radiation characteristics from dipole oscillation in two-dimensional photonic crystal slabs , 2008 .

[20]  Lifeng Li,et al.  Fourier modal method for crossed anisotropic gratings with arbitrary permittivity and permeability tensors , 2003 .

[21]  Nicolas Bonod,et al.  Differential theory: application to highly conducting gratings. , 2004, Journal of the Optical Society of America. A, Optics, image science, and vision.

[22]  Hugues Hoppe,et al.  Design of tangent vector fields , 2007, SIGGRAPH 2007.

[23]  Roman Antos,et al.  Fourier factorization with complex polarization bases in modeling optics of discontinuous bi-periodic structures. , 2009, Optics express.

[24]  Thomas K. Gaylord,et al.  Stable implementation of the rigorous coupled-wave analysis for surface-relief gratings: enhanced transmittance matrix approach , 1995 .

[25]  Jack Dongarra,et al.  LAPACK Users' guide (third ed.) , 1999 .

[26]  Kurt Busch,et al.  Generation of adaptive coordinates and their use in the Fourier Modal Method. , 2010, Optics express.

[27]  Shanhui Fan,et al.  Method for sensitivity analysis of photonic crystal devices. , 2004 .

[28]  Steven G. Johnson,et al.  Meep: A flexible free-software package for electromagnetic simulations by the FDTD method , 2010, Comput. Phys. Commun..

[29]  Shanhui Fan,et al.  Analysis of guided resonances in photonic crystal slabs , 2002 .

[30]  Wolfgang Osten,et al.  Normal vector method for the RCWA with automated vector field generation. , 2008, Optics express.

[31]  Gene H. Golub,et al.  Matrix computations , 1983 .

[32]  Olivier Parriaux,et al.  Modal analysis and suppression of the Fourier modal method instabilities in highly conductive gratings. , 2007, Journal of the Optical Society of America. A, Optics, image science, and vision.

[33]  Olof Bryngdahl,et al.  Electromagnetic diffraction analysis of two-dimensional gratings , 1993 .

[34]  E Popov,et al.  Grating theory: new equations in Fourier space leading to fast converging results for TM polarization. , 2000, Journal of the Optical Society of America. A, Optics, image science, and vision.

[35]  Lifeng Li,et al.  New formulation of the Fourier modal method for crossed surface-relief gratings , 1997 .

[36]  P. Lalanne,et al.  Highly improved convergence of the coupled-wave method for TM polarization and conical mountings , 1996, Diffractive Optics and Micro-Optics.

[37]  Steven G. Johnson,et al.  Block-iterative frequency-domain methods for Maxwell's equations in a planewave basis. , 2001, Optics express.

[38]  K. McInturff,et al.  The Fourier transform of linearly varying functions with polygonal support , 1991 .

[39]  Brahim Guizal,et al.  Efficient implementation of the coupled-wave method for metallic lamellar gratings in TM polarization , 1996 .

[40]  Gérard Tayeb,et al.  Diffraction theory in TM polarization: application of the fast Fourier factorization method to cylindrical devices with arbitrary cross section. , 2004, Journal of the Optical Society of America. A, Optics, image science, and vision.

[41]  Arash Mafi,et al.  Reliable computation of scattering from metallic binary gratings using Fourier-based modal methods. , 2010, Journal of the Optical Society of America. A, Optics, image science, and vision.

[42]  Lifeng Li,et al.  Field singularities at lossless metal-dielectric right-angle edges and their ramifications to the numerical modeling of gratings. , 2011, Journal of the Optical Society of America. A, Optics, image science, and vision.

[43]  Evgueni Popov,et al.  Fast Fourier factorization method applied to modal analysis of slanted lamellar diffraction gratings in conical mountings , 2001 .

[44]  Carretera de Valencia,et al.  The finite element method in electromagnetics , 2000 .

[45]  Harald Giessen,et al.  Matched coordinates and adaptive spatial resolution in the Fourier modal method. , 2009, Optics express.

[46]  Jack Dongarra,et al.  LAPACK Users' Guide, 3rd ed. , 1999 .

[47]  F. Kaspar,et al.  Diffraction by thick, periodically stratified gratings with complex dielectric constant , 1973 .

[48]  Lifeng Li Formulation and comparison of two recursive matrix algorithms for modeling layered diffraction gratings , 1996 .

[49]  김덕영 [신간안내] Computational Electrodynamics (the finite difference time - domain method) , 2001 .

[50]  Gérard Granet,et al.  Reformulation of the lamellar grating problem through the concept of adaptive spatial resolution , 1999 .

[51]  M. Neviere,et al.  Differential theory of gratings: extension to deep gratings of arbitrary profile and permittivity through the R-matrix propagation algorithm , 1994 .

[52]  T. Gaylord,et al.  Rigorous coupled-wave analysis of planar-grating diffraction , 1981 .

[53]  Daniel Maystre,et al.  Multicoated gratings: a differential formalism applicable in the entire optical region , 1982 .

[54]  Shanhui Fan,et al.  Resonance-enhanced optical forces between coupled photonic crystal slabs. , 2009, Optics express.

[55]  Zongfu Yu,et al.  Ultracompact nonreciprocal optical isolator based on guided resonance in a magneto-optical photonic crystal slab. , 2011, Optics letters.

[56]  O. Levi,et al.  Sensitivity enhancement in photonic crystal slab biosensors. , 2010, Optics express.

[57]  H. S. Carslaw,et al.  Introduction to the Theory of Fourier's Series and Integrals , 1921, Nature.

[58]  Zongfu Yu,et al.  Fundamental Limit of Nanophotonic Light-trapping in Solar Cells , 2010 .