I have a question about how to intuitively think about the polarity reversal (flyback voltage) that occurs in an inductor when removed from a supply.
Here is my understanding: When the switch is closed, current flows through the inductor to ground, with a positive voltage across the inductor.
Then, when the switch is opened, I understand that the polarity reverses, but I'm trying to make sense of this fact.
I know that the average value of the voltage across an inductor must be 0. From this perspective, it makes sense that the polarity switches, it was previously positive, and now must be negative to have an average value of 0. However, when thinking about it in terms of maintaining current direction, I can't wrap my head around it.
I know that the inductor will try to resist the change in current flow. So when the switch is closed, it is storing up a magnetic field with the original positive polarity. Then, when the switch opens, the inductor should act in a way to keep the current flowing in the same direction as when the switch was closed. Knowing that current flows from high potential to low potential, it would make sense that the inductor would force a positive voltage across it, to keep the current flowing in the same direction. However, what actually happens is it forces a negative voltage across itself.
Wouldn't flipping the polarity mean that current goes in the opposite direction as before, since it must go from high potential to low potential?
Can someone help clear the confusion for me?