Comment
Comment by pfdietz
The energy of a diamagnetic material is lower in a lower magnetic field, so there's a force pushing it away from higher fields. This force is proportional to the gradient of the field. In a constant magnetic field, there will be no change in energy and so no force on the diamagnetic material.