-
Notifications
You must be signed in to change notification settings - Fork 626
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
Incorrect FourierFields gradients for D components #2090
Comments
Probably the adjoint current for a There is an undocumented feature in which you can specify a current source as Though I'm a bit confused because it seems like this line already uses the same current type as the Fourier fields? |
PR #2095 is a tentative fix for this issue. It is based on these lines.
I tweaked |
In this example, the monitor is not placed inside the design region. If the monitor is placed inside the design region, PR #2095 does not work even if the design region is uniform. The variation of permittivity with respect to the design parameters needs to be taken into account. |
The FourierFields gradients for D fields is incorrect by a factor of the permittivity ε (at the location of interest).
Here is an example
which has the layout:
I found the fd_gradients was approximately ε(=12 in the code above) * adjoint_gradients. If the monitor is placed inside the design region, then the factor is the permittivity corresponding to the design parameter weight at that point.
The text was updated successfully, but these errors were encountered: