-
-
December 6, 2024 at 7:33 pm
pm796
SubscriberHow can I export simulation results from Lumerical so I can post-process them outside of Lumerical?
I am aware of the 'export to text file' option in the results viewer, but I don't want to have to use that for each of 150 frequency points in my analysis.Â
Is there a way to extract the full dataset to a csv or some other kind of format? I have not seen any example of a script that could do this, and the 'exportcsvresults()' command in the scripting database is not recognised by Lumerical.Â
Thanks
-
December 9, 2024 at 10:48 pm
Ethan Keeler
Ansys EmployeeYou can certainly export all of the data in one click. As you suspected, this does require a bit of scripting, but can be done quite simply. First, you can send the whole data set to the scripting workspace:
Then you can export this variable to a file. Probably the simplest route is to use the matlabsave command (matlabsave - Script command – Ansys Optics). Alternatively, you could have your script create other data file types (like CSV) through the use of loops and file operations. For more information about scripting and available commands, please check this link: Lumerical scripting language - By category – Ansys Optics.
In this example, you could simply type matlabsave("data_eport", E); into the script pane to the right to export to a .mat file.
-
- You must be logged in to reply to this topic.
-
3492
-
1057
-
1051
-
965
-
942
© 2025 Copyright ANSYS, Inc. All rights reserved.