Magnetism and metallurgy