Source code for pyleecan.Methods.Machine.MachineWRSM.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 : MachineWRSM
A MachineWRSM object
Returns
-------
type_str: str
WRSM Zs/p (int/ext rotor)
"""
type_str = "WRSM "
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