Using the input generator

Performing Fleur calculations on some material always starts with the specification of a (prototype) unit cell. With this basic specification the Fleur input generator inpgen then generates a Fleur input file with a reasonable parametrization for the provided unit cell. In this section we discuss the basic usage of the input generator.

In general the input for the Fleur input generator consists of the definition of the unit cell shape as well as the definition of the atoms and atom positions in the cell. Optionally some additional parameters can be set to override or modify the automatic procedure used to determine the parametrization in the Fleur input file.

In the following the usage of the input generator is sketched in terms of a basic example. For a reference about the details of the inpgen input please see the respective section.

Using the input generator starts by writing a small text file containing the configuration of the unit cell. For a simple Si crystal such a file might look like:

Si bulk
&lattice latsys='cF', a0=1.8897269, a=5.43 /
2
14 0.125 0.125 0.125
14 -0.125 -0.125 -0.125


The first line of the file contains a comment. Here this comment is Si bulk. Next comes the definition of the crystal lattice. This is done in the &lattice line. It starts with the specification of the lattice system in latsys='cF'. cf specifies an fcc lattice. The line is completed with the setting of some parameters. In this case the parameter a is the lattice parameter of the fcc lattice and a0 is a factor that is multipied to all lattice parameters. Note that the input generator expects the lattice specification in units of Bohr radii ($a_0$). But since in this example a is provided in Angstrom we need the factor a0 to convert it to units of $a_0$.

In the next part of the inpgen input the atom positions are specified. This starts by providing the number of atoms in the next line. For this example system there are 2 atoms in the unit cell. The following lines define the atomic numbers and related atom positions in internal coordinates, i.e., in coordinates of the Bravais lattice vectors. 14 is the atomic number of Si and the two atoms are at $(1/8,1/8,1/8)$ and $(-1/8,-1/8,-1/8)$.

Consider that the name of the inpgen input file is inpSi.txt, a call to inpgen may look like:

inpgen -f inpSi.txt


With this command inpgen will generate a basic Fleur input file inp.xml. In addition a file sym.xml containing the symmetry operations and a file kpts.xml will be generated. These can be included into the inp.xml as well (See corresponding documention for inpgen). Furthermore a file struct.xsf is generated. This is an XCrysden structure file that can be used to visualize the just defined unit cell, e.g., to check for complex structures whether the setup is as expected. The output of the input generator can be found in the file out. If there are problems in generating the Fleur input file hints for the reason might be found in this file or directly on the terminal. The generated file FleurInputSchema.xsd is temporary. It is generated in every inpgen and fleur run and only contains the formal specification of the Fleur input file format.

Of course, there are many possible options of how to write an inpgen input. For the details the user can consult the inpgen reference section. A collection of (advanced) example inpgen inputs is available at the examples page.