<?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=131.188.166.124</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=131.188.166.124"/>
	<link rel="alternate" type="text/html" href="http://www.sklogwiki.org/SklogWiki/index.php/Special:Contributions/131.188.166.124"/>
	<updated>2026-04-30T18:52:32Z</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=10116</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=10116"/>
		<updated>2010-04-07T12:46:06Z</updated>

		<summary type="html">&lt;p&gt;131.188.166.124: &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 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; 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 Filinov, evaluation of the proper acceptance rules requires very carefull interpretation of the (clasical) 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 parentheis indicate that the positions are not atributted to any particular choice of labelling and the sum runs over all posible 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;
# 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)&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>131.188.166.124</name></author>
	</entry>
</feed>