In a coil of resistance \( 8 \, \Omega \), the magnetic flux to an external magnetic field varies with time as \( \phi = \dfrac{2}{3} \left( 9 - t^{2} \right) \). The value of total heat produced in the coil, till the flux becomes zero, will be __________ \( \text{J} \).