TAGGED: eigenmode
-
-
August 15, 2023 at 4:21 pm
Karl Johnson
SubscriberI 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.
-
August 15, 2023 at 5:12 pm
Guilin Sun
Ansys EmployeeUnfortunately 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.
-
August 15, 2023 at 5:30 pm
Karl Johnson
SubscriberThanks 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?
-
August 15, 2023 at 6:46 pm
Guilin Sun
Ansys EmployeeCurrently 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.
-
- The topic ‘“emepropagate is not a valid function or variable name” in analysis script’ is closed to new replies.
-
3492
-
1057
-
1051
-
965
-
942
© 2025 Copyright ANSYS, Inc. All rights reserved.