The default high Q analysis group that is avalilable from the object library offers the possibility to specify the number of resonances based on the spectrum magnitude. The attached simulation file contains this analysis group with additional option to set minimum and maximum frequency in order to specify the range of frequencies where to look for the resonant peaks. Or in the other words, it removes any resonances that are outside of this range.
high_Q_resonator_with_spectrum_filter.fsp (339.0 KB)
In this example, the default spectrum looks like this:
If I want to remove the resonance at 245 THz, the modified Q analysis in the attached file allows me to set the frequency range of the spectrum between 260 and 400 THz:
and the resonance at 245 THz will be removed:
Plot of the filter to check what portion of the spectrum was filtered out: