3

To extract the force as in the title I used the gmx trjconv command like below.

gmx trjconv -f alad.trr -s alad.tpr -n alad.ndx -pbc mol -novel -force -o alad.gro

However, the force was not extracted in alad.gro file. Of course, I got the coordinates and the force at equal intervals when getting the alad.trr file.

Another way, I used gmx traj command to get force.

gmx traj -f alad.trr -s alad.tpr -n alad.ndx -pbc -mol -ox coordi.xvg -of force.xvg

However, the force obtained from force.xvg didn't look like the value I wanted.

So, how do I get the force of molecules put in a single periodic box?

andselisk
  • 37,604
  • 14
  • 131
  • 217
Yeonju
  • 49
  • 3
  • Could you include a figure showing force.xvg, and a better description of what it is exactly that you would like to measure, and why you think the output is not correct. – Bdrs Mar 02 '20 at 15:45
  • However, I'm still wondering why coordinates of alad gro and coori.xvg are not same. – Yeonju Mar 05 '20 at 11:49
  • I solved the problem. As gmx trjconv -pbc mol option only make molecules translate, the cooridinates obtained from alad.gro can correspond to forces obtained from gmx traj -f alad.trr -s alad.tpr -n alad.ndx -of force-dump.xvg(same results using gmx dump command). However, coordinates of coordi.xvg doesn't match with alad.gro . Also I couldn't trust force.xvg. whether the data is correct is tested by my own work ouput. So it's hard to say simple.. – Yeonju Mar 05 '20 at 11:52
  • 2
    There is a proposal for a Stack Exchange site for Materials Modeling which is currently in the commitment phase. There are a lot of experts currently there and questions like these would get more activity there. It would be great if you could help building the site by committing to the proposal. – rashid Mar 05 '20 at 11:59

1 Answers1

1

I solved the problem. As gmx trjconv -pbc mol option only make molecules translate, the cooridinates obtained from alad.gro can correspond to forces obtained from gmx traj -f alad.trr -s alad.tpr -n alad.ndx -of force-dump.xvg.

Yeonju
  • 49
  • 3