Repository navigation
Replies: 2 comments 11 replies
|
Yeah we currently don't support adjoint for time-domain monitors, which is underlying all the limitations you're hitting. Unfortunately I can't think of a good way to optimize the cavity resonance frequency directly, but maybe you can achieve some results if you manage to phrase your objective function as something that can be recorded by frequency-domain monitors. For example, say you're optimizing a cavity for Purcell emission. We know that for a single-mode cavity the Purcell factor is something like Q/V. However, adjoint method for the Q is not supported. But if you instead just maximize the flux emitted by the dipole source, and your starting point looks like a cavity, then the optimization is likely to find some optimal Q/V ratio without explicitly computing the Q or the V. This is just for illustrative purposes, I don't know whether your problem yields to some such treatment. |





Uh oh!
There was an error while loading. Please reload this page.
I am working on an inverse design problem where my loss function f(lambda/lambda target) depends on the cavity mode resonance wavelength and the target wavelength. Varying the size of my cavity changes the resonant wavelength of the mode. With the help of inverse designing, I want that size of the cavity for which the mode wavelength is equal to my target wavelength. Problem is to find the resonance wavelength I am using resonance finder function, but it is not compatible with autograd. Similarly, I tried taking the FFT of the time domain signal to get the E-field as a function of the wavelength, there autograd is not compatible with FFT. It seems like I have no option but to use numerical differentiation technique to calculate the derivatives with each parameter and it works but it is computationally very expensive. Is there any other way of solving this problem, where I can use autograd?
All reactions