Under What Physical Conditions Is Magnetic Energy Stored In An Inductor?

when current is flowing through the inductor.