Nonequilibrium methods have become increasingly popular for calculating the viscosity of liquids. [1][2][3][4][5][6] The use of nonequilibrium methods is frequently rationalized by the notion that pressure fluctuation-based equilibrium methods, such as those using the Green-Kubo ͑GK͒ formula and the Einstein relation, do not converge well, and hence are less suitable than nonequilibrium methods. 1 In this short note, we revisit the systems on which this conclusion is based. We show that a slightly different way of analyzing the data allows us to use equilibrium molecular dynamics methods to compute viscosities with comparable accuracy and reliability as the nonequilibrium techniques considered in Ref. 1 and the reverse nonequilibrium molecular dynamics method.
7The shear viscosity can be computed using the GK formulaor, equivalently, using the Einstein relation,requires computing the mean-square displacement ͑MSD͒ of the time integral of the pressure tensor, 9where G ␣ ͑t͒ = ͐ 0 t P ␣ ͑tЈ͒dtЈ. P ␣ is the symmetrized traceless portion of the stress tensor, ␣ , defined aswhere ␦ ␣ is the Kronecker delta and ␦ ␣ = 0 when ␣ . It should be noted that some researchers 10 use a weighting factor of 4/3 for the diagonal components ͑␣ = ͒ and 1 for the off-diagonal components ͑␣ ͒, but here we take the view in Refs. 8 and 9 that all weighting factors should be 1. We note further that Eqs. ͑1͒ and ͑2͒ utilize the information of the diagonal components of the pressure tensor to improve statistics. To compare our results with those in Ref. 1, we also compute the viscosity using only the off-diagonal components of the pressure tensor, i.e., when ␣ , and then the normalization factors in Eqs. ͑1͒ and ͑2͒ become 6 and 12, respectively. The overhead in computing the stress tensor in the simulation is very small once the forces have been calculated. The computed pressure-pressure time correlation function was averaged over multiple time origins spaced every ten time steps and block averaging method was used to obtain viscosity estimate and corresponding standard deviation within specified correlation time period.Molecular dynamics simulations were performed for a 1000-particle Lennard-Jones ͑LJ͒ fluid using the LAMMPS ͑Ref. 11͒ package in the NVT ensemble with a Nosé-Hoover thermostat. All quantities are expressed in reduced units: 452, a time step of 0.01 and a cut-off radius of 5͒. The system was equilibrated for a period of 1 ϫ 10 3 followed by a production run of t ء =1ϫ 10 5 . Figure 1 shows the viscosity curves determined using the fluctuation information of all components and only the offdiagonal components of the pressure tensor ͓see SI ͑Ref. 12͔ for a typical example of a pressure-pressure time correlation function͒. The inset shows the short correlation time behavior. Since the GK formula and the Einstein relation give identical results, we do not distinguish these two approaches. We find that our viscosity calculation converges quickly and reaches a plateau within a correlation time of 2. For the inset, the...