set_core_losses#

Maxwell2d.set_core_losses(assignment, core_loss_on_field=False)[source]#

Whether to enable core losses for a set of objects.

For EddyCurrent and Transient solver designs, core losses calculations may be included in the simulation on any object that has a corresponding core loss definition (with core loss coefficient settings) in the material library.

Parameters:
assignmentlist, str

List of object to apply core losses to.

core_loss_on_fieldbool, optional

Whether to enable Consider core loss effect on field for the given list. The default is False.

Returns:
bool

True when successful, False when failed.

References

>>> oModule.SetCoreLoss

Examples

Set core losses in Maxwell 3D.

>>> from ansys.aedt.core import Maxwell3d
>>> m3d = Maxwell3d()
>>> m3d.set_core_losses(assignment=["PQ_Core_Bottom", "PQ_Core_Top"],core_loss_on_field=True)
>>> m3d.release_desktop(True, True)