Ansys Learning Forum › Forums › Discuss Simulation › Photonics › User select mode in FDTD port using lumerical script › Reply To: User select mode in FDTD port using lumerical script
March 20, 2024 at 5:39 pm
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