Beruflich Dokumente
Kultur Dokumente
Hyo-Dong Pan
Department of Physics and Astronomy, Seoul National University, Seoul 151-747, Korea
In this letter shear viscosity of argon fulid was calculated by Molecular Dynamics simulation(MD) via python
2.7.10. The molecular system was dominated thoroughly by Lennard Jones potential and in liquid phase with
changing temperature
Introd
Introduction
Transport coefficients such as shear viscosity and
thermal conductivity, etc can be defined in terms of
the system response to a perturbation. For shear
viscosity, which is a measure of the shear stress
induced by an applied velocity gradient can be
calculate by the time integration of correlation
function of stress tensor by introducing perturbations
into the Hamiltonian, or directly into the equations of
motion[1],[2]. Getting the linear terms in the
perturbation, and comparing the equation for the
response with a macroscopic transport equation, we
can identify the transport coefficient. I.e. transport
characteristics be described by the infinite time
integral of a correlation function by the Green-Kubo
formula, as follows.[3]
(1)
where is the transport coefficient and A is a
variable appearing in the perturbation term in the
Hamiltonian. The problem in the calculation of
transport properties using the equilibrium molecular
dynamics (EMD) simulation is the non-decaying,
long-time tail of the time correlation functions in Eq.
(1). The velocity auto-correlation (VAC) function of
liquid argon in the Green-Kubo formula decays
quickly within 5 ps to give a well-defined diffusion
coefficient because the velocity is the property of
each particle. On the other hand, the stress (SAC)
and the heat-flux auto-correlation (HFAC) functions
for shear viscosity and thermal conductivity have
non-decaying longtime tails because the stress and
the heat-flux appear as the system properties. In this
letter I will calculate the shear viscosity by molecular
dynamics, using green kubo's fomula
Theory
By the green kubo fomula Shear viscosity is given
by The Green-Kubo formula for shear
viscosity is given by
(2)
where = xy, xz, yx, yz, zx, or zy and Pis
the component of the molecular stress tensor P
of the system, V is the volume of the system, K is
boltzmann constant, T is the absolute temperature of
the system. in Ref.[1] stress tensor P is give by
(3)
and an alternative equation is
(4)
but as was seen it Ref.[1] any result deriven from
eqn (3) and (4) is not converging which means the
integral of ensemble average goes to infinite and
have no meaning on the viscosity of the system. I
calculated the viscosity of argon liquid using eqn (3)
and shear viscosity tensor component of xy, yz, zx,
yx, zy, xz has all different values which is not
favorable results at all.
so I used the third equation of Ref.[1] which is
given
(5)
(6)
the result calculated by equation above gave the
same shear viscosity independent of component
which is favorable.
I used python 2.7.10 for coding. To get numerical
solution I used a library named numpy, which help to
read and calculate the matrix by component. And
also it reduced the simulation time
The first one I made has about ten row length and
cosinsts of only one step, which calculate the shear
viscosity all at once and make debugging extremely
difficult. There was another problem. Although the
code was simple, it took almost half and an hour to
calculate the viscosity.
So I separated it into three step, which reduces the
calculation time considerably. First, calculate the i-th
particle's stress tensor Pi which is give by eqn (5).
(9)
t + t = t +
t(10)
t + t = t + + tt(12)
With no temperature or pressure coupling, and with
corresponding starting points, leap-frog and velocity
Verlet will generate identical trajectories. Given a
single starting file with the same starting point x(0)
and v(0), leap-frog and velocity Verlet will not give
identical trajectories, as leap-frog will interpret the
velocities as corresponding to t = , while
velocity Verlet will interpret them as corresponding
to the time point at t = 0.
Third, save the outputs if its needed, such as
positions, velocities, energies, temperature, pressure,
etc.[4]