VentilationTrap (class)

Method code available at https://github.com/Eomys/pyleecan/tree/master/pyleecan/Methods/Slot/VentilationTrap

class VentilationTrap(Alpha0=0, D0=1, H0=1, W1=1, W2=1, Zh=36, mat_void=-1, init_dict=None, init_str=None)[source]

Bases: pyleecan.Classes.Hole.Hole

Trapezoidal axial ventilation ducts

VERSION = 1
build_geometry(sym=1, alpha=0, delta=0, is_stator=True)

Compute the curve needed to plot the ventilations

Parameters
  • self (VentilationTrap) – A VentilationTrap object

  • sym (int) – Symetry to apply 2 = half the machine (Default value = 1 => full machine)

  • alpha (float) – Angle for rotation (Default value = 0) [rad]

  • delta (complex) – Complex for translation (Default value = 0)

  • is_stator (bool) – True if ventilation is on the stator and 0 on the rotor (Default value = True)

Returns

surf_list – A list of Trapeze

Return type

list

check()

Make sure that the ventialtion parameters are correctly set

Parameters

self (VentilationTrap) – A VentilationTrap object

comp_radius()

Compute the radius of the two circle that contains all the ventilation ducts

Parameters

self (VentilationTrap) – A VentilationTrap object

Returns

(Rmin, Rmax) – Tuple of circle radius [m]

Return type

tuple

comp_surface()

Compute the surface of all the axial ventilation ducts

Parameters

self (VentilationTrap) – A VentilationTrap object

Returns

surface – Axial ventilation ducts total surface [m**2]

Return type

float

get_center()

Return a list of center of the ventilations :param self: A VentilationTrap object :type self: VentilationTrap

Returns

Zc_list – List of list of center complex coordinates

Return type

list

save(save_path='', is_folder=False)

Save the object to the save_path

Parameters
  • self – A pyleecan object

  • save_path (str) – path to the folder to save the object

  • is_folder (bool) – to split the object in different files: separate simulation machine and materials

copy()

Return a copy of the class

get_logger()

Get the object logger or its parent’s one

Parameters

obj – A pyleecan object

Returns

logger – Pyleecan object dedicated logger

Return type

logging.Logger

as_dict()[source]

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

property Alpha0

Shift angle of the hole around circumference

Type

float

Min

0

Max

6.29

property D0

Hole height

Type

float

Min

0

property H0

Radius of the hole bottom

Type

float

Min

0

property W1

Hole small basis

Type

float

Min

0

property W2

Hole large basis

Type

float

Min

0