In the two images below, there are two loops of wire shown. As far as my working out goes, the two coils are non-superimposable.
In the top coil, the direction of the current flow is in the same direction as the magnetic field outside the coil but opposite to the direction of the magnetic filed within the coil i.e. it's going from the north pole to the south pole.
However, in the bottom coil, the direction of the current is opposite to the magnetic field outside the coil and in the same direction as the magnetic field within the coil i.e. it's flowing from the south pole to the north pole.
In a book that I have, they use the simple right hand grip rule for solenoids and the current is always seen to point from the south to the north pole, as I have shown in the bottom coil. However, this doesn't apply to the top coil. Someone please tell me where I'm going wrong and whether I'm raising a legitimate question rather than just silly confusion.
I used the right hand grip rule for a wire in order to work out the directions of the poles.
This is NOT an electromagnetic induction question.
The current flows in the clockwise direction at the south pole and in the anticlockwise direction at the north pole, in both coils, so the 'S and N rule' is not broken.]