Source code for pyleecan.Methods.Machine.LamHoleNS.comp_volumes

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

from numpy import pi
from ....Classes.LamH import LamH


[docs]def comp_volumes(self): """Compute the Lamination volumes Parameters ---------- self : LamHoleNS A LamHoleNS object Returns ------- V_dict: dict Lamination volume dictionary (Vlam, Vvent, Vmag, Vhole) [m**3] """ V_dict = LamH.comp_volumes(self) # Magnets are counted twice (Zh = 2*p for both north and south) V_dict["Vmag"] = V_dict["Vmag"] / 2 V_dict["Vhole"] = V_dict["Vhole"] / 2 return V_dict