Magnetic field due to solenoid. This is similar to the field of a bar magnet.