https://www.allaboutcircuits.com/vol_3/chpt_3/9.html
I am confused here.
The current is defined as flowing from high (+) potential to low (-) potential isn't it?
So why is the diagram in the above webpage showing current flowing from the negative battery terminal to the positive when the switch is closed?
You are correct.
Diagram 'b': The arrow is wrong. It should be pointing in a clockwise direction. This applies to both the first and second series of diagrams.
Diagram 'c', first series: The arrow is wrong. It should point clockwise. It would be more correct to show arcing across the switch contacts.
Diagram 'c', second series (showing how the diode carries inductive kickback). The arrow is wrong. It should point counter-clockwise.
I wouldn't be surprised if the author asked an artist to draw the diagrams, and the artist could not be sure which polarity markings meant what. So he or she guessed.
The website does say the articles need to be proofread.
- - - Updated - - -
According to this simulation, without a snubber, the current through the inductor immediately reverses when the switch is turned off and the inductor reverses polarity.
https://www.falstad.com/circuit/e-inductkick.html
Then the polarity flips again and the current again reverses...................until the kick back voltage is dissipated through the inductor and wires etc.
Looking at the example circuit simulation, where an RC snubber has been added to the above, the capacitor provides an alternative low potential for the reversed inductor to voltage to flow to rather than back through the inductor. So in this case there is a current surge in the same direction through the inductor as when the swtich was closed but back through the RC snubber to the other side of the inductor instead. Again it oscillates until the energy is dissipated.
Which leads me to the conclusion that the details in the above website about kickback are not correct.
You are observant. I have never noticed this. It appears to be an error in Falstad's simulator, showing up when the coil must suddenly generate current through a high impedance, and when the iteration speed is set to Fast.
Coil current is supposed to continue in the same direction after opening the switch. It does this most of the time in Falstad's.
However the schematic called 'inductive kickback' shows current reversing direction immediately on opening the switch. This is not right. The definition of an inductor is that it resists a change in current. Yet the scope depicts the current jumping suddenly from negative to positive as soon as you open the switch.
I'm disconcerted at seeing this since I have been playing up Falstad's simulator here.
Notice it acts correctly in the schematic called 'Blocking inductive kickback.' Watch the scope traces.
And I find that if you increase the capacitor value, the coil does not generate so great a spike, and current behaves correctly.
In fact I am now seeing correct behavior when I reload the 'Inductive kickback' circuit. As though the simulation had to be forced into correct mode at least once, and now it remembers.
Or else you have to slow down the iteratation speed, so each iteration can have more time to come out right.
One thing that is not an error... It is possible to close the switch while the coil is generating current in one direction, and it seems to take forever for the current to slow down and change direction so that it agrees with the battery polarity. This is consistent with coil behavior, especially large henry values.