Rotor Eddy Current Loss Prediction And Demagnetization Assessment In Permanent Magnet Machines