Post-Processing the Results of Metastable States Molecular Dynamics Simulation
1. Post-processing the Results of
Metastable States Molecular
Dynamics Simulation
Brukhanov Vasilii, Krasnobaev Arsenii, Neustroeva
Natalia, Sozykin Andrey, Ushenin Konstantin
Ural-PDC 2016
Institute of Thermal Physics of UrB RAS, Yekaterinburg, Russia
Krasovskii Institute of Mathematics and Mechanics,
Yekaterinburg, Russia
2. Nucleation
Thermodynamic phase transition:
• Nucleation
• Collapse
Nucleation is widespread in both
nature and technological processes,
in which phase transitions occur
Nucleation types:
• Heterogeneous
• Homogeneous
2
Nucleation of carbon
dioxide bubbles
around a finger
3. Simulation Method
Molecular dynamics (MD) simulations
• Allows to determine the change of
coordinates of particles and their velocities
in time
• Allows to determine various physical
quantities, for example, temperature,
pressure, etc.
Model of interaction between nonpolar
molecules
• A potential of Lennard-Jones
Simulation software
• LAMMPS
3
4. LAMMPS
Molecular Dynamics Simulator
Open source code, GPL
The LAMMPS software is installed on the “URAN”
supercomputer
• GPU Support
LAMMPS does not support the methods of analysis of
metastable states, the calculation of the contact angle,
and tensor of pressure, and other
4
6. Homogeneous Nucleation
The gas mix of methane and
nitrogen
The model in the form of
cube with periodic boundary
conditions
The density is lowered by
stretch the cell and scaling of
coordinates of the particles
6
7. Heterogeneous Nucleation
The liquid argon
Platinum surface
A gas bobble is formed near solid surface
7
0 5 10 15 20 25 30 35 40
5
10
15
20
25
30
35
40
45 B
C
F1
F2
F3
B
A
8. Objectives
Postprocess the results of numerical experiments on MD
simulation made by LAMMPS
The gas mixture in cells with periodic boundaries
• Find empty cluster with maximum radius
• Evaluate parameters of the cluster:
• volume
• coordinates of mass center
• particles density distribution
Liquid argon between surface of solid frame
• Compute the contact angle
• Compute the tensor of pressure
8
10. Algorithm
a) Discretization space:
• The model space is divided into equal cells, which are cubes with
sides parallel to the model sides
b) Shading:
• Shading all the cubes, which centers are less than the distance
Rnearest from the particles
c) Clustering:
• Unmarked cubes clustered by using the breadth-first search
algorithm
d) Finding the cluster center :
• Are defined the most extreme cells for this clusters in all three
dimensions and calculates the center of the cluster
10
11. Implementation
The algorithm was implemented using C++
Numerical experiments was carried out using specially prepared
test data for gas mixture
The speed on a single core of Intel Xeon X5675 processor was 440
seconds
• 1 frame
• 1M particles
• 300 cubes of partition per particle
• It is enough for practical use of the program with the frame
number of 100–200
11
12. Implementation
Intel VTune Amplifier investigation
• 94% - shading
• 2% - clustering using the breadth-first search
• 1% - other tasks (discretization, cluster center finding,
input/output, etc.)
12
13. Future Work
Accelerate the processing of data
with OpenMP and MPI
Calculate the contact angle
Calculate the tensor of pressure
Implement the programs as a plugin
to the LAMMPS
13
0 5 10 15 20 25 30 35 40
5
10
15
20
25
30
35
40
45 F1
F2
F3
B
C
B
A