Simune Siesta Tutorial1
Simune Siesta Tutorial1
In this tutorial, we perform the energy optimization of a H2 molecule with SIESTA. Our
aim is to give a flavour of the general system descriptors included in the input file of a
SIESTA calculation, and a brief description of the self-consistent field method.
SIESTA<H2.fdf>H2.txt
where SIESTA is the siesta executable, and H2.fdf and H2.txt are the input and
output files, respectively. This simple SIESTA execution will take a few seconds to
finish. After a successful run of the program, you should have several files in your
directory, see Figure 1.1.
SIESTA users must be aware that there are a series of steps that should be followed to
obtain a well converged calculation, see Figure 1.1 . The generation of a pseudopotential
is a complex process, and every pseudopotential must be thoroughly checked before
use. Tutorial 3 provides basic guidelines on the generation and test of pseudopotentials.
Because SIESTA falls into category of methods with atom-centered basis sets, the basis
set must also be optimized in order to perform calculations within reasonable time and
1
Figure 1.1: Schematic representation of the input and outputs files in a SIESTA calcu-
lation. The prefix H2 is specified by the parameter SystemLabel in the input file.
precision, see Tutorial 4. The specific parameters that define the SIESTA calculation
(k-points, meshcutoff, XC, spin, etc) must also be carefully chosen.
Figure 1.2: Series of steps that should be followed to obtain a well converged calculation
2
system descriptors. However, it is important to stress out that the default values do not
always guarantee a converged calculation, see Tutorials 5, 6 and 7.
NumberOfSpecies 1
NumberOfAtoms 2
% block C h e m i c a l S p e c i es L a b e l
1 1 H
% endblock C h e m i c a l S p ec i e s L a b e l
The first number in a line in the data block ChemicalSpeciesLabel is the species
number. It is followed by the atomic number, and then by the desired label. This
3
label will be used to identify corresponding files, namely, pseudopotential file, user
basis file, basis output file, and local pseudopotential output.
Lattice Constant It is a real parameter that define the scale of the lattice vectors.
The value of this parameter is multiplied by each of the matrix LatticeVectors el-
ement.
LatticeVectors (block) It is a real matrix that contains (row) vectors that define
the lattice. Thus, we have full autonomy over the shape and size of cell. The cell
vectors are read in units of the lattice constant defined above. They are read as a
matrix CELL(ixyz,ivector), each vector being one line.
Notice that although the system considered in this tutorial is aperiodic (H2 molecule),
SIESTA still does use of periodic boundary conditions (PBC). Thus, it is needed
to introduce a vacuum region that should be large enough that periodic images
corresponding to adjacent replicas of the supercell do not interact significantly, see
Figure 1.3.
4
0.0 0.0 1.0
% endblock LatticeVectors
Once that the size of the cell is specified, the positions of the hydrogen atoms
within the cells are given using the AtomicCoordinatesAndAtomicSpecies block.
In this block the atom index are also indicated. Notice that the hydrogen atoms
are placed in the center of the cell, see Figure 1.4.
% block A t o m i c C o o r d i n a t e s A n d A t o m i c S p e c i e s
4.5000 5.0000 5.0000 1
5.5000 5.0000 5.0000 1
% endblock A t o m i c C o o r d i n a t e s A n d A t o m i c S p e c i e s
5
Figure 1.5: Self Consistent Method
of the H2 molecule. Type in the console the following command to check the energy of
the system in each of the SCF steps,
6
Notice that both total energy and electron density density variation (dDmax) are
minimal in the last SCF step, see Figure 1.6 and 1.7. The accuracy of the calculation of
energies and forces in a self-consistent-field loop can be tuned by specifying the number
of maximum and minimum number of SCF iterations per time step, mixing options, etc.
Those parameters are described in advances tutorials.
Figure 1.6: Electron density density variation (dDmax) as a function of SCF step
7
Figure 1.7: Total Energy as a function of SCF step