Amrita Pati
Ansys Employee

Hi,

Let's say you want to inject the first 5 modes, you can try the following line of code:

setnamed("FDTD::ports::port 1","selected mode numbers",[1,2,3,4,5]);

Regards,
Amrita