Source code for pyleecan.Methods.Slot.VentilationTrap.comp_radius

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

from numpy import sqrt


[docs]def comp_radius(self): """Compute the radius of the two circle that contains all the ventilation ducts Parameters ---------- self : VentilationTrap A VentilationTrap object Returns ------- (Rmin, Rmax): tuple Tuple of circle radius [m] """ self.check() Rmin = sqrt(self.W1 ** 2 + self.H0 ** 2) Rmax = sqrt(self.W2 ** 2 + (self.H0 + self.D0) ** 2) return (Rmin, Rmax)