A current-carrying wire, with current $$I$$, generates a magnetic field $$\class{violet}{B}$$. The magnetic field lines are circular and closed around the conductor.