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")