edmundsj / rcwa

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

Implement Dispersive Materials via nk tables #7

Closed edmundsj closed 3 years ago

edmundsj commented 3 years ago

For a while now I've been wanting to implement dispersive materials. The infrastructure is all there in the Materials class, I just have yet to write unit tests and integrate it into the solver code. This would allow adding individual layers to be set to different materials with a wavelength-dependent refractive index. For example, I might implement something like the below:

layer = Layer(material='Si')

Then you could plot reflection vs. wavelength.

edmundsj commented 3 years ago

This is implemented in #8 and is currently available on the TestPyPi repository: https://test.pypi.org/project/rcwa/