Source code for pyleecan.Methods.Machine.Machine.get_lamination
# -*- coding: utf-8 -*-
[docs]def get_lamination(self, is_internal):
"""Returns internal Lamination of the machine
Parameters
----------
self : Machine
Machine object
is_internal : bool
true if The lamination returned is internal
Returns
-------
lam : Lamination
the internal Lamination
"""
if self.rotor.is_internal == is_internal:
return self.rotor
else:
return self.stator