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 phase of mode coefficients #2428

Merged
merged 3 commits into from
Mar 10, 2023

Conversation

oskooi
Copy link
Collaborator

@oskooi oskooi commented Mar 8, 2023

Closes #2409.

Adds a missing unit test which validates the phase of the mode-decomposition feature. The test, involving a 2d simulation, is based on computing the phase of a total internal reflected (TIR) mode given an oblique-incident planewave for $S$ and $P$ polarizations. The results are validated using the Fresnel equations. More details are provided in #2409.

A tutorial based on this test will be added to Tutorials/Mode Decomposition in a separate PR.

@oskooi oskooi merged commit ced221c into NanoComp:master Mar 10, 2023
@oskooi oskooi deleted the mode_coeffs_phase_test branch March 10, 2023 15:47
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.

missing unit test for phase of mode coefficients
2 participants