Estimation of a Gas Diffusion Coefficient by Fitting Molecular Dynamics Trajectories to Finite-Difference Simulations
Isaac Viviano
TL;DR
This work addresses estimating the diffusion coefficient $D$ of argon diffusing in helium by reconciling particle-based MD trajectories with a continuum FD diffusion model. It fits the MD-derived argon concentration, obtained by binning MD trajectories onto a finite-difference grid, to the FD solution of the diffusion equation using a Levenberg–Marquardt optimization over $D$, implemented with Crank–Nicolson time stepping for numerical stability. The authors demonstrate that the estimated $D$ from 2D simulations can approach the experimental value, with the best agreement observed at an intermediate MD-bin resolution, while discussing factors that contribute to remaining discrepancies such as dimensional reduction, potential model limitations, and statistical noise. The study provides a practical framework for extracting transport coefficients from MD data via continuum-model fitting, with potential extensions to other multiscale transport problems and higher dimensions. The approach combines MD (LAMMPS) with FD solvers and nonlinear least-squares fitting to yield a robust estimate of $D$ from first-principles simulations.
Abstract
A procedure is presented to estimate the diffusion coefficient of a uniform patch of argon gas in a uniform background of helium gas. Molecular Dynamics (MD) simulations of the two gases interacting through the Lennard-Jones potential are carried out using the LAMMPS software package. In addition, finite-difference (FD) calculations are used to solve the continuum diffusion equation for the argon concentration with a given diffusion coefficient. To contain the computational cost and facilitate data visualization, both MD and FD computations were done in two space dimensions. The MD argon trajectories were binned to the FD grid, and the optimal diffusion coefficient was estimated by minimizing the difference between the binned MD data and the FD solution with a nonlinear least squares procedure (Levenberg-Marquardt algorithm). Numerical results show the effect of the MD binning parameter and FD grid spacing. The estimated diffusion coefficient is compared to an experimental measurement.
