VentilationPolar (class)

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

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

Bases: pyleecan.Classes.Hole.Hole

Polar axial ventilation duct

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

Compute the curve needed to plot the ventilations

Parameters:
  • self (VentilationPolar) – A VentilationPolar 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 PolarArc

Return type:

list

Raises:

PolarArcBuildGeometryError – The parameter ‘sym’ must be an integer > 0 The parameter ‘alpha’ must be an int or float The parameter ‘delta’ must be a complex or float or int number

check()

Make sure that the ventilation parameters are correctly set

Parameters:self (VentilationPolar) – A VentilationPolar object
Returns:
Return type:None
Raises:VentilationPolarInstanceError – Zh must be a integer H0 must be a float or int D0 must be a float or int Alpha0 must be a float or int
comp_radius()

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

Parameters:self (VentilationPolar) – A VentilationPolar 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 (VentilationPolar) – A VentilationPolar object
Returns:surface – Axial ventilation ducts total surface [m**2]
Return type:float
get_center()

Return a list of the center of the ventilations

Parameters:self (VentilationPolar) – A VentilationPolar object
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

Height of the hole

H0

Radius of the bottom of Hole

W1

Hole angular width