The process would transform mechanical energy into electrical energy. The phenomenon that involves a wire coil and a magnetic field is electromagnetic induction wherein the rotating magnetic field from the coil of wire "induced" the current the flows through it thus producing electricity.