edmundsj / rcwa

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

Merge changes to allow dispersive materials via n/k tables #8

Closed edmundsj closed 3 years ago

edmundsj commented 3 years ago

This change implements dispersive materials using n/k tables, and adds a single material (silicon) to the built-in materials database. Materials can now be assigned to layers with the material keyword:

si_layer = Layer(material='Si')
edmundsj commented 3 years ago

This now includes the refractiveindex.info database, and all materials are listed with their standard elemental names (i.e. Si, Pt, KBr, etc.). Currently chooses the first available n/k source, which may not always be appropriate, but is a good first startt.