示例#1
0
def comp_masses(self):
    """Compute the Lamination masses

    Parameters
    ----------
    self : LamSlotWind
        A LamSlotWind object

    Returns
    -------
    M_dict: dict
        Lamination mass dictionnary (Mtot, Mlam, Mwind) [kg]

    """

    M_dict = LamSlot.comp_masses(self)
    V_dict = self.comp_volumes()
    if self.winding is not None:
        Mwind = V_dict["Vwind"] * self.winding.mat_type.struct.rho
    else:
        Mwind = 0

    M_dict["Mtot"] += Mwind
    M_dict["Mwind"] = Mwind

    return M_dict
示例#2
0
def comp_masses(self):
    """Compute the Lamination masses (Mlam, Mmag)

    Parameters
    ----------
    self : LamSlotMag
        A LamSlotMag object

    Returns
    -------
    M_dict: dict
        Lamination mass dictionnary (Mtot, Mlam, Mmag) [kg]

    """

    M_dict = LamSlot.comp_masses(self)
    Mmag = 0
    for magnet in self.slot.magnet:
        Mmag += magnet.comp_mass()

    M_dict["Mmag"] = Mmag
    M_dict["Mtot"] += Mmag

    return M_dict