Source code for pyleecan.Methods.Slot.SlotW13.get_H1

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

from numpy import tan


[docs]def get_H1(self): """Return H1 in [m] Parameters ---------- self : SlotW13 A SlotW13 object Returns ------- H1: float H1 in [m] """ if self.H1_is_rad: # H1 in rad return ((self.W1 - self.W0) / 2.0) * tan(self.H1) # convertion to m else: # H1 in m return self.H1