Working principle of magnetic grinder