Coupling Molecular Dynamics and Direct Simulation Monte Carlo using a general and high-performance code coupling library

Abstract A domain-decomposed method to simultaneously couple the classical Molecular Dynamics (MD) and Direct Simulation Monte Carlo (DSMC) methods is proposed. This approach utilises the MPI-based general coupling library, the Multiscale Universal Interface. The method provides a direct coupling strategy and utilises two OpenFOAM based solvers, mdFoam + and dsmcFoam + , enabling scenarios where both solvers assume one discrete particle is equal to one molecule or atom. The ultimate goal of this work is to enable complex multi-scale simulations involving micro, meso and macroscopic elements, as found with problems like evaporation. Results are presented to show the fundamental capabilities of the method in terms of mass and kinetic energy conservation between simulation regions handled by the different solvers. We demonstrate the capability of the method by deploying onto a large supercomputing resource, with attention paid to the scalability for a canonical NVT ensemble (a constant number of atoms N, constant volume V and constant temperature T) of Argon atoms. The results show that the method performs as expected in terms of mass conservation and the solution is also shown to scale reasonably on a supercomputing resource, within the known performance limits of the coupled codes. The wider future of this work is also considered, with focus placed on the next steps to expand the capabilities of the methodology to allow for indirect coupling (where the coarse-graining capability of the DSMC method is used), as well as how this will then fit into a larger coupled framework to allow a complete micro-meso-macro approach to be tackled.

[1]  An-bo Ming,et al.  Simulation of the Vapor-Liquid Two-Phase Flow of Evaporation and Condensation , 2016 .

[2]  Zhen Li,et al.  Multiscale Universal Interface: A concurrent framework for coupling heterogeneous solvers , 2014, J. Comput. Phys..

[3]  Sidney Yip,et al.  Coupling continuum to molecular-dynamics simulation: Reflecting particle method and the field estimator , 1998 .

[4]  Leonid V. Zhigilei,et al.  Direct Simulation Monte Carlo Calculation: Strategies for Using Complex Initial Conditions , 2002 .

[5]  Aldo Frezzotti,et al.  A comparison of models for the evaporation of the Lennard-Jones fluid , 2017 .

[6]  Stephen M. Longshaw,et al.  dsmcFoam+: An OpenFOAM based direct simulation Monte Carlo solver , 2017, Comput. Phys. Commun..

[7]  J. Banavar,et al.  Computer Simulation of Liquids , 1988 .

[8]  B. Premachandran,et al.  A coupled level set and volume of fluid method on unstructured grids for the direct numerical simulations of two-phase flows including phase change , 2018, International Journal of Heat and Mass Transfer.

[9]  Wenjing Ye,et al.  An Efficient Hybrid DSMC/MD Algorithm for Accurate Modeling of Micro Gas Flows , 2014 .

[10]  Chirag R. Kharangate,et al.  Review of computational studies on boiling and condensation , 2017 .

[11]  Kai Gu,et al.  Atomistic hybrid DSMC/NEMD method for nonequilibrium multiscale simulations , 2010, J. Comput. Phys..

[12]  Hrvoje Jasak,et al.  A tensorial approach to computational continuum mechanics using object-oriented techniques , 1998 .

[13]  D. S. Watvisave,et al.  A hybrid MD-DSMC coupling method to investigate flow characteristics of micro-devices , 2015, J. Comput. Phys..

[14]  Paj Peter Hilbers,et al.  Hybrid method coupling molecular dynamics and Monte Carlo simulations to study the properties of gases in microchannels and nanochannels. , 2005, Physical review. E, Statistical, nonlinear, and soft matter physics.

[15]  Krzysztof Kurowski,et al.  Multiscale Computing with the Multiscale Modeling Library and Runtime Environment , 2013, ICCS.

[16]  W. Wagner A convergence proof for Bird's direct simulation Monte Carlo method for the Boltzmann equation , 1992 .

[17]  Aldo Frezzotti,et al.  Nonequilibrium molecular-dynamics simulation of net evaporation and net condensation, and evaluation of the gas-kinetic boundary condition at the interphase , 2004 .

[18]  W. Joppich,et al.  MpCCI—a tool for the simulation of coupled applications , 2006 .

[19]  Thomas Scanlon,et al.  Open-Source Direct Simulation Monte Carlo Chemistry Modeling for Hypersonic Flows , 2015 .

[20]  Dongliang Sun,et al.  Modeling of the Evaporation and Condensation Phase-Change Problems with FLUENT , 2014 .

[21]  Emil M. Constantinescu,et al.  Multiphysics simulations , 2013, HiPC 2013.

[22]  G. Bird Molecular Gas Dynamics and the Direct Simulation of Gas Flows , 1994 .

[23]  Hans-Joachim Bungartz,et al.  preCICE – A fully parallel library for multi-physics surface coupling , 2016 .

[24]  D. R. Stinebring,et al.  A preconditioned Navier–Stokes method for two-phase flows with application to cavitation prediction , 2000 .

[25]  Jun Zhang,et al.  mdFoam+: Advanced molecular dynamics in OpenFOAM , 2017, Comput. Phys. Commun..