Source code for pyleecan.Methods.Slot.HoleM50.comp_alpha
# -*- coding: utf-8 -*-
from numpy import arcsin, arctan, cos
[docs]def comp_alpha(self):
"""Compute the alpha angle of the slot (cf schematics)
Parameters
----------
self : HoleM50
a HoleM50 object
Returns
-------
alpha: float
Cf schematics [rad]
"""
Rext = self.get_Rext()
alpham = 2 * arcsin(self.W0 / (2 * (Rext - self.H1)))
Harc = (Rext - self.H1) * (1 - cos(alpham / 2))
return arctan((self.H0 - self.H1 - Harc) / (self.W0 / 2 - self.W1 / 2))