add#
- ParametricSetups.add(variable, start_point, end_point=None, step=100, variation_type='LinearCount', solution=None, name=None)#
Add a basic sensitivity analysis. You can customize all options after the analysis is added.
- Parameters:
- variable
str Name of the variable.
- start_point
float,intorstr Variation Start Point if a variation is defined or Single Value.
- end_point
floatorint,optional Variation End Point. This parameter is optional if a Single Value is defined.
- step
float,int,orstr Variation Step or Count depending on variation_type. The default is
100for the “LinearCount” variation_type. If a string is passed as an argument, it must be a valid expression in the given context. For example, “0.1mm” may be passed for a step size when the variation_type is “LinearStep”.- variation_type
str,optional Variation Type. Permitted values are “LinearCount”, “LinearStep”, “LogScale”, “SingleValue”.
- solution
str,optional Type of the solution. The default is
None, in which case the default solution is used.- name
str,optional Name of the sensitivity analysis. The default is
None, in which case a default name is assigned.
- variable
- Returns:
ansys.aedt.core.modules.design_xploration.SetupParamOptimization Object.
References
>>> oModule.InsertSetup