Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple wavelength simulation #78

Open
adikrao opened this issue Oct 17, 2022 · 4 comments
Open

Multiple wavelength simulation #78

adikrao opened this issue Oct 17, 2022 · 4 comments

Comments

@adikrao
Copy link

adikrao commented Oct 17, 2022

I am using goos library. How do I run simulation for multiple wavelengths on the same simulation space. I tried to create two variable sim1 and sim2, gave both of them same sim_space and epsilon. Defined independent objectives for each wavelength and then added them. On running the code, the simulation space is initiated but the Optimization process doesn't start. Any help how to resolve this?
Also is there a detailed documentation of spins-b available anywhere?

@ludi1001
Copy link
Member

What you described should work. What do you mean by the Optimization process doesn't start? Are you able to successfully run with just one wavelength?

Documentation-wise we have https://spins-b.readthedocs.io/en/latest/ as well as the examples you've probably seen under spins-b/examples/goos

@LumiereWuChu
Copy link

Did you solve your problem please? I have a similar question: how to set up multiple light sources incident in spins at the same time.

@ludi1001
Copy link
Member

ludi1001 commented Mar 8, 2023

The details depend on the simulator you want to use, but let's suppose you're using maxwell.fdfd_simulation. If you want multiple sources at the same wavelength, you can just list multiple sources in the sources field. If you want multiple sources at different wavelengths, you can construct two different maxwell.fdfd_simulation objects with two different wavelengths.

@LumiereWuChu
Copy link

Thank you very much for your reply. I am trying to add two light sources of the same wavelength incident at different locations using the invdes library (e.g. based on the wdm.py routine) but optplan.fdfdsimulation does not seem to support input as list?

图片1
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants