VentilationPolar (class)

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

class VentilationPolar(Alpha0=0, D0=1, H0=1, W1=1, Zh=36, mat_void=-1, init_dict=None, init_str=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

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

Height of the hole

Type

float

Min

0

property H0

Radius of the bottom of Hole

Type

float

Min

0

property W1

Hole angular width

Type

float

Min

0

Max

6.29