set_tuning_offset#

SetupHFSSAuto.set_tuning_offset(offsets)#

Set derivative variable to a specific offset value.

This method adjusts the tuning ranges for derivative variables in the design, allowing for specific offset values to be applied. If a variable is not specified in the offsets dictionary, its offset is set to 0 by default. Each value must be within ±10% of the nominal value of the corresponding variable.

Parameters:
offsetsdict

Dictionary where keys are variable names and values are the corresponding offset values to be applied.

Returns:
bool

True when successful, False when failed.

References

>>> oDesign.SetTuningRanges

Examples

>>> from ansys.aed.core import Hfss
>>> hfss = Hfss()
>>> hfss["der_var"] = "1mm"
>>> setup = hfss.create_setup(setup_type=0)
>>> setup.add_derivatives("der_var")
>>> hfss.analyze()
>>> setup.set_tuning_offset({"der_var": 0.05})