.trr file utilities

GROMACS version: 2022
GROMACS modification: No

Greetings!
I’m a new user to gromacs, I would like to learn more about the software. Right now, I’m asking for help with my membrane simulations.
I noticed that bulk membrane simulations, rather than proteins, create a .trr file that is much larger than .xtc file.
It is my understanding that .trr is a trajectory file, and so is the .xtc file. So the question is, why is .trr file created? How can I block its creation? Is there useful informations I can extract from .trr file that I can’t get from the .xtc file?

Thank you for your attention, and sorry for my english.
fernandoovb

There is some more information here: File formats - GROMACS 2024.4 documentation. But you are right that .trr files are larger than .xtc files. There are two reasons for this, one is that .trr files may contain velocities and forces (depending on your simulation settings) and they are also uncompressed. .xtc files, on the other hand, use a lossy compression with the precision set by compressed-x-precision (the default value 1000 means 0.001 nm).

There is no difference in output type depending on if you simulate membranes or proteins, but perhaps there are input files from different sources that use different settings.

The types of output is specified in the mdp file and documented at Molecular dynamics parameters (.mdp options) - GROMACS 2024.4 documentation. Unless you know that you need uncompressed coordinate output (or forces or velocities) I would recommend:

nstxout = 0
nstvout = 0
nstfout = 0

The interval of compressed coordinates can vary a lot from one use-case to another. I would argue that values in the range of 5,000-500,000 would cover most situations (also depending on the dt setting). But some people want to write with even fewer (than 5,000) steps in between.