The Working Principle of Flux Switching Machines