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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2. The charge-density Fourier coefficients may be complex.<br />

3. The EEPOT Fourier coefficients must be real (by definition).<br />

4. This format allows for the existence <strong>of</strong> different types <strong>of</strong> particles.<br />

5. Both the primitive-cell and simulation-cell translation vectors are included so that consistency<br />

checks can be made. Furthermore, this allows the data to be scaled appropriately if they are<br />

reused for a system <strong>of</strong> different size.<br />

6. The normalization <strong>of</strong> the density should be such that the G = 0 component is equal to the<br />

number <strong>of</strong> particles per primitive cell. This makes the density independent <strong>of</strong> simulation-cell<br />

size.<br />

Note: it is not necessary to regenerate this file for different supercell sizes, provided the lattice vectors<br />

in the ‘EEPOT’ set are obtainable from the lattice vectors in [x]wfn.data through scaling by a single<br />

parameter.<br />

7.7 CASL files<br />

7.7.1 The CASL file format<br />

casino is starting to make use <strong>of</strong> the casl serialization language and file format for data interchange.<br />

The casl serialization language defines a syntax to specify structured data by means <strong>of</strong> keywordvalue<br />

associations. The file format is inspired by yaml, and is reminiscent <strong>of</strong> Python code in its use<br />

<strong>of</strong> indentation.<br />

A casl file, usually named filename.casl, could look like this:<br />

keyword1: value1<br />

keyword2: value2<br />

keyword3:<br />

keyword4: value4<br />

keyword5: [ keyword6: value6, value7 ]<br />

value8<br />

where:<br />

• keyword1 is the label <strong>of</strong> a scalar item <strong>of</strong> value value1.<br />

• keyword3 is the label <strong>of</strong> a block item that contains the items labelled keyword4 and keyword5.<br />

• keyword5 is the label <strong>of</strong> another block item, represented in-line using square brackets and commas,<br />

that contains the item labelled keyword6 and an unnamed item <strong>of</strong> value value7.<br />

• value7 and value8 are the values <strong>of</strong> two unnamed items. Unnamed items are intended to be<br />

accessed by sequential order. Unnamed items cannot be block items.<br />

casl keywords are case- and whitespace- insensitive. The : and , characters must have a whitespace<br />

or newline immediately after them to be considered syntactically active.<br />

The specific keyword-value structures available in a given casl block depends on the block, as described<br />

below, but the underlying syntax is the same for all <strong>of</strong> them.<br />

7.7.2 Compressed multi-determinant expansions: mdet.casl and cmdet.casl<br />

casino will produce an mdet.casl file when runtype is set to gen mdet casl while using a multideterminant<br />

expansion (see Sec. 7.4.4). This file describes the multi-determinant expansion (referring<br />

to the orbitals as integer indices but not specifying what they are), and is used by the det compress<br />

utility to produce a cost-efficient compressed version <strong>of</strong> the expansion.<br />

The mdet.casl file looks like this:<br />

73

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

Saved successfully!

Ooh no, something went wrong!