Conversation
|
I'm slightly confused by the default behavior of the Lines 1082 to 1090 in d29f211 When the user specifies a volume other than a plane/volume (e.g. point or line) and the user is pulling the interpolated fields from the center of each voxel, there's some odd behavior. For a simple point, In the case of a line monitor across 10 pixels, Is this the expected behavior? This makes it tricky when trying to use the indices of the DFT array data values for a broadband adjoint source (for both Poynting fluxes and basic Fourier fields). |
|
There are two options for placing the adjoint source in this case:
Option 1 is rather difficult -- I don't see a reliable way to uncollapse the Jacobian and map it to the dft fields (which are just stored as sequential indices in the C++ code). Option 2 requires some slight modifications to the I implemented option 2 for the broadband Poynting flux (10 frequency points) and got the following result: The result isn't perfect (1%-10% error) but it's a good start. I've incorporated the interpolation weights into the adjoint scale factor (as we've discussed numerous times) but they only slightly improve the accuracy. Perhaps I still need to take into account the interpolation of the final source object and |

Closes #1307 and #1299.