Source code for pyleecan.Methods.Machine.LamHole.comp_masses

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

from numpy import pi
from ....Classes.Lamination import Lamination


[docs]def comp_masses(self): """Compute the Lamination masses Parameters ---------- self : LamHole A LamHole object Returns ------- M_dict: dict Lamination mass dictionnary (Mtot, Mlam, Mmag) [kg] """ M_dict = Lamination.comp_masses(self) Mmag = 0 for hole in self.hole: if hole.has_magnet(): Mmag += hole.Zh * hole.comp_mass_magnets() M_dict["Mmag"] = Mmag M_dict["Mtot"] += Mmag return M_dict