-
-
December 6, 2024 at 7:33 pmpm796Subscriber
How 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 pmEthan KeelerAnsys Employee
You 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.
- Difference between answers in version 2024 and 2017 lumerical mode solution
- Errors Running Ring Modulator Example on Cluster
- Import material .txt file with script
- Trapezoidal ring
- Help for qINTERCONNECT
- Absorption cross-section of AuNR excited by prism-based TIR
- Issues with getting result from interconnent analysis script
- Topology Optimization Error
- How to measure transmission coefficients on a given plane .
- Edge Coupler EME Example Issue
-
1592
-
602
-
599
-
591
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.