## Abstract

The Fourier modal method (FMM) is a method for efficiently solving Maxwell’s equations with periodic boundary conditions. In order to apply the FMM to nonperiodic structures, perfectly matched layers need to be placed at the periodic boundaries, and the Maxwell equations have to be formulated in terms of a contrast (scattered) field. This reformulation modifies the structure of the resulting linear systems and makes the direct application of available stable recursion algorithms impossible. We adapt the well-known *S*-matrix algorithm for use with the aperiodic FMM in contrast-field formulation. To this end, stable recursive relations are derived for linear systems with nonhomogeneous structure. The stability of the algorithm is confirmed by numerical results.

© 2011 Optical Society of America

Full Article | PDF Article**OSA Recommended Articles**

Maxim Pisarenco, Joseph Maubach, Irwan Setija, and Robert Mattheij

J. Opt. Soc. Am. A **27**(11) 2423-2431 (2010)

Ronald Rook, Maxim Pisarenco, and Irwan D. Setija

Appl. Opt. **52**(28) 6962-6968 (2013)

Maxim Pisarenco, Richard Quintanilha, Mark G. M. M. van Kraaij, and Wim M. J. Coene

J. Opt. Soc. Am. A **33**(4) 610-617 (2016)