MOLECULAR DYNAMIC SIMULATION OF WATER VAPOR INTERACTION WITH VARIOUS TYPES OF PORES USING HYBRID COMPUTING STRUCTURES

Similar documents
Molecular dynamic simulation of wet water vapour transport in porous medium

MD Thermodynamics. Lecture 12 3/26/18. Harvard SEAS AP 275 Atomistic Modeling of Materials Boris Kozinsky

Computer simulations as concrete models for student reasoning

Introduction Statistical Thermodynamics. Monday, January 6, 14

Teaching Statistical and Thermal Physics Using Computer Simulations


What is Classical Molecular Dynamics?

Scientific Computing II

SIMCON - Computer Simulation of Condensed Matter

A MOLECULAR DYNAMICS SIMULATION OF A BUBBLE NUCLEATION ON SOLID SURFACE

Calculation of ground states of few-body nuclei using NVIDIA CUDA technology

Mutual diffusion of binary liquid mixtures containing methanol, ethanol, acetone, benzene, cyclohexane, toluene and carbon tetrachloride

MD simulation of methane in nanochannels

Advanced Molecular Dynamics

Thermodynamic behaviour of mixtures containing CO 2. A molecular simulation study

Comparative study on methodology in molecular dynamics simulation of nucleation

Multiphase Flow Simulations in Inclined Tubes with Lattice Boltzmann Method on GPU

Coupled continuum hydrodynamics and molecular dynamics method for multiscale simulation

Molecular Clustering and Velocity Increase in Converging-Diverging Nozzle in MD Simulation

MOLECULAR DYNAMICS CALCULATION OF SURFACE TENSION USING THE EMBEDDED ATOM MODEL

Bioengineering 215. An Introduction to Molecular Dynamics for Biomolecules

2. Thermodynamics. Introduction. Understanding Molecular Simulation

Modeling the combined effect of surface roughness and shear rate on slip flow of simple fluids

CE 530 Molecular Simulation

MOLECULAR DYNAMICS SIMULATION ON TOTAL THERMAL RESISTANCE OF NANO TRIANGULAR PIPE

Molecular Dynamics. Timothy O Sullivan Supervised by Naida Lacevic & John Sader The University of Melbourne

Introduction to molecular dynamics

Introduction to Simulation - Lectures 17, 18. Molecular Dynamics. Nicolas Hadjiconstantinou

A Control Algorithm for Multiscale Simulations of Liquid Water

NUCLEATION IN FINITE SYSTEMS: THEORY AND COMPUTER SIMULATION*t. M. RAO and B. J. BERNE. Chemistry Dept, Columbia University, New York, U.S.A.

Multiple time step Monte Carlo

Multiscale modelling of D trapping in W

2D Clausius Clapeyron equation

MOLECULAR DYNAMICS STUDY OF THE NUCLEATION OF BUBBLE

Efficient Parallelization of Molecular Dynamics Simulations on Hybrid CPU/GPU Supercoputers

Multiscale Materials Modeling

CARBON 2004 Providence, Rhode Island. Adsorption of Flexible n-butane and n-hexane on Graphitized Thermal Carbon Black and in Slit Pores

UB association bias algorithm applied to the simulation of hydrogen fluoride

Heat, Work, and the First Law of Thermodynamics. Chapter 18 of Essential University Physics, Richard Wolfson, 3 rd Edition

4/18/2011. Titus Beu University Babes-Bolyai Department of Theoretical and Computational Physics Cluj-Napoca, Romania

About Fluids Structure in Microchannels

2D Clausius Clapeyron equation

THE study of diffusion in gases and liquids always

Population annealing study of the frustrated Ising antiferromagnet on the stacked triangular lattice

1.3 Molecular Level Presentation

A unified flow theory for viscous fluids

Set the initial conditions r i. Update neighborlist. r i. Get new forces F i

Molecular Dynamics Simulation Study of Transport Properties of Diatomic Gases

PORE SIZE DISTRIBUTION OF CARBON WITH DIFFERENT PROBE MOLECULES

Monte Carlo Methods. Ensembles (Chapter 5) Biased Sampling (Chapter 14) Practical Aspects

The Computational Simulation of the Positive Ion Propagation to Uneven Substrates

André Schleife Department of Materials Science and Engineering

Particle-Simulation Methods for Fluid Dynamics

Molecular Dynamics Simulations. Dr. Noelia Faginas Lago Dipartimento di Chimica,Biologia e Biotecnologie Università di Perugia

ICONE COMPUTER SIMULATION OF DIFFUSION OF PB-BI EUTECTIC IN LIQUID SODIUM BY MOLECULAR DYNAMICS METHOD

Modeling of Micro-Fluidics by a Dissipative Particle Dynamics Method. Justyna Czerwinska

Advanced Molecular Molecular Dynamics

A MOLECULAR DYNAMICS SIMULATION OF WATER DROPLET IN CONTACT WITH A PLATINUM SURFACE

APPLICATION OF CUDA TECHNOLOGY FOR CALCULATION OF GROUND STATES OF FEW-BODY NUCLEI BY FEYNMAN'S CONTINUAL INTEGRALS METHOD

Introduction to model potential Molecular Dynamics A3hourcourseatICTP

Phase Equilibria of binary mixtures by Molecular Simulation and PR-EOS: Methane + Xenon and Xenon + Ethane

LAMMPS Performance Benchmark on VSC-1 and VSC-2

The Molecular Dynamics Method

A Coupling Tool for Parallel Molecular Dynamics Continuum Simulations

Why Should We Be Interested in Hydrodynamics?

Supporting Information for: Physics Behind the Water Transport through. Nanoporous Graphene and Boron Nitride

3.320 Lecture 18 (4/12/05)

Introduction. Monday, January 6, 14

Early stages of dewetting of microscopically thin polymer films: A molecular dynamics study

Why do we need to study thermodynamics? Examples of practical thermodynamic devices:

Statistical Thermodynamics and Monte-Carlo Evgenii B. Rudnyi and Jan G. Korvink IMTEK Albert Ludwig University Freiburg, Germany

Journal of Chemical Engineering, IEB Vol. 29, No. 1 (2017) 49-55

Chem 4501 Introduction to Thermodynamics, 3 Credits Kinetics, and Statistical Mechanics

Biomolecular modeling I

Imperfect Gases. NC State University

Liquid-vapour oscillations of water in hydrophobic nanopores

Charge equilibration

File ISM02. Dynamics of Soft Matter

Molecular dynamics simulation of nanofluidics and nanomachining

Time-Dependent Statistical Mechanics 1. Introduction

Influence of Gas on the Rupture Strength of Liquid: Simulation by the Molecular Dynamics Methods

COMPARISON OF CPU AND GPU IMPLEMENTATIONS OF THE LATTICE BOLTZMANN METHOD

MOLECULAR DYNAMICS SIMULATIONS OF HEAT TRANSFER ISSUES IN CARBON NANOTUBES

Chapter 2 Theory. 2.1 Continuum Mechanics of Porous Media Porous Medium Model

Density dependence of dielectric permittivity of water and estimation of the electric field for the breakdown inception

Javier Junquera. Statistical mechanics

Equation of State for Free Energy of Homogeneous Nucleation in Supersaturated Lennard-Jones Vapor Phase Derived by Monte Carlo Simulations

Thermostatic Controls for Noisy Gradient Systems and Applications to Machine Learning

Effect of microscopic heterogeneities on water transfer in frozen ground

Analytical and Numerical Study of Coupled Atomistic-Continuum Methods for Fluids

MOLECULAR DYNAMICS SIMULATION OF VAPOR BUBBLE NUCLEATION ON A SOLID SURFACE. Tatsuto Kimura and Shigeo Maruyama

Kinetic Monte Carlo (KMC) Kinetic Monte Carlo (KMC)

A Study of the Thermal Properties of a One. Dimensional Lennard-Jones System

Analysis of the simulation

Carbon nanotube oscillators: Effect of small bending strain

Atomistic simulation of electro-osmosis in a nanometer-scale channel

Sliding Friction in the Frenkel-Kontorova Model

Methods of Computer Simulation. Molecular Dynamics and Monte Carlo

Theme Music: Duke Ellington Take the A Train Cartoon: Lynn Johnson For Better or for Worse

Enabling constant pressure hybrid Monte Carlo simulations using the GROMACS molecular simulation package

Transcription:

MOLECULAR DYNAMIC SIMULATION OF WATER VAPOR INTERACTION WITH VARIOUS TYPES OF PORES USING HYBRID COMPUTING STRUCTURES V.V. Korenkov 1,3, a, E.G. Nikonov 1, b, M. Popovičová 2, с 1 Joint Institute for Nuclear Research, 141980 Dubna, Moscow Region, Russian Federation 2 University of Prešov, 080 01 Prešov, Slovakia 3 Plekhanov Russian University of Economics, 36 Stremyanny per., Moscow, 117997, Russia E-mail: a korenkov@jinr.ru, b e.nikonov@jinr.ru, с maria.popovicova@unipo.sk Theoretical and experimental investigations of water vapor interaction with porous materials are very needful for various fields of science and technology. Mathematical modelling plays an important role in these investigations. Conventional approaches to solve problems of mathematical research of the processes of interaction of water vapor with individual pore are the so called micro and macro approaches. The first approach is based on the use of diffusion equation for description of interaction of water vapor with a pore. The second approach is based on various particle methods like Monte- Carlo simulations, molecular dynamics (MD) etc. In MD usage of efficient calculation methods is necessary because the degree of approximation for simulating system is largely determined by the dimensionality of the system of equations being solved at every time step. Number of time steps is also quite large. In this work, a study of efficiency of various implementations algorithms for MD simulation of water vapor interaction with individual pore is carried out. It is also investigated dependence of time required for simulations on different parameters, like number of particles in the system, shape of pores, and so on. The results of parallel calculations are compared with the results obtained by serial calculations. Keywords: porous media, molecular dynamics, macroscopic diffusion model, parallel calculations 2018 Vladimir V. Korenkov, Eduard.G. Nikonov, Maria. Popovičová 170

1. Introduction One of the most important problem in numerical simulation based on molecular dynamics or Monte-Carlo approach of many particle systems is the need to use huge computing resources to obtain realistic simulation results. A system of water vapor and a pore is an example of such many particle systems. Theoretical and experimental investigations of water vapor interaction with porous materials are very needful for various fields of science and technology. Not only studies of the interaction of water vapor and porous material as a continuous medium, but also the study of the interaction of water vapor with individual pore is very important in these researches. Mathematical modelling occupies an important place in these investigations. Conventional approaches to solve problems of mathematical research of the processes of interaction of water vapor with individual pore are the following. The first approach is based on the use of diffusion equation for description of interaction of water vapor with a pore. It is so called macro approach. The second approach is based on various particle methods like, for example, molecular dynamics (MD). These methods essentially consider the micro-structure of the investigated system consisting of water vapor and a pore. This second approach can be called a micro approach. At the macro level, the influence of the arrangement structure of individual pores on the processes of water vapor interaction with porous material as a continuous medium is studied. At the micro level, it is very interesting to investigate the dependence of the characteristics of the water vapor interaction with porous media on the geometry and dimensions of the individual pore. Both approaches require the most efficient calculation methods as far as possible with the current level of development of computational technologies. Usage of efficient calculation methods is necessary because the degree of approximation for simulating system is largely determined by the dimensionality of the system of equations being solved at every time step. Number of time steps is also quite large. In this work, a study of efficiency of various implementations algorithms for MD simulation of water vapor interaction with individual pore is carried out. A great disadvantage of MD is its requirement of a relatively large computational effort and long time in simulations. These problems can be drastically reduced by parallel calculations. In this work we investigate dependence of time required for simulations on different parameters, like number of particles in the system, shape of pores, and so on. The results of parallel calculations are compared with the results obtained by serial calculations. Two-dimensional and three-dimensional models of the pore are used for comparative analysis of parallel and serial calculations. 2. Molecular dynamics model In classical molecular dynamics, the behavior of an individual particle is described by the Newton equations of motion [1], which can be written in the following form d 2 r i m i dt 2 = f i, 1) where i a particle number, 1 i N, N the total number of particles, m i particle mass, r i coordinates of position, f i the resultant of all forces acting on the particle. This resultant force has the following representation f i = U(r 1,, r N ) + f ex r i, i 2) where U the potential of particle interaction, f ex i a force caused by external fields. For a simulation of particle interaction, we use the Lennard-Jones potential [2] with σ = 3.17Å and ε = 6.74 10 3 ev. It is the most used to describe the evolution of water in liquid and saturated vapor phase. Equations of motion (1,2) were integrated by Velocity Verlet method [3]. Berendsen thermostat [4] is used for temperature calibration and control. The coefficient of the velocity recalculation λ(t) at every time step t depends on the so called ''rise time'' of the thermostat τ B which belongs to the interval [0.1,2] ps. τ B describes strength of the coupling of the system to a hypothetical heat bath. For increasing τ B, the coupling weakens, i.e. it takes longer to achieve given temperature T 0 from current 171

temperature T(t). The Berendsen algorithm is simple to implement and it is very efficient for reaching the desired temperature from far-from-equilibrium configurations. Initial concentrations were obtained from the density of water vapor at the appropriate pressure and density at a given temperature using known tabulated data. The pressure in the pore was controlled using the formula based on virial equation [5]. P = 1 3V ( 2K r ij f(r ij ) ). i<j Here V is the pore volume, 2K is the doubled kinetic energy averaged over the ensemble, f(r ij ) is the force between particles i and j at a distance r ij. 3. Computational algorithm for molecular dynamic simulation For molecular dynamic simulation we used the code written in CUDA C. The program does not require a lot of memory. We only keep co-ordinates, speeds and forces for each particle. One of the main problems of molecular dynamic simulation is a large number of particles and time steps. Therefore, it is necessary to use parallel calculations. The code for our simulations was implemented on heterogeneous computing cluster HybriLIT. The code contains four functions that are paralleled, and which are performed on the GPU. This is a function for calculating the forces (i.e., acceleration) for individual particles, which calculates the interactions between all particles (F1). There are two functions to calculate new coordinates and speeds for each particle. We need two functions to calculate them because we need forces acting on particles at two different time moments (F2 and F3). Finally, we use the Berendsen thermostat in the program that runs parallel at the GPU too (F4). Other calculations are performed on the host. General scheme of the calculation algorithm for two- and three-dimensional molecular dynamic simulation is shown in Figure 1. In this paper we compare the temporal realization of these four functions F1-F4 on the GPU and the CPU. The total time of parallel computing consists of two parts, that is the time needed directly to calculate on the GPU (pure GPU time) and the time needed to complete these calculations on the CPU because some algorithms performed on the GPU must be completed by the CPU. In this work, total GPU time will indicate the sum of these two times. 4. 2D molecular dynamic simulation For two-dimensional (2D) molecular dynamic simulation we consider 2D model of the pore in the shape of a rectangle with dimensions l x = 1μm, l y = 1μm. The outer space in this micro-model reflects is a rectangle right to the pore with k l x and (2k + 1) l y dimensions. All sides of the outer space satisfy to the periodic boundary conditions. The left pore side reflects the inner molecules due to the boundary condition [6] but also provides the periodic boundary conditions for a part of outer space. There are 420 molecules of water vapor inside the pore which form saturated water vapor at temperature 35 and pressure 5.62 kpa at the time t=0. The value of parameter k = 3 means that the outer space volume for calculations is 21 times larger than the pore volume. There are 1764 molecules of water vapor in outer space corresponding to 20% saturated water vapor. The integration step is 0.016 ps and evolution time is 65.3 ns. 172

Figure 1. Parallelized algorithm for molecular dynamic simulation 5. 3D molecular dynamic simulation In three-dimensional (3D) case [7] we made simulation for 3D model of the pore in the shape of a prism of dimensions l x = 500nm, l y = 50nm, l z = 50nm. Five walls are isolated and so there is no exchange of particles with outer space. The sixth wall is open and connected with the external environment. The external environment is modelled by a prism which is 9 times bigger than the pore. 173

The big prism satisfies periodic boundary conditions. This means that the particles which pass through one wall return to the system through the opposite wall. The integration time step is 0.016 ps and evolution time is 65.3 ns. Consequently, we have considered the following input data for the drying process. There are 1000 molecules of water vapor inside the pore which forms saturated water vapor at temperature 25 and pressure 3.17 kpa. There are 1800 molecules of water vapor in the outer area space corresponding to 20% saturated water vapor. 6. Conclusion For both simulations, in 2D and 3D cases, the average time t 1 required to calculate one step was calculated. To compare the two simulations, we have converted this time to one particle t p. The results are shown in Table 1. The time required to calculate one step for one particle for 2D and 3D simulation on GPU in both cases (pure GPU time and total GPU time) especially pure GPU time is 2:3. CPU time does not keep this ratio. Table 1. Comparison of computation times per step and for one particle for both simulations Time 2D 3D CPU pure GPU total GPU CPU pure GPU total GPU t 1 112.732 4.532 4.668 184.349 8.649 8.786 t p 0.05162 0.00207 0.00214 0.06584 0.00309 0.00314 As our investigations showed for both cases of 2D and 3D simulation, when paralleling the computations, there are some optimal value of number of threads in blocks 2 7 such that the computation time becomes minimal then for other values of this number of threads. Parallelized algorithm runs about 24 times faster than the sequential one in the 2D case and about 21 times faster in the 3D case for one time step t 1 and for average time step per particle t p. In addition, it should be noted that, when parallelizing, the cost ratio of the computation time per particle for 2D and 3D modeling is equal 2/3 with high precision. References [1] Gould H., Tobochnik J. and Christian W. An Introduction to Computer Simulation Methods. 3rd edition. // Addison-Wesley, 2006. - 796 pp. [2] Lennard-Jones J. E. On the Determination of Molecular Fields. // Proc. Roy. Soc. 1924. V. A106. P. 463. [3] Verlet L. Computer experiments on classical fluids. I. Thermodynamical properties of Lennard- Jones molecules. // Phys. Rev. 1967. V. 159. P. 98. [4] Berendsen H. J. C. et al. Molecular dynamics with coupling to an external bath. // J. Chem. Phys. 1984. V. 81. P. 3684. [5] Frenkel D. and Smith B. Understanding molecular simulation: from algorithms to applications. Second edition. // Academic Press, 2006. - 658 pp. [6] Nikonov E.G., Pavluš M., Popovičová M. 2D microscopic and macroscopic simulation of water and porous material interaction. 2017. Available at: arxiv:1709.05878 [physics.flu-dyn] [7] Nikonov E.G., Pavluš M., Popovičová M. Molecular dynamic simulation of water vapor interaction with blind pore of dead-end and saccate type. 2017. Available at: arxiv:1708.06216 [physics.flu-dyn] 174