TAGGED: break, mode-varfdtd, parametric-sweep
-
-
December 19, 2021 at 11:01 pm
Bicky
SubscriberHi 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
December 20, 2021 at 4:32 pmGuilin Sun
Ansys EmployeeSince 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.
December 23, 2021 at 9:28 amsy140876
SubscriberHi
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
December 23, 2021 at 2:37 pmGuilin Sun
Ansys Employeethis 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.
Innovation SpaceTrending discussionsTop Contributors-
6575
-
1906
-
1463
-
1311
-
1022
Top Rated Tags© 2026 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-