A bar magnet generates magnetic field $$\class{violet}{B}$$. The closed magnetic field lines run from the magnetic north pole to the south pole.