each column - the first column is time, the first is phi1, the second is psi1, third is phi2, fourth is psi2 and the last two is 0.5x1+0.5x3, 0.5x2+0.5x4.
Without being good at maths, I’m sure that (-37.701±52.4284)/2 is not equal to -0.786528. Not in radian - and maybe not as a sin or cos function.
After some mathematical decryption in the morning, I have now found out that the angles in degree is converted to radian for the transformation pull co-ordinate calculation and NOT degrees. The output of each term - however, is in degrees, but the output from the maths - is in radian.
The answer is
-37.701 → -0.658
-52.4284 → -0.9150
(-0.658 + -0.9150)/2 = -0.7865
which then matches the 5th column.
This should be noted in the documentation for clarity in the future.
However, during the simulation, x1 only sampled from -60 to +60 degree. The bound of the sum should let it sample from -180 to +180 given the bound is now set to -3.1 to 3.1.
I currently see no reason, either, why the sampling should be limited and not cover the full range from -180 to +180 degrees or the range you specified. However:
At which dihedral angle did you start your simulations?
How long are these simulations? Did AWH have a chance to build up the bias necessary?
The initial simulation starts at -35 deg on the phi angle.
I had cases where I ran for 200 ns - and those region hasn’t been explored or covered. I would suspect it to be quite fast with alanine quadpeptide though?
Sure, it’s a small system, but as far as I remember, it was shown that one dihedral alone is a bad choice for the RC such that you might just be unlucky and still be stuck in the initial free-energy well. I’d say it’s not a clear indicator of a bug because poor sampling is still a possible explanation.
If you’re really worried about a wrong dihedral implementation, test alanine dipeptide in vacuum, use both backbone dihedrals as RC and see if you can sample the entire range.
The force constant for a dihedral coordinate is in kJ/mol/rad^2, as noted in the use guide. Your value of 10 seems rather small to me. Likely it’s too small to force the coordinate to sample the whole range. You can see if this is the case by comparing the coordinate distribution and the reference distribution in the output of gmx awh -more
I pushed up a note to the user guide that angular coordinates use units of radians in a transformation coordinate.