We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.

Ansys Learning Forum Forums Discuss Simulation Photonics Monitor settings( for randomly spaced frequencies) Reply To: Monitor settings( for randomly spaced frequencies)

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