Photonics

Photonics

Topics related to Lumerical and more

“emepropagate is not a valid function or variable name” in analysis script

TAGGED: 

    • Karl Johnson
      Subscriber

      I am attempting to perform a sweep of EME simulations (and the parameter I am sweeping can not be done using the special propagation and wavelength sweep tools in the EME solver). In order to use the "optimization and sweeps" panel, I need to write an analysis script for the model so it generates the results that can be saved for each point of the sweep. However, when writing my analysis script, it does not recognize the 'emepropagate' command as valid, even though this is required in order to generate results with EME:

      Is there any way to run 'emepropagate' from an analysis script? Additionally, I noticed that the "select" command is not recognized as valid in analysis scripts. In general, is there any documentation indicating which script commands are/aren't valid for analysis scripts? It seems like they have a special scope, but it is not clear exactly what this scope is to me.

      For now, I am writing my own script in the main script editor (not as an analysis script) to perform the same sweep as a workaround, but the built-in "Optimizations and Sweeps" tool is very convenient, so I was hoping there would be a way to use it along with the EME solver.

    • Guilin Sun
      Ansys Employee

      Unfortunately this command is not designed to run in "model".

      You will need to use script to do the sweep.

      But usually the sweep in "Optimizations and Sweeps"  will automatically run the simulation and the emepropagate in order to give result. Please try.

    • Karl Johnson
      Subscriber

      Thanks for the fast response! I tested it, and indeed the EME propagator does run when you perform a sweep, even if you don't put it in the analysis script. I did not expect that behavior, that is a big help! Is there anywhere in the documentation detailing what commands are/aren't design to be used in the 'model' analysis script, and what runs automatically when a sweep is performed?

    • Guilin Sun
      Ansys Employee

      Currently no such a list as the script commands are dynamic as some may work as a new feature.

      The sweep utility is complete for all the simulations since people want the sweep results ready to use.

       

Viewing 3 reply threads
  • You must be logged in to reply to this topic.