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

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

from numpy import pi


[docs]def comp_volume(self): """Compute the volume of the Frame Parameters ---------- self : Frame A Frame object Returns ------- Vfra: float Volume of the Frame [m**3] """ Sfra = self.comp_surface() if self.Lfra is None: return 0 else: return Sfra * self.Lfra