Department of Chemical and Petroleum Engineering , University of Pittsburgh , Pittsburgh , Pennsylvania 15261 , United States.
Department of Chemistry , University of California , Berkeley , California 94720 , United States.
J Chem Theory Comput. 2019 Oct 8;15(10):5579-5587. doi: 10.1021/acs.jctc.9b00252. Epub 2019 Sep 4.
The virial stress tensor-based instantaneous heat flux, which is used by LAMMPS, is only valid for the small subset of simulations that contain only pairwise interactions. For systems that contain many-body interactions using 3- or 4-body potentials, a more complete derivation is required. We have created a software patch to LAMMPS that implements the correct heat flux calculation approach for 3- and 4-body potentials, based on the derivation by Torii et al. ( 2008 , 128 , 044504 ) Using two example systems, the error in the uncorrected code for many-body potential heat flux is shown to be significant and reaches nearly 100% of the many-body potential heat flux for the systems we studied; hence, the error of the total heat flux calculation is proportional to the fraction of the total heat flux transferred through the many-body potentials. This error may have consequences for thermal conductivities calculated using the Green-Kubo method or any NEMD method that uses the instantaneous heat flux. We recommend that all researchers using LAMMPS for heat flux calculations where significant heat is transferred via the many-body potentials adopt the corrected code.
基于 Virial 应力张量的瞬时热通量被 LAMMPS 使用,但仅适用于包含仅成对相互作用的小部分模拟。对于包含使用 3 体或 4 体势的多体相互作用的系统,需要更完整的推导。我们为 LAMMPS 创建了一个软件补丁,该补丁基于 Torii 等人的推导(2008 年,128 卷,044504),为 3 体和 4 体势实现了正确的热通量计算方法。使用两个示例系统,表明多体势热通量的未校正代码中的误差非常大,对于我们研究的系统,误差达到多体势热通量的近 100%;因此,总热通量计算的误差与通过多体势传递的总热通量的分数成正比。对于使用 Green-Kubo 方法或任何使用瞬时热通量的 NEMD 方法计算的热导率,此误差可能会产生影响。我们建议所有使用 LAMMPS 进行热通量计算的研究人员,如果通过多体势传递的热量较大,则采用修正后的代码。