pyleecan.Methods.Machine.Machine.check module¶
- check(self)[source]¶
Check that the Machine object is correct
- Parameters:
self – A Machine object
- Return type:
None
- Raises:
MC_AbstractError – Machine is an abstract class
MC_StatorNotStator – self.stator.is_stator must be True
MC_RotorIsStator – self.rotor.is_stator must be False
MC_BothInternal – self.rotor.is_internal and self.rotor.is_internal can’t be both True
MC_BothExternal – self.rotor.is_internal and self.rotor.is_internal can’t be both False
MC_RotorDontFit – The Rotor is too big to fit in the Stator
MC_ShaftTooBig – The Shaft is too big to fit in the Rotor
MC_ShaftTooSmall – The Shaft is too small to fit in the Rotor
MC_MecAirgapError – The Stator and the rotor don’t fit because of magnet or short circuit ring
- exception MC_AbstractError[source]¶
Bases:
MachineCheckError
- exception MC_StatorNotStator[source]¶
Bases:
MachineCheckError
- exception MC_RotorIsStator[source]¶
Bases:
MachineCheckError
- exception MC_BothInternal[source]¶
Bases:
MachineCheckError
- exception MC_BothExternal[source]¶
Bases:
MachineCheckError
- exception MC_RotorDontFit[source]¶
Bases:
MachineCheckError
- Raises:
stator –
- exception MC_StatorDontFit[source]¶
Bases:
MachineCheckError
- Raises:
rotor –
- exception MC_ShaftTooBig[source]¶
Bases:
MachineCheckError
- Raises:
rotor –
- exception MC_ShaftTooSmall[source]¶
Bases:
MachineCheckError
- Raises:
rotor –
- exception MC_MecAirgapError[source]¶
Bases:
MachineCheckError