build_geometry (method)

build_geometry(self, sym=1, alpha=0, delta=0, is_stator=True)[source]

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

exception TrapezeBuildGeometryError[source]

Bases: Exception

raised when the parameter have not good type