Abstract
Dissipative particle dynamics is a widely used mesoscale technique for the simulation of hydrodynamics (as well as immersed particles) utilizing coarse-grained molecular dynamics. While the method is capable of describing any fluid, the typical choice of the friction coefficient γ and dissipative force cutoff rc yields an unacceptably low Schmidt number Sc for the simulation of liquid water at standard temperature and pressure. There are a variety of ways to raise Sc, such as increasing γ and rc, but the relative cost of modifying each parameter (and the concomitant impact on numerical accuracy) has heretofore remained undetermined. We perform a detailed search over the parameter space, identifying the optimal strategy for the efficient and accuracy-preserving scaling of Sc, using both numerical simulations and theoretical predictions. The composite results recommend a parameter choice that leads to a speed improvement of a factor of three versus previously utilized strategies.
I. INTRODUCTION
Dissipative particle dynamics (DPD) is a coarse-grained, mesoscale molecular dynamics technique that simulates a fluid as a set of particles, with each particle representing some number of molecules.1,2 This coarse-graining leads to a larger time step, which allows one to probe length and time scales that are not feasible for simulations with atomistic detail. However, the underlying thermostat of DPD can be applied to any system, including atomistic simulations, where it has the advantage of preserving hydrodynamic interactions,3 which are not correctly reproduced when using, e.g., a Langevin thermostat.4 DPD has been applied to many problems, including electrolyte solutions,5 red blood cell suspensions,6 cell membrane proteins,7 nanoparticle-membrane binding,8 DNA flow in a microchannel,9 active matter,10,11 and colloidal mixtures.12 It remains an actively developed and utilized technique, as detailed in a recent review.13
In order to gain a proper description of angular momentum and torque, one must extend the standard DPD thermostat (which considers only central forces) with perpendicular components.14,15 To this end, we adopt the formulation of DPD as detailed by Pan et al.14 This extension does not particularly impact the computational complexity and has the added benefit of enhancing the single-particle hydrodynamics in DPD. Particles have a position ri, velocity vi, angular velocity Ωi, and mass m. Particle pairs have a relative position rij = ri − rj and relative velocity vij = vi − vj. Particle i experiences a force and torque given by
| (1) |
with the pairwise force on particle i due to particle j defined by
| (2) |
The associated components are the conservative, translational damping, rotational damping, and random forces, respectively. The conservative force is given by
| (3) |
where a determines the strength of the repulsion, R is the range of the conservative force, rij = |rij|, and eij = rij/rij. The parameter a effectively determines the compressibility of the simulated fluid.2 The translational damping force is the sum of a central and shear component,
| (4) |
where are the friction coefficients (C and S indicate the central and shear parameters, respectively) and f(rij) is a dimensionless weighting function defined by
| (5) |
The parameter rc is the cutoff radius for dissipative and fluctuating forces, and the exponent s determines the structure of the weighting function (i.e., how quickly it transitions from 1 to 0 with rij). We note that this definition of s is equivalent to s/2 as defined by Groot and Warren.2 The rotational damping force is
| (6) |
Finally, the fluctuating random force is given by
| (7) |
where , Δt is the time step, and Wij is a d × d matrix of Gaussian distributed random numbers with zero mean and unit variance for d spacial dimensions. The temperature is determined by kBT, where kB is the Boltzmann constant. The matrix is the antisymmetric matrix corresponding to Wij. Traditional DPD is recovered by setting γS = 0. Hereafter, we take γC = γS = γ.
The parameters of a DPD fluid, namely, γ, a, rc, and s, must be modified to produce the proper hydrodynamic numbers and properties for a given system. It has been determined9,16 that the Schmidt number Sc of a DPD simulation must be (as in water) in order to give expected results, despite the typically chosen parameters yielding . Since Sc = ν/D, where ν is the (kinematic) viscosity and D is the diffusion, parameter changes that increase ν and decrease D are sought. This can be accomplished by increasing either γ or rc, with .2 Additionally, reducing the weighting function exponent s also leads to an increase of Sc.9 Despite the necessity to reach adequate values of Sc, and the multiple parameters that can be manipulated, a detailed study of an optimal strategy for parameter selection has not been performed to our knowledge. We present a detailed exploration of DPD parameter space, determining Sc for various values of {γ, rc, s} and examining the associated computational cost for each parameter selection, as well as considering the associated theoretical predictions. We find that the conventional strategy9 of modifying rc is actually less efficient than modifying γ alone, when all aspects of the simulation (e.g., time step, accurate temperature representation, and neighbor searching) are considered. The impact of the parameter s on the efficiency was determined to be insignificant.
II. PROCEDURE
The equations of motion are integrated using a standard leapfrog algorithm, with the addition of a predicted velocity for force calculation (since the forces depend on velocity). Thus, the position and velocity of particle i are updated along time t as follows:
| (8) |
where is the predicted velocity, is the predicted angular velocity, and the moment of inertia is I = 2mr2/5, with particle radius r = 0.27R.14 The value of λ can be tuned to improve the accuracy of the integration scheme with respect to temperature reproduction2 and has been set to λ = 1/2 for all simulations in this paper.
For the duration of this paper, reduced units will be used: the DPD particle mass m = 1, the temperature kBT = 1, and the conservative force range R = 1. Each simulation takes place in a periodic cubic box of side length L = 10, at a density of ρ = 3, and in d = 3 spacial dimensions. The parameter a = 25 is set to satisfy the proper compressibility of water (a = 75kBT/ρ) at the given density.2 The default values of the other parameters (which will be varied) are γ = γ0 = 4.5, rc = R = 1, and s = 1/4, the latter of which yields better accuracy than the typical value of s = 1.14 In order to definitively determine the cost of a given {γ, rc, s} choice, the time step Δt is not fixed, but independently determined for each position of parameter space. As the viscosity ν increases, the time step required to keep the same level of numerical accuracy decreases. This can be seen as the result of more numerous (rc) or stronger (γ, s) fluctuations and greater friction (γ, rc, s). The measured temperature in DPD will differ from the input value due to a finite time step in the integration scheme. If the time step allows for excess temperatures of 3% or more, clear departures from the Maxwell-Boltzmann distribution begin to appear. It was found2 that a departure of 2% or less is satisfactory to maintain numerical accuracy, and this standard has been used to select the time step for each parameter set. One additional input parameter exists for the implementation of DPD, namely, the neighbor cutoff rN. Neighbor searching reduces the amount of particle pairs that must be examined at each step in order to determine the forces (i.e., which pairs are within the cutoff distance rc). The value of rN was also optimized for each {γ, rc, s} choice, since the diffusion D changes the number of different neighbors a particle can interact with on a given time scale. This involves taking the minimum value of rN that does not cause a deviation from the result for rN = ∞. The effect this has on the simulation cost will be examined below.
To determine the Schmidt number Sc, the viscosity and diffusion must be measured. The diffusion is given by
| (9) |
where the angle brackets indicate an average over time and over all particles. This value was calculated for each set {γ, rc, s} from a simulation of length 103 (ranging from 3.8 × 105 to 1.5 × 107 steps), using a limiting value of t = 100 (yielding a convergence of D with respect to time). The viscosity was determined using the periodic Poiseuille flow method17 with a simulation length of 1.5 × 103, after which time there was no significant change to the measured values.
III. RESULTS
All the raw data presented in this article are tabulated in the supplementary material.18 We initially restrict ourselves to the plane for the sake of clarity and will return to the s parameter later on. A total of 72 pairs {γ, rc} were analyzed in the range 1.0 ≤ rc ≤ 1.7 (where the range of γ was varied in order to look at the relevant values of Sc). We can estimate the cost χt of a simulation (with units of laboratory seconds/system time) due to the necessary time step using the inverse viscosity, since this represents the time scale that must be resolved by the integrator. The theoretical estimate for the viscosity is ,2 so we expect the optimized time step to be . This relationship is confirmed in Fig. 1, where Δt0 is the value of Δt at . This cost must be multiplied by the number of interacting pairs in DPD (i.e., ) in order to get the full cost, yielding . The data given in Fig. 2 agree quite well with this relationship, although the data are not exactly linear (here, χ0 is a parameter of the fit). In reality, the effect of neighbor searching reduces the powers of γ and rc due to the reduced diffusion of DPD particles: a lower diffusion means a smaller neighbor cutoff rN may be used, which reduces the number of distances computed in each step. A proper fit yields . We note that the previously reported result9 of shows this same effect but neglects the factor of coming from time step optimization. Finally, we compare the measured values of Sc to the theoretical prediction2 of in Fig. 3, showing good agreement (here, Sc0 is a parameter of the fit). The spread of the points around the anticipated value is primarily due to the diffusion D, which deviates from the ideal case. While we expect2 , the measured value has an extra reduction owing to rc. This is because the formula assumes an ideal gas (i.e., constant) radial distribution function. As the cutoff radius increases, the relative velocity force from Eq. (4) leads to further departures from the theoretical value of the diffusion, making the error in the assumption more prominent.
FIG. 1.
Optimized time step (red points) compared to inverse viscosity (blue dashed line). The error bars are based on a ±10% range in Δt, due to the method of optimization. While temperature control was always within 2% of the target value, this number varies in sensitivity to the time step. Thus, each point does not have the exact same temperature accuracy, which leads to being above (less accurate) or below (more accurate) the fit line. Δt0 is the value of Δt at .
FIG. 2.
Simulation cost (red points) compared to the expected value (blue dashed line). χ0 is a parameter of the linear regression. While the results match relatively well with the expectation, a more accurate fit yields . This is because increasing γ and rc leads to reduced diffusion, which in turn leads to a shorter neighbor searching cutoff. Fewer neighbors means fewer distance calculations in each time step, which reduces χ more for points further to the right in the figure.
FIG. 3.
Measured Schmidt number (red points) compared to theoretical value (blue dashed line). While the expected trend is well represented, the measured values are spread out due to the mismatch between ideal and actual diffusion, as discussed in the text. Sc0 is a parameter of the linear regression.
Comparing the Schmidt number Sc to the cost χ, we can define a Schmidt number efficiency ηSc = Sc/χ, where a larger ηSc at a given value of Sc indicates greater computational efficiency. We plot this efficiency as a function of Sc in Fig. 4, for cutoff radii from 1.0 to 1.7. Each line represents a different value of rc, where the points along the line follow increasing values of γ (from lower-left to upper-right). Evidently, at a given value of Sc, the highest efficiency is obtained by taking the lowest value of rc. Additionally, for a constant rc, increasing γ further increases the efficiency. This naturally follows from the fits obtained previously, i.e.,
| (10) |
To see the scaling for a given Sc, we hold Sc constant (so that ) and obtain
| (11) |
While this prediction yields the correct trends, it does not perfectly match with the data. This is because, while the data given in Fig. 3 seem to match quite well, the ideal diffusion2 deviates with respect to its rc dependence, as described above. For instance, the point has Sc = 886 and χ = 103, and the point has Sc = 855 and χ = 330, yielding an efficiency ratio of 3.3 despite the prediction of 1.53.4 ≈ 4.0. Nevertheless, there is clear evidence that modifying γ and not rc is the more practical way to reach in DPD.
FIG. 4.
Schmidt number efficiency ηSc = Sc/χ as a function of Sc for all data points on the plane. Each line is a different value of rc, as indicated. Points along a line from left to right follow increasing values of γ. At every value of Sc, the greatest efficiency is obtained by using the shortest value of rc. Thus, it is best to keep rc = R and vary γ when adjusting Sc for a run. The window around Sc = 103, a typical value needed for simulations of liquid water, is fully characterized.
Four values of s (, and 1) were additionally examined, in order to determine what effect the weighting function exponent has on the value of ηSc. These analyses were restricted to the {γ, R, s} plane since the previous results indicated only negative effects from increasing rc. Surprisingly, varying the value of s (while keeping Sc constant) does not significantly affect the efficiency, as seen in Fig. 5. While Sc and χ do not have the simple power law scaling with s that they do with γ and rc, we can nevertheless obtain some insight into theory. The viscosity and diffusion (considering only relevant factors) are given by2,19
| (12) |
yielding a Schmidt number of
| (13) |
If we decrease s from 1 to , Sc increases by a factor of 35.5. To examine the constant-Sc efficiency, we must reduce γ by a factor of 6. Since χ is proportional to ν, we can determine the efficiency change by comparing the viscosity with γ/6 and to the value with γ and s = 1. This yields a 30% theoretical increase in χ, which is small compared to the effects of changing γ alone. This is also offset by the same reduction in neighbor cutoff examined above, resulting in the reduced impact of s on ηSc.
FIG. 5.
Schmidt number efficiency ηSc = Sc/χ as a function of Sc for all data points on the {γ, R, s} plane. As opposed to γ and rc, s does not have a significant impact on efficiency, although , appears to give a slight advantage.
IV. CONCLUSIONS
While there has been some discussion as to whether or not the Schmidt number is a relevant physical quantity in DPD,20 past analyses nonetheless indicate9,16 that large values are necessary to achieve physically accurate results. Thus, we have examined the scaling and efficiency of the Schmidt number as a function of the DPD parameters γ, rc, and s, across three orders of magnitude of Sc, considering both theoretical predictions and the results from numerical simulations. In both cases, we see (for constant Sc) that the efficiency ηSc increases with γ, decreases with rc, and remains relatively constant for alternate values of s. Therefore, despite the apparent, preferable scaling of , it is more beneficial to leave rc = R and increase γ alone in order to reach a Schmidt number consistent with liquid water. This is the result of maintaining equivalent temperature reproduction and numerical accuracy for every set of input parameters (which results in a modification of the time step and neighbor searching cutoff). The values of ηSc indicate a factor of 3–4 speed improvement when manipulating γ instead of increasing rc for . While the single-particle hydrodynamics extension of Karniadakis14 was used for the simulations, the theoretical predictions apply equally well to standard DPD.
Acknowledgments
This work was funded by the National Institutes of Health Grant No. GM086801 and the National Science Foundation Grant No. MCB-1050966. Many computations were performed on the Extreme Science and Engineering Discovery Environment (XSEDE).
REFERENCES
- 1.Hoogerbrugge P. J. and Koelman J. M. V. A., “Simulating microscopic hydrodynamic phenomena with dissipative particle dynamics,” Europhys. Lett. 19, 155 (1992). 10.1209/0295-5075/19/3/001 [DOI] [Google Scholar]
- 2.Groot R. D. and Warren P. B., “Dissipative particle dynamics: Bridging the gap between atomistic and mesoscopic simulation,” J. Chem. Phys. 107, 4423 (1997). 10.1063/1.474784 [DOI] [Google Scholar]
- 3.Soddemann T., Dünweg B., and Kremer K., “Dissipative particle dynamics: A useful thermostat for equilibrium and nonequilibrium molecular dynamics simulations,” Phys. Rev. E 68, 046702 (2003). 10.1103/PhysRevE.68.046702 [DOI] [PubMed] [Google Scholar]
- 4.Schneider T. and Stoll E., “Molecular-dynamics study of a three-dimensional one-component model for distortive phase transitions,” Phys. Rev. B 17, 1302 (1978). 10.1103/PhysRevB.17.1302 [DOI] [Google Scholar]
- 5.Medina S., Zhou J., Wang Z.-G., and Schmid F., “An efficient dissipative particle dynamics-based algorithm for simulating electrolyte solutions,” J. Chem. Phys. 142, 024103 (2015). 10.1063/1.4905102 [DOI] [PubMed] [Google Scholar]
- 6.Lei H. and Karniadakis G. E., “Quantifying the rheological and hemodynamic characteristics of sickle cell anemia,” Biophys. J. 102, 185 (2012). 10.1016/j.bpj.2011.12.006 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Guigas G. and Weiss M., “Membrane protein mobility depends on the length of extra-membrane domains and on the protein concentration,” Soft Matter 11, 33 (2015). 10.1039/C4SM01846J [DOI] [PubMed] [Google Scholar]
- 8.Li Z. and Gorfe A. A., “Receptor-mediated membrane adhesion of lipid-polymer hybrid (LPH) nanoparticles studied by dissipative particle dynamics simulations,” Nanoscale 7, 814 (2015). 10.1039/C4NR04834B [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Fan X., Phan-Thien N., Chen S., Wu X., and Ng T. Y., “Simulating flow of DNA suspension using dissipative particle dynamics,” Phys. Fluids 18, 063102 (2006). 10.1063/1.2206595 [DOI] [Google Scholar]
- 10.Wang Z., Chen H.-Y., Sheng Y.-J., and Tsao H.-K., “Diffusion, sedimentation equilibrium, and harmonic trapping of run-and-tumble nanoswimmers,” Soft Matter 10, 3209 (2014). 10.1039/c3sm53163e [DOI] [PubMed] [Google Scholar]
- 11.Xiao S., Chen H.-Y., Sheng Y.-J., and Tsao H.-K., “Induced polar order in sedimentation equilibrium of rod-like nanoswimmers,” Soft Matter 11, 2416 (2015). 10.1039/c4sm02701a [DOI] [PubMed] [Google Scholar]
- 12.Pan W., Caswell B., and Karniadakis G. E., “Rheology, microstructure and migration in Brownian colloidal suspensions,” Langmuir 26, 133 (2010). 10.1021/la902205x [DOI] [PubMed] [Google Scholar]
- 13.Liu M. B., Liu G. R., Zhou L. W., and Chang J. Z., “Dissipative particle dynamics (DPD): An overview and recent developments,” Arch. Comput. Methods Eng. (published online). 10.1007/s11831-014-9124-x [DOI] [Google Scholar]
- 14.Pan W., Pivkin I. V., and Karniadakis G. E., “Single-particle hydrodynamics in DPD: A new formulation,” Europhys. Lett. 84, 10012 (2008). 10.1209/0295-5075/84/10012 [DOI] [Google Scholar]
- 15.Junghans C., Praprotnik M., and Kremer K., “Transport properties controlled by a thermostat: An extended dissipative particle dynamics thermostat,” Soft Matter 4, 156 (2008). 10.1039/B713568H [DOI] [PubMed] [Google Scholar]
- 16.Symeonidis V., Karniadakis G. E., and Caswell B., “Schmidt number effects in dissipative particle dynamics simulation of polymers,” J. Chem. Phys. 125, 184902 (2006). 10.1063/1.2360274 [DOI] [PubMed] [Google Scholar]
- 17.Backer J. A., Lowe C. P., Hoefsloot H. C. J., and Iedema P. D., “Poiseuille flow to measure the viscosity of particle model fluids,” J. Chem. Phys. 122, 154503 (2005). 10.1063/1.1883163 [DOI] [PubMed] [Google Scholar]
- 18.See supplementary material at http://dx.doi.org/10.1063/1.4930921 E-JCPSA6-143-003598 for the full tabulated data set.
- 19.Marsh C. A., Backx G., and Ernst M. H., “Static and dynamic properties of dissipative particle dynamics,” Phys. Rev. E 56, 1676 (1997). 10.1103/PhysRevE.56.1676 [DOI] [Google Scholar]
- 20.Peters E. A. J. F., “Elimination of time step effects in DPD,” Europhys. Lett. 66, 311 (2004). 10.1209/epl/i2004-10010-4 [DOI] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Data Citations
- See supplementary material at http://dx.doi.org/10.1063/1.4930921 E-JCPSA6-143-003598 for the full tabulated data set.





