Photonics

Photonics

Topics related to Lumerical and more.

Save mode profile by command

TAGGED: ,

    • iqnlo
      Subscriber

      Hi there

      I'm doing parameters sweep with an EME solver and I want to save the mode profile of each loop. May I ask which command shall I use if I want to save the mode profile of cell(3) of the EME result? I want to save the jpg format pictures. Thank you so much!

    • Kyle
      Ansys Employee

      The videos on these pages (from our online scripting course) describe how to get results from simulations and plot them:
      https://support.lumerical.com/hc/en-us/articles/360045464713
      https://support.lumerical.com/hc/en-us/articles/360045464653
      The mode fields can be obtained with this command:
      getresult("EME::Cells::cell_3", "mode fields");
      Are you using the parameter sweep utility? I think you should be able to save the images in each iteration if you put the commands in the model analysis script, which will run automatically at each iteration of the sweep:
      Otherwise, the files from each iteration are saved in a subfolder. You could write a script file that opens each file with the load command and then saves the images.
    • iqnlo
      Subscriber
      This works! Thanks a lot!!!
Viewing 2 reply threads
  • The topic ‘Save mode profile by command’ is closed to new replies.