Ansys Learning Forum › Forums › Discuss Simulation › Photonics › Lumerical scripting code to create a compact model of a parameterized waveguide? › Reply To: Lumerical scripting code to create a compact model of a parameterized waveguide?
May 1, 2024 at 9:10 pm
Guilin Sun
Ansys Employee
You can save data in JSON: jsonwrite - Script command
read its data: jsonread - Script command
So you will need to use lumerical script to get mode and waveguide parameters from simulation files. Please follow the instructions in the example for the format.
Remember to copy and paste the generated JSON file into the appropriate element folder to build the compact model as part of the process.