When a current -carrying coil is placed in a uniform magnetic field with its magnetic momentum anti-parallel to the field .