build_geometry (method)

@package Methods.Machine.VentilationTrap.build_geometry VentilationTrap build_geometry method @date Created on Tue Mar 08 11:44:15 2016 @copyright (C) 2015-2016 EOMYS ENGINEERING. @author pierre_b @todo unittest it

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