When an electric current passes through a metal wire, a magnetic field forms around that wire (see diagram at right ... This self-sustaining loop is known as the geomagnetic dynamo.