Time Apodization in DFT field monitors #2914
-
Hello, I am performing cavity simulations with a source and using the DFT field monitors to get electric field profiles at resonant frequencies. The source is however quite dominant in the output fields. I want to use "Temporal apodization" at the beginning of the time series (to remove the contribution of the source excitation) before FFT is performed to compute fields at a given frequency. I did not locate this in the 'add_dft_field' method. Is there any way to set this up in MEEP. I noticed there was some discussion in the previous issue where someone suggested these features from Lumerical (#291), albeit the basic discussion was different. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It's a linear calculation so you typically just need to normalize the output fields by the source. e.g. do a normalization calculation with the same source in a control structure with no cavity (vacuum? a waveguide? I don't quite know what you are simulating) and then divide the two. This is the same as how you do transmission calculations, etc. I don't think apodization has anything to do with it. Hard to provide more specific advice without knowing precisely what cavity properties you are trying to calculate. |
Beta Was this translation helpful? Give feedback.
You can just run the simulation until the source is turned off, and then add the DFT monitor, and then run for some more time.
But if you have a cavity with a strong resonance, and you excite it at the resonant frequency, you don't need a DFT at all — just excite it with a narrow-band source, and then look at a snapshot of the field after the source has finished — everything except the resonant mode should have decayed away. See, for example, this tutorial: https://meep.readthedocs.io/en/latest/Python_Tutorials/Basics/#modes-of…