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

fix adjoints for Hz polarization #16

Open
twhughes opened this issue Nov 1, 2018 · 2 comments
Open

fix adjoints for Hz polarization #16

twhughes opened this issue Nov 1, 2018 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed necessary This is needed for our paper

Comments

@twhughes
Copy link
Member

twhughes commented Nov 1, 2018

The adjoint sensitivities are slightly off for Hz polarization. We should fix.

@twhughes twhughes added the necessary This is needed for our paper label Nov 1, 2018
@twhughes twhughes changed the title adjoints for Hz polarization fix adjoints for Hz polarization Nov 25, 2018
@twhughes twhughes added help wanted Extra attention is needed bug Something isn't working labels Dec 7, 2018
@aonurdasdemir
Copy link

Hello,

Could you solve this problem? I was trying to use Hz polarization but I am facing with two main problems:

  1. When the mode is excited in a straight waveguide for normalization, I can observe that the field does not seem as it expected to be. Here is the images for 300 nm waveguide and 400 nm waveguide, respectively.
    indir

indir (1)

There is a bright point at the location where the mode is excited. I do not observe this on Ez polarization so I guess there is a problem with the field solution (or mode solution) on Hz polarization.

  1. When I ignore the problem in the mode and try to use Hz polarization for optimization, it does not converge and terminate early by returning a warning from LBFGS as: ABNORMAL_TERMINATION_IN_LNSRCH. When I searched for it, I saw that the problem usually arises from the mismatch between the objective function and the gradient.

So, I guess the slight difference on adjoint sensitivity may arise from the improper mode solution or field solution and thus effect the optimization. Do you have a solution for this problem as I need to use Hz polarization? Moreover, I see that you have a new package 'ceviche', do you still face Hz polarization problem on its FDFD solver because I see that most of your notebook examples are on Ez polarization.

Thank you.

@twhughes
Copy link
Member Author

Hi @aonurdasdemir, I will look into the problem when i have more time but for now I'd recommend you use ceviche as the Hz polarization seems reliable at the moment. (Even though examples are in Ez).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed necessary This is needed for our paper
Projects
None yet
Development

No branches or pull requests

2 participants