Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.

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

[bingo_chatbox]