Source code for pyleecan.Methods.Slot.VentilationTrap.get_center

# -*- coding: utf-8 -*-

from numpy import exp, pi


[docs]def get_center(self): """Return a list of center of the ventilations Parameters ---------- self : VentilationTrap A VentilationTrap object Returns ------- Zc_list: list List of list of center complex coordinates """ Zc_list = list() for ii in range(self.Zh): Zc = ( (self.H0 + self.D0 / 2.0) * exp(1j * self.Alpha0) * exp(ii * 1j * 2 * pi / self.Zh) ) Zc_list.append(Zc) return Zc_list