set_permeability_computation#

Maxwell3d.set_permeability_computation(assignment: list | str) → bool#

Set the objects whose permeability is computed from the DC fields.

In an AC Magnetic design that includes DC fields ("AC Magnetic with DC"), the permeability of these objects in the AC part is computed from the DC solution. AEDT selects every object with a nonlinear B-H material by default; this method replaces that selection.

Parameters:
assignmentlist or str

Objects whose permeability is computed from the DC fields. An empty list clears the selection.

Returns:
bool

True when successful.

References

>>> oModule.SetPermeabilityComputation

Examples

Compute the permeability of a steel core from the DC fields.

>>> from ansys.aedt.core import Maxwell3d
>>> m3d = Maxwell3d(solution_type="AC Magnetic with DC")
>>> core = m3d.modeler.create_cylinder(
...     orientation="Z", origin=[0, 0, 0], radius=1.4, height=0.6, material="steel_1008"
... )
>>> m3d.set_permeability_computation(assignment=[core.name])
>>> m3d.desktop_class.close_desktop()

Disable permeability computation in steel core.

>>> from ansys.aedt.core import Maxwell3d
>>> m3d = Maxwell3d(solution_type="AC Magnetic with DC")
>>> core = m3d.modeler.create_cylinder(
...     orientation="Z", origin=[0, 0, 0], radius=1.4, height=0.6, material="steel_1008"
... )
>>> m3d.set_permeability_computation(assignment=[])
>>> m3d.desktop_class.close_desktop()