In the circuit given in fig. switch S is at position 1 for long time. Find the total heat generated in resistor of resistance `(2r_0)