Source code for pyleecan.Methods.Machine.Frame.comp_surface

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

from numpy import pi


[docs]def comp_surface(self): """Compute the surface of the Frame Parameters ---------- self : Frame A Frame object Returns ------- Sfra: float Surface of the Frame [m**2] """ # Surface of the external disk S_ext = (self.Rext ** 2) * pi # Surface of the internal disk S_int = (self.Rint ** 2) * pi return S_ext - S_int