HoleM51 (class)

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

class HoleM51(H0=0.003, H1=0, H2=0.02, W0=0.01, W1=0, W2=0.01, W3=0, W4=0.01, W5=0.01, W6=0, W7=0, magnet_0=-1, magnet_1=-1, magnet_2=-1, Zh=36, mat_void=-1, init_dict=None)[source]

Bases: pyleecan.Classes.HoleMag.HoleMag

3 magnets V hole

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

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

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

surf_list – List of SurfLine needed to draw the HoleM51

Return type:

list

check()

Check that the HoleM51 object is correct

Parameters:self (HoleM51) – A HoleM51 object
Returns:
Return type:None
comp_alpha()

Compute the angle of the Hole (cf schematics)

Parameters:self (HoleM51) – A HoleM51 object
Returns:alpha – Angle of the Hole (cf schematics) [rad]
Return type:float
comp_mass_magnets()

Compute the mass of the hole magnets (some of them may be missing)

Parameters:self (HoleM51) – A HoleM51 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 (HoleM51) – A HoleM51 object
Returns:(Rmin, Rmax) – Radius of the circle that contains the hole [m]
Return type:tuple
comp_surface_magnets()

Compute the surface of the hole magnets (some of them may be missing)

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

Compute the volume of the hole magnets (some of them may be missing)

Parameters:self (HoleM51) – A HoleM51 object
Returns:Vmag – Volume of the magnets [m**3]
Return type:float
comp_width()

Compute the width of the Hole (cf schematics)

Parameters:self (HoleM51) – A HoleM51 object
Returns:Whole – Width of the Hole (cf schematics) [m]
Return type:float
remove_magnet()

Remove the magnet (set to None) of the Hole

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

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

H0

Hole depth

H1

Distance from the lamination Bore

H2

Hole width

W0

Hole bottom width

W1

Hole angular width

W2

magnet_1 position

W3

magnet_1 width

W4

magnet_2 position

W5

magnet_2 width

W6

magnet_0 position

W7

magnet_0 width

magnet_0

First Magnet

magnet_1

Second Magnet

magnet_2

Third Magnet