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

Python tutorial and test for near2far for cylindrical coordinates #1100

Merged
merged 6 commits into from
Jan 23, 2020

Conversation

oskooi
Copy link
Collaborator

@oskooi oskooi commented Jan 10, 2020

Should be merged after #1090. Also includes a test.

Scheme version and Jupyter notebook will be added in a separate PR.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

You'll be able to see Jupyter notebook diff and discuss changes. Powered by ReviewNB.

@oskooi oskooi changed the title Python tutorial for near2far for cylindrical coordinates Python tutorial and test for near2far for cylindrical coordinates Jan 23, 2020
@stevengj stevengj merged commit ae5a200 into NanoComp:master Jan 23, 2020
@stevengj
Copy link
Collaborator

As we discussed, you could compute the far fields along a line very far way, and then compute the magnitude of the Poynting vector at each point to get the power flowing in that direction.

Alternatively, you could do the Fourier transform of the near fields analogous to what you did for the 2d diffraction grating, following my instructions for how to do it in 3d. That is, you are still doing the 2d Fourier transform over the near fields, exactly as if the structure was 3d. Of course, when you perform the Fourier integrals, it will be more efficient to do the integrals in cylindrical coordinates. The angular integrals can probably be done analytically since it looks like they are Bessel integrals (https://en.wikipedia.org/wiki/Bessel_function#Bessel's_integrals). In principle, this is more direct, but it is easier to use the near2far code since that is already written.

@oskooi oskooi deleted the near2far_cyl_tut branch January 23, 2020 21:22
bencbartlett pushed a commit to bencbartlett/meep that referenced this pull request Sep 9, 2021
…noComp#1100)

* Python tutorial for near2far for cylindrical coordinates

* updates and tweaks

* Update Mode_Decomposition.md

* add schematic of simulation geometry and update text/results

* add test to c++ suite

* combine two figures for far fields into one

Co-authored-by: Steven G. Johnson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants