Photonics

Photonics

Topics related to Lumerical and more.

How to do nested parameter sweep using lumerical script?

    • ph23resch01002
      Subscriber

      I am trying to reproduce the results of the paper, https://www.nature.com/articles/s41467-023-44164-4#citeas. They have run the nested sweep, for different incident source wavelengths, they have swept the angle of incidence, plotted a graph. As I am using s_parameter analysis group, I am not able to access the source or monitor which is placed within it. I am very new to lumerical software, only in the learning stage, I have written a code and I will attach the figures below as well. can anyone check my code and help me with it?

    • Guilin Sun
      Ansys Employee

      If the source and the monitor are inside the analysis group, you should be able to find it through sweep utility:

      Parameter sweep utility

      However you will need to set parameters for them, eg the wavelength, or incident angle and use script to assign the parameters to them. Please refer to this example:

      Metamaterial parameter extraction - Smith

      However your script is to run it through script (you have "run", but not set the sweep yet).

      Please refer the above links and modify your script significantly. You need to set up the sweep in the sweep utility.

      When you sweep wavelength, make sure the simulation bandwidth is chosen in order to have the mesh and material fitting:

      Make sure PML thickness (muber of layers multiplied by mesh size in front of PML) is proper to absorb light striking on it. 

       

    • ph23resch01002
      Subscriber

      Thank you, Sir! I got the plot. 

Viewing 2 reply threads
  • The topic ‘How to do nested parameter sweep using lumerical script?’ is closed to new replies.