qpv-research-group / rayflare

Open-source, integrated optical modelling of complex stacks
Other
31 stars 11 forks source link

Alternative RCWA implementation not requiring compilation #53

Closed phoebe-p closed 5 months ago

phoebe-p commented 1 year ago

Is your feature request related to a problem? Please describe. Using S4 as the RCWA implementation requires compiling a specific version of S4 on each machine, which causes issues especially on Windows. Inkstone is a Python-only implementation of RCWA; I assume this will be slower than S4 (but will have to test), but may be a relatively simple way to allow an alternative RCWA implementation which will work on any platform and is easy to install.

Describe the solution you'd like Need to write functions to interface with Inkstone rather than S4 behind the scenes, and add an option for the user to switch which RCWA implementation they would like to use.