<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.sklogwiki.org/SklogWiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=134.109.16.22</id>
	<title>SklogWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://www.sklogwiki.org/SklogWiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=134.109.16.22"/>
	<link rel="alternate" type="text/html" href="http://www.sklogwiki.org/SklogWiki/index.php/Special:Contributions/134.109.16.22"/>
	<updated>2026-04-30T22:12:05Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>http://www.sklogwiki.org/SklogWiki/index.php?title=Grand_canonical_Monte_Carlo&amp;diff=13214</id>
		<title>Grand canonical Monte Carlo</title>
		<link rel="alternate" type="text/html" href="http://www.sklogwiki.org/SklogWiki/index.php?title=Grand_canonical_Monte_Carlo&amp;diff=13214"/>
		<updated>2012-11-22T15:29:04Z</updated>

		<summary type="html">&lt;p&gt;134.109.16.22: /* Theoretical basis */  fixed typo and link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Grand-canonical ensemble Monte Carlo&#039;&#039;&#039; (GCEMC or GCMC) is a very versatile and powerful [[Monte Carlo]] technique that explicitly accounts for density fluctuations at fixed volume and [[temperature]]. This is achieved by means of trial insertion and deletion of molecules. Although this feature has made it the preferred choice for the study of [[Interface |interfacial]] phenomena, in the last decade &lt;br /&gt;
[[grand canonical ensemble | grand-canonical ensemble]] simulations have also found widespread applications in the study of bulk properties. Such applications had been hitherto limited by the  very low particle insertion and deletion probabilities, but the development of the [[Configurational bias Monte Carlo |configurational bias]] grand canonical technique has very much improved the situation.&lt;br /&gt;
&lt;br /&gt;
== Theoretical basis ==&lt;br /&gt;
In the grand canonical ensemble, one first chooses  [[Random numbers |randomly]] whether&lt;br /&gt;
a trial particle insertion or deletion is attempted. If insertion is chosen,&lt;br /&gt;
a particle is placed with uniform probability density inside the system.&lt;br /&gt;
If   deletion is chosen, then one deletes one out of &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; particles&lt;br /&gt;
randomly. The trial move is then accepted or rejected according to the&lt;br /&gt;
usual Monte Carlo  lottery.&lt;br /&gt;
As usual, a trial move from an original state (&amp;lt;math&amp;gt;o&amp;lt;/math&amp;gt;) to a new state (&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) is accepted with probability&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; acc(o \rightarrow n) = min \left (1, q  \right ) &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;   q = \frac{ \alpha(n \rightarrow o)}{\alpha(o \rightarrow n)} \times \frac{f(n)}{f(o)} \qquad\qquad\text{(1)}  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt; \alpha(o \rightarrow n) &amp;lt;/math&amp;gt; is the probability density of&lt;br /&gt;
attempting trial move from state &amp;lt;math&amp;gt;o&amp;lt;/math&amp;gt; to state &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; (also known as underlying&lt;br /&gt;
probability), while &amp;lt;math&amp;gt;f(o)&amp;lt;/math&amp;gt; is the probability density of state &amp;lt;math&amp;gt;o&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As noted by Norman and Filinov &amp;lt;ref&amp;gt;G. E. Norman and V. S. Filinov &amp;quot;Investigations of phase transitions by a Monte-Carlo method&amp;quot;, High Temperature &#039;&#039;&#039;7&#039;&#039;&#039; pp. 216-222 (1969)&amp;lt;/ref&amp;gt;, evaluation of the proper acceptance rules requires very careful interpretation of the (classical) grand canonical probability density: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;  f_L({\mathbf r}_1,{\mathbf r}_2 ..., {\mathbf r}_N) \propto \frac{\Lambda^{-3N}}{N!} e^{\beta \mu N} e^{-\beta U_N}\qquad\qquad\text{(2)}      &amp;lt;/math&amp;gt;      &lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; is the total number of particles, &amp;lt;math&amp;gt;\mu&amp;lt;/math&amp;gt; is the [[chemical potential]], &amp;lt;math&amp;gt;\beta := 1/k_B T&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\Lambda&amp;lt;/math&amp;gt; is the [[De Broglie thermal wavelength|de Broglie thermal wavelength]].&lt;br /&gt;
&lt;br /&gt;
The sub-index &#039;&#039;L&#039;&#039; makes emphasis on a particular definition of [[microstate]] in which particles are assumed to be distinguishable. Thus, &amp;lt;math&amp;gt;  f_L &amp;lt;/math&amp;gt;  should be interpreted as the probability density of a classical state with labelled particles, having labelled particle 1 in position &amp;lt;math&amp;gt;{\mathbf r}_1&amp;lt;/math&amp;gt;, labelled particle 2 in position &amp;lt;math&amp;gt;{\mathbf r}_2&amp;lt;/math&amp;gt; and so on. Since labelling of the particles has no physical significance whatsoever, there are &amp;lt;math&amp;gt;N!&amp;lt;/math&amp;gt; identical states which result from permutation of the labels (this explains the &amp;lt;math&amp;gt;N!&amp;lt;/math&amp;gt; term in the denominator). Hence, the probability of the significant microstate of undistinguishable particles, i.e., one with &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; particles at positions &amp;lt;math&amp;gt; {\mathbf r}_1&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt; {\mathbf r}_2&amp;lt;/math&amp;gt;, etc., irrespective of the labels, will be given by:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; f_U( \{{\mathbf r}_1,{\mathbf r}_2 ..., {\mathbf r}_N   \} ) \propto \sum_P&lt;br /&gt;
f({\mathbf r}_1,{\mathbf r}_2 ..., {\mathbf r}_N) = \Lambda^{-3N} e^{\beta \mu N} e^{-\beta U_N}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the &amp;lt;math&amp;gt;U&amp;lt;/math&amp;gt; subindex stands for &#039;&#039;unlabelled&#039;&#039;, the coordinates in parenthesis indicate that the positions are not attributed to any particular choice of labelling and the sum runs over all possible particle label permutations.&lt;br /&gt;
&lt;br /&gt;
Upon trial insertion of an extra particle, one obtains:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;  \frac{f_U(N+1)}{f_U(N)} = \Lambda^{-3} e^{\beta \mu } e^{-\beta ( U_{N+1} - U_N )}\qquad\qquad\text{(3)} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The probability density of attempting an insertion is &amp;lt;math&amp;gt; \alpha( N \rightarrow N+1 ) = \frac{1}{2} \frac{1}{V}  &amp;lt;/math&amp;gt;. The &amp;lt;math&amp;gt; 1/2 &amp;lt;/math&amp;gt; factor accounts for the probability of attempting an insertion (from the choice of insertion or deletion). The &amp;lt;math&amp;gt; 1/V&amp;lt;/math&amp;gt; factor results from placing the particle with uniform probability anywhere inside  the simulation box. The reverse attempt (moving from state of &amp;lt;math&amp;gt;N+1&amp;lt;/math&amp;gt; particles to the original &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; particle state) is chosen with probability: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha( N+1 \rightarrow N ) = \frac{1}{2} \frac{1}{N+1}  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the &amp;lt;math&amp;gt; 1/(N+1) &amp;lt;/math&amp;gt; factor results from random removal of one among &amp;lt;math&amp;gt;N+1&amp;lt;/math&amp;gt; particles. Therefore, the ratio of underlying probabilities is:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; \frac{\alpha(n\rightarrow o)}{\alpha(o\rightarrow n)} =&lt;br /&gt;
\frac{\alpha( N+1 \rightarrow N )}{\alpha( N \rightarrow N+1)} =    \frac{V}{N+1} \qquad\qquad\text{(4)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substitution of Eq.(3) and  Eq.(4) into Eq.(1) yields the&lt;br /&gt;
acceptance probability for attempted insertions:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; acc(N \rightarrow N+1) = \frac{V \Lambda^{-3} }{N+1} e^{\beta \mu } e^{-\beta ( U_{N+1} - U_N )} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the inverse deletion process, similar arguments yield:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; acc(N \rightarrow N-1) = \frac{N}{V \Lambda^{-3} } e^{-\beta \mu } e^{-\beta ( U_{N-1} - U_N )} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Alternatively, one could derive the acceptance rules by considering the probability density of labelled states, Eq.(2) but taking into account  that there are then &amp;lt;math&amp;gt;N+1&amp;lt;/math&amp;gt; labelled microstates leading to the original &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; particle labelled state upon deletion (one for each possible label permutation of the deleted particle).&lt;br /&gt;
&lt;br /&gt;
The same acceptance rules are  obtained in reference books. Usually the problem of proper counting of states is circumvented by ignoring the labelling problem and assuming that the underlying probabilities for insertion and removal are equal.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references/&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Related reading&#039;&#039;&#039;&lt;br /&gt;
*[http://dx.doi.org/10.1080/00268977400102551 D. J. Adams &amp;quot;Chemical potential of hard-sphere fluids by Monte Carlo methods&amp;quot;, Molecular Physics &#039;&#039;&#039;28&#039;&#039;&#039; pp. 1241-1252 (1974)]&lt;br /&gt;
*[http://dx.doi.org/10.1080/00268977500100221 D. J. Adams &amp;quot;Grand canonical ensemble Monte Carlo for a Lennard-Jones fluid&amp;quot;, Molecular Physics &#039;&#039;&#039;29&#039;&#039;&#039; pp. 307-311 (1975)]&lt;br /&gt;
*[http://dx.doi.org/10.1063/1.2839302 Attila Malasics, Dirk Gillespie, and Dezső Boda &amp;quot;Simulating prescribed particle densities in the grand canonical ensemble using iterative algorithms&amp;quot;, Journal of Chemical Physics &#039;&#039;&#039;128&#039;&#039;&#039; 124102 (2008)]&lt;br /&gt;
[[Category: Monte Carlo]]&lt;/div&gt;</summary>
		<author><name>134.109.16.22</name></author>
	</entry>
	<entry>
		<id>http://www.sklogwiki.org/SklogWiki/index.php?title=Grand_canonical_Monte_Carlo&amp;diff=13213</id>
		<title>Grand canonical Monte Carlo</title>
		<link rel="alternate" type="text/html" href="http://www.sklogwiki.org/SklogWiki/index.php?title=Grand_canonical_Monte_Carlo&amp;diff=13213"/>
		<updated>2012-11-22T15:04:37Z</updated>

		<summary type="html">&lt;p&gt;134.109.16.22: /* Theoretical basis */ typos corrected&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Grand-canonical ensemble Monte Carlo&#039;&#039;&#039; (GCEMC or GCMC) is a very versatile and powerful [[Monte Carlo]] technique that explicitly accounts for density fluctuations at fixed volume and [[temperature]]. This is achieved by means of trial insertion and deletion of molecules. Although this feature has made it the preferred choice for the study of [[Interface |interfacial]] phenomena, in the last decade &lt;br /&gt;
[[grand canonical ensemble | grand-canonical ensemble]] simulations have also found widespread applications in the study of bulk properties. Such applications had been hitherto limited by the  very low particle insertion and deletion probabilities, but the development of the [[Configurational bias Monte Carlo |configurational bias]] grand canonical technique has very much improved the situation.&lt;br /&gt;
&lt;br /&gt;
== Theoretical basis ==&lt;br /&gt;
In the grand canonical ensemble, one first chooses  [[Random numbers |randomly]] whether&lt;br /&gt;
a trial particle insertion or deletion is attempted. If insertion is chosen,&lt;br /&gt;
a particle is placed with uniform probability density inside the system.&lt;br /&gt;
If   deletion is chosen, then one deletes one out of &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; particles&lt;br /&gt;
randomly. The trial move is then accepted or rejected according to the&lt;br /&gt;
usual Monte Carlo  lottery.&lt;br /&gt;
As usual, a trial move from an original state (&amp;lt;math&amp;gt;o&amp;lt;/math&amp;gt;) to a new state (&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) is accepted with probability&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; acc(o \rightarrow n) = min \left (1, q  \right ) &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;   q = \frac{ \alpha(n \rightarrow o)}{\alpha(o \rightarrow n)} \times \frac{f(n)}{f(o)} \qquad\qquad\text{(1)}  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt; \alpha(o \rightarrow n) &amp;lt;/math&amp;gt; is the probability density of&lt;br /&gt;
attempting trial move from state &amp;lt;math&amp;gt;o&amp;lt;/math&amp;gt; to state &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; (also known as underlying&lt;br /&gt;
probability), while &amp;lt;math&amp;gt;f(o)&amp;lt;/math&amp;gt; is the probability density of state &amp;lt;math&amp;gt;o&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As noted by Norman and Filinov &amp;lt;ref&amp;gt;G. E. Norman and V. S. Filinov &amp;quot;Investigations of phase transitions by a Monte-Carlo method&amp;quot;, High Temperature &#039;&#039;&#039;7&#039;&#039;&#039; pp. 216-222 (1969)&amp;lt;/ref&amp;gt;, evaluation of the proper acceptance rules requires very careful interpretation of the (classical) grand canonical probability density: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;  f_L({\mathbf r}_1,{\mathbf r}_2 ..., {\mathbf r}_N) \propto \frac{\Lambda^{-3N}}{N!} e^{\beta \mu N} e^{-\beta U_N}\qquad\qquad\text{(2)}      &amp;lt;/math&amp;gt;      &lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; is the total number of particles, &amp;lt;math&amp;gt;\mu&amp;lt;/math&amp;gt; is the [[chemical potential]], &amp;lt;math&amp;gt;\beta := 1/k_B T&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\Lambda&amp;lt;/math&amp;gt; is the de [[De Broglie thermal wavelength]].&lt;br /&gt;
&lt;br /&gt;
The sub-index &#039;&#039;L&#039;&#039; makes emphasis on a particular definition of [[microstate]] in which particles are assumed to be distinguishable. Thus, &amp;lt;math&amp;gt;  f_L &amp;lt;/math&amp;gt;  should be interpreted as the probability density of a classical state with labelled particles, having labelled particle 1 in position &amp;lt;math&amp;gt;{\mathbf r}_1&amp;lt;/math&amp;gt;, labelled particle 2 in position &amp;lt;math&amp;gt;{\mathbf r}_2&amp;lt;/math&amp;gt; and so on. Since labelling of the particles has no physical significance whatsoever, there are &amp;lt;math&amp;gt;N!&amp;lt;/math&amp;gt; identical states which result from permutation of the labels (this explains the &amp;lt;math&amp;gt;N!&amp;lt;/math&amp;gt; term in the denominator). Hence, the probability of the significant microstate of undistinguishable particles, i.e., one with &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; particles at positions &amp;lt;math&amp;gt; {\mathbf r}_1&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt; {\mathbf r}_2&amp;lt;/math&amp;gt;, etc., irrespective of the labels, will be given by:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; f_U( \{{\mathbf r}_1,{\mathbf r}_2 ..., {\mathbf r}_N   \} ) \propto \sum_P&lt;br /&gt;
f({\mathbf r}_1,{\mathbf r}_2 ..., {\mathbf r}_N) = \Lambda^{-3N} e^{\beta \mu N} e^{-\beta U_N}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the &amp;lt;math&amp;gt;U&amp;lt;/math&amp;gt; subindex stands for &#039;&#039;unlabelled&#039;&#039;, the coordinates in parenthesis indicate that the positions are not attributed to any particular choice of labelling and the sum runs over all possible particle label permutations.&lt;br /&gt;
&lt;br /&gt;
Upon trial insertion of an extra particle, one obtains:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;  \frac{f_U(N+1)}{f_U(N)} = \Lambda^{-3} e^{\beta \mu } e^{-\beta ( U_{N+1} - U_N )}\qquad\qquad\text{(3)} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The probability density of attempting an insertion is &amp;lt;math&amp;gt; \alpha( N \rightarrow N+1 ) = \frac{1}{2} \frac{1}{V}  &amp;lt;/math&amp;gt;. The &amp;lt;math&amp;gt; 1/2 &amp;lt;/math&amp;gt; factor accounts for the probability of attempting an insertion (from the choice of insertion or deletion). The &amp;lt;math&amp;gt; 1/V&amp;lt;/math&amp;gt; factor results from placing the particle with uniform probability anywhere inside  the simulation box. The reverse attempt (moving from state of &amp;lt;math&amp;gt;N+1&amp;lt;/math&amp;gt; particles to the original &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; particle state) is chosen with probability: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; \alpha( N+1 \rightarrow N ) = \frac{1}{2} \frac{1}{N+1}  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the &amp;lt;math&amp;gt; 1/(N+1) &amp;lt;/math&amp;gt; factor results from random removal of one among &amp;lt;math&amp;gt;N+1&amp;lt;/math&amp;gt; particles. Therefore, the ratio of underlying probabilities is:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; \frac{\alpha(n\rightarrow o)}{\alpha(o\rightarrow n)} =&lt;br /&gt;
\frac{\alpha( N+1 \rightarrow N )}{\alpha( N \rightarrow N+1)} =    \frac{V}{N+1} \qquad\qquad\text{(4)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Substitution of Eq.(3) and  Eq.(4) into Eq.(1) yields the&lt;br /&gt;
acceptance probability for attempted insertions:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; acc(N \rightarrow N+1) = \frac{V \Lambda^{-3} }{N+1} e^{\beta \mu } e^{-\beta ( U_{N+1} - U_N )} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the inverse deletion process, similar arguments yield:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; acc(N \rightarrow N-1) = \frac{N}{V \Lambda^{-3} } e^{-\beta \mu } e^{-\beta ( U_{N-1} - U_N )} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Alternatively, one could derive the acceptance rules by considering the probability density of labelled states, Eq.(2) but taking into account  that there are then &amp;lt;math&amp;gt;N+1&amp;lt;/math&amp;gt; labelled microstates leading to the original &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; particle labelled state upon deletion (one for each possible label permutation of the deleted particle).&lt;br /&gt;
&lt;br /&gt;
The same acceptance rules are  obtained in reference books. Usually the problem of proper counting of states is circumvented by ignoring the labelling problem and assuming that the underlying probabilities for insertion and removal are equal.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references/&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Related reading&#039;&#039;&#039;&lt;br /&gt;
*[http://dx.doi.org/10.1080/00268977400102551 D. J. Adams &amp;quot;Chemical potential of hard-sphere fluids by Monte Carlo methods&amp;quot;, Molecular Physics &#039;&#039;&#039;28&#039;&#039;&#039; pp. 1241-1252 (1974)]&lt;br /&gt;
*[http://dx.doi.org/10.1080/00268977500100221 D. J. Adams &amp;quot;Grand canonical ensemble Monte Carlo for a Lennard-Jones fluid&amp;quot;, Molecular Physics &#039;&#039;&#039;29&#039;&#039;&#039; pp. 307-311 (1975)]&lt;br /&gt;
*[http://dx.doi.org/10.1063/1.2839302 Attila Malasics, Dirk Gillespie, and Dezső Boda &amp;quot;Simulating prescribed particle densities in the grand canonical ensemble using iterative algorithms&amp;quot;, Journal of Chemical Physics &#039;&#039;&#039;128&#039;&#039;&#039; 124102 (2008)]&lt;br /&gt;
[[Category: Monte Carlo]]&lt;/div&gt;</summary>
		<author><name>134.109.16.22</name></author>
	</entry>
	<entry>
		<id>http://www.sklogwiki.org/SklogWiki/index.php?title=Metropolis_Monte_Carlo&amp;diff=12898</id>
		<title>Metropolis Monte Carlo</title>
		<link rel="alternate" type="text/html" href="http://www.sklogwiki.org/SklogWiki/index.php?title=Metropolis_Monte_Carlo&amp;diff=12898"/>
		<updated>2012-06-13T08:37:45Z</updated>

		<summary type="html">&lt;p&gt;134.109.16.22: /* Main features */ grammar&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The &#039;&#039;&#039;Metropolis Monte Carlo&#039;&#039;&#039; technique &lt;br /&gt;
&amp;lt;ref&amp;gt;[http://dx.doi.org/10.1063/1.1699114  Nicholas Metropolis, Arianna W. Rosenbluth, Marshall N. Rosenbluth, Augusta H. Teller and Edward Teller, &amp;quot;Equation of State Calculations by Fast Computing Machines&amp;quot;, Journal of Chemical Physics &#039;&#039;&#039;21&#039;&#039;&#039; pp.1087-1092  (1953)]&amp;lt;/ref&amp;gt;&lt;br /&gt;
is a variant of the original [[Monte Carlo]] method proposed by [[Nicholas Metropolis]] and [[Stanislaw Ulam]] in 1949 &amp;lt;ref&amp;gt;[http://links.jstor.org/sici?sici=0162-1459%28194909%2944%3A247%3C335%3ATMCM%3E2.0.CO%3B2-3 Nicholas Metropolis and S. Ulam &amp;quot;The Monte Carlo Method&amp;quot;, Journal of the American Statistical Association &#039;&#039;&#039;44&#039;&#039;&#039; pp. 335-341 (1949)]&amp;lt;/ref&amp;gt;&lt;br /&gt;
== Main features ==&lt;br /&gt;
Metropolis Monte Carlo simulations can be carried out in different ensembles. For the case of one-component systems the usual ensembles are:&lt;br /&gt;
* [[Canonical ensemble]] (&amp;lt;math&amp;gt; NVT &amp;lt;/math&amp;gt; )&lt;br /&gt;
* [[Isothermal-isobaric ensemble]] (&amp;lt;math&amp;gt; NpT &amp;lt;/math&amp;gt;)&lt;br /&gt;
* [[Grand canonical ensemble]] (&amp;lt;math&amp;gt; \mu V T &amp;lt;/math&amp;gt;)&lt;br /&gt;
In the case of mixtures, it is useful to consider the so-called [[Semi-grand ensembles]].&lt;br /&gt;
The purpose of these techniques is to sample representative configurations of the system at the corresponding&lt;br /&gt;
thermodynamic conditions. The sampling techniques  make use of the so-called pseudo-[[Random numbers |random number]] generators.&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
A configuration is a microscopic realisation of the &#039;&#039;thermodynamic state&#039;&#039; of the system.&lt;br /&gt;
To define a configuration (denoted as &amp;lt;math&amp;gt; \left. X \right. &amp;lt;/math&amp;gt; ) we usually require:&lt;br /&gt;
*The position coordinates of the particles&lt;br /&gt;
*Depending on the problem, other variables like volume, number of particles, etc.&lt;br /&gt;
The probability of a given configuration, denoted as &amp;lt;math&amp;gt; \Pi \left(  X | k \right)  &amp;lt;/math&amp;gt;,&lt;br /&gt;
depends on the parameters &amp;lt;math&amp;gt; k &amp;lt;/math&amp;gt;  (e.g. [[temperature]], [[pressure]])&lt;br /&gt;
&lt;br /&gt;
Example: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; \Pi_{NVT}(X|T) \propto \exp \left[ - \frac{ U (X) }{k_B T} \right] &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In most of the cases &amp;lt;math&amp;gt; \Pi \left(  X | k \right)  &amp;lt;/math&amp;gt; exhibits the  following features:&lt;br /&gt;
* It is a function of many variables&lt;br /&gt;
* Only for a very small fraction of the configurational space the value of &amp;lt;math&amp;gt; \Pi \left(  X | k \right)  &amp;lt;/math&amp;gt; is not negligible. &lt;br /&gt;
Due to these properties, Metropolis Monte Carlo requires the use of &#039;&#039;&#039;Importance Sampling&#039;&#039;&#039; techniques&lt;br /&gt;
&lt;br /&gt;
== Importance sampling ==&lt;br /&gt;
&lt;br /&gt;
Importance sampling is useful to evaluate average values given by:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt; \langle A(X|k) \rangle = \int dX \Pi(X|k) A(X) &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
* &amp;lt;math&amp;gt; \left. X \right. &amp;lt;/math&amp;gt; represents a set of many variables,&lt;br /&gt;
* &amp;lt;math&amp;gt; \left. \Pi \right. &amp;lt;/math&amp;gt; is a probability distribution function which depends on &amp;lt;math&amp;gt; X &amp;lt;/math&amp;gt; and on the constraints (parameters) &amp;lt;math&amp;gt; k &amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt; \left. A \right. &amp;lt;/math&amp;gt; is an observable which depends on the &amp;lt;math&amp;gt; X &amp;lt;/math&amp;gt;&lt;br /&gt;
Depending on the behavior of &amp;lt;math&amp;gt; \left. \Pi \right. &amp;lt;/math&amp;gt; we can use to compute &amp;lt;math&amp;gt; \langle A(X|k) \rangle &amp;lt;/math&amp;gt; different numerical methods:&lt;br /&gt;
* If &amp;lt;math&amp;gt; \left. \Pi \right. &amp;lt;/math&amp;gt; is, roughly speaking, quite uniform: [[Monte Carlo Integration]] methods can be effective&lt;br /&gt;
* If &amp;lt;math&amp;gt; \left. \Pi \right. &amp;lt;/math&amp;gt; has significant values only for a small part of the configurational  space, Importance sampling could be the appropriate technique&lt;br /&gt;
====Outline of the Method====&lt;br /&gt;
* Random walk over &amp;lt;math&amp;gt; \left. X \right. &amp;lt;/math&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt; \left. X_{i+1}^{test} = X_{i} + \delta X \right. &amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
From the configuration at the i-th step one builds up a &#039;&#039;test&#039;&#039; configuration by slightly modifying some of the variables &amp;lt;math&amp;gt; X &amp;lt;/math&amp;gt;&lt;br /&gt;
* The test configuration is accepted as the new (i+1)-th configuration with certain criteria (which depends basically on &amp;lt;math&amp;gt; \Pi &amp;lt;/math&amp;gt;)&lt;br /&gt;
* If the test configuration is not accepted as the new configuration then: &amp;lt;math&amp;gt; \left. X_{i+1} = X_i \right. &amp;lt;/math&amp;gt;&lt;br /&gt;
The procedure is based on the [[Markov chain]] formalism, and on the [[Perron-Frobenius theorem]]. &lt;br /&gt;
The acceptance criteria must be chosen to guarantee that after a certain equilibration &#039;&#039;time&#039;&#039; a given configuration appears  with probability given by &amp;lt;math&amp;gt; \Pi(X|k) &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Temperature ==&lt;br /&gt;
&lt;br /&gt;
The [[temperature]] is usually fixed in Metropolis Monte Carlo simulations, since in classical statistics the kinetic degrees of freedom (momenta) can be generally, integrated out. However, it is possible to design procedures to perform Metropolis Monte Carlo simulations in the [[Microcanonical ensemble| microcanonical ensemble]] (NVE).&lt;br /&gt;
&lt;br /&gt;
See [[Monte Carlo in the microcanonical ensemble]]&lt;br /&gt;
&lt;br /&gt;
== Boundary Conditions ==&lt;br /&gt;
The simulation of homogeneous systems is usually carried out using [[periodic boundary conditions]].&lt;br /&gt;
&lt;br /&gt;
== Initial configuration ==&lt;br /&gt;
&lt;br /&gt;
The usual choices for the initial configuration in fluid simulations are:&lt;br /&gt;
&lt;br /&gt;
* an equilibrated configuration under similar conditions (for example see &amp;lt;ref&amp;gt;[http://dx.doi.org/10.1016/j.cpc.2005.02.006  Carl McBride, Carlos Vega and Eduardo Sanz &amp;quot;Non-Markovian melting: a novel procedure to generate initial liquid like phases for small molecules for use in computer simulation studies&amp;quot;, Computer Physics Communications  &#039;&#039;&#039;170&#039;&#039;&#039; pp. 137-143 (2005)]&amp;lt;/ref&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
* an ordered lattice structure. For details concerning the construction of such structures see: [[Lattice Structures | lattice structures]].&lt;br /&gt;
== Advanced techniques ==&lt;br /&gt;
:&#039;&#039;Main article: [[Monte Carlo]]&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Related reading&#039;&#039;&#039;&lt;br /&gt;
*[http://links.jstor.org/sici?sici=0162-1459%28194909%2944%3A247%3C335%3ATMCM%3E2.0.CO%3B2-3 Nicholas Metropolis and S. Ulam &amp;quot;The Monte Carlo Method&amp;quot;, Journal of the American Statistical Association &#039;&#039;&#039;44&#039;&#039;&#039; pp. 335-341 (1949)]&lt;br /&gt;
*[http://library.lanl.gov/cgi-bin/getfile?00326886.pdf Herbert L. Anderson &amp;quot;Metropolis, Monte Carlo, and the MANIAC&amp;quot;, Los Alamos Science &#039;&#039;&#039;14&#039;&#039;&#039; pp. 96-107 (1986)]&lt;br /&gt;
*[http://library.lanl.gov/cgi-bin/getfile?00326866.pdf N. Metropolis &amp;quot;The Beginnning of the Monte Carlo Method&amp;quot;  Los Alamos Science &#039;&#039;&#039;15&#039;&#039;&#039; pp. 125-130 (1987)]&lt;br /&gt;
*[http://cise.aip.org/getpdf/servlet/GetPDFServlet?filetype=pdf&amp;amp;id=CSENFA000002000001000065000001&amp;amp;idtype=cvips&amp;amp;prog=normal      Isabel Beichl and Francis Sullivan &amp;quot;The Metropolis Algorithm&amp;quot;,  Computing in Science &amp;amp; Engineering &#039;&#039;&#039;2&#039;&#039;&#039; Issue 1 pp. 65-69 (2000)]&lt;br /&gt;
*[http://dx.doi.org/10.1063/1.1632112 Marshall N. Rosenbluth &amp;quot;Genesis of the Monte Carlo Algorithm for Statistical Mechanics&amp;quot;, AIP Conference Proceedings &#039;&#039;&#039;690&#039;&#039;&#039;  pp. 22-30 (2003)]&lt;br /&gt;
*[http://dx.doi.org/10.1063/1.1632114 Marshall N. Rosenbluth &amp;quot;Proof of Validity of Monte Carlo Method for Canonical Averaging&amp;quot;, AIP Conference Proceedings &#039;&#039;&#039;690&#039;&#039;&#039;  pp. 32-38 (2003)]&lt;br /&gt;
*[http://dx.doi.org/10.1063/1.1632115 William W. Wood &amp;quot;A Brief History of the Use of the Metropolis Method at LANL in the 1950s&amp;quot;, AIP Conference Proceedings &#039;&#039;&#039;690&#039;&#039;&#039;  pp. 39-44 (2003)]&lt;br /&gt;
*[http://dx.doi.org/10.1063/1.1632124 David P. Landau &amp;quot;The Metropolis Monte Carlo Method in Statistical Physics&amp;quot;, AIP Conference Proceedings &#039;&#039;&#039;690&#039;&#039;&#039;  pp. 134-146 (2003)]&lt;br /&gt;
&lt;br /&gt;
[[Category: Monte Carlo]]&lt;/div&gt;</summary>
		<author><name>134.109.16.22</name></author>
	</entry>
</feed>