INPUT file

Table of contents

Structure of the file

List of keywords

back to main page

Structure of the file

Below is an example INPUT file with some of the most important parameters that need to be set:

INPUT_PARAMETERS
#Parameters (General)
ntype 1
nbands 4
#Parameters (Accuracy)
ecutwfc 60

Parameters list starts with key word INPUT_PARAMETERS. Any content before INPUT_PARAMETERS will be ignored.

Any line starting with # or / will also be ignored.

Each parameter value is provided by specifying the name of the input variable and then putting the value after the name, separated by one or more blank characters(space or tab). The following characters(≤ 150) in the same line will be neglected.

Depending on the input variable, the value may be an integer, a real number or a string. The parameters can be given in any order, but only one parameter should be given per line.

Furthermore, if a given parameter name appeared more than once in the input file, only the last value will be taken.

Note: if a parameter name is not recognized by the program, the program will stop with an error message.

In the above example, the meanings of the parameters are:

List of keywords

System variables

This part of variables are used to control general system parameters.

suffix

ntype

calculation

Note: _istate_ and _ienvelope_ only work for LCAO basis set and are not working right now.

  • Default: scf

symmetry

kpar

bndpar

latname

init_wfc

init_chg

init_vel

nelec

tot_magnetization

dft_functional

pseudo_type

pseudo_rcut

pseudo_mesh

mem_saver

diago_proc

nbspline

kspacing

min_dist_coef

Variables related to input files

This part of variables are used to control input files related parameters.

stru_file

kpoint_file

pseudo_dir

orbital_dir

read_file_dir

Plane wave related variables

This part of variables are used to control the plane wave related parameters.

ecutwfc

nx, ny, nz

pw_seed

pw_diag_thr

pw_diag_nmax

pw_diag_ndim

Numerical atomic orbitals related variables

This part of variables are used to control the numerical atomic orbitals related parameters.

nb2d

lmaxmax

lcao_ecut

lcao_dk

lcao_dr

lcao_rmax

search_radius

search_pbc

Electronic structure

This part of variables are used to control the electronic structure and geometry relaxation calculations.

basis_type

ks_solver

nbands

nbands_istate

nspin

occupations

smearing_method

smearing_sigma

mixing_type

mixing_beta

mixing_ndim

mixing_gg0

gamma_only

printe

scf_nmax

scf_thr

chg_extrap

Electronic structure (SDFT)

This part of variables are used to control the parameters of stochastic DFT (SDFT), mix stochastic-deterministic DFT (MDFT), or complete-basis Chebyshev method (CT). To use it, calculation need to be set to "sto-scf" and "sto-md". We suggest using SDFT to calculate high-temperature systems and we only support smearing_method "fd".

method_sto

nbands_sto

nche_sto

emin_sto

emax_sto

seed_sto

initsto_freq

npart_sto

Geometry relaxation

This part of variables are used to control the geometry relaxation.

relax_nmax

cal_force

force_thr

force_thr_ev

relax_bfgs_w1

relax_bfgs_w2

relax_bfgs_rmax

relax_bfgs_rmin

relax_bfgs_init

cal_stress

stress_thr

press1, press2, press3

fixed_axes

relax_method

relax_cg_thr

cell_factor

Variables related to output information

This part of variables are used to control the output of properties.

out_force

out_mul

out_freq_elec

out_freq_ion

out_chg

out_pot

out_dm

out_wfc_pw

out_wfc_r

out_wfc_lcao

out_dos

out_band

out_proj_band

out_stru

out_level

out_alllog

out_mat_hs

out_mat_r

out_mat_hs2

out_element_info

restart_save

restart_load

Density of states

This part of variables are used to control the calculation of DOS.

dos_edelta_ev

dos_sigma

dos_scale

dos_emin_ev

dos_emax_ev

dos_nche

DeePKS

This part of variables are used to control the usage of DeePKS method (a comprehensive data-driven approach to improve accuracy of DFT). Warning: this function is not robust enough for the current version. Please try the following variables at your own risk:

deepks_out_labels

deepks_descriptor_lmax

deepks_scf

deepks_model

Electric field and dipole correction

This part of variables are relevant to electric field and dipole correction

efield_flag

dip_cor_flag

efield_dir

efield_pos_max

efield_pos_dec

efield_amp

Exact Exchange

This part of variables are relevant when using hybrid functionals

exx_hybrid_alpha

exx_hse_omega

exx_separate_loop

exx_hybrid_step

exx_lambda

exx_pca_threshold

exx_c_threshold

exx_v_threshold

exx_dm_threshold

exx_schwarz_threshold

exx_cauchy_threshold

exx_ccp_threshold

exx_ccp_rmesh_times

exx_distribute_type

exx_opt_orb_lmax

exx_opt_orb_ecut

exx_opt_orb_tolerence

Molecular dynamics

This part of variables are used to control the molecular dynamics calculations.

md_type

md_nstep

md_ensolver

md_restart

md_dt

md_tfirst & md_tlast

md_dumpfreq

md_restartfreq

md_seed

md_tfreq

md_mnhc

lj_rcut

lj_epsilon

lj_sigma

msst_direction

msst_vel

msst_vis

msst_tscale

msst_qmass

md_damp

DFT+U correction

This part of variables are used to control DFT+U correlated parameters

dft_plus_u

orbital_corr

hubbard_u

hund_j

yukawa_potential

omc

vdW correction

This part of variables are used to control vdW-corrected related parameters.

vdw_method

vdw_s6

vdw_s8

vdw_a1

vdw_a2

vdw_d

vdw_abc

vdw_C6_file

vdw_C6_unit

vdw_R0_file

vdw_R0_unit

vdw_model

vdw_radius

vdw_radius_unit

vdw_cn_radius

vdw_cn_radius_unit

vdw_period

Berry phase and wannier90 interface

This part of variables are used to control berry phase and wannier90 interfacae parameters.

berry_phase

gdir

towannier90

nnkpfile

wannier_spin

TDDFT: time dependent density functional theory

tddft

td_scf_thr

td_dt

td_force_dt

td_vext

td_vext_dire

td_timescale

td_vexttype

td_vextout

td_dipoleout

ocp

ocp_set

Variables useful for debugging

nurse

t_in_h

vl_in_h

vnl_in_h

test_force

test_stress

colour

Electronic conductivities

Frequency-dependent electronic conductivities can be calculated with Kubo-Greenwood formula[Phys. Rev. B 83, 235120 (2011)]. Onsager coefficiencies: $$L_{mn}(\omega)=(-1)^{m+n}\frac{2\pi e^2\hbar^2}{3m_e^2\omega\Omega}\ \times\sum_{ij\alpha\mathbf{k}}W(\mathbf{k})\left(\frac{\epsilon_{i\mathbf{k}}+\epsilon_{j\mathbf{k}}}{2}-\mu\right)^{m+n-2}| \langle\Psi_{i\mathbf{k}}|\nabla_\alpha|\Psi_{j\mathbf{k}}\rangle|^2\ \times[f(\epsilon_{i\mathbf{k}})-f(\epsilon_{j\mathbf{k}})]\delta(\epsilon_{j\mathbf{k}}-\epsilon_{i\mathbf{k}}-\hbar\omega).$$ They can also computed by $j$-$j$ correlation function. $$L_{mn}=\frac{2e^{m+n-2}}{3\Omega\hbar\omega}\Im[\tilde{C}_{mn}(\omega)]\ \tilde{C}_{mn}=\int_0^\infty C_{mn}(t)e^{-i\omega t}e^{-\frac{1}{2}(\Delta E)^2t^2}dt\ C_{mn}(t)=-2\theta(t)\Im\left{Tr\left[\sqrt{\hat f}\hat{j}_m(1-\hat{f})e^{i\frac{\hat{H}}{\hbar}t}\hat{j}_ne^{-i\frac{\hat{H}}{\hbar}t}\sqrt{\hat f}\right]\right},$$ where $j_1$ is electric flux and $j_2$ is thermal flux. Frequency-dependent electric conductivities: $\sigma(\omega)=L_{11}(\omega).$ Frequency-dependent thermal conductivities: $\kappa(\omega)=\frac{1}{e^2T}\left(L_{22}-\frac{L_{12}^2}{L_{11}}\right).$ DC electric conductivities: $\sigma = \lim_{\omega\to 0}\sigma(\omega)$ Thermal conductivities: $\kappa = \lim_{\omega\to 0}\kappa(\omega)$

cal_cond

cond_nche

cond_dw

cond_wcut

cond_wenlarge

cond_fwhm

Implicit solvation model

This part of variables are used to control the usage of implicit solvation model. This approach treats the solvent as a continuous medium instead of individual “explicit” solvent molecules, which means that the solute embedded in an implicit solvent and the average over the solvent degrees of freedom becomes implicit in the properties of the solvent bath.

imp_sol

eb_k

tau

sigma_k

nc_k