[Paper Review] Lees-Edwards boundary conditions for translation invariant shear flow: implementation and transport properties
This paper presents a publicly available, open-source implementation of Lees-Edwards boundary conditions in the ESPResSo molecular dynamics package, enabling translationally invariant shear flow simulations in bulk soft matter systems. The method successfully reproduces anomalous diffusion and viscosity measurements consistent with theoretical predictions, validating its use for non-equilibrium rheology in complex fluids without boundary artifacts.
Molecular dynamics (MD) simulations represent a powerful investigation tool in the field of soft matter. By using shear flows, one can probe the bulk rheology of complex fluids, also beyond the linear response regime, in a way that imitates laboratory experiments. One solution to impose a shear flow in particle-based simulations is the Lees-Edwards technique which ensures that particles experience shear by imposing rules for motion and interactions across the boundary in the direction of the shear plane. Despite their presentation in 1972, a readily available public implementation of Lees-Edwards boundary conditions has been missing from MD simulation codes. In this article, we present our implementation of the Lees-Edwards technique and discuss the relevant technical choices. We used ESPResSo, the extensible simulation package for research on soft matter, for molecular dynamics simulations which can be used as a reference for other implementers. We illustrate our implementation using bulk dissipative particle dynamics fluids, compare different viscosity measurement techniques, and observe the anomalous diffusion in our samples during continuous and oscillatory shear, in good comparison to theoretical estimates.
Motivation & Objective
- To implement Lees-Edwards boundary conditions in a widely used MD simulation package (ESPResSo) for bulk shear flow.
- To enable translationally invariant simulations of complex fluids under shear, avoiding spurious boundary effects from wall-based methods.
- To validate the implementation by comparing viscosity measurements and diffusion behavior against theoretical models.
- To provide a reproducible, open-source framework for future studies of non-equilibrium soft matter rheology.
Proposed method
- Implemented Lees-Edwards boundary conditions in ESPResSo, a C++-based MD package with Python interface, using periodic boundary conditions with time-dependent particle position updates.
- Modified particle tracking to reconstruct continuous trajectories across periodic boundaries, enabling mean square displacement (MSD) analysis in sheared frames.
- Used dissipative particle dynamics (DPD) to simulate bulk fluid behavior under steady and oscillatory shear.
- Applied the fluctuation dissipation theorem to ensure correct thermal noise and friction in the thermostat, preserving momentum conservation.
- Performed block analysis and correlation functions using pyblock and tidynamics for accurate viscosity and diffusion coefficient estimation.
- Validated results using H5MD-formatted trajectory data and Jupyter notebooks for full reproducibility.
Experimental results
Research questions
- RQ1How can Lees-Edwards boundary conditions be correctly implemented in a modern, open-source MD simulation package like ESPResSo?
- RQ2To what extent does the Lees-Edwards method reproduce theoretical predictions for anomalous diffusion in shear flow?
- RQ3How do different viscosity measurement techniques compare under steady and oscillatory shear in DPD simulations?
- RQ4Can the method accurately capture the shear-rate-dependent diffusion enhancement observed in experiments?
- RQ5What is the impact of simulation parameters such as strain amplitude and frequency on the effective diffusion coefficient?
Key findings
- The implemented Lees-Edwards boundary conditions in ESPResSo successfully reproduce the expected enhanced diffusion of particles in shear flow, matching theoretical predictions from Equation 22.
- The effective diffusion coefficient in oscillatory shear shows a phase-dependent modulation, with values ranging from 0.60 to 1.00 for strain amplitudes γ₀ = 0.25 and γ₀ = 0.5, respectively.
- Viscosity measurements using multiple techniques (e.g., stress relaxation, Green-Kubo) show good agreement, validating the method’s reliability for pseudorheological measurements.
- Anomalous diffusion is observed in both continuous and oscillatory shear, with the effective diffusion coefficient increasing with shear rate and strain amplitude.
- The method enables the reconstruction of continuous particle trajectories across periodic boundaries, allowing for accurate MSD and diffusion coefficient analysis in non-inertial frames.
- The implementation is reproducible and publicly available via Zenodo, including full simulation parameters, analysis code, and trajectory data.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.