-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.tex
15 lines (12 loc) · 1.48 KB
/
init.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
\section{Initialization}
The number of particles $N$ is given by $4M^3$, where $M$ is the number of unit cells per dimension. Using the density $\rho$ and total number of particles $N$, the dimensions of the box are determined and filled with fcc Bravais lattice unit cells, with lattice constant $a=L/M$. Overlapping particles are avoided by filling each unit cell with only the lower left four particles, as shown in Figure~\ref{fig:unit_cell}. All particles are then displaced by a distance $a/10$ in each direction to avoid ambiguities in the periodic boundary conditions. This distribution will be relatively close to a stable distribution for the Lennard-Jones potential, reducing the amount of time steps needed before the system will equilibrium.
\begin{Figure}
\centering
\includegraphics[width=0.35\linewidth]{fcc_cell.eps}
\captionof{figure}{fcc Bravais unit cell.}\label{fig:unit_cell}
\end{Figure}
The particles are given an initial velocity with a Maxwell distribution\cite{jos}. The velocities are then renormalized by setting the centre of mass velocity to zero and rescaling the velocities to fit with the desired temperature. This is done by comparing the current kinetic energy and the expected kinetic energy for the desired temperature according to the equipartition theorem. This means that all the velocities are rescaled uniformly by a factor
\begin{gather*}
\lambda = \sqrt{\frac{3\left(N-1\right)k_bT_d}{\sum_{i=1}^Nmv_i^2}}.
\end{gather*}
%The initialization functions are combined in