Source code for pyleecan.Methods.Slot.SlotM13.comp_height

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

from numpy import cos


[docs]def comp_height(self): """Compute the height of the Slot. Caution, the bottom of the Slot is an Arc Parameters ---------- self : SlotM13 A SlotM13 object Returns ------- Htot: float Height of the slot [m] """ point_dict = self._comp_point_coordinate() Z2 = point_dict["Z2"] Z3 = point_dict["Z3"] Rbo = self.get_Rbo() if self.is_outwards(): return abs(Z2) - Rbo else: return Rbo - abs((Z2 + Z3) / 2)