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

Add unit test for backward-propagating mode in oblique waveguide #1601

Merged
merged 3 commits into from
Jun 16, 2021

Conversation

oskooi
Copy link
Collaborator

@oskooi oskooi commented Jun 10, 2021

Adds a unit test to verify that for a backward-propagating mode launched within an oblique (single-mode) waveguide, the Poynting flux and the square of the mode coefficient computed downstream from the source are the same.

The figure shows the simulation setup and a snapshot of the Ez fields: an eigenmode source (red line) launches a leftward-propagating mode. The DFT fields monitor (blue line) computes the Poynting flux exiting the waveguide as well as the mode coefficient of the backward-propagating mode. (In this figure, the time-profile of the source is a continuous wave whereas in the actual unit test it is a pulse.)

oblique_waveguide_ang35

@stevengj stevengj merged commit 979bb1b into NanoComp:master Jun 16, 2021
@oskooi oskooi deleted the oblique_wvg_backward branch June 16, 2021 03:30
bencbartlett pushed a commit to bencbartlett/meep that referenced this pull request Sep 9, 2021
…oComp#1601)

* add unit test for backward-propagating mode in oblique waveguide

* add comment for magnitude of flux

* check relative accuracy and reduce resolution for speedup by a factor of three in runtime
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