831 |
|
error of splitting method in terms of commutator of the |
832 |
|
operators(\ref{introEquation:exponentialOperator}) associated with |
833 |
|
the sub-flow. For operators $hX$ and $hY$ which are associate to |
834 |
< |
$\varphi_1(t)$ and $\varphi_2(t$ respectively , we have |
834 |
> |
$\varphi_1(t)$ and $\varphi_2(t)$ respectively , we have |
835 |
|
\begin{equation} |
836 |
|
\exp (hX + hY) = \exp (hZ) |
837 |
|
\end{equation} |
846 |
|
\] |
847 |
|
Applying Baker-Campbell-Hausdorff formula to Sprang splitting, we |
848 |
|
can obtain |
849 |
< |
\begin{eqnarray*} |
849 |
> |
\begin{equation} |
850 |
|
\exp (h X/2)\exp (h Y)\exp (h X/2) & = & \exp (h X + h Y + h^2 |
851 |
|
[X,Y]/4 + h^2 [Y,X]/4 \\ & & \mbox{} + h^2 [X,X]/8 + h^2 [Y,Y]/8 \\ |
852 |
|
& & \mbox{} + h^3 [Y,[Y,X]]/12 - h^3 [X,[X,Y]]/24 & & \mbox{} + |
853 |
|
\ldots ) |
854 |
< |
\end{eqnarray*} |
854 |
> |
\end{equation} |
855 |
|
Since \[ [X,Y] + [Y,X] = 0\] and \[ [X,X] = 0\], the dominant local |
856 |
|
error of Spring splitting is proportional to $h^3$. The same |
857 |
|
procedure can be applied to general splitting, of the form |
892 |
|
simulations. For instance, instantaneous temperature of an |
893 |
|
Hamiltonian system of $N$ particle can be measured by |
894 |
|
\[ |
895 |
< |
T(t) = \sum\limits_{i = 1}^N {\frac{{m_i v_i^2 }}{{fk_B }}} |
895 |
> |
T = \sum\limits_{i = 1}^N {\frac{{m_i v_i^2 }}{{fk_B }}} |
896 |
|
\] |
897 |
|
where $m_i$ and $v_i$ are the mass and velocity of $i$th particle |
898 |
|
respectively, $f$ is the number of degrees of freedom, and $k_B$ is |
913 |
|
These three individual steps will be covered in the following |
914 |
|
sections. Sec.~\ref{introSec:initialSystemSettings} deals with the |
915 |
|
initialization of a simulation. Sec.~\ref{introSec:production} will |
916 |
< |
discusses issues in production run, including the force evaluation |
917 |
< |
and the numerical integration schemes of the equations of motion . |
918 |
< |
Sec.~\ref{introSection:Analysis} provides the theoretical tools for |
919 |
< |
trajectory analysis. |
916 |
> |
discusses issues in production run. Sec.~\ref{introSection:Analysis} |
917 |
> |
provides the theoretical tools for trajectory analysis. |
918 |
|
|
919 |
|
\subsection{\label{introSec:initialSystemSettings}Initialization} |
920 |
|
|
984 |
|
|
985 |
|
\subsection{\label{introSection:production}Production} |
986 |
|
|
987 |
< |
\subsubsection{\label{introSec:forceCalculation}The Force Calculation} |
988 |
< |
|
989 |
< |
\subsubsection{\label{introSection:integrationSchemes} Integration |
990 |
< |
Schemes} |
987 |
> |
Production run is the most important steps of the simulation, in |
988 |
> |
which the equilibrated structure is used as a starting point and the |
989 |
> |
motions of the molecules are collected for later analysis. In order |
990 |
> |
to capture the macroscopic properties of the system, the molecular |
991 |
> |
dynamics simulation must be performed in correct and efficient way. |
992 |
|
|
993 |
+ |
The most expensive part of a molecular dynamics simulation is the |
994 |
+ |
calculation of non-bonded forces, such as van der Waals force and |
995 |
+ |
Coulombic forces \textit{etc}. For a system of $N$ particles, the |
996 |
+ |
complexity of the algorithm for pair-wise interactions is $O(N^2 )$, |
997 |
+ |
which making large simulations prohibitive in the absence of any |
998 |
+ |
computation saving techniques. |
999 |
+ |
|
1000 |
+ |
A natural approach to avoid system size issue is to represent the |
1001 |
+ |
bulk behavior by a finite number of the particles. However, this |
1002 |
+ |
approach will suffer from the surface effect. To offset this, |
1003 |
+ |
\textit{Periodic boundary condition} is developed to simulate bulk |
1004 |
+ |
properties with a relatively small number of particles. In this |
1005 |
+ |
method, the simulation box is replicated throughout space to form an |
1006 |
+ |
infinite lattice. During the simulation, when a particle moves in |
1007 |
+ |
the primary cell, its image in other cells move in exactly the same |
1008 |
+ |
direction with exactly the same orientation. Thus, as a particle |
1009 |
+ |
leaves the primary cell, one of its images will enter through the |
1010 |
+ |
opposite face. |
1011 |
+ |
%\begin{figure} |
1012 |
+ |
%\centering |
1013 |
+ |
%\includegraphics[width=\linewidth]{pbcFig.eps} |
1014 |
+ |
%\caption[An illustration of periodic boundary conditions]{A 2-D |
1015 |
+ |
%illustration of periodic boundary conditions. As one particle leaves |
1016 |
+ |
%the right of the simulation box, an image of it enters the left.} |
1017 |
+ |
%\label{introFig:pbc} |
1018 |
+ |
%\end{figure} |
1019 |
+ |
|
1020 |
+ |
%cutoff and minimum image convention |
1021 |
+ |
Another important technique to improve the efficiency of force |
1022 |
+ |
evaluation is to apply cutoff where particles farther than a |
1023 |
+ |
predetermined distance, are not included in the calculation |
1024 |
+ |
\cite{Frenkel1996}. The use of a cutoff radius will cause a |
1025 |
+ |
discontinuity in the potential energy curve. Fortunately, one can |
1026 |
+ |
shift the potential to ensure the potential curve go smoothly to |
1027 |
+ |
zero at the cutoff radius. Cutoff strategy works pretty well for |
1028 |
+ |
Lennard-Jones interaction because of its short range nature. |
1029 |
+ |
However, simply truncating the electrostatic interaction with the |
1030 |
+ |
use of cutoff has been shown to lead to severe artifacts in |
1031 |
+ |
simulations. Ewald summation, in which the slowly conditionally |
1032 |
+ |
convergent Coulomb potential is transformed into direct and |
1033 |
+ |
reciprocal sums with rapid and absolute convergence, has proved to |
1034 |
+ |
minimize the periodicity artifacts in liquid simulations. Taking the |
1035 |
+ |
advantages of the fast Fourier transform (FFT) for calculating |
1036 |
+ |
discrete Fourier transforms, the particle mesh-based methods are |
1037 |
+ |
accelerated from $O(N^{3/2})$ to $O(N logN)$. An alternative |
1038 |
+ |
approach is \emph{fast multipole method}, which treats Coulombic |
1039 |
+ |
interaction exactly at short range, and approximate the potential at |
1040 |
+ |
long range through multipolar expansion. In spite of their wide |
1041 |
+ |
acceptances at the molecular simulation community, these two methods |
1042 |
+ |
are hard to be implemented correctly and efficiently. Instead, we |
1043 |
+ |
use a damped and charge-neutralized Coulomb potential method |
1044 |
+ |
developed by Wolf and his coworkers. The shifted Coulomb potential |
1045 |
+ |
for particle $i$ and particle $j$ at distance $r_{rj}$ is given by: |
1046 |
+ |
\begin{equation} |
1047 |
+ |
V(r_{ij})= \frac{q_i q_j \textrm{erfc}(\alpha |
1048 |
+ |
r_{ij})}{r_{ij}}-\lim_{r_{ij}\rightarrow |
1049 |
+ |
R_\textrm{c}}\left\{\frac{q_iq_j \textrm{erfc}(\alpha |
1050 |
+ |
r_{ij})}{r_{ij}}\right\}. \label{introEquation:shiftedCoulomb} |
1051 |
+ |
\end{equation} |
1052 |
+ |
where $\alpha$ is the convergence parameter. Due to the lack of |
1053 |
+ |
inherent periodicity and rapid convergence,this method is extremely |
1054 |
+ |
efficient and easy to implement. |
1055 |
+ |
%\begin{figure} |
1056 |
+ |
%\centering |
1057 |
+ |
%\includegraphics[width=\linewidth]{pbcFig.eps} |
1058 |
+ |
%\caption[An illustration of shifted Coulomb potential]{An illustration of shifted Coulomb potential.} |
1059 |
+ |
%\label{introFigure:shiftedCoulomb} |
1060 |
+ |
%\end{figure} |
1061 |
+ |
|
1062 |
+ |
%multiple time step |
1063 |
+ |
|
1064 |
|
\subsection{\label{introSection:Analysis} Analysis} |
1065 |
|
|
1066 |
|
Recently, advanced visualization technique are widely applied to |
1075 |
|
|
1076 |
|
\subsubsection{\label{introSection:thermodynamicsProperties}Thermodynamics Properties} |
1077 |
|
|
1078 |
+ |
Thermodynamics properties, which can be expressed in terms of some |
1079 |
+ |
function of the coordinates and momenta of all particles in the |
1080 |
+ |
system, can be directly computed from molecular dynamics. The usual |
1081 |
+ |
way to measure the pressure is based on virial theorem of Clausius |
1082 |
+ |
which states that the virial is equal to $-3Nk_BT$. For a system |
1083 |
+ |
with forces between particles, the total virial, $W$, contains the |
1084 |
+ |
contribution from external pressure and interaction between the |
1085 |
+ |
particles: |
1086 |
+ |
\[ |
1087 |
+ |
W = - 3PV + \left\langle {\sum\limits_{i < j} {r{}_{ij} \cdot |
1088 |
+ |
f_{ij} } } \right\rangle |
1089 |
+ |
\] |
1090 |
+ |
where $f_{ij}$ is the force between particle $i$ and $j$ at a |
1091 |
+ |
distance $r_{ij}$. Thus, the expression for the pressure is given |
1092 |
+ |
by: |
1093 |
+ |
\begin{equation} |
1094 |
+ |
P = \frac{{Nk_B T}}{V} - \frac{1}{{3V}}\left\langle {\sum\limits_{i |
1095 |
+ |
< j} {r{}_{ij} \cdot f_{ij} } } \right\rangle |
1096 |
+ |
\end{equation} |
1097 |
+ |
|
1098 |
|
\subsubsection{\label{introSection:structuralProperties}Structural Properties} |
1099 |
|
|
1100 |
|
Structural Properties of a simple fluid can be described by a set of |
1101 |
|
distribution functions. Among these functions,\emph{pair |
1102 |
|
distribution function}, also known as \emph{radial distribution |
1103 |
< |
function}, are of most fundamental importance to liquid-state |
1104 |
< |
theory. Pair distribution function can be gathered by Fourier |
1105 |
< |
transforming raw data from a series of neutron diffraction |
1106 |
< |
experiments and integrating over the surface factor \cite{Powles73}. |
1107 |
< |
The experiment result can serve as a criterion to justify the |
1108 |
< |
correctness of the theory. Moreover, various equilibrium |
1109 |
< |
thermodynamic and structural properties can also be expressed in |
1110 |
< |
terms of radial distribution function \cite{allen87:csl}. |
1103 |
> |
function}, is of most fundamental importance to liquid-state theory. |
1104 |
> |
Pair distribution function can be gathered by Fourier transforming |
1105 |
> |
raw data from a series of neutron diffraction experiments and |
1106 |
> |
integrating over the surface factor \cite{Powles73}. The experiment |
1107 |
> |
result can serve as a criterion to justify the correctness of the |
1108 |
> |
theory. Moreover, various equilibrium thermodynamic and structural |
1109 |
> |
properties can also be expressed in terms of radial distribution |
1110 |
> |
function \cite{allen87:csl}. |
1111 |
|
|
1112 |
|
A pair distribution functions $g(r)$ gives the probability that a |
1113 |
|
particle $i$ will be located at a distance $r$ from a another |
1149 |
|
function is called \emph{auto correlation function}. One example of |
1150 |
|
auto correlation function is velocity auto-correlation function |
1151 |
|
which is directly related to transport properties of molecular |
1152 |
< |
liquids. Another example is the calculation of the IR spectrum |
1153 |
< |
through a Fourier transform of the dipole autocorrelation function. |
1152 |
> |
liquids: |
1153 |
> |
\[ |
1154 |
> |
D = \frac{1}{3}\int\limits_0^\infty {\left\langle {v(t) \cdot v(0)} |
1155 |
> |
\right\rangle } dt |
1156 |
> |
\] |
1157 |
> |
where $D$ is diffusion constant. Unlike velocity autocorrelation |
1158 |
> |
function which is averaging over time origins and over all the |
1159 |
> |
atoms, dipole autocorrelation are calculated for the entire system. |
1160 |
> |
The dipole autocorrelation function is given by: |
1161 |
> |
\[ |
1162 |
> |
c_{dipole} = \left\langle {u_{tot} (t) \cdot u_{tot} (t)} |
1163 |
> |
\right\rangle |
1164 |
> |
\] |
1165 |
> |
Here $u_{tot}$ is the net dipole of the entire system and is given |
1166 |
> |
by |
1167 |
> |
\[ |
1168 |
> |
u_{tot} (t) = \sum\limits_i {u_i (t)} |
1169 |
> |
\] |
1170 |
> |
In principle, many time correlation functions can be related with |
1171 |
> |
Fourier transforms of the infrared, Raman, and inelastic neutron |
1172 |
> |
scattering spectra of molecular liquids. In practice, one can |
1173 |
> |
extract the IR spectrum from the intensity of dipole fluctuation at |
1174 |
> |
each frequency using the following relationship: |
1175 |
> |
\[ |
1176 |
> |
\hat c_{dipole} (v) = \int_{ - \infty }^\infty {c_{dipole} (t)e^{ - |
1177 |
> |
i2\pi vt} dt} |
1178 |
> |
\] |
1179 |
|
|
1180 |
|
\section{\label{introSection:rigidBody}Dynamics of Rigid Bodies} |
1181 |
|
|
1237 |
|
where $I_{ii}$ is the diagonal element of the inertia tensor. This |
1238 |
|
constrained Hamiltonian equation subjects to a holonomic constraint, |
1239 |
|
\begin{equation} |
1240 |
< |
Q^T Q = 1$, \label{introEquation:orthogonalConstraint} |
1240 |
> |
Q^T Q = 1, \label{introEquation:orthogonalConstraint} |
1241 |
|
\end{equation} |
1242 |
|
which is used to ensure rotation matrix's orthogonality. |
1243 |
|
Differentiating \ref{introEquation:orthogonalConstraint} and using |