N-Layer Planar Geometry¶
This section summarizes the Green-function formulation used for finite planar multilayers. It extends the two-layer Sommerfeld-integral picture to an arbitrary stack of homogeneous layers. The goal here is to explain the objects used by the implementation, not to reproduce every algebraic step. Detailed derivations of multilayer dyadic Green functions can be found in [Tomas1995], [Dung1998], and [Novotny2012NLayer]. The GPOF/DCIM acceleration idea follows the standard complex-image literature [Chow1991], [Aksun1996], [Hua1990].
Geometry¶
The structure is translationally invariant in the \(x\)–\(y\) plane and piecewise homogeneous along \(z\):
Top and bottom layers are usually semi-infinite, while internal layers have finite thickness. In the current workflow the source and observer are in a chosen source layer, with vertical coordinates \(z'\) and \(z\) and lateral separation \(\rho\). A finite source layer uses coordinates from its lower interface. When the source layer is the semi-infinite top exterior, \(z,z'\geq0\) are heights measured upward from the top-stack interface.
Spectral-domain Green function¶
After Fourier transforming in the transverse directions, Maxwell’s equation reduces to a one-dimensional Sommerfeld representation over the in-plane wave number \(k_\rho\). For layer \(\ell\), define
The effect of all layers above and below the source layer is collected into generalized reflection coefficients \(\widetilde R_+^{s,p}(k_\rho)\) and \(\widetilde R_-^{s,p}(k_\rho)\). These are obtained by the usual Fresnel recursions through the stack. Multiple reflections inside the source layer produce Airy denominators of the form
where \(j\) is the source layer and \(d_j\) is its thickness. Zeros of \(D_q\) correspond to guided modes, Fabry–Pérot modes, or plasmonic modes. For a source in the semi-infinite top exterior, the upper mirror vanishes, so the finite-cavity Airy denominator itself tends to one. The scattered response is instead proportional to the one-sided generalized reflection of the entire finite stack below. For pole searches, the solver uses the analytic denominator of that generalized reflection, whose zeros locate its physical poles without mistaking reflection zeros for modes. Replacing the multilayer with the two-layer Sommerfeld solver would discard the finite-film and substrate reflections.
The scattered Green tensor is assembled from a small set of scalar Sommerfeld integrals,
where \(J_{\nu_m}\) is a Bessel function and \(K_m\) contains the generalized reflections, phase factors, Airy denominators, and polarization prefactors. The total Green tensor is
Numerical strategies¶
Direct quadrature is the reference method: it evaluates the Sommerfeld integrals directly, splitting the integration domain near light lines and other known features. It is robust, but expensive when many separations, energies, or layers are needed.
The singularity-aware idea is to avoid asking a generic quadrature or fit to resolve sharp resonant structure blindly. Candidate poles are located from small values or roots of \(D_s\) and \(D_p\); their residue contributions are extracted explicitly. The remaining smooth integrand is then much easier to integrate.
Hybrid DCIM uses this same separation of difficulty. A low-\(k_\rho\) interval containing branch points and possible mode structure is kept as direct quadrature. The smoother evanescent tail is fitted by the generalized pencil-of-function (GPOF) method,
Each exponential term becomes a complex-image contribution that can be evaluated much more cheaply for repeated spatial separations. In practice the tail fit must be validated against direct finite-tail quadrature; if the fit fails, the safe fallback is direct integration.
Implementation¶
The N-layer implementation is in mqed.Dyadic_GF.GF_NLayer and is driven
by mqed.Dyadic_GF.main_nlayer. The tutorial
N-Layer Dyadic Green’s Function Workflow shows how to run direct, singularity-aware, and
hybrid-DCIM examples. The output uses the shared separation HDF5 layout,
indexed by energy and lateral separation \(\rho\).
References¶
M. S. Tomaš, “Green function for multilayers: Light scattering in planar cavities,” Phys. Rev. A 51, 2545–2559 (1995).
H. T. Dung, L. Knöll, and D.-G. Welsch, “Three-dimensional quantization of the electromagnetic field in dispersive and absorbing inhomogeneous dielectrics,” Phys. Rev. A 57, 3931–3942 (1998).
Y. L. Chow, J. J. Yang, D. G. Fang, and G. E. Howard, “A closed- form spatial Green’s function for the thick microstrip substrate,” IEEE Trans. Microw. Theory Tech. 39, 588–592 (1991).
M. I. Aksun, “A robust approach for the derivation of closed- form Green’s functions,” IEEE Trans. Microw. Theory Tech. 44, 651–658 (1996).
Y. Hua and T. K. Sarkar, “Matrix pencil method for estimating parameters of exponentially damped/undamped sinusoids in noise,” IEEE Trans. Acoust. Speech Signal Process. 38, 814–824 (1990).
L. Novotny and B. Hecht, Principles of Nano-Optics, 2nd ed. (Cambridge University Press, 2012).