Source code for pyleecan.Methods.Slot.SlotM18.comp_surface_active

# -*- coding: utf-8 -*-
from numpy import pi


[docs]def comp_surface_active(self): """Compute the Slot inner active surface (by analytical computation) Parameters ---------- self : SlotM18 A SlotM18 object Returns ------- Swind: float Slot inner active surface [m**2] """ point_dict = self._comp_point_coordinate() ZM1 = point_dict["ZM1"] ZM2 = point_dict["ZM2"] R1 = abs(ZM1) R2 = abs(ZM2) S1 = pi * R1 ** 2 / self.Zs S2 = pi * R2 ** 2 / self.Zs return abs(S1 - S2)