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

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

from numpy import tan


[docs]def get_H1(self): """Return H1 in [m] Parameters ---------- self : SlotW21 A SlotW21 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