separation of translation energy,rotation energy and vibration energy from total kinetic energy

Hi everyone

My intention is to model molecule collision process at desired temperature in Forcite,and the I will examine the energy transferring process between translation energy,rotation energy and vibration energy,as well as potential energy.The collision has been achieved by the scrip made by Reinier Akkermanshttps://community.accelrys.com/message/21583#21583.And I know the translation energy of the center of mass can be calculated by this equation.

K=1/2m*v*v  m is the mass of molecule, v represents the netvelocity of  molecule.

However,I do not know how to calculate and separate the rotation and vibration energy from total kinetic energy.

Please guide me to do this.Thanks in advance.

Sincerely

Li