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

dft_energy routines and Scheme wrappers for SWIG #744

Merged
merged 1 commit into from
Feb 27, 2019

Conversation

oskooi
Copy link
Collaborator

@oskooi oskooi commented Feb 25, 2019

A new dft_energy class is added to the namespace which is used to compute the electric (ε|E|2) and magnetic (μ|H|2) energy density from the Fourier-transformed fields. These routines can facilitate e.g. calculating the group velocity of a guided mode. Scheme (but not Python) wrappers for SWIG are included.

Once the Python wrappers are added in a separate PR, a test will be created based on computing the group velocity of a waveguide mode using two different methods: (1) as the ratio of the Poynting flux to the energy density and (2) directly via get_eigenmode_coefficients involving mode decomposition. The test will verify that these results are nearly identical.

Documentation also needs to be added following the test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants