Creating rotor module for pmg