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.

6 Introductory user’s guide: how to use <strong>CASINO</strong><br />

6.1 Getting started<br />

This section gives basic practical details for running QMC calculations with casino, and is intended<br />

for new users. It assumes you already know something about the theory <strong>of</strong> VMC, DMC and wavefunction<br />

optimization. If you don’t then please see the standard references for general details about<br />

the methods (e.g., Refs. [10], [11], [12], [13], and the Theoretical Background section at the end <strong>of</strong><br />

this <strong>manual</strong>). Following the instructions in this section will not necessarily lead to publication-quality<br />

results, but should at least allow you to play with the code and get some feel for how it works.<br />

6.1.1 Trial wave functions<br />

Unless you’re interested in electron or electron–hole phases in the absence <strong>of</strong> an external potential, in<br />

which case you can start straight away, the first hurdle to doing research with casino is to generate<br />

a trial wave function using, for example, a DFT or HF calculation. Multideterminant quantum<br />

chemistry methods can also be used. This has to be done using an external program, which must<br />

either support casino directly, in that it is capable <strong>of</strong> writing out the wave function in a format that<br />

casino understands, or it must be supported indirectly by casino, in which case a conversion utility<br />

should be found under ~/<strong>CASINO</strong>/utils/wfn converters/ which can convert the information in its<br />

standard to output to casino format. Note that ‘writing out the wave function’ basically means<br />

writing out the geometry, the basis set and the coefficients that define the orbitals.<br />

The information defining the trial wave function generated by the external program lives in files whose<br />

name depends on the basis set in which the orbitals in the determinantal part <strong>of</strong> the wave function<br />

are expanded. These files are called gwfn.data (Gaussians), pwfn.data (plane waves), bwfn.data<br />

(blip functions), awfn.data (atomic orbitals given explicitly on a radial grid), dwfn.data (molecular<br />

orbitals for dimers given explicitly on a radial grid), or stowfn.data (Slater-type orbitals). These files<br />

will <strong>of</strong>ten be referred to generically with the name xwfn.data. For the case <strong>of</strong> blip orbitals, where the<br />

wave function file can get very large, you will <strong>of</strong>ten see the bwfn.data in its unformatted binary form<br />

bwfn.data.bin which takes up much less disk space (an older binary format bwfn.data.b1 is also<br />

supported). The choice <strong>of</strong> basis set has been found to depend largely on personal prejudice, though<br />

some consideration should be given to issues <strong>of</strong> computational efficiency.<br />

Gaussian, Slater-type, plane-wave and numerical atomic wave functions are taken directly from the<br />

generating code. The plane-wave DFT code pwscf/quantum espresso knows about blips, and is<br />

capable <strong>of</strong> internally transforming its plane-wave orbitals and writing out blip wave functions directly<br />

(in either binary or formatted forms). With other plane-wave DFT codes, the blip wave function files<br />

are generated by post-processing a plane-wave pwfn.data file using a casino utility called blip. It<br />

is desirable to carry out this transformation because plane waves are the worst possible basis set you<br />

could choose for QMC, since every basis function contributes at every point in space. Moreover, blips<br />

can be used to make the computer time for a casino calculation scale independently <strong>of</strong> system size<br />

(for energy-per-atom properties) or quadratically with system size (for total-energy properties). To<br />

achieve this, the delocalized orbitals generated by most DFT/HF programs need to undergo a linear<br />

transformation to a localized form, using the localizer utility before re-expanding in blips using the<br />

blip utility, though in practice this facility is rarely used.<br />

Generating trial wave functions currently requires you to have access to one <strong>of</strong> the codes listed in Sec.<br />

8. If you don’t have access to any <strong>of</strong> these codes and have a specific system in mind, then Mike Towler<br />

is known for being able to generate trial wave functions in record time on payment <strong>of</strong> a suitable fee<br />

(just to get you started he likes, in no particular order: bright shiny things, books about romance,<br />

yummy things to eat, poems, authorship on papers for which he hasn’t really done any work, cute<br />

cuddly toys, especially bears, and money).<br />

If you are using pseudopotentials you must be able to use the same ones in the orbital-generating code<br />

and in casino: see the note in the next section for details.<br />

6.1.2 Pseudopotentials<br />

casino is capable <strong>of</strong> running all-electron calculations, where core and valence electrons are explicitly<br />

included in the simulation, or pseudopotential calculations, where the core electrons are replaced by<br />

an effective potential. The latter approach is normally advantageous since the computer time required<br />

11

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

Saved successfully!

Ooh no, something went wrong!