restore residual magnetism in generator