Question of Script Writing

Dear all,

After MD simulation, I have got a xtd file and the total kinetic energy by analysis this xtd file. Now I need to write a script to calculate the kinetie energy of part of the system.

How can I do that?

Thanks.

Best regards,

Yours

CHENG XU