Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
Photonics

Photonics

Topics related to Lumerical and more.

How to skip the optimization of a parameter and continue the sweep

    • Bicky
      Subscriber

      Hi all,

      I have been struggling with an issue while sweeping parameters in lumerical MODE.

      When I sweep a parameter there is a value for which I don't seem to get any result. It causes the sweep to break because I get the following error: The optimization or parameter sweep object 'name_of_the_sweep' has no results.

      It is said on the script prompt "Warning: An empty data set was found for ::model::..."

      and then I get the error in red.

      Question: how can I skip this error and get the data that it has already calculated?

      Thanks

      Bicky

    • Guilin Sun
      Ansys Employee
      Since the information (such as what is changing during sweep and what result is obtained, It seems it is varFDTD?), I can only suggest to do the following:
      For optimization, you have no choice once you set the parameter range and points. But you can modify them properly.
      For sweep:
      1: check that problematic file and see why it does not have result. For example in FDE if the number of trial modes is small it may not be able to find the desired mode. For varFDTD it may be diverged. ONce you know the cause please find some information to fix it. You may find some useful posts searching here Index of Ansys Insight posts -Single place to search topics written by Ansys-Lumerical Engineers
      2: To avoid one parameter, you can either sweep given values instead of in "range", or using script inside "model" to specify sweeping values.
      However, it is better to do #1 to know the cause.

    • sy140876
      Subscriber
      Hi
      It may be a solution to your problem.
      Use script to sweep rather than sweep in optimization.
      In script, you can use the 'try' command like
      try{
      getresult }
      and the warning will be skipped
    • Guilin Sun
      Ansys Employee
      this is another good idea, thank you!
Viewing 3 reply threads
  • The topic ‘How to skip the optimization of a parameter and continue the sweep’ is closed to new replies.
[bingo_chatbox]