Source code for pyleecan.Methods.Slot.SlotW25.comp_surface_opening

from numpy import pi, arcsin, sin


[docs]def comp_surface_opening(self): """Compute the Slot opening surface (by analytical computation). Caution, the bottom of the Slot is an Arc Parameters ---------- self : SlotW25 A SlotW25 object Returns ------- S: float Slot opening surface [m**2] """ point_dict = self._comp_point_coordinate() Z1 = point_dict["Z1"] Z2 = point_dict["Z2"] if self.is_outwards(): Rint = abs(Z1) Rext = abs(Z2) else: Rint = abs(Z2) Rext = abs(Z1) # Surface of a slot pitch Sring = (pi * Rext ** 2 - pi * Rint ** 2) * 1 / self.Zs # Tooth surface St = self.H1 * self.W4 alpha_bore = 2 * arcsin(self.W4 / (2 * Rint)) Sarc_bore = (Rint ** 2.0) / 2.0 * (alpha_bore - sin(alpha_bore)) alpha_yoke = 2 * arcsin(self.W4 / (2 * Rext)) Sarc_yoke = (Rext ** 2.0) / 2.0 * (alpha_yoke - sin(alpha_yoke)) return Sring - (St + Sarc_yoke - Sarc_bore)