--------
Contents
--------

Chapter 1. Introduction
1-1 basic features
1-2 how to run the samples

Chapter 2. Input file: "predat.txt"
2-1 preparation of "predat.txt"
2-2 CIF converter

Chapter 3. Symmetry analysis
3-1 specification of space group
3-2 output file: "symdat.txt"

Chapter 4. SFLCAO calculations
4-1 output file: "output.txt"
4-2 output file: "atomic.txt", "energy.txt", and "kpoint.txt"
4-3 output file: "band....txt", "..._dos.txt", and "..._nos.txt"

Appendix A. Key words

References



-----------------------
Chapter 1. Introduction
-----------------------

In this chapter, we explain the basic features of RF and how to run
the samples.

1-1 basic features

RF is a set of software programs for relativistic full-potential
first-principles calculations based on density functional theory
[1-3].  The systems to be studied using RF are molecules, 1D, 2D, and
3D periodic systems.  The top folder contains the following two
folders: the FF01 and SF01 folders.  The FF01 folder contains the
files for the fully relativistic full-potential LCAO (FFLCAO)
calculations [1,2] and the SF01 folder contains those for the scalar
relativistic full-potential LCAO (SFLCAO) calculations [1,3].

In the FFLCAO calculations, all the relativistic effects including
spin-orbit coupling are taken into account by solving the Dirac
equation.  On the other hand, in the SFLCAO calculations, spin-orbit
coupling is taken into account by an appropriate averaging procedure.
Note that the FFLCAO calculations usually take about ten times longer
than the SFLCAO calculations.  For this reason, the SFLCAO
calculations are recommended if you are not interested in spin-orbit
coupling.

In this document, we will mostly explain how to carry out the SFLCAO
calculations otherwise stated explicitly.  However, you can understand
how to carry out the FFLCAO calculations by replacing "SFLCAO" with
"FFLCAO" and/or "01s" with "01f" in the command and/or file names in
the description below.

1-2 how to run the samples

We explain how to run the samples in the SF01 folder,
"predat_<system>.txt".  Here, <system> is the system name and
represents, for example, H2-mol, polyacetylene, graphene, or Si.  The
samples that have the system names with "-mol" are for molecules.  On
the other hand, the samples that have the system names without "-mol"
are for 1D, 2D, or 3D periodic systems.  Note that all the samples are
only for demonstration purposes and the accuracy of some of the
calculation results may not be sufficient for scientific research.

First, you make a copy of one of the samples and rename it to
"predat.txt".  This is the default name for the input file.  Next, you
launch the menu for the SFLCAO calculations by double clicking the
"run01s.bat" file.  Then, you will see the menu below:

  ======================
  1) CIF converter           To select 1, you need cifdat.cif as an input file.
  2) Symmetry analysis       To select 2, you must specify nosg in predat.txt.
  3) SFLCAO calculations     Otherwise you must select 3.
  ======================
  Select 1, 2, or 3:

For the samples for molecules, you must select 3.  For the samples for
periodic systems, you first select 2 and then type "y" as an answer to
the following question that asks whether to proceed to the SFLCAO
calculations or not:

  Proceed to 3) SFLCAO calculations? (y or n):

By default, the output of the SFLCAO calculations is written to the
"output.txt" file.  If you carry out several runs, the back up files
are saved as "output<number>.txt", where <number> is a serial number
represented by a 2-digit integer.


-----------------------------------
Chapter 2. Input file: "predat.txt"
-----------------------------------

In this chapter, we explain how to prepare the input file, "predat.txt".

2-1 preparation of "predat.txt"

In the [ key words ] section, you can specify some options for the
SFLCAO calculations.  Most important key words are "spin", "nosg_...",
"skpt_yes", "satm_( ... )", "cfrc_no", "idip_yes", "svbf_no", "steep",
"relax", "xcef_...", "flvl_...", "lpeq_...", "ldff_...", "band",
"ndiv_...", and "dos".  The details will be found in Appendix A.  In
particular for periodic systems, it is very useful for saving
computation time to use the three key words, "nosg_...", "skpt_yes",
and "satm_( ... )".  The details of these three key words will be
given in Chapter 3.  Also, it is worth noting that the
exchange-correlation energy functional can be selected using the key
word "xcef_...".  The details will be found at the entry "xcef_..." in
Appendix A.

In the [ parameters ] section, you specify some important parameters
for the SFLCAO calculations as follows.

nopt
  You control the number of structure optimization using this
  parameter.  When "nopt" is equal to 1, the structure is not
  optimized but the forces are calculated if "cfrc_no" is not
  specified in the [ key words ] section.  When "nopt" is larger than
  1, the structure optimization is performed.  By default, the scheme
  for structure optimization is the conjugate gradient method.  You
  can select the steepest decent or relaxation method using the key
  words, "steep" or "relax" in the [ key words ] section.  The details
  will be found in Appendix A.

nscf
  You specify the number of iterations in the SCF loop.  If you intend
  to carry out structure optimization, i.e., the "nopt" parameter
  larger than 1, the number of iterations in the SCF loop reduces to,
  by default, one fifth for the second and subsequent structures in
  the structure optimization.

ascf
  You specify the rate in the density mixing scheme.  The larger
  "ascf" means the larger rate for the output density.  Typical values
  for stable systems are about 0.3 while those for unstable systems
  like metals are about 0.1 or smaller.

tscf
  You specify the degree of smearing (in eV) in the electron
  occupations of the energy levels.  By default, the scheme is the
  Fermi-Dirac smearing.  You can use the Gaussian smearing scheme
  using the key word "flvl_2".

xscf
  You specify the tolerance to exit the SCF loop before the loop count
  reaches the maximum iteration number given by "nscf".  

ecut
  You specify the cut off energy (in eV) for the plane waves used in
  the mixed basis calculations of 3D periodic systems.  From our
  experience, "ecut" of 50 eV works well.  Note that too large ecut
  results in a catastrophic behavior.

In the [ energy range ] section, you specify the minimum and maximum
energies (in eV) to be calculated in the DOS calculations.

In the [ electric fields ] section, you specify the external electric
field (in V/A) applied to the system.  Ex should be zero for 1D
periodic systems.  Also Ex and Ey should be zero for 2D periodic
systems.  All of Ex, Ey, and Ez should be zero for 3D systems.

In the [ unit cell vectors ] section, you specify the primitive
vectors in real space, a1, a2, and a3 (in A) as well as the k-point
mesh in the Brillouin zone.  The k-point mesh for the SCF calculations
should be specified under "kpt_scf" and that for the DOS calculations
should be specified under "kpt_dos".  The default k-point mesh is
generated by the Monkhorst-Pack scheme [4].  Furthermore, you specify
the conventional cell vectors, a, b, and c if they are different from
a1, a2, and a3.  This is very important for utilizing the symmetry of
the system.  If the components of the unit cell vectors contain the
square root of 3 as a factor as in the trigonal and hexagonal systems,
it is strongly recommended that you input those components so as to
ensure the symmetry in the 16-digit precision.

In the [ band path ] section, you specify the path in the Brillouin
zone for the band-structure calculations.  The path may consist of
several line segments connected at vertex points.  A leap is possible
between two vertex points by separating them with a blank line.
Suppose the wave vector k is given as a linear combination of the
primitive vectors in reciprocal space, b1, b2, and b3, i.e., k = q1*b1
+ q2*b2 + q3*b3, where q1, q2, and q3 are the coefficients of the
linear combination.  Then, you may specify q1, q2, and q3 for the
vertex points at both ends of each line segment.  If you want to make
a leap between two vertex points, you simply insert a blank line
between them.  By default, the number of points in each line segment
is 10.  You can choose any positive integer greater than 1 using the
key word "ndiv_..." in the [ key words ] section.  For example,
"ndiv_100" is usually sufficient if you want fine divisions of line
segments in the path.

In the [ character ] section, you specify q1, q2, and q3 for the k
point where you want to know the wave function.  Note that only one
set of q1, q2, and q3 is allowed in this section.

In the [ data of atoms ] section, you specify the symbols, the
coordinates (in A), the charges, and the spins for the atoms in the
system.  If you want to fix some of the coordinates during structure
optimization, add the "!" mark right after the coordinates to be
fixed.  Also you may specify Z - Ne for the charge of an atom, where Z
is the atomic number and Ne is the number of electrons in the atom.
You may specify Ne_up - Ne_down for the initial spin of the atom,
where Ne_up and Ne_down are the number of up- and down-spin electrons
of the atom, respectively.

2-2 CIF converter

For periodic systems, it is very helpful for preparing "predat.txt" to
utilize the crystallographic information file (CIF) if available [5].
To utilize the CIF, the following items must be supplied:

  _space_group_IT_number
  _cell_length_a
  _cell_length_b
  _cell_length_c
  _cell_angle_alpha
  _cell_angle_beta
  _cell_angle_gamma
  _atom_site_label
  _atom_site_fract_x
  _atom_site_fract_y
  _atom_site_fract_z

Note that, when the fractional coordinates in the CIF are multiple of
one third, for example, 0.33333 and/or 0.66667, it is strongly
recommended to modify them manually in advance to 0.3333333333333333
and/or 0.6666666666666667 to ensure the symmetry to hold in the
16-digit precision.

The procedure for generating "predat.txt" utilizing the CIF is as
follows.  First, you make a copy of the CIF and rename it to
"cifdat.cif".  This is the default name for the input file to convert
the CIF to "predat.txt".  Next, you launch the menu for the SFLCAO
calculations by double clicking "run01s.bat" as already explained in
Section 1-2.  Then, you select 1) CIF converter.  This generates
"predat.txt" automatically.  However, you may need to modify the
generated "predat.txt" manually.  In particular, you always need the
manual modification for magnetic systems to specify "spin" at the
[ key words ] section and the initial spins at the [ data of atoms ]
section.



----------------------------
Chapter 3. Symmetry analysis
----------------------------

In this chapter, we explain how to utilize the symmetry of periodic
systems in advance of the SFLCAO calculations.  Note that you don't
need the symmetry analsys for molecules.

3-1 specification of space group

To utilize the symmetry of periodic systems, you specify the
space-group number in "predat.txt" using the key word "nosg_...".  The
list of the space-group numbers can be found in the "SPACEGROUP.txt"
file in the top folder.  You will find that the space-group numbers
consist of an integer and, optionally, with a setting symbol.  The
procedure for carrying out the symmetry analysis is as follows.

First, you launch the menu for the SFLCAO calculations by double
clicking "run01s.bat" as already explained in Section 1-2.  Then, you
select 2) Symmetry analysis.  This generates the "symdat.txt" file,
which contains the information of the symmetry of the system deduced
from the space-group number that you provide in "predat.txt".

3-2 output file: "symdat.txt"

In "symdat.txt", you first find the space group that you specify in
"predat.txt" using the key word "nosg_...".  Then, you find the
suggested two key words, "skpt_yes", and "satm_( ... )".  You should
check the grouping of equivalent atoms by inspecting the information
given: the lattice constants, the site symmetry multiplicity (SSM),
and the transformation by the symmetry operations.  In particular, SSM
is very useful for checking whether "predat.txt" is correct or not.
If you find something wrong with the generated information, you must
terminate the process and check "predat.txt" carefully.  Note that it
is your responsibility to specify the correct space-group number
"nosg_..." corresponding to the system structure you consider.  The
following site may be useful for identifying the space group of the
system: http://stokes.byu.edu/iso/findsym.php



------------------------------
Chapter 4. SFLCAO calculations
------------------------------

In this chapter, we explain how to see the results of the SFLCAO
calculations in the output files, "output.txt" and "atomic.txt".  We
also explain the output files for the band structure and the DOS
calculations.

4-1 output file: "output.txt"

The first line of "output.txt" shows the start time of the SFLCAO
calculations and, if the SFLCAO calculations finish without errors,
the last line shows the end time of the SFLCAO calculations.  You can
know the total computation time from the difference between them.

The next part of "output.txt" is the contents of the input file,
"predat.txt".  This is useful for preserving the conditions of
computation.

After the "predat.txt" part, the main results of the SFLCAO
calculations come out.

In the [ chkprm ] section, the controlling parameters for the SFLCAO
calculations are shown first.  Also the type of the
exchange-correlation functional and, if the system is 1D, 2D, or 3D,
the scheme for the Brillouin-zone integration is shown.

In the [ infnto ] section, the information of atoms and atomic
orbitals is shown.  The atomic orbitals are shown, for example, as "Ti
4s*( 5)", which means that the titanium 4s* orbital of the fifth atom.
Here the "*" mark after "4s" means the 4s orbital of the Ti^2+ atom as
shown in the "atomic.txt" file.  The details will be found in Section
4-2.

The output specific to the SCF mode is as follows.

In the [ infstr ] section, the information on the reduction of the
number of k points from full Brillouin zone (FBZ) to irreducible
Brillouin zone (IBZ) is shown if the key word "skpt_yes" is used.

In the [ charge ] section, the electronic occupation numbers for atoms
and atomic orbitals (basis functions) are shown.

In the [ energy ] section, the orbital energy of the highest occupied
level, eho, and that of the lowest unoccupied level, elu, are shown
together with their difference, ehl, and the Fermi level, efl.  Also
the total energies are shown.  The symbols are as follows.

  eki : kinetic energy
  enn : nuclear-nuclear repulsion energy
  ene : nuclear-electron attraction energy
  eee : electron-electron repulsion energy
  ees : electrostatic energy, i.e., ees = enn + ene + eee
  eex : exchange energy
  eco : correlation energy
  exf : energy originated in the external electric field
  eto : total energy, i.e., eto = eki + ees + eex + eco + exf
  eia : non-selfconsistent LSDA total energy of isolated atoms
        Note that isolated atoms are spin unpolarized for the FFLCAO
        calculations.
  ebi : a rough estimate of cohesive energy, i.e., ebi = eia - eto
  eha : ebi for the first SCF iteration, i.e., the Harris energy
  edv : measure of the convergence of the SCF calculations

In the [ clcefg ] section, the information on the electric field
gradients at nuclear positions are shown. The electric field
gradients, eV11/h, eV22/h, and eV33/h, are given in unit of MHz/barn
with the directions of the principal axes, px, py, and pz.

After the SCF loop ends, the final energies are shown for convinience
and the information on the structure are shown.

The output specific to the band mode is as follows.

In the [ elevel ] section, the orbital energies (in eV) for each k
point are shown for convenience.  Note that the analysis of the band
structure should be based on the "band<number>.txt" files for
nonmagnetic materials and "band<number>u.txt" and "band<number>d.txt"
for magnetic materials, where <number> is a 4-digit integer.  See
Section 4-3 for details.

The output specific to the DOS mode is few in the "output.txt".  The
analysis of DOS should be based on the "..._dos.txt" and "..._nos.txt"
files.  See Section 4-3 for details.

4-2 output file: "atomic.txt", "energy.txt", and "kpoint.txt"

The "atomic.txt" file contains the orbital energies and the total
energies.  Note that there are not only those for neutral atoms but
also those for positively charged atoms.  For positively charged
atoms, the labels of atomic orbitals are shown with "*", "!", "^", and
"~".  The exchange-correlation energy functional used for the atomic
calculations are exactly the same as that for the SFLCAO calculations
of the system.

For the SCF mode, the status of the SFLCAO calculations can be
monitored by checking the "energy.txt" file.  This file shows the
status of the SFLCAO calculations with the information of the orbital
and total energies in short format.

For the band or DOS mode, the status of the SFLCAO calculations can be
monitored by checking the "kpoint.txt" file.  This file shows the
status of the SFLCAO calculations indicating the number of k points
calculated.

4-3 output file: "band....txt", "..._dos.txt", and "..._nos.txt"

For the band mode, you will find the "band<number>.txt" files for
nonmagnetic materials and the "band<number>u.txt" and
"band<number>d.txt" files for up- and down-spin electrons,
respectively, for magnetic materials, where <number> is a 4-digit
integer.  You may plot the data in these files using an appropriate
plotting software.

For the DOS mode, you will find the "total_dos.txt" file for DOS for
nonmagnetic material and the "totalu_dos.txt" and "totald_dos.txt"
files for DOS for up- and down-spin electrons, respectively, along
with the "totals_dos.txt" file which is the sum of DOS for up- and
down-spin electrons.  Also the number of states (NOS) corresponding to
each "..._dos.txt" file is written in the "..._nos.txt" file.  In
particular, the NOS files, "total_nos.txt" for nonmagnetic materials
and "totals_nos.txt" for magnetic materials, are useful for
determining the Fermi level.  The partial density of states (PDOS) are
written in the "<atomic_orbital>_dos.txt" files as well as the
corresponding partial number of states (PNOS) files,
"<atomic_orbital>_nos.txt", where <atomic_orbital> is the atomic
orbital associated with the PDOS/PNOS file.



---------------------
Appendix A. Key words
---------------------

spin
  When the system you study is a magnetic material, you need to use
  "spin".  At the same time, you need to specify initail atomic spins
  at the [ data of atoms ] section.

nosg_...
  For periodic systems, you can utilize the symmetry of the system
  specifying the space-group number using "nosg_...".  The list of the
  space-group numbers or symbols available can be found in the
  "SPACEGROUP.txt" file in the top folder, which is generated using
  the software SgInfo [6,7].  In "SPACEGROUP.txt", the space-group
  numbers or symbols are listed in the leftmost column under the entry
  "Number".

skpt_yes
  If you want to reduce the number of k-points in the
  Brillouine zone sampling in the SCF calculations, you need to use
  "skpt_yes".  At the same time, you need to specify a set of
  equivalent-atom groups using "satm_( ... )".  By default, "skpt_yes"
  is disabled.

satm_( ... )
  The equivalent-atom groups are specified using "satm_( ... )".  You
  can generate the equivalent-atom groups automatically using the
  symmetry analysis explained in Chapter 3.

cfrc_no
  If you don't want to calculate forces, you need to use
  "cfrc_no".  By default, "cfrc_no" is disabled.

idip_yes
  If you want to use the electron density obtained by one of the sets
  of SCF calculations already carried out as a starting electron
  density for another set of SCF calculations, you can specify
  "idip_yes".  At the same time, you need to make a copy the electron
  density obtained the set of SCF calculations and rename it to
  "idip.d".

svbf_no
  In the SCF calculations, you can suppress writing the basis
  functions to the hard disk drive using "svbf_no".  By default,
  "svbf_no" is disabled.

steep
  If you want to use the steepest decent method for structure
  optimization, you need to specify "steep".  By default, the scheme
  for structure optimization is the conjugate gradient method.

relax
  If you want to use the relaxation method for structure optimization,
  you need to specify "relax".  By default, the scheme for structure
  optimization is the conjugate gradient method.

xcef_...
  You can use several types of exchange-correlation energy functional.
  For the local spin density approximation, you can use the following.
    xcef_1: Perdew-Zunger parametrization of Ceperley-Alder results [8,9]
    xcef_2: von Barth-Hedin expression with Janak modification [10,11]
    xcef_3: Vosko-Wilk-Nusair parametrization of Ceperley-Alder results [8,12]
    xcef_4: Perdew-Wang parametrization of Ceperley-Alder results [8,13]
  For the generalized gradient approximation, you can use the
  following.
    xcef_5: Perdew-Burke-Ernzerhof functional [14]
    xcef_6: Perdew-Burke-Ernzerhof functional revised for solids [15]
  By defualt, "xcef_4" is adopted.  Furthermore, you can use the
  MacDonald relativistic correction [16] by adding 10 to the number
  specified using "xcef_...".  For example, "xcef_14" means that the
  exchange-correlation energy functional adopted in the SFCLAO
  calculations is the Perdew-Wang parametrization of the
  Ceperley-Alder results with the MacDonald relativistic correction.

flvl_...
  The smearing scheme for electron occupations can be selected from
  the Fermi-Dirac smearing and the Gaussian smearing.
    flvl_1: the Fermi-Dirac smearing
    flvl_2: the Gaussian smearing
  By defualt, the Fermi-Dirac smearing is adopted.

lpeq_...
  The multipole expansion for the full-potential calculations of the
  electrostatic potential is carried out up to the degree specified
  using "lpeq_...".  The allowed values are "lpeq_0" to "lpeq_8".  By
  default, "lpeq_3" is adopted.

ldff_...
  The multipole expantion for the generalized gradient approximation
  is carried out up to l=ldff.  The allowed values are "ldff_0" to
  "ldff_8".  By default, "ldff_0" is adopted.

band
  For periodic systems, you can calculate band structures using
  "band" after the SCF calculations are carried out at least once.  At
  the same time, you need to specify the path in the Brillouin zone
  along which the orbital energies are calculated at the [ band path ]
  section.

ndiv_...
  The number of divisions of each segment of the path in the Brillouin
  zone given in the [ band path ] section can be specified using
  "ndiv_...".  By default, "ndiv_10" is adopted.  If you want a fine
  division, "ndiv_100" is recommended.

dos
  For periodic systems, you can calculate density of states using
  "dos" after the SCF calculations are carried out at least once.  At
  the same time, you need to specify the energy range at the [ energy
  range ] section.

Also the following key words can be used and will be explained in the
future.
  restart ovoa rsmt_yes svmt_no ceia_no fdip_yes sb db mmbf_yes
  iosv_yes iobl_yes saxs_yes hexagonal mscf_... cscf_... nocg_...
  nrcg_... vdcg_... glkp_... nodm_... nsdm_... gmdm_... cmrq_...
  nosq_... vatm_... keps_... aeps_... deps_... noos_... sdxf_...
  n1rs_... n2rs_... n3rs_... n1ks_... n2ks_... n3ks_...



----------
References
----------
[1]  S. Suzuki and K. Nakao, J. Phys. Soc. Jpn. 66, 3881 (1997).
[2]  S. Suzuki and K. Nakao, J. Phys. Soc. Jpn. 68, 1982 (1999).
[3]  S. Suzuki and K. Nakao, J. Phys. Soc. Jpn. 69,  532 (2000).
[4]  H. J. Monkhorst and J. D. Pack, Phys. Rev. B 13, 5188 (1976).
[5]  S. R. Hall, F. H. Allen, and I. D. Brown, Acta Cryst. A47, 655 (1991).
[6]  R. W. Grosse-Kunstleve, SgInfo - Space group Info (c) 1994-96,
     http://cci.lbl.gov/sginfo, the Computational Crystallography
     Initiative, Lawrence Berkeley National Laboratory.
[7]  R. W. Grosse-Kunstleve, Acta Cryst. A55, 383 (1999).
[8]  D. M. Ceperley and B. J. Alder, Phys. Rev. Lett. 45, 566 (1980).
[9]  J. P. Perdew and A. Zunger, Phys. Rev. B 23, 5048 (1981).
[10] U. von Barth and L. Hedin, J. Phys. C: Solid State Phys. 5, 1629 (1972).
[11] J. F. Janak, Solid State Commun. 25, 53 (1978).
[12] S. J. Vosko, L. Wilk, and M. Nusair, Can. J. Phys. 58, 1200 (1980).
[13] J. P. Perdew and Y. Wang, Phys. Rev. B 45, 13244 (1992).
[14] J. P. Perdew, K. Burke, and M. Ernzerhof, Phys. Rev. Lett. 77, 3865 (1996).
[15] J. P. Perdew, A. Ruzsinszky, G. I. Csonka, O. A. Vydrov, G. E. Scuseria,
     L. A. Constantin, X. Zhou, and K. Burke, Phys. Rev. Lett. 100, 136406
     (2008).
[16] A. H. MacDonald, J. Phys. C: Solid State Phys. 16, 3869 (1983).
