<div>Dear Developers</div><div><br></div><div>I want to calculate the temperature according to the theory developed in our group. In accordance with that theory, I have to slice the box and then calculate the kinetic energy in each bin, and finally calculate the temperature in each bin. Now I have trouble finding the source code for kinetic energy. I found the "compute_globals" function and other sub functions called by it, but I did not find one line code where the  kinetic energy is calculated by the standard definition of   kinetic energy= 0.5*(V*V). <br></div><div><br></div><div>Could someone tell me where it is? Or could someone give some clues about how to achieve my idea if you think starting from the standard definition of   kinetic energy is not a good idea?</div><div><br></div><div>Thank you very much!</div><div><br></div><div>Fan Li<br></div>