Description of Gromacs .trr files format

It’s part of any GROMACS distribution. You can find it here on GitLab:

You probably also need to look at some of the gmxfio files to understand how each of the types are stored using XDR.