LAMMPS lb/fluid fix version 2: Improved hydrodynamic forces implemented into LAMMPS through a lattice-Boltzmann fluid

C Denniston and N Afrasiabian and MG Cole-Andre and FE Mackay and STT Ollila and T Whitehead, COMPUTER PHYSICS COMMUNICATIONS, 275, 108318 (2022).

DOI: 10.1016/j.cpc.2022.108318

The first version of this code (Mackay et al., 2013) 10 implemented long-range hydrodynamic interactions into the open-source molecular dynamics package LAMMPS. This was done through the creation of a fix, lb/fluidwhich was subsequently included as a user-package in the main LAMMPS distribution. Here we substantially update this package by making improvements to its accuracy, adding significant new features, and by simplifying the use of the package. A new two-pass interpolation and spreading scheme is introduced which results in the improved accuracy and numerical stability. New features include new output options, several added computes, and mesh geometry option suitable for micro- and nano-fluidic device simulations. The original package could require fairly careful calibration to obtain accurate thermostating and accurate reproduction of properties related to the hydrodynamic size of objects such as colloids. This process has now been largely automated so that the default settings should suffice for most applications. Program summary Program title: fix lb/fluid CPC Library link to program files: https://doi.org/10.17632/2289cnrdtz.1 Licensing provisions: GPLv3 Programming language: C++ Journal reference of previous version: Comput. Phys. Commun. 184 (2013) 2021-2031. Does the new version supersede the previous version?: Yes Reasons for the new version: The new version improves accuracy, adds new features, and simplifies the use of the package. Summary of revisions: A new two-pass interpolation and spreading scheme is introduced to relate properties on the fluid mesh to off-lattice particle properties. New features include output options, several added computes, and mesh geometry suitable for micro- and nano- fluidic device simulations. Calibration processes have been largely automated so that the default settings should suffice for most applications. Nature of problem: The inclusion of long-range hydrodynamic effects into molecular dynamics simulations requires the presence of an explicit solvent. Prior to the implementation of this fix, the only option for incorporating such a solvent into a LAMMPS 1 simulation is the explicit inclusion of each of the individual solvent molecules. This is obviously quite computationally intensive, and for large system sizes can quickly become impractical. Solution method: As an alternative, we have implemented a coarse-grained model for the fluid, simplifying the problem, while retaining the solvent degrees of freedom. We use a thermal latticeBoltzmann model for the fluid, which is coupled to the molecular dynamics particles at each fluid time step. (C) 2022 The Author(s). Published by Elsevier B.V.

Return to Publications page