Hole (class)

Warning : this file has been generated, you shouldn’t edit it

class Hole(Zh=36, mat_void=-1, init_dict=None)[source]

Bases: pyleecan.Classes.frozen.FrozenClass

Holes for lamination (abstract)

VERSION = 1
comp_radius()

Compute the radius of the min and max circle that contains the hole

Parameters:self (Hole) – A Hole object
Returns:(Rmin,Rmax) – Radius of the circle that contains the hole
Return type:tuple
comp_surface()

Compute the Hole total surface (by numerical computation).

Parameters:self (Hole) – A Hole object
Returns:S – Slot total surface [m**2]
Return type:float
get_is_stator()

Return True if the parent lamination is stator and False if is a rotor

Parameters:self (Hole) – A Hole object
Returns:is_stator – True if the Lamination is a stator and False if not
Return type:bool
get_Rbo()

Return the parent lamination bore radius

Parameters:self (Hole) – A Hole object
Returns:Rbo – The parent lamination bore radius [m]
Return type:float
has_magnet()

Return if the Hole has magnets

Parameters:self (Hole) – A Hole object
Returns:has_magnet – False
Return type:bool
plot(fig=None, display_magnet=True)

Plot the Hole in a matplotlib fig

Parameters:
  • self (Hole) – A Hole object
  • fig – if None, open a new fig and plot, else add to the current one (Default value = None)
  • display_magnet (bool) – if True, plot the magnet inside the hole, if there is any (Default value = True)
Returns:

Return type:

None

as_dict()[source]

Convert this objet in a json seriable dict (can be use in __init__)

Zh

Number of Hole around the circumference

mat_void

Material of the “void” part of the hole (Air in general)