Ansys Learning Forum › Forums › Discuss Simulation › Photonics › python API scripting Interconnect › Reply To: python API scripting Interconnect
July 9, 2024 at 9:45 pm
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")