next up previous contents
Next: 3.2 Data files Up: 3 Using PWscf Previous: 3 Using PWscf   Contents

3.1 Input data

Input data is organized as several namelists, followed by other fields (``cards'') introduced by keywords. The namelists are

&CONTROL: general variables controlling the run
&SYSTEM: structural information on the system under investigation
&ELECTRONS: electronic variables: self-consistency, smearing
&IONS (optional): ionic variables: relaxation, dynamics
&CELL (optional): variable-cell optimization or dynamics

Optional namelist may be omitted if the calculation to be performed does not require them. This depends on the value of variable calculation in namelist &CONTROL. Most variables in namelists have default values. Only the following variables in &SYSTEM must always be specified:

ibrav (integer) Bravais-lattice index
celldm (real, dimension 6) crystallographic constants
nat (integer) number of atoms in the unit cell
ntyp (integer) number of types of atoms in the unit cell
ecutwfc (real) kinetic energy cutoff (Ry) for wavefunctions.

For metallic systems, you have to specify how metallicity is treated in variable occupations. If you choose occupations='smearing', you have to specify the smearing type smearing and the smearing width degauss. Spin-polarized systems are as a rule treated as metallic system, unless the total magnetization, tot_magnetization is set to a fixed value, or if occupation numbers are fixed (occupations='from input' and card OCCUPATIONS).

Explanations for the meaning of variables ibrav and celldm, as well as on alternative ways to input structural data, are in files PW/Doc/INPUT_PW.txt and PW/Doc/INPUT_PW.html. These files are the reference for input data and describe a large number of other variables as well. Almost all variables have default values, which may or may not fit your needs.

Comment lines in namelists can be introduced by a "!", exactly as in fortran code.

After the namelists, you have several fields (``cards'') introduced by keywords with self-explanatory names:

ATOMIC_SPECIES
ATOMIC_POSITIONS
K_POINTS
CELL_PARAMETERS (optional)
OCCUPATIONS (optional)
The keywords may be followed on the same line by an option. Unknown fields are ignored. See the files mentioned above for details on the available ``cards''.

Comments lines in ``cards'' can be introduced by either a ``!'' or a ``#'' character in the first position of a line.

Note about k points: The k-point grid can be either automatically generated or manually provided as a list of k-points and a weight in the Irreducible Brillouin Zone only of the Bravais lattice of the crystal. The code will generate (unless instructed not to do so: see variable nosym) all required k-points and weights if the symmetry of the system is lower than the symmetry of the Bravais lattice. The automatic generation of k-points follows the convention of Monkhorst and Pack.


next up previous contents
Next: 3.2 Data files Up: 3 Using PWscf Previous: 3 Using PWscf   Contents
2017-03-03