The magnetic field produced by the current in a coil of wire: is very similar to the field of a bar magnet; reverses when the direction of the current in the coil is reversed.