Magnetic field lines form in concentric circles around a cylindrical current-carrying conductor, such as a length of wire. The direction of such a magnetic field can be determined by using the "right hand grip rule" (see figure at right). The strength of the magnetic field decreases with distance from the wire. (For an infinite length wire the strength is inversely proportional to the distance.) Bending a current-carrying wire into a loop concentrates the magnetic field inside the loop while weakening it outside. Bending a wire into multiple closely spaced loops to form a coil or "solenoid" enhances this effect. A device so
Magnetic field the wire length where vector is the vector line element with direction in the same sense as the current , is the magnetic constant, is the distance between the location of and the location where the magnetic field is calculated, and is a unit vector in the direction of . In the case of a sufficiently long wire, this becomes: where "r" is the distance from the wire. A slightly more general way of relating the current formula_8 to the -field is through Ampère's law: where the line integral is over any arbitrary loop and formula_8 is the current enclosed