Source code for pyleecan.Methods.Slot.SlotM15.check
# -*- coding: utf-8 -*-
from numpy import pi
from ....Methods.Slot.Slot import SlotCheckError
[docs]def check(self):
"""Check that the SlotM13 object is correct
Parameters
----------
self : SlotM15
A SlotM15 object
Returns
-------
None
"""
if self.W0 < self.Wmag:
raise SlotCheckError("You must have Wmag <= W0")
if 2 * self.Rtopm < self.Wmag:
raise SlotCheckError("You must have Wmag <= 2*Rtopm")