-
-
July 8, 2024 at 1:44 pm
Fatemeh Salahshoori
SubscriberHi,
Â
I am using Python for scripting my simulation. I have simulated a waveguide using FDE and saved data using this commandÂ
FDE = lumapi.MODE()
data = FDE.copydcard("frequencysweep")
FDE.savedcard("data.ldf", data)Â
Now I want to load this ldf file in interconnect for the waveguide mode element. When i use the "loaddata" command I get this error 'Unsupported data type'
could you please tell me how can I load this file into the waveguide mode element in interconnect?
Thank you.Â
Â
-
July 9, 2024 at 9:45 pm
Kyle
Ansys EmployeeHello, 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")
-
- The topic ‘python API scripting Interconnect’ is closed to new replies.
-
3492
-
1057
-
1051
-
965
-
942
© 2025 Copyright ANSYS, Inc. All rights reserved.