GROMACS version: 2023
GROMACS modification: No
I want to extract the pressure tensor with a larger timestep than the one saved in the *.edr
file. Currently, I am saving data every 2 fs, but I want to reduce the data so that it is saved every 100 fs in the new *.edr
file. To achieve this, I first run:
gmx eneconv -f original_energy.edr -o new_energy.edr -dt 0.1
Then, I use the gmx energy
command to extract the pressure tensor elements. However, the resulting file starts with the correct timestep but eventually reverts to the original timestep. This “falling back” happens gradually, initially affecting only some points, but eventually, all of them revert to the original timestep.
Here is an excerpt from the output:
0.000000 2902.700928 -23.706738 -25.974232 2882.134033 -19.827463 2929.415039
0.100000 2933.126221 1.402500 -22.858887 2926.376953 -10.488109 2946.551270
0.200000 2980.487305 8.712797 -2.398444 2866.177734 10.947755 2933.248535
...
7895.300000 2957.071289 8.274111 -38.966511 2946.506348 -10.758986 2924.870605
7895.302000 2957.775635 7.972142 -39.881687 2946.856934 -10.290474 2923.739014
7895.400000 2961.532715 -13.395555 4.138320 2930.099854 -20.582762 2952.523193
7895.402000 2961.086670 -13.742041 4.967726 2930.944092 -20.398476 2953.222168
...
196541.820000 2950.814209 -34.054672 16.960943 3000.986328 -41.621239 2961.092773
196541.822000 2948.037109 -34.090576 17.729280 3000.609863 -41.881737 2962.319580
196541.824000 2945.478271 -33.982197 18.435038 3000.094727 -41.861515 2963.336670
196541.826000 2943.116211 -33.752594 19.292294 2999.329590 -41.678364 2964.063477
196541.828000 2940.767822 -33.396626 20.339138 2998.497314 -41.463585 2964.732422
196541.830000 2938.362305 -32.808075 21.320389 2997.603760 -41.217400 2965.726318
I tried on different clusters, different GROMACS versions, using the -e
and -b
flag… nothing worked so far.