add_thermal_modifier_free_form#

MatProperty.add_thermal_modifier_free_form(formula, index=0)#

Add a thermal modifier to a material property using a free-form formula.

Parameters:
formulastr

Full formula to apply.

indexint, optional

Value for the index. The default is 0.

Returns:
bool

True when successful, False when failed.

References

>>> oDefinitionManager.EditMaterial

Examples

>>> from ansys.aedt.core import Hfss
>>> hfss = Hfss(version="2021.2")
>>> mat1 = hfss.materials.add_material("new_copper2")
>>> mat1.add_thermal_modifier_free_form("if(Temp > 1000cel, 1, if(Temp < -273.15cel, 1, 1))")