VentilationTrap (class)

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

class VentilationTrap(Alpha0=0, D0=1, H0=1, W1=1, W2=1, Zh=36, mat_void=-1, init_dict=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
as_dict()[source]

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

Alpha0

Shift angle of the hole around circumference

D0

Hole height

H0

Radius of the hole bottom

W1

Hole small basis

W2

Hole large basis