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

WIP: complex ε and μ output #1112

Merged
merged 5 commits into from
Jan 31, 2020
Merged

Conversation

oskooi
Copy link
Collaborator

@oskooi oskooi commented Jan 30, 2020

Fixes #1108

There is just one thing that needs to be resolved: output_epsilon and get_epsilon output/return a complex array only when ω≠0 whereas conductivity or susceptibility needs to be present as well. I wasn't sure how to do this cleanly.

The following two lines need to be modified:

https://github.com/oskooi/meep/blob/a11f1982f8f487676b1f2be8c927a9b4bb53ce1d/python/simulation.py#L2013

https://github.com/oskooi/meep/blob/a11f1982f8f487676b1f2be8c927a9b4bb53ce1d/src/h5fields.cpp#L391

@stevengj stevengj merged commit 7a2cd63 into NanoComp:master Jan 31, 2020
@oskooi oskooi deleted the complex_eps_output branch January 31, 2020 04:06
@stevengj
Copy link
Collaborator

These parameters should be renamed from omega to frequency.

bencbartlett pushed a commit to bencbartlett/meep that referenced this pull request Sep 9, 2021
* convert chi1inv from double to complex<double>

* update test

* add docs

* correction

* correction

Co-authored-by: Steven G. Johnson <[email protected]>
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.

complex ε and μ output
2 participants