Transfer matrix methods for plane wave transmission in multi-layer structures.
The field in these multi-layer structures can be written in a superposition of planes waves propagating in directions
The field coefficients can be related via boundary conditions
where
$$ P_m=\left( \begin{array}{cc} e^{d_m \left(-\text{ik}{\text{mx}}\right)} & 0 \ 0 & e^{d_m \text{ik}{\text{m x}}} \end{array} \right) $$
Therefore, the field relation between field components in left and right space are
The general boundary conditions should be
$$
A_1=1, B_{N+1}^{}=0, B_1=1, A_{N+1}^{
}=0
$$
References: TRANSFER MATRIX APPROACH TO PROPAGATION OF ANGULAR PLANE WAVE SPECTRA THROUGH METAMATERIAL MULTILAYER STRUCTURES, Han Li, UNIVERSITY OF DAYTON, Thesis
CoeAB_layer_TMM
: This function calculates the field coefficients in different layers.
field_layer_from_ABCoe
: This function calculates the exact field distributions with given AB coefficients.
BragMirror_1D.m
Can be compared with the RCWA methods
This program simulates the field in photoresist and can be compared with reference [2]:
[2]Mack, C. A. Analytical expression for the standing wave intensity in photoresist. Appl. Opt., AO 25, 1958–1961 (1986).