Ansys Learning Forum › Forums › Discuss Simulation › Photonics › Monitor settings( for randomly spaced frequencies) › Reply To: Monitor settings( for randomly spaced frequencies)
July 11, 2024 at 7:35 am
Amrita Pati
Ansys Employee
Hi Uzma,
You may use something like this in the analysis group:
n_mon = 5;
freq = [500,800,900,1200]*1e12;
for (i=1:1:n_mon)
{
addpower;
set("name","monitor_"+num2str(i));
set("override global monitor settings",true);
set("sample spacing","custom");
set("custom frequency samples",freq);
}
Â
I just used the above code in the analysis group directly and it seems to be working, but you may paramterize some of the variables for more convenient usage.
Â
Regards,
Amrita