V. Monte Carlo next up previous
Next: V. Molecular Dynamics Up: No Title Previous: IV. Statistical Mechanics as

V. Monte Carlo

-Generate a set of states in phase space that are sampled from the complete set in accordance with the probability density tex2html_wrap_inline2268 , but not necessarily for microcanonical ensemble (i.e. not using true equations of motion)
-Invent a means of generating from one state point tex2html_wrap_inline2348 another point tex2html_wrap_inline2350 (need not have a physical interpretation)
-This prescription should satisfy the following conditions
1. probability density tex2html_wrap_inline2268 should not change as system evolves
2. any reasonable starting distribution tex2html_wrap_inline2354 should tend to this stationary solution as the simulation proceeds
3. ergodicity should hold (although it can't be proven, there should be a reasonabe argument)
tex2html_wrap_inline2356
where here tex2html_wrap_inline2358 runs over succession of tex2html_wrap_inline2330 states generated by this prescription
-Must ensure adequate sampling
How do we generate a sequence of random states so that by the end of the simulation each state has occurred with the appropriate probability?
A. Markov chain
a sequence of trials that satisfies 2 conditions:
1. the outcome of each trial belongs to a finite set of outcomes tex2html_wrap_inline2382 called the state space
2. the outcome of each trial depends only on the outcome of the trial that immediately precedes it
The 2 states tex2html_wrap_inline2384 and tex2html_wrap_inline2386 are linked by a transition probability tex2html_wrap_inline2388 , which is the probability of going from state m to state n.
B. Metropolis Method

displaymath2362

The matrix tex2html_wrap_inline2394 is symmetric ( tex2html_wrap_inline2396 ) and stochastic.
Since this solution only involves the ratio tex2html_wrap_inline2398 it is independent of the partition function tex2html_wrap_inline2400 .
There is a lot of flexibility in choosing tex2html_wrap_inline2394 . One definition is as follows. To construct a state n from a state m, one atom (i) is chosen at random and displaced from its position tex2html_wrap_inline2410 with equal probability to any point tex2html_wrap_inline2412 inside a cube R of side tex2html_wrap_inline2416 centered at tex2html_wrap_inline2410 . On the computer there are a large but finite number tex2html_wrap_inline2420 of new positions for the atom i, so:

displaymath2363

Thus, at the beginning of a MC move an atom is picked at random and given a uniform random displacement along each of the coordinate directions. The maximum displacement is tex2html_wrap_inline2424 and governs the size of the region R. The appropriate element of the transition element depends on the relative probabilities of the initial state m and the final state n. (Note that the factor tex2html_wrap_inline2430 is automatically included in making the move.)
1. if tex2html_wrap_inline2432 (downhill in energy) then tex2html_wrap_inline2434 and Eq. (M1) applies - accept new configuration
2. if tex2html_wrap_inline2436 (uphill in energy) then tex2html_wrap_inline2438 and Eq. (M2) applies - accept move with probability tex2html_wrap_inline2440 .
This ratio can be expressed as tex2html_wrap_inline2442 . To accept a move with this probability, a random number is generated uniformly between 0 and 1. If it is less than tex2html_wrap_inline2442 then the move is accepted; otherwise it is rejected. Thus, over the course of the run the net result is that energy changes are accepted with a probability tex2html_wrap_inline2442 . If the uphill move is rejected, the system remains in state m and this old configuration is recounted as a new state in the chain.
We can summarize this procedure by saying we accept any move (uphill or downhill) with probability min(1, tex2html_wrap_inline2442 ).
The maximum allowed displacement tex2html_wrap_inline2424 governs the size of the trial move
-If it is too small then a large fraction of moves are accepted but phase space is explored slowly (i.e. consecutive states are highly correlated).
-If it is too large then nearly all the trial moves are rejected and again there is little movement through phase space.
-Typically tex2html_wrap_inline2424 is adjusted so that about half the trial moves are rejected.
Sometimes the selection of atoms to move is done sequentially (i.e., in order of atom index) rather than randomly. This is equally valid. The length of an MC simulation is measured in cycles (N trial moves whether selected sequentially or randomly). The computer time in a MC cycle is comparable to that in a MD time step.


next up previous
Next: V. Molecular Dynamics Up: No Title Previous: IV. Statistical Mechanics as

College of Science WWW Development
Tue Nov 26 09:48:20 EST 1996