Off-normal angle of incidence in 3D #2020
-
Hi everybody, Wondering if there is some guidance (e.g., an example I can guide off of) to define an off-normal source angle of incidence in 3D. I've read the guidance for 1D and 2D, however I'm unclear on a few items:
Appreciate the advice! |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 5 replies
-
|
Beta Was this translation helpful? Give feedback.
-
As an alternative to defining a planewave using the amplitude function property of the |
Beta Was this translation helpful? Give feedback.
-
Thanks very much for the insight. In my OP I noted I wanted "broadband spectra as a function of angle of incidence", but actually I really only need broadband reflection spectra for a handful of specific angles of incidence. In this case, based on what I've read so far (admittedly I haven't fully grasped all the technical details), it seems I'll have to run time-stepped simulations for each angle of incidence for each frequency of interest - so, (# of angles of incidence) * (# of wavelengths) simulations. That's fine; hopefully specifying a small Briefly looking into the frequency-domain solver, I'm seeing that perhaps the edit: Actually, I see |
Beta Was this translation helpful? Give feedback.
-
So I created a file with examples based on the 2D simulation (Also including the original meep example) https://github.com/Nikolaos-MAtthaiakakis/share/blob/main/angle_example.ipynb . I also do the same thing for 3D, and also show what happens in the 2D simulation when the system is periodic along x. In the last case we can see interference from the source that spans the Y direction in both sides of the simulation domain. I imagine the use of eigenmode sources would solve this issue since it only emits from one side https://meep.readthedocs.io/en/latest/Python_Tutorials/Eigenmode_Source/ (although for broadband simulations this might increase runtime as described in the documents). The same would be true if we apply this for the 3D simulation with periodic boundaries. More experienced users can verify if my file is a correct example and the things I mention are true, or if there are better ways to avoid this issue when using periodic boundaries. If you manage to solve your issue I would be interested to see your method since I will also require to run this kind of simulations soon |
Beta Was this translation helpful? Give feedback.
-
@Nikolaos-Matthaiakakis, there are two cases:
|
Beta Was this translation helpful? Give feedback.
-
I uploaded an example file that also includes the 2D and 3D periodic simulations for any angle of incidence. Edit: to include broadband pulse example. https://github.com/Nikolaos-MAtthaiakakis/share/blob/main/angle_test.ipynb angle_per3D_pulse.mp4 |
Beta Was this translation helpful? Give feedback.
I uploaded an example file that also includes the 2D and 3D periodic simulations for any angle of incidence.
Edit: to include broadband pulse example.
https://github.com/Nikolaos-MAtthaiakakis/share/blob/main/angle_test.ipynb
angle_per3D_pulse.mp4