Rapid analytical method to evaluate eddy current losses in hairpin wound im due to PWM