Source code for pyleecan.Methods.Slot.HoleM53.comp_mass_magnets

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


[docs]def comp_mass_magnets(self): """Compute the mass of the magnets (if any) Parameters ---------- self : HoleM53 A HoleM53 object Returns ------- Mmag: float mass of the Magnets [kg] """ V = 0 if self.magnet_0: V += self.H2 * self.W3 * self.magnet_0.Lmag * self.magnet_0.mat_type.struct.rho if self.magnet_1: V += self.H2 * self.W3 * self.magnet_1.Lmag * self.magnet_1.mat_type.struct.rho return V