victorliu / S4

Stanford Stratified Structure Solver - Electromagnetic simulator for layered periodic structures
http://www.stanford.edu/group/fan/S4/
GNU General Public License v2.0
128 stars 149 forks source link

Installation for Windows #117

Open jtan230 opened 4 months ago

jtan230 commented 4 months ago

Stupid question, but how do I install this for windows? Thanks!

michelgaglioni commented 4 months ago

There is not a Windows bundle per se, but you can install S4 through WSL (Windows Subsystem for Linux), both in the Lua and Python APIs. All you have to do is install WSL through a PowerShell terminal, then go to the Microsoft Store and download any Ubuntu bundle (I would recomend the 22.04 version). After that, you can install S4 through the Linux terminal. It is also possible to integrate the Python version with VSCode, so it would be somehow equivalent of having the package installed on Windows itself. All the tutorials can be easily found on Google. If you have any trouble, however, feel free to contact me by e-mail.

jtan230 commented 4 months ago

Thanks so much for your kind reply! I've sent you an email regarding this