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

Polarization independence #28

Open
twhughes opened this issue Nov 25, 2018 · 1 comment
Open

Polarization independence #28

twhughes opened this issue Nov 25, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@twhughes
Copy link
Member

Is your feature request related to a problem? Please describe.
Right now, we specify the polarization of the problem, and then all fields are defined in that polarization.

Describe the solution you'd like
Would be great if simulation objects were defined as containing both Ez and Hz polarizations. Then, the current sources can be used to specify which fields are non-zero. For example:

S = simulation(...)          # new simulation independent of polarization
S.src['Jz'] = new_src1     # now Ez, Hx, and Hy may be solved for.
S.src['Mz'] = new_src2     # now Hz, Ex, and Ey may be non-zero as well.

This will allow us to do optimization for problems that have components from both polarizations (ie polarization splitter).

@twhughes twhughes added the enhancement New feature or request label Nov 25, 2018
@shoyer
Copy link

shoyer commented Dec 14, 2018

An alternative way to set this up would be to allow multiple simulations to be used in a single optimization. That might make for a slightly cleaner separation.

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

No branches or pull requests

2 participants