Mathematics of RCWA¶
This section is for developers who want to understand the implementation of this package, for example, to implement their own manipulations on top of it or extend functionality. It follows the formulation laid out by Rumpf. This is intended as a reference for developers with a fairly advanced electromagnetics and mathematics background, and assumes a knowledge of electromagnetic modes, vectors, matrices, matrix multiplication, and vectors and matrices composed of other vectors and matrices.
Definitions and Conventions¶
: number of harmonics along x-direction : number of harmonics along y-direction. : Total number of harmonics : Used to index the x-harmonics. Ranges from negative to positive. : Used to index the y-harmonics. Ranges from negative to positive. : Electric Field : Magnetic Field : Electtric field (Fourier) coefficient : Magnetic field (Fourier) coefficient : Mode coefficient : Electric field coefficient mode matrix : Magnetic field coefficient mode matrix
Layer “0” is the incident layer. Layer “1” is the layer closest to the incident region.
Fields and Field Coefficients¶
The formulation of rigorous coupled wave analysis involves decomposing the electric and magnetic fields into their plane wave components. Rather than working with the electric field
Where
where
Note that the field coefficients are, in general, a function of z.
Field Coefficients¶
The electric (
The length of the
The x-component of the zero-order harmonic corresponds to the field coefficient
These field coefficients are, in general, functions of the z-coordinate. This makes them awkward to work with directly, which is why we typically work with mode coefficients instead.
Mode Coefficients¶
Internally, this package typically works with mode coefficients, referred to using the symbol
Just as with field coefficients, both the x- and y-components of the mode coefficients must be kept internally. As with the field coefficients, both forward- and backward-propagating mode coefficients are represented with the x-components followed by the y-components.
Scattering Matrices couple Mode Coefficients¶
The scattering matrix for the
This can be rearranged to solve for the
Electric Field Coefficients¶
The mode coefficients in the
Magnetic Field Coefficients¶
Similarly, the mode coefficients in the
Finding Mode coefficients inside an arbitrary layer¶
Once the scattering matrices for each layer
First, the mode coefficients in the incident region must be found. To do this, you can find the m.
Then, by applying the formula below as many times as is required, mode coefficients within the desired layer can be found:
Find E/H Coefficients inside an arbitrary Layer¶
Once the mode coefficients have been found, the electric and magnetic field coefficients can be found as described previously. Note that at this point, the field coefficients will still be a function of the z coordinate.
Finding the electric and magnetic fields inside an arbitrary layer¶
Electric Fields¶
Once the electric field coefficients are known, the electric fields can be calculated using the formula above for a certain value of
First, the diagonal k-matrices
This is itself a vector with the same length as