Relationship between current and magnetic field