edmundsj / rcwa

Rigorous Coupled Wave Analysis for the calculation of Photonic Crystal R/T spectra
MIT License
93 stars 29 forks source link

Dispersive thin films do not work #27

Closed edmundsj closed 2 years ago

edmundsj commented 2 years ago

It appears currently wavelength-dependent refractive indices fail when used as thin films. This is because internally, there is no separation between the permittivity/index used for the purposes of actually calculating modes (which needs to have the shape of the incident harmonics) and the underlying dispersive data. This should be a relatively straightforward fix, and requires separating the two.

edmundsj commented 2 years ago

Fixed in 1fcf6c9.