Difference between revisions of "Explanations for C2H2 gs input files"

From salmon
Jump to: navigation, search
(Undo revision 489 by Noda (talk))
(Undo revision 488 by Noda (talk))
Line 1: Line 1:
== mandatory or recommended variables ==
+
== &unit ==
 
 
=== &unit ===
 
  
 
Mandatory: none
 
Mandatory: none
Line 16: Line 14:
 
For isolated systems (specified by <code>iperiodic = 0</code> in <code>&system</code>), DOS and PDOS are written by a.u. or 1/eV according to <code>unit_energy</code>. For other output files, the units are basically Angstrom/eV/fs at the present.
 
For isolated systems (specified by <code>iperiodic = 0</code> in <code>&system</code>), DOS and PDOS are written by a.u. or 1/eV according to <code>unit_energy</code>. For other output files, the units are basically Angstrom/eV/fs at the present.
  
=== &calculation ===
+
== &calculation ==
  
 
Mandatory: calc_mode
 
Mandatory: calc_mode
Line 28: Line 26:
 
For periodic systems (specified by <code>iperiodic = 3</code> in <code>&system</code>), both ground state and real time calculations should be carried out as a single task (<code>calc_mode = 'GS_RT'</code>).
 
For periodic systems (specified by <code>iperiodic = 3</code> in <code>&system</code>), both ground state and real time calculations should be carried out as a single task (<code>calc_mode = 'GS_RT'</code>).
  
=== &control ===
+
== &control ==
  
 
Mandatory: none
 
Mandatory: none
Line 38: Line 36:
 
'C2H2' defined by <code>surname = 'C2H2'</code> will be used in the filenames of output files.
 
'C2H2' defined by <code>surname = 'C2H2'</code> will be used in the filenames of output files.
  
 +
== &parallel ==
 +
 +
Mandatory: nproc_ob, nproc_domain, nproc_domain_s
 +
 +
&parallel
 +
  nproc_ob = 1
 +
  nproc_domain = 1,1,1
 +
  nproc_domain_s = 1,1,1
 +
/
  
=== &system ===
+
For isolated systems (specified by <code>iperiodic = 0</code> in <code>&system</code>), these parameters must be set.
 +
<code>nproc_ob = 1</code> indicates the number of MPI parallelization for orbitals.
 +
<code>nproc_domain = 1,1,1</code> indicates the spatial division for orbitals in x,y,z directions.
 +
<code>nproc_domain_s = 1,1,1</code> indicates the spatial divisions for Hartree potential in x,y,z directions.
 +
 
 +
Followings must be satisfied:
 +
* <code>nproc_ob</code> * <code>nproc_domain(1)</code> * <code>nproc_domain(2)</code>* <code>nproc_domain(3)</code>=total number of processors
 +
* <code>nproc_domain_s(1)</code> * <code>nproc_domain_s(2)</code>* <code>nproc_domain_s(3)</code>=total number of processors
 +
* <code>nproc_domain_s(1)</code> is a multiple of <code>nproc_domain(1)</code>
 +
* <code>nproc_domain_s(2)</code> is a multiple of <code>nproc_domain(2)</code>
 +
* <code>nproc_domain_s(3)</code> is a multiple of <code>nproc_domain(3)</code>
 +
 
 +
== &system ==
  
 
Mandatory: iperiodic, al, nstate, nelem, natom
 
Mandatory: iperiodic, al, nstate, nelem, natom
Line 46: Line 65:
 
   iperiodic = 0
 
   iperiodic = 0
 
   al = 16d0, 16d0, 16d0
 
   al = 16d0, 16d0, 16d0
   nstate = 5
+
   nstate = 8
 +
  nelec = 10
 
   nelem = 2
 
   nelem = 2
 
   natom = 4
 
   natom = 4
  nelec = 10
 
 
   /
 
   /
  
Line 58: Line 77:
 
<code>nelem = 2</code> and <code>natom = 4</code> indicate the number of elements and the number of atoms in the system, respectively.
 
<code>nelem = 2</code> and <code>natom = 4</code> indicate the number of elements and the number of atoms in the system, respectively.
  
=== &pseudo ===
+
== &pseudo ==
  
 
Mandatory: pseudo_file, iZatom
 
Mandatory: pseudo_file, iZatom
Line 78: Line 97:
 
<code>Lmax_ps(1) = 1</code> and <code>Lloc_ps(1) = 1</code> indicate the maximum angular momentum of the pseudopotential projector and the angular momentum of the pseudopotential that will be treated as local, respectively.  
 
<code>Lmax_ps(1) = 1</code> and <code>Lloc_ps(1) = 1</code> indicate the maximum angular momentum of the pseudopotential projector and the angular momentum of the pseudopotential that will be treated as local, respectively.  
  
=== &rgrid ===
+
== &rgrid ==
  
 
Mandatory: dl or num_rgrid
 
Mandatory: dl or num_rgrid
Line 89: Line 108:
 
The grid spacing can also be specified by num_rgrid that specifies the number of grid points.
 
The grid spacing can also be specified by num_rgrid that specifies the number of grid points.
  
=== &scf ===
+
== &scf ==
  
 
Mandatory: nscf
 
Mandatory: nscf
  
 
  &scf
 
  &scf
  rmixrate = 0.1
+
   nscf = 150
  ncg = 4
 
   nscf = 1000
 
 
  /
 
  /
  
<code>rmixrate</code> is mixrate for simple mixing. <code>ncg</code> is number of cg iteration in the scf calculation. <code>nscf</code> is number of scf iterations.  
+
<code>nscf</code> is number of scf iterations.  
  
=== &atomic_coor ===
+
== &analysis ==
  
 
Mandatory: none
 
Mandatory: none
  
  &atomic_coor
+
  &analysis
'C'    0.000000    0.000000   0.599672  1
+
  out_psi = 'y'
'H'    0.000000    0.000000    1.662257  2
+
   out_dns = 'y'
'C'    0.000000    0.000000  -0.599672  1
+
   out_dos = 'y'
'H'   0.000000    0.000000  -1.662257  2
+
   out_pdos = 'y'
 +
   out_elf = 'y'
 
  /
 
  /
  
List of atomic coordinates. Last column corresponds to kinds of elements.
+
These namelists specify the output files.  
  
== additional options ==
+
== &hartree ==
  
=== &parallel ===
+
Mandatory: num_pole_xyz(1:3) if meo=3 is specified
 
 
Mandatory: none
 
 
 
&parallel
 
  nproc_ob = 1
 
  nproc_domain = 1,1,1
 
  nproc_domain_s = 1,1,1
 
/
 
 
 
Followings are explanation of each variable.
 
* <code>nproc_ob</code>: Number of MPI parallelization for orbitals that related to the wavefunction calculation.
 
* <code>nproc_domain(3)'</code>: Number of MPI parallelization for each direction in real-space that related to the wavefunction calculation.
 
* <code>nproc_domain_s(3)'</code>: Number of MPI parallelization for each direction in real-space that related to the electron density calculation.
 
 
 
Defaults are <code>0</code> for <code>nproc_ob</code>, <code>(0/0/0)</code> for <code>nproc_domain</code>, and <code>(0/0/0)</code> for <code>nproc_domain_s</code>. If users use the defauls, automatic proccess assignment is done. Users can also specify <code>nproc_ob</code>, <code>nproc_domain</code>, and <code>nproc_domain_s</code> manually. In that case, followings must be satisfied.
 
* nproc_ob</code> * <code>nproc_domain(1)</code> * <code>nproc_domain(2)</code>* <code>nproc_domain(3)</code>=total number of processors
 
* <code>nproc_domain_s(1)</code> * <code>nproc_domain_s(2)</code>* <code>nproc_domain_s(3)</code>=total number of processors
 
* <code>nproc_domain_s(1)</code> is a multiple of <code>nproc_domain(1)</code>
 
* <code>nproc_domain_s(2)</code> is a multiple of <code>nproc_domain(2)</code>
 
* <code>nproc_domain_s(3)</code> is a multiple of <code>nproc_domain(3)</code>
 
 
 
=== &hartree ===
 
 
 
Mandatory: none
 
  
 
  &hartree
 
  &hartree
Line 150: Line 144:
 
* <code>meo=1</code>: Single pole is set.
 
* <code>meo=1</code>: Single pole is set.
 
* <code>meo=2</code>: Multipoles are set to the position of atoms.  
 
* <code>meo=2</code>: Multipoles are set to the position of atoms.  
* <code>meo=3</code>: Multipoles are set to the center of mass of electrons in cuboids.
+
* <code>meo=3</code>: Multipoles are set to the center of mass of electrons in cuboids. If <code>meo=3</code> is specified, <code>num_pole_xyz(1:3)</code> must be set. <code>num_pole_xyz(1:3)</code> are numbers of cuboids x-, y-, and z-directions.
<code>num_pole_xyz(3)</code> are number of multipoles when <code>meo</code> is <code>3</code>. A default for <code>meo</code> is <code>3</code>, and defaults for <code>num_pole_xyz</code> are <code>(0,0,0)</code>. When default is set, number of multipoles is calculated automatically.
 
  
=== &analysis ===
+
== &atomic_coor ==
  
 
Mandatory: none
 
Mandatory: none
  
  &analysis
+
  &atomic_coor
  out_psi = 'y'
+
'C'   0.000000    0.000000    0.599672  1
  out_dns = 'y'
+
'H'   0.000000    0.000000    1.662257  2
  out_dos = 'y'
+
'C'   0.000000    0.000000  -0.599672  1
  out_pdos = 'y'
+
'H'    0.000000    0.000000  -1.662257  2
   out_elf = 'y'
 
 
  /
 
  /
  
These namelists specify the output files.
+
List of atomic coordinates. Last column corresponds to kinds of elements.

Revision as of 09:21, 30 July 2017

&unit

Mandatory: none

&units
  unit_length='Angstrom'
  unit_energy='eV'
  unit_time='fs'
/

This namelist specifies the unit system used in the input and the output files. If you do not specify the units for some physical quantities, atomic unit will be used for those quantities.

For isolated systems (specified by iperiodic = 0 in &system), DOS and PDOS are written by a.u. or 1/eV according to unit_energy. For other output files, the units are basically Angstrom/eV/fs at the present.

&calculation

Mandatory: calc_mode

&calculation
  calc_mode = 'GS'
/

The variable calc_mode should be one of 'GS', 'RT', and 'GS-RT'. Note that the ground state ('GS') and real time ('RT') calculations should be done separately and sequentially for isolated systems (specified by iperiodic = 0 in &system). For periodic systems (specified by iperiodic = 3 in &system), both ground state and real time calculations should be carried out as a single task (calc_mode = 'GS_RT').

&control

Mandatory: none

&control
  sysname = 'C2H2'
/

'C2H2' defined by surname = 'C2H2' will be used in the filenames of output files.

&parallel

Mandatory: nproc_ob, nproc_domain, nproc_domain_s

&parallel
  nproc_ob = 1
  nproc_domain = 1,1,1
  nproc_domain_s = 1,1,1
/

For isolated systems (specified by iperiodic = 0 in &system), these parameters must be set. nproc_ob = 1 indicates the number of MPI parallelization for orbitals. nproc_domain = 1,1,1 indicates the spatial division for orbitals in x,y,z directions. nproc_domain_s = 1,1,1 indicates the spatial divisions for Hartree potential in x,y,z directions.

Followings must be satisfied:

  • nproc_ob * nproc_domain(1) * nproc_domain(2)* nproc_domain(3)=total number of processors
  • nproc_domain_s(1) * nproc_domain_s(2)* nproc_domain_s(3)=total number of processors
  • nproc_domain_s(1) is a multiple of nproc_domain(1)
  • nproc_domain_s(2) is a multiple of nproc_domain(2)
  • nproc_domain_s(3) is a multiple of nproc_domain(3)

&system

Mandatory: iperiodic, al, nstate, nelem, natom

 &system
  iperiodic = 0
  al = 16d0, 16d0, 16d0
  nstate = 8
  nelec = 10
  nelem = 2
  natom = 4
 /

iperiodic = 0 indicates that isolated boundary condition is assumed. al = 16d0, 16d0, 16d0 specifies the lengths of three sides of a rectangular parallelepiped where the grid points are prepared. nstate = 8 indicates the number of Kohn-Sham orbitals to be solved. nelec = 10 indicate the number of valence electrons in the system. nelem = 2 and natom = 4 indicate the number of elements and the number of atoms in the system, respectively.

&pseudo

Mandatory: pseudo_file, iZatom

&pseudo
  iZatom(1)=6
  iZatom(2)=1
  pseudo_file(1)='C_rps.dat'
  pseudo_file(2)='H_rps.dat'
  Lmax_ps(1)=1
  Lmax_ps(2)=0
  Lloc_ps(1)=1
  Lloc_ps(2)=0
/

Information on pseudopotentials. iZatom(1) = 6 indicates the atomic number of the element 1. pseudo_file(1) = 'C_rps.dat' indicates the filename of the pseudopotential of element 1. Lmax_ps(1) = 1 and Lloc_ps(1) = 1 indicate the maximum angular momentum of the pseudopotential projector and the angular momentum of the pseudopotential that will be treated as local, respectively.

&rgrid

Mandatory: dl or num_rgrid

&rgrid
  dl = 0.25d0, 0.25d0, 0.25d0
/

dl = 0.25d0, 0.25d0, 0.25d0 specifies grid spacing in three Cartesian directions. The grid spacing can also be specified by num_rgrid that specifies the number of grid points.

&scf

Mandatory: nscf

&scf
  nscf = 150
/

nscf is number of scf iterations.

&analysis

Mandatory: none

&analysis
  out_psi = 'y'
  out_dns = 'y'
  out_dos = 'y'
  out_pdos = 'y'
  out_elf = 'y'
/

These namelists specify the output files.

&hartree

Mandatory: num_pole_xyz(1:3) if meo=3 is specified

&hartree
  meo = 3
  num_pole_xyz = 2,2,2
/

meo specifies the order of multipole expansion of electron density that is used to prepare boundary condition for the Hartree potential.

  • meo=1: Single pole is set.
  • meo=2: Multipoles are set to the position of atoms.
  • meo=3: Multipoles are set to the center of mass of electrons in cuboids. If meo=3 is specified, num_pole_xyz(1:3) must be set. num_pole_xyz(1:3) are numbers of cuboids x-, y-, and z-directions.

&atomic_coor

Mandatory: none

&atomic_coor
'C'    0.000000    0.000000    0.599672  1
'H'    0.000000    0.000000    1.662257  2
'C'    0.000000    0.000000   -0.599672  1
'H'    0.000000    0.000000   -1.662257  2
/

List of atomic coordinates. Last column corresponds to kinds of elements.