Command to calculate energy of newly defined groups from an pre calculated xtc file

Hi,
this post may already answer to one of your questions Calculating vdW and ES energy between molecules

You can use gmx energy to extract energy from energy file *.edr.

\Alessandra