Moustafa Sabry G, Schultz Andrew J, Douglas Jack F
Department of Engineering Science, Trinity University, San Antonio, Texas 78212, USA.
Department of Chemical and Biological Engineering, University at Buffalo, The State University of New York, Buffalo, New York 14260-4200, USA.
J Chem Phys. 2024 Jan 14;160(2). doi: 10.1063/5.0188081.
A robust and simple implementation of the generalized Einstein formulation using single equilibrium molecular dynamics simulation is introduced to compute diffusion and shear viscosity. The unique features underlying this framework are as follows: (1) The use of a simple binary-based method to sample time-dependent transport coefficients results in a uniform distribution of data on a logarithmic time scale. Although we sample "on-the-fly," the algorithm is readily applicable for post-processing analysis. Overlapping same-length segments are not sampled as they indicate strong correlations. (2) Transport coefficients are estimated using a power law fitting function, a generalization of the standard linear relation, that accurately describes the long-time plateau. (3) The use of a generalized least squares (GLS) fitting estimator to explicitly consider correlations between fitted data points results in a reliable estimate of the statistical uncertainties in a single run. (4) The covariance matrix for the GLS method is estimated analytically using the Wiener process statistics and computed variances. (5) We provide a Python script to perform the fits and automate the procedure to determine the optimal fitting domain. The framework is applied to two fluids, binary hard sphere and a Lennard-Jones near the triple point, and the validity of the single-run estimates is verified against multiple independent runs. The approach should be applicable to other transport coefficients since the diffusive limit is universal to all of them. Given its rigor and simplicity, this methodology can be readily incorporated into standard molecular dynamics packages using on-the-fly or post-processing analysis.
介绍了一种使用单平衡分子动力学模拟的广义爱因斯坦公式的稳健且简单的实现方法,用于计算扩散系数和剪切粘度。该框架的独特之处如下:(1) 使用基于简单二元的方法来采样随时间变化的输运系数,可在对数时间尺度上实现数据的均匀分布。尽管我们是 “即时” 采样,但该算法很容易应用于后处理分析。不采样重叠的等长段,因为它们表示强相关性。(2) 使用幂律拟合函数估计输运系数,这是标准线性关系的推广,能准确描述长时间平台期。(3) 使用广义最小二乘 (GLS) 拟合估计器来明确考虑拟合数据点之间的相关性,从而在单次运行中可靠地估计统计不确定性。(4) 使用维纳过程统计和计算出的方差来解析估计GLS方法的协方差矩阵。(5) 我们提供了一个Python脚本,用于执行拟合并自动确定最佳拟合域的过程。该框架应用于两种流体,二元硬球流体和三相点附近的 Lennard-Jones 流体,并通过多次独立运行验证了单次运行估计的有效性。由于扩散极限对所有输运系数都是通用的,所以该方法应适用于其他输运系数。鉴于其严谨性和简单性,这种方法可以通过即时或后处理分析轻松地纳入标准分子动力学软件包中。