Hi Ben,
Typically, one “wraps” a PBC trajectory to produce a new trajectory where molecules stay whole on one side of the box or the other. For Gromacs, the tool for that is trjconv, perhaps
with the “-pbc whole” flags. See this page:
gmx
trjconv — GROMACS 2018 documentation.
If wrapping a trajectory is problematic for some reason, you could define a per-frame Python script to hide long bonds. I have attached such a script. To use it, in the MD Movie GUI
choose the Per-Frame→Define script… menu entry, and in the resulting dialog change the script type to “Python” and use the “Insert text file” button near the button to insert the attached Python file. Then click OK. Long bonds should disappear and you can
play your trajectory and bonds will be hidden and shown appropriately.
--Eric
Eric Pettersen
UCSF Computer Graphics Lab