GROMACS version: 2018
GROMACS modification: Yes/No
I have corrected my xtc file using the -pbc nojump followed by -pbc mol command. Despite applying this correction, part of my molecule (no break) can still be found outside the simulation box. How do I bring the whole molecule back into the simulation box?
Thanks for the reply. Recently, I came across this response made by you on the Researchgate website.
You need several iterations of trjconv. Using -pbc whole is just the first step, and has nothing to do with the fact that there are multiple oxalates; it just corrects any molecules that have “broken” across PBC. Then invoke trjconv -pbc nojump (you said yourself the molecules are jumping across boundaries), then -pbc mol to put everything back in the box.
Would it be okay to apply the correction as follows:
By extension, I tried calculating the number of atoms at a specific distance (first peak + tolerance) contained in select_atom.dat using the gmx select option. will the wrong correction affect this too? The answer should be No since by default, it’s a per-atom basis ( -selrpos atom). See command below
I have tried this workflow but my molecule is still outside (part outside and others at the box edge) the simulation box.
gmx trjconv -s em.tpr -f polymer.whole.nojump.xtc -o polymer.whole.nojump.mol.xtc -pbc mol -ur compact
Also, I tried this but got the same situation as above.
To speed up trying out the various options as you work out what will give the appearance you are looking for process a coordinate file (.gro/.pdb) instead of the trajectory file (.xtc/.trr).
After each step load up the file into what ever visualisation software you are using and see how it has changed things.
I suspect that last -pbc mol step is what is breaking things again.