next up previous
Next: Quiz Up: Calculation of Thermodynamic Properties. Previous: Thermodynamic Properties in NVT

Subsections


NPT Ensemble

The Problem

The constant volume ensemble is not very convenient for the study of phase transitions. Some experimental values, like the excess properties, are measured at constant pressure, not at constant volume, therefore it would be nice to have a method to simulate the isobaric conditions also. The average of the value $A(\mathbf{r}_1\dots\mathbf{r}_N)$ in the NPT ensemble is given as:

\begin{displaymath}
\begin{split}
 \langle A\rangle_{NPT} &= \frac{1}{Z_{NPT}}\i...
 ...1 d\mathbf{r}'_1\dots d\mathbf{r}'_N\,\exp(-\beta U)\end{split}\end{displaymath}

here we again made the transformation to the ``primed'' coordinates, rescaling them by the box dimensions. Now we have to develop a Markov chain that samples the phase space with the probability distribution proportional to $\exp\bigl(-\beta( PV + U + N\log V)\bigr)$.Metropolis algorithm is implemented in the same way as for NVT ensemble, but now we also allow the volume to change. We have two kinds of the Monte Carlo moves: particles displacement, performed the same way as in the NVT simulations, and Volume change. The acceptance criterium is, of course, modified now, as instead of the energy difference between the old and new states, it is based on the difference of enthalpies:  
 \begin{displaymath}
\delta H_{nm} = \delta U_{nm} + P (V_n - V_m) - k_BT\ln(V_n/V_m)\end{displaymath} (7)

NPT MC algorithm

1.
Prepare the initial configuration of the system with the desired density (box size and number of particles). Usually just a simple cubic lattice works.
2.
Loop through the particles:

3.
Make a volume change as $V_{\text{new}}=V_{\text{old}}+dV_{\max}(\ensuremath{\text{\texttt{rand()}}}-0.5)$. Calculate new energy of the system. and $\delta H$ from equation (7), and decide, whether to accept it or not, based on the Metropolis criterium.
4.
Calculate necessary averages, print out the results, etc. Go back to step 2.

next up previous
Next: Quiz Up: Calculation of Thermodynamic Properties. Previous: Thermodynamic Properties in NVT

© 1997 Boris Veytsman and Michael Kotelyanskii
Thu Nov 13 19:07:05 EST 1997