HelgeGehring / femwell

FEM mode solver for photonic waveguides
https://helgegehring.github.io/femwell/
GNU General Public License v3.0
115 stars 33 forks source link

How to Install the Julia version of femwell #97

Open zmxCatBug opened 1 year ago

zmxCatBug commented 1 year ago

Hello @HelgeGehring Thank you for this great optical mode calculating tool. Since I'm trying to find modes of an anisotropic dielectric waveguide, I would like to install a Julia version. I've already install through pip, but I'm not able to run the Julia example code. Am I supposed to install a Julia package of femwell? If so, how can I install it? (It seems that "add Femwell" doesn't work.)

Thank you.

截屏2023-10-18 00 53 03
HelgeGehring commented 1 year ago

Hey @zmxCatBug, happy to hear that you like the femwell :)

I didn't yet make a julia package out of femwell, but we should definitively do that soon!

right now i think you can install it using add https://github.com/HelgeGehring/femwell.git (didn't test this yet, would be great if you can report if you get some errors or if it works)

I'll have a look on how to make a julia package in the next days!

zmxCatBug commented 1 year ago

Thank you. I succeeded in installing it in this way!

nikosavola commented 11 months ago

This seems to be still missing from the docs. Would be nice to have the command to run shown in https://helgegehring.github.io/femwell/install.html

duarte-jfs commented 6 months ago

I was trying to get the julia example running, but I was not able to get the packages running properly since I'm running on windows. Apparently there is a known issue (link 1, link 2) with compiling the MUMPS package on windows machines. (Just posting here in case someone else bumps into this)

nikosavola commented 6 months ago

I was trying to get the julia example running, but I was not able to get the packages running properly since I'm running on windows. Apparently there is a known issue (link 1, link 2) with compiling the MUMPS package on windows machines. (Just posting here in case someone else bumps into this)

For now, have you tried running on WSL?

duarte-jfs commented 6 months ago

Not yet. Mainly because I've never set up WSL and have no clue how to work with linux, so it'll take a while. But I'll keep it in mind in the future. I was just curious on how much of computing time improvement would be to use julia in femwell

oz99 commented 2 weeks ago

Hi all,

Just following up on this thread as I'm new to using femwell with Julia :)

What is your preferred method of communicating between python and julia? From the docs I see that you call python (using PyCall) from the julia code but it is also possible to call julia from the python code (using JuliaCall). Do you have a preference between either and are there any significant pros/cons between these methods?

Thanks