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 python API scripting Interconnect Reply To: python API scripting Interconnect

Kyle
Ansys Employee

Hello, you can load the mode data into the MODE Waveguide Element by setting the "ldf filename" property of the element to the file path for the LDF file. You can do this through script with these commands:

intc = lumapi.INTERCONNECT()

intc.addelement("MODE Waveguide")

intc.set("ldf filename", "data.ldf")

[bingo_chatbox]