get_demag (method)

get_demag(self, Hmax, group_name=None)[source]

Get the surface area of the magnets that exceed a given field strenght H

Parameters
  • Hmax (float) – demagnetization field strenght

  • group_name (str) – optional name of the group, default group is ‘rotor magnets’

Returns

  • area (float) – surface area that exceed the max. field strength

  • area_ref (float) – total magnets surface area as a reference

  • indices (list) – list of cells indices that exceed the max. field strength