The energy stored in an inductor depends on the inductance of the inductor and the current flowing through it. But, assume that the switch is opened. Then, does the heat generated in the inductor dependent on the total resistance in the circuit or just the resistance of the inducor?
![enter image description here](https://i.stack.imgur.com/4bCfa.png)