Module 2 : Molecular Structure
Lecture 11 : Non-covalent interactions 2 : Structures of Liquids
  11.4
The Monte Carlo (MC) Method

One of the methods for obtaining the bulk equilibrium properties from intermolecular forces is known as the Monte Carlo method. In this method, the initial configuration (set of coordinates of all the N molecules in the box of volume L3 ) is chosen and the total energy of the system is calculated using eq (11.5). Then each molecule is moved by a small amount ( xi, yi and zi). If is the size (radius or the extent in one direction) of a molecule, then the maximum xi is about 0.1 . Now, all the molecules have obtained a new configuration. Let the energy of the old configuration be denoted Uold and let Unew be the energy of the new configuration. If Unew is less than Uold, then the new configuration is accepted and the coordinates are written into the hard disc. If the new energy is greater than Uold then the ratio f

 

f = e - U new / kBT/ e- U old / kBT (11.6)
is compared with a random number r which lies between 0 and 1. You can generate a few random numbers on your calculator and verify that they lie between 0 and 1. These are called uniform random numbers (because, they span the range between 0 and 1 uniformly) and there are several standard algorithms to generate these. If the value of f is less than r, the the new configuration is rejected and the old one is written to the disc once again. After this, all the molecules in the current configuration are again moved by ( xi, yi, zi) and the new f is compared with another random number r' to see whether the move is acceptable. Using this algorithm about 105 to 106 configuration are generated and written to the disc. This method is called the Metropolis Monte Carlo method. The values of ( xi, yi, zi) are chosen such that about half the moves are accepted. If xi are very large, very few moves get accepted and if xi are too small, a very large number of moves get accepted.

 

The configurations so generated are referred to as the members of a canonical ensemble. For each member or the configuration that is saved, N, V (volume) and T (the temperature) is the same, but of course the coordinates are different. The distribution of energies in the members has been found to obey the standard Boltzmann distribution (wherein the probability of finding a member with energy U is proportional to exp (-U/kBT).


You may have noticed that in the above method, velocities are not used nor have we considered time. The Monte Carlo method is useful for calculating the equilibrium properties such as E, p, and so on. E.g., the average energy of the system under consideration can be obtained as
 
<E> = ( 1 / NE ) (11.7)
Here, Ei s are the energies of the members of the ensemble ( NE) generated by the MC algorithm described above.