Skip to main content
QUICK REVIEW

[Paper Review] A Reversible Unwrapping Algorithm for Constant Pressure Molecular Dynamics Simulations

Martin Kulke, Josh V. Vermaas|arXiv (Cornell University)|Nov 23, 2021
Nanopore and Nanochannel Transport StudiesEngineering41 references8 citations
TL;DR

This paper proposes a hybrid reversible unwrapping algorithm for constant pressure molecular dynamics simulations that corrects for artifacts in existing heuristic and displacement unwrapping methods by accounting for periodic box volume changes. The method uses a modified displacement scheme with an additional correction term based on box size evolution, significantly improving accuracy in long simulations by preserving molecular geometry and correct diffusion coefficients.

ABSTRACT

Molecular simulation technologies have afforded researchers a unique look into the nanoscale interactions driving physical processes. However, a limitation for molecular dynamics (MD) simulations is that they must be performed on finite-sized systems in order to map onto computational resources. To minimize artifacts arising from finite-sized simulation systems, it is common practice for MD simulations to be performed with periodic boundary conditions (PBC). However, in order to calculate specific physical properties, such as mean square displacements to calculate diffusion coefficients, continuous particle trajectories where the atomic movements are continuous and do not jump between cell faces are required. In these cases, modifying atomic coordinates through unwrapping schemes are an essential post-processing tool to remove these jumps. Here, two established trajectory unwrapping schemes are applied to 1us wrapped trajectories for a small water box. The existing schemes can result in spurious diffusion coefficients, long bonds within unwrapped molecules, and inconsistent atomic coordinates when coordinates are rewrapped after unwrapping. We determine that prior unwrapping schemes do not account for changing periodic box dimensions, and introduce an additional correction term to the existing displacement unwrapping scheme by von Bulow et al. to correct for these artifacts. We also demonstrate that the resulting algorithm is a hybrid between the existing heuristic and displacement unwrapping schemes. After treatment with this new unwrapping scheme, molecular geometries are correct even after long simulations. In anticipation for longer molecular dynamics trajectories, we develop implementations for this new scheme in multiple PBC handling tools.

Motivation & Objective

  • To address inaccuracies in existing trajectory unwrapping methods for NPT molecular dynamics simulations.
  • To identify that heuristic and displacement unwrapping schemes fail under long simulations with fluctuating box dimensions.
  • To develop a new unwrapping algorithm that maintains correct molecular geometry and diffusion behavior despite periodic box volume changes.
  • To implement the new algorithm in widely used PBC tools for broad adoption in the molecular simulation community.

Proposed method

  • The proposed method combines elements of the heuristic and displacement unwrapping schemes, using the displacement vector as the primary basis for unwrapping.
  • It introduces a correction term, m(Li+1 − Li), to account for changes in periodic box dimensions between timesteps.
  • The algorithm computes unwrapped coordinates using the previous unwrapped position, the wrapped displacement, and a box-size-adjusted correction for volume fluctuations.
  • The correction term ensures that atomic positions are adjusted not only for cell crossings but also for box expansion or contraction.
  • The method is implemented in VMD tools pbctools, fastpbc, and qwrap for compatibility with common MD analysis workflows.
  • The algorithm is reversible, allowing accurate rewrapping of trajectories without geometric distortion.

Experimental results

Research questions

  • RQ1Does the heuristic unwrapping method produce accurate diffusion coefficients in long NPT simulations with fluctuating box sizes?
  • RQ2Can the displacement unwrapping method preserve correct molecular geometry over extended simulations with changing box dimensions?
  • RQ3How do box size fluctuations affect the accuracy of trajectory unwrapping in constant pressure molecular dynamics?
  • RQ4Can a hybrid unwrapping scheme that accounts for box size evolution improve both geometric fidelity and diffusion coefficient accuracy?
  • RQ5Is the new algorithm reversible and suitable for integration into standard MD analysis tools?

Key findings

  • The heuristic method produces spurious diffusion coefficients and fails after ~100 ns in NPT simulations due to box size fluctuations.
  • The displacement method leads to incorrect bond lengths and inconsistent intermolecular distances after rewrapping, especially in long simulations.
  • The proposed hybrid scheme (Eq. 12) maintains correct water molecule geometry with bond lengths near 0.1 nm even after 1 µs of simulation.
  • The hybrid method preserves atomic positions within single-precision floating-point accuracy, with RMSD increases only due to large atomic positions, not geometric distortion.
  • The new algorithm successfully corrects for box size changes by incorporating the term m(Li+1 − Li), eliminating overestimation of diffusion in the heuristic method.
  • The method has been successfully implemented in VMD’s pbctools, fastpbc, and qwrap, enabling broad adoption in molecular dynamics analysis.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.