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

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

from numpy import pi


[docs]def comp_mass(self): """Compute the mass of the Frame Parameters ---------- self : Frame A Frame object Returns ------- Mfra: float Mass of the Frame [kg] """ Vfra = self.comp_volume() # Mass computation if Vfra == 0: return 0 else: return Vfra * self.mat_type.struct.rho