HoleM53 (class)

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

class HoleM53(H0=0.003, H1=0, W1=0.013, H2=0.02, W2=0.01, H3=0.01, W3=0.01, W4=0.01, magnet_0=-1, magnet_1=-1, Zh=36, mat_void=-1, init_dict=None)[source]

Bases: pyleecan.Classes.HoleMag.HoleMag

V shape slot for buried magnet

VERSION = 1
IS_SYMMETRICAL = 1
build_geometry(alpha=0, delta=0, is_simplified=False)

Compute the curve (Segment) needed to plot the Hole. The ending point of a curve is the starting point of the next curve in the list

Parameters:
  • self (HoleM53) – A HoleM53 object
  • alpha (float) – Angle to rotate the slot (Default value = 0) [rad]
  • delta (complex) – Complex to translate the slot (Default value = 0)
  • is_simplified (bool) – True to avoid line superposition
Returns:

surf_list – List of Magnet Surface and Air Surface on the slot

Return type:

list

check()

Check that the HoleM53 object is correct

Parameters:

self (HoleM53) – A HoleM53 object

Returns:

Return type:

None

Raises:
  • S53_Rbo0CheckError – You must have H0 < Rbo
  • S53_Rbo1CheckError – You must have H1 < Rbo
  • S53_W4CheckError – You must have W4 < pi/2
  • S53_W5CheckError – You must have W5 >=0
comp_mass_magnets()

Compute the mass of the magnets (if any)

Parameters:self (HoleM53) – A HoleM53 object
Returns:Mmag – mass of the Magnets [kg]
Return type:float
comp_radius()

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

Parameters:self (HoleM53) – A HoleM53 object
Returns:(Rmin,Rmax) – Radius of the circle that contains the hole [m]
Return type:tuple
comp_surface_magnets()

Compute the surface of the magnets (if any)

Parameters:self (HoleM53) – A HoleM53 object
Returns:Smag – Surface of the Magnets [m**2]
Return type:float
comp_volume_magnets()

Compute the volume of the magnets (if any)

Parameters:self (HoleM53) – A HoleM53 object
Returns:Vmag – Volume of the Magnets [m**3]
Return type:float
comp_W5()

Compute the W5 width of the hole (cf schematics)

Parameters:self (HoleM53) – a HoleM53 object
Returns:W5 – Cf schematics [m]
Return type:float
Raises:Slot53InterError – ERROR: Slot 53, Can’t find Z11 coordinates
remove_magnet()

Remove the magnet (set to None) of the Hole

Parameters:self (HoleM53) – a HoleM53 object
as_dict()[source]

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

H0

Slot depth

H1

Distance from the lamination Bore

W1

Tooth width (at V bottom)

H2

Magnet Height

W2

Distance Magnet to bottom of the V

H3

Additional depth for the magnet

W3

Magnet Width

W4

Slot angle

magnet_0

First Magnet

magnet_1

Second Magnet