First of all should be created relationship between heat generation and time (heat generation as function of time (H.G. =f (t)), then put this relationship in UDF as input boundary condition as shown in attach file.
A user-defined function, or UDF, is a function that you program that can be dynamically loaded with the FLUENT solver to enhance the standard features of the code. UDFs are written in the C programming language.