Magnetostriction
The magnetostriction effect describes a property of ferromagnetic materials which causes them to change their shape when subjected to a magnetic field. Joule first reported observing change in the length of ferromagnetic rods in 1842.
Read more about this topic: Joule Effect