-
Notifications
You must be signed in to change notification settings - Fork 632
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
bfast algorithm for fixed angle broadband #2609
Conversation
Codecov Report
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #2609 +/- ##
==========================================
+ Coverage 73.90% 74.07% +0.16%
==========================================
Files 18 18
Lines 5293 5396 +103
==========================================
+ Hits 3912 3997 +85
- Misses 1381 1399 +18
|
Thanks for working on this feature. One suggestion for a quick test in 1d would be computing the reflectance from a flat interface and verifying the result using the Fresnel equations as demonstrated in this tutorial. |
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
In case you missed it, there is a type-conversion error in
You can view these test logs by clicking on the Also, to see the actual error in the failing
|
@Dan2357, great to see that you are making progress on this. Let me know if you want to meet sometime. |
@oskooi said he will write the user documentation / tutorial and a test (based on your example — just comparing the reflection to the analytical Fresnel coefficients). @Dan2357 is going to tweak the technical writeup a bit — expand the intro, and add a section about how this was implemented in Meep as a separate We should also finalize the API — probably the (The technical writeup will then be linked into the main manual somewhere.) |
I have edited the technical writeup and deleted the unnecessary files. |
edit (11/20): disregard, the fields are not blowing up. The As reported in #2722, I think there could be a bug in the current implementation related to not taking into account the index of the source medium when specifying the Bloch-periodic wavevector internally. Note that in the notebook demonstration in this branch, the source medium is air which produces the correct reflectance matching the Fresnel equations whereas for the unit test in #2722 the source medium is As additional information, in the unit test in #2722 I am using:
which produces the wrong results. If I modify this to include the source medium:
|
Note that, in the longer run, it would be good to have a option that lets you put the exp(ikx) factor back into the Fourier-transformed fields, e.g. for mode extraction or visualization. (This can only be done in the DFT fields, not the time-domain fields, because Not something for this PR, just something to keep in mind for the future. |
Could we correct the default Courant factor automatically when kbar is specified? |
Let's merge this for now, and maybe update the API in future PR to (1) eliminate |
Fixes #1991
This is a work in progress which implements the bfast algorithm adapted for MEEP's UPML formulation. Will post mathematical notes soon.
To do: