set_non_linear#

MatProperty.set_non_linear(x_unit=None, y_unit=None)#

Enable non-linear material.

This is a private method, and should not be used directly.

Parameters:
x_unitstr, optional

X units. Defaults will be used if None.

y_unitstr, optional

Y units. Defaults will be used if None.

Returns:
bool

True if succeeded.

Examples

>>> from ansys.aedt.core import Hfss
>>> hfss = Hfss(version="2025.2")
>>> B_value = [0.0, 0.1, 0.3, 0.4, 0.48, 0.55, 0.6, 0.61, 0.65]
>>> H_value = [0.0, 500.0, 1000.0, 1500.0, 2000.0, 2500.0, 3500.0, 5000.0, 10000.0]
>>> mat = hfss.materials.add_material("newMat")
>>> b_h_dataset = [[b, h] for b, h in zip(B_value, H_value)]
>>> mat.permeability = b_h_dataset