Photonics

Photonics

Topics related to Lumerical and more.

Lumerical scripting code to create a compact model of a parameterized waveguide?

    • Monica Lam
      Subscriber

      I found example code for extracting the right parameters from a MODE simulation to create an INTERCONNECT element of a waveguide.

      (https://optics.ansys.com/hc/en-us/articles/360042800453-Waveguide-FDE)

      Is there a similar example for a parameterized waveguide? 

      I'm struggling with writing the JSON files through code. 

    • 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. 

       

Viewing 1 reply thread
  • The topic ‘Lumerical scripting code to create a compact model of a parameterized waveguide?’ is closed to new replies.