How to output the heat of each particle at each time?

hello everyone:
as we know, the particles in the dem satisfies the equation:
image
so, how can i out put the Qpp,Qpfp,Qpg and Qrad of each particles at each time setp?