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
andTransient
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:
- 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)