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.

Note that this facility only exists in the <strong>of</strong>ficial version <strong>of</strong> crystal03 in binaries produced after<br />

December 2003, and that some early versions <strong>of</strong> crystal03 had a broken pseudopotential evaluator<br />

(which should now be fixed).<br />

The crystal run script included with casino will actually force the production <strong>of</strong> gwfn.data automatically<br />

if you invoke it with the -qmc flag when running the calculations, so all you need to do is<br />

type run -qmc input filename. If the calculation is periodic, the script will ask you how many different<br />

supercell sizes N you wish to generate, and then to input N sets <strong>of</strong> integer triplets indicating the<br />

supercell sizes (these must be a subset <strong>of</strong> the MP shrinking factors in the crystal input file). For<br />

example,<br />

% run -qmc h<br />

Number <strong>of</strong> different QMC supercell sizes to calculate? (Maximum 5)<br />

% 1<br />

Size <strong>of</strong> cell 1? (e.g., 2 2 2)<br />

% 2 2 2<br />

Put the script in the background with ‘Ctrl-Z’ then ‘bg’.<br />

If you want to do this by hand, rather than letting the run script do it for you, then the relevant part<br />

<strong>of</strong> the crystal properties input file looks like this (for periodic systems):<br />

QMC<br />

2 ! want to generate 2 supercell sizes i.e.<br />

2 2 2 ! a 2x2x2 one<br />

3 3 3 ! and a 3x3x3 one<br />

END<br />

For molecules, only the keyword ‘QMC’ is required with no additional input.<br />

8.4.4 Generating gwfn.data files with CRYSTAL06/09<br />

Note this is only possible with versions <strong>of</strong> crystal06 from 1 0 2 onwards, since the 1 0 1 version does<br />

not recognize the required CRYAPI OUT keyword.<br />

The entire process is automated by running crystal06/09 with the supplied script runcrystal. If you<br />

choose to do this, then simply typing runcrystal -qmc input filename will run the SCF calculation<br />

as normal then invoke all the necessary post-processing to generate the gwfn.data file automatically.<br />

The crystal09 version is run by default; crystal06 may be selected using the -06 flag.<br />

The only complication is in periodic systems where, before executing the crystal code, the run script<br />

will ask you how many different supercell sizes you require. You then need to input that many integer<br />

triplets (divisors <strong>of</strong> the crystal ‘shrinking factors’) to specify the size <strong>of</strong> each <strong>of</strong> the supercells. A<br />

gwfn.data file will then be generated for each required cell (appropriately labelled with the integer<br />

triplet—rename them before running with casino).<br />

Running the gwfn.data generation procedure <strong>manual</strong>ly<br />

If you choose to run crystal06/09 without our runcrystal script (say, with the scripts provided by<br />

the Torino people) then you will need to carry out the following <strong>manual</strong> procedure to generate the<br />

gwfn.data file(s).<br />

Note that runcrystal is an old csh script that does not support the <strong>CASINO</strong> archicture system<br />

(like, e.g., runqmc, runpwscf, runlouis). It is hoped that a modernized bash version which does this<br />

might appear in the future.<br />

Molecules<br />

After completing a converged DFT/HF run with the crystal06/09 crystal binary, the properties<br />

program needs to be run to produce the formatted data files needed by the casino crysgen06/09<br />

utilities. A minimal input file for the properties program in the case <strong>of</strong> a nonperiodic system is:<br />

NEWK<br />

1 0<br />

CRYAPI_OUT<br />

END<br />

104

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

Saved successfully!

Ooh no, something went wrong!