(a) Magnetic field lines for a tightly wound solenoid of finite length carrying a steady current. The field inside the solenoid is nearly uniform and strong. Note that the field lines resemble those of a bar magnet, so the solenoid effectively has north and south poles. (b) The magnetic field pattern of a bar magnet, displayed by small iron filings on a sheet of paper.