Electrical machine used in coal mining