Source code for pyleecan.Methods.Slot.SlotW23.comp_height
# -*- coding: utf-8 -*-
[docs]def comp_height(self):
"""Compute the height of the Slot.
Caution, the bottom of the Slot is an Arc
Parameters
----------
self : SlotW23
A SlotW23 object
Returns
-------
Htot: float
Height of the slot [m]
"""
Rbo = self.get_Rbo()
point_dict = self._comp_point_coordinate()
Z4 = point_dict["Z4"]
if self.is_outwards():
return abs(Z4) - Rbo
else:
return Rbo - abs(Z4)