-
Notifications
You must be signed in to change notification settings - Fork 644
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 field information to dft_flux from frequency domain solver #490
Comments
I have a proposed routine, but am stuck on step 4: 1.) Define a volume and a mode region to be at the same location. Add the mode monitor:
2.) Run the frequency solver:
3.) Pull all of the relevant frequency domain fields:
4.) Organize them into single numpy arrays:
5.) Add the arrays to the flux object:
6.) Run the mode decomposition routine:
I'm not quite sure how to consolidate the fields (step 4). The dft chunking scheme is a little confusing to me. It looks like the are 4 groups of each field (i.e If I could get any insight, I could submit a pull request for a new function. |
It seems like it should work (up to some overall scale factor) if you simply add the A little more care is required if we care about the overall normalization of the resulting coefficients, e.g. |
Hmm it seems that even with the call to I attached a script that tries this method: |
Weird. Maybe add a |
Ah, just add |
To do:
|
Is there already an easy way to add the field information calculated from the frequency domain solver to a
dft_flux
object (preferably in python)? That way, we can use the existingget_eigenmode
routines by passing the modifiedflux
object with the frequency domain solver.The text was updated successfully, but these errors were encountered: