Source code for pyleecan.Methods.Machine.MachineSIPMSM.get_machine_type
# -*- coding: utf-8 -*-
[docs]def get_machine_type(self):
"""Return a string with the may information about the machine architecture
Parameters
----------
self : MachineSIPMSM
A MachineSIPMSM object
Returns
-------
str
type_str: SIPMSM Zs/p (int/ext rotor)
"""
type_str = "SIPMSM "
if self.stator.slot.Zs is not None:
type_str += str(self.stator.slot.Zs) + "s / "
else:
type_str += "?s / "
if self.stator.winding.p is not None:
type_str += str(self.stator.winding.p) + "p"
else:
type_str += "?p"
if self.stator.is_internal:
type_str += " (ext rotor)"
else:
type_str += " (int rotor)"
return type_str