14.09.2014 Views

CASINO manual - Theory of Condensed Matter

CASINO manual - Theory of Condensed Matter

CASINO manual - Theory of Condensed Matter

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

• In Movie Settings choose Trajectory. The movie can be saved in the AVI or MPEG format.<br />

Choose by clicking on Format and tick the preferred format. Then check whether the name <strong>of</strong><br />

the temporary directory suggested is right (this is where the RGB files are created). Note that<br />

this directory should be free <strong>of</strong> RGB files belonging to other users. If this has to be changed<br />

then click on the Set working directory button and browse for the directory.<br />

• Type in the name <strong>of</strong> the movie in the box provided. Click on the Make Movie button.<br />

• The movie will be displayed in the Open GL Display screen. The .mpg or .avi movie file<br />

will be produced in the working directory being specified. They have to be viewed with other<br />

viewers, for example mpeg play for .mpg files.<br />

For an example movie made with vmd (a casino VMC simulation <strong>of</strong> cyclohexane) see www.tcm.phy.<br />

cam.ac.uk/~mdt26/downloads/cyclohexane2.mpg.<br />

11.2.2 JMOL<br />

jmol is a free, open source molecule viewer. It supports computers running Windows, Mac OS X and<br />

Linux/Unix systems. Jmol can be downloaded from jmol.sourceforge.net/<br />

• Type jmol. Click on File→ Open. Browse for the file movie.out and click Open.<br />

• Click on Display and untick the box for Bonds.<br />

• Click on Extras → Animate. An animation tool bar will appear. To start the movie click on<br />

the ‘play’ symbol.<br />

12 Detailed information: the VMC method<br />

12.1 Evaluating expectation values<br />

The expectation value <strong>of</strong> the Hamiltonian Ĥ with respect to the trial wave function Ψ can be written<br />

as<br />

∫ 〈Ĥ〉 = EL (R)|Ψ(R)| 2 dR<br />

∫<br />

|Ψ(R)|2 dR , (11)<br />

−1<br />

where E L (R) = Ψ (R)Ĥ(R)Ψ(R) is the local energy. We can evaluate this expectation value by<br />

using the Metropolis algorithm [24] to generate a sequence <strong>of</strong> configurations R distributed according<br />

to |Ψ(R)| 2 and averaging the corresponding local energies.<br />

12.2 The sampling algorithm<br />

The implementation <strong>of</strong> VMC in casino involves making trial moves, whether <strong>of</strong> a single electron or<br />

<strong>of</strong> the entire configuration, and accepting or rejecting the moves in accordance with the Metropolis<br />

algorithm. The Metropolis transition probability density is Gaussian <strong>of</strong> variance τ, where τ is the<br />

VMC time step (dtvmc).<br />

In the electron-by-electron algorithm, each step consists in proposing individual moves for each <strong>of</strong> the<br />

electrons and subject each move to a separate accept/reject step. In the configuration-by-configuration<br />

algorithm one configuration move is proposed per step, and is accepted or rejected as a whole.<br />

Another difference in the casino implementation <strong>of</strong> these two methods is that in the configuration-byconfiguration<br />

the local energy (and all other expectation values) are evaluated both before and after<br />

the move, and it is the average <strong>of</strong> the two, weighted by the acceptance probability, that enters the<br />

accumulation arrays. In the electron-by-electron algorithm we only evaluate the energy after having<br />

moved the configuration.<br />

The configuration-by-configuration algorithm has the disadvantage <strong>of</strong> suffering from long correlation<br />

times, which makes it in practice more expensive than the electron-by-electron algorithm in virtually<br />

all cases. Thus we will restrict our discussion below to the electron-by-electron algorithm.<br />

121

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!