The input file: every section and field

In this tutorial

A tour of the whole DFTSW27 input: every section, its main keys with their defaults, and what each key does, followed by the complete list of all input keys. The video scrolls through the annotated input and explains each block; this page has the same blocks with more detail. Files: input_tour.yaml (the annotated listing; not a runnable input), input_fields.md (all keys), make_fields.py, run.sh.

How the tour is organized

input_tour.yaml lists 28 sections in the order of a typical input: the system and the method (system, functional, basis, ecp, mesh_default, mesh), the SCF machinery (scf, mixing, coulomb), what to compute (job, gradient, optimization, frequencies, raman, irc, md), environment and relativity (solvent, relativity), properties and excited states (analysis, cube, tddft, rt_tddft, cdft, pdscf), special methods (hubbard, neo, sic) and finally the atoms. The listing shows the keys you meet most often; the complete list of all 445 public keys, generated from the parser of the code, follows at the end of this page. The value in a line is the default; e.g. marks a key that has none, so the value is only an example of the format. The file is an annotated listing, not an input to run: it mixes options that exclude each other. For complete, runnable inputs see the other tutorials and examples/.

Two points about the file format that apply everywhere: it is a restricted subset of YAML (sections at column 1, indented keys, # comments, flow-style lists [1, 2, 3] and maps {nrpt: 90}), and it is case-insensitive in section names. A key you do not give keeps its default; unknown keys in the sic: section stop the run, so check their spelling.

The sections

How to read it

# DFTSW27 input fields: every section with its main keys. Values are the defaults; "e.g." marks a key without
# one. Comments start with #. Unlisted keys keep their defaults; the complete list is in input_fields.md.

An input file is a restricted subset of YAML: section: at column 1, indented key: value lines below it, and # comments anywhere. Section names are case-insensitive. A key you do not give keeps its default, so the shortest useful input is a geometry, a basis and a functional. Below, every section of the input is shown with its main keys. The values are the defaults; e.g. marks a key that has none. Unknown keys in the sic: section stop the run, so check spelling.

System

system:
  charge: 0                       # total molecular charge
  unpaired_electrons: 0           # N_alpha - N_beta: the spin state
  units: bohr                     # units of the atom positions: bohr | angstrom
  geometry_file: mol.xyz          # e.g. read the atoms from an XYZ file instead of the atoms: list

charge and unpaired_electrons (\(N_\alpha-N_\beta\)) fix the number of electrons and the spin state, and units says whether positions are in bohr (the default) or angstrom. The atoms come either from the atoms: list at the end or, with geometry_file, from an XYZ file; then atoms: records only override properties by index or element.

Functional: the basics

functional:                       # no functional: section at all = Hartree-Fock
  backend: inhouse                # inhouse (Slater, VWN5, PW92, PBE, SCAN family) | libxc
  exchange: pbe                   # e.g. an inhouse name, or an exact libxc name (HYB_GGA_XC_PBEH)
  correlation: pbe                # e.g. correlation name, or none for a combined libxc functional
  exx_fraction: 0.25              # e.g. exact-exchange fraction, replaces the value libxc reports
  exchange_scale: 1               # factor on the semilocal exchange (composed and double hybrids)
  correlation_scale: 1            # factor on the semilocal correlation

Without a functional: section the run is Hartree–Fock. backend: inhouse has Slater, VWN5, PW92, PBE and the SCAN family built in; backend: libxc takes any libxc functional by its exact name, including combined hybrids such as HYB_GGA_XC_PBEH (then correlation: none). Exchange and correlation are independent choices. exx_fraction replaces the exact-exchange fraction libxc reports; exchange_scale and correlation_scale scale the semilocal parts, which is how composed hybrids are built.

Functional: double hybrids, D3, local hybrids

  pt2_os: 0                       # PT2 opposite-spin coefficient: double hybrids (0 = no PT2)
  pt2_ss: 0                       # PT2 same-spin coefficient
  pt2_engine: ri                  # ri | conventional
  dispersion: none                # d3zero | d3bj: DFT-D3 correction
  dispersion_functional: b3-lyp   # e.g. functional name of the D3 parameters, Grimme's spelling
  local_hybrid: lh07t-svwn        # e.g. local hybrid: tw_t | constant | the preset lh07t-svwn

pt2_os and pt2_ss are the opposite- and same-spin coefficients of a PT2 term added after the SCF: both zero means none, anything else makes a double hybrid. pt2_engine is ri or conventional. dispersion: d3zero or d3bj adds Grimme’s DFT-D3 correction, with the parameters of dispersion_functional, in Grimme’s spelling of the functional name. local_hybrid selects a local hybrid, which mixes exact and semilocal exchange with a position-dependent function.

Basis and ECP

basis:
  name: DEFAULT                   # label for printing only
  file: basis/def2-TZVP.nw        # e.g. NWChem-format basis file (Basis Set Exchange), Cartesian shells

ecp:
  file: basis/ecp.nw              # e.g. NWChem-format ECP file, for atoms whose core: is not ALL

basis: file is a basis in NWChem format, as exported by the Basis Set Exchange; every element present is read once and placed on all atoms of that element. name is only a label. The shells are Cartesian: a d shell has 6 components, which matters when you compare basis-function counts or energies with codes that use spherical harmonics. ecp: file is an NWChem-format effective core potential, used for the atoms whose core: is not ALL.

Integration meshes

mesh_default:                     # integration mesh of every atom without its own mesh:
  nrpt: 90                        # e.g. radial points
  lm: 29                          # e.g. Lebedev angular order
  alp_n: 5.0                      # e.g. radial mapping scale
  m_n: 3                          # e.g. Mura-Knowles radial exponent

mesh:
  cell_func: becke2               # fuzzy-cell partition: becke1 | becke2 | becke3 | franchini
  prune: auto                     # angular pruning of the XC grid: auto | nwchem | none

Each atom has an integration mesh: radial points nrpt, Lebedev angular order lm, and the radial mapping parameters alp_n and m_n. mesh_default: changes them for every atom at once, and a per-atom mesh: overrides that. Without any of them a built-in table is used. In the mesh: section, cell_func chooses the fuzzy-cell partition of the molecular grid and prune the angular pruning (auto, nwchem or none), which roughly halves the grid.

Scf: convergence and spin

scf:
  max_iter: 100                   # maximum SCF iterations
  conv_tol: 1.0e-8                # converged when the mixing error and |dE| are both below this
  level_shift: 0                  # virtual-orbital level shift (Ha) for near-degenerate cases
  initial_guess: atomic_potential_fit   # | sad | core_hamiltonian
  moment_mode: fixed              # fixed | variable | fixed_occupation | mom (excited states)
  occ_alpha: [1, 2, 3, 4, 6]      # e.g. alpha orbitals to occupy (fixed_occupation and mom)
  occ_beta: [1, 2, 3, 4, 5]       # e.g. the same for beta

max_iter and conv_tol: the SCF is converged when both the mixing error and \(|\Delta E|\) are below conv_tol. level_shift shifts the virtual orbitals and helps near-degenerate cases. initial_guess is the atomic-potential fit by default, with sad and core_hamiltonian as alternatives. moment_mode: fixed keeps the spin state; variable lets it change; fixed_occupation and mom (maximum overlap) occupy the orbitals listed in occ_alpha and occ_beta, which is how excited determinants are converged.

Scf: stability, output, restart

  stability: auto                 # stability analysis after convergence: auto | true | false
  print_energies: false           # print the energy breakdown at every iteration
  inner_output: summary           # SCFs of optimizations and displacements: summary | full
  efield: 0 0 0                   # uniform static electric field (a.u.): energy runs only
  evalues_log_file: evalues.log   # eigenvalues of every iteration; '' disables
  evalues_max_virtual: 10         # empty levels per spin written to it
  restart: none                   # none | write | read | readwrite: orbital checkpoint
  mode: collinear                 # collinear | noncollinear
  spin_orbit: false               # spin-orbit coupling (noncollinear mode only)

stability runs a stability analysis after convergence (by default for open-shell plain HF and DFT) and follows unstable modes downhill. print_energies prints the energy breakdown at every iteration, inner_output controls the output of the many SCFs of an optimization, evalues_log_file writes all eigenvalues of every iteration, and efield applies a uniform static field in an energy run. restart saves and reads orbital checkpoints. mode: noncollinear turns on the two-component SCF, with spin_orbit for spin–orbit coupling and constrain_axis to hold the total moment along a direction.

Mixing

mixing:
  method: diis                    # diis (the best-tested choice) | broyden
  broyden_alpha: 0.15             # Broyden mixing parameter
  broyden_max_vecs: 8             # Broyden history length

The SCF accelerator: diis (Pulay DIIS, the best-tested choice) or broyden, with its mixing parameter and history length.

Coulomb

coulomb:                          # how the Hartree matrix is built (HF or DFT)
  method: eri                     # eri | poisson | analytic | density_fitting; default depends on the run
  aux_basis_file: basis/def2-universal-JFIT.nw   # e.g. auxiliary basis for density_fitting
  exchange: eri                   # source of exact exchange: eri | cosx | numerical
  Rcut: 12.0                      # Poisson near/far-field cutoff (bohr)
  np: 2                           # Poisson near-field expansion order
  charge_screen: false            # subtract free-atom densities before the Poisson solve

method chooses how the Coulomb matrix is built, independently of Hartree–Fock versus DFT: exact integrals (eri), a numerical Poisson solver (poisson, the default for plain DFT energies), a closed-form potential on the grid (analytic), or density fitting (density_fitting, which needs aux_basis_file). exchange selects the source of exact exchange: integrals, chain-of-spheres cosx, or numerical. Rcut, np and charge_screen tune the Poisson solver.

Job and gradient

job:
  task: energy                    # energy | gradient | optimize | frequencies | opt_freq | raman |
                                  # opt_raman | ts | ts_freq | irc | ts_irc | md

gradient:
  method: analytic                # analytic | numerical
  step: 0.002                     # displacement (bohr) of numerical gradients

job: task says what to compute: an energy, a gradient, a geometry optimize, frequencies or both (opt_freq), raman and opt_raman, transition states (ts, ts_freq), reaction paths (irc, ts_irc), and molecular dynamics md. gradient: method is analytic or numerical (central differences with step step).

Optimization

optimization:
  max_iter: 100                   # maximum gradient evaluations
  max_force: 4.5e-4               # converged when the largest force (Ha/bohr) is below this ...
  rms_force: 3.0e-4               # ... its RMS ...
  max_step: 1.8e-3                # ... the largest step component (bohr) ...
  rms_step: 1.2e-3                # ... and the RMS step
  trust_radius: 0.3               # initial trust radius (bohr)
  hessian: lindh                  # starting Hessian: lindh | unit
  coordinates: internal           # internal | cartesian
  constraints: distance 1 2 0.96  # e.g. distance, angle, dihedral or freeze items, separated by ;
  trajectory_file: opt.xyz        # e.g. multi-frame XYZ of every accepted geometry
  final_geometry_file: geom_final.xyz   # XYZ of the final geometry; '' disables

The four convergence criteria (max_force, rms_force, max_step, rms_step, the Gaussian defaults) must all be met, or both force criteria 100 times below threshold. trust_radius is the initial trust radius, hessian the starting Hessian (lindh model or unit), and coordinates selects redundant internal or Cartesian coordinates. constraints fixes distances, angles, dihedrals or atoms, items separated by ;. The trajectory and final-geometry files are written for plotting and for restarting.

Frequencies

frequencies:
  temperature: 298.15             # K, for the thermochemistry
  pressure: 101325                # Pa
  symmetry_number: 1              # rotational symmetry number: not detected, set it (2 for water)
  hessian: auto                   # auto | analytic | numerical
  step: 0.005                     # displacement (bohr) of numerical Hessians
  molden_file: modes.molden       # e.g. Molden file of the normal modes, for animation

The temperature and pressure of the thermochemistry, the rotational symmetry_number (not detected automatically: 2 for water; it changes only the rotational entropy and the free energy), the Hessian method (auto uses the analytic Hessian when it is available) and its numerical step. molden_file writes the normal modes for animation.

Raman

raman:                            # tasks raman and opt_raman
  polarizability: auto            # auto | analytic | finite_field
  mode_step: 0.01                 # displacement (bohr) along each normal mode
  laser_nm: 532                   # excitation wavelength for the relative intensities
  min_frequency: 50               # modes below this (cm^-1) are skipped
  file: raman.dat                 # e.g. table: mode, frequency, activity, depolarization, intensity

For raman and opt_raman (see Raman spectra): how the polarizability derivatives are obtained (auto means analytic where supported, else finite fields), the displacement along each mode, the laser wavelength of the relative intensities, the lowest frequency considered, and a table file.

Irc

irc:                              # tasks irc and ts_irc
  step: 0.1                       # arc length of the (first) step, amu^1/2 bohr
  max_points: 20                  # points per direction
  adaptive: true                  # adapt the step to the path curvature
  optimize_ends: false            # minimize both path ends afterwards
  trajectory_file: irc.xyz        # e.g. multi-frame XYZ of the path

irc: controls reaction paths from a transition state (tasks irc and ts_irc): the (adaptive) step length, the number of points per direction, whether to minimize the path ends (reactant and product), and a trajectory file of the path.

Md

md:                               # task md
  method: bomd                    # bomd | ehrenfest
  dt: 20                          # time step (a.u.; 1 a.u. = 0.0242 fs)
  steps: 100                      # number of steps
  temperature: 0                  # Maxwell-Boltzmann start (K); 0 = at rest
  seed: 1                         # seed of the random velocities
  output: md                      # prefix of the energy, trajectory and restart files
  restart: false                  # continue from the checkpoint

md: controls dynamics (task: md): method is Born–Oppenheimer (bomd: an SCF and a gradient every step) or ehrenfest; dt is the time step in atomic units (1 a.u. = 0.0242 fs), steps the number of steps, temperature the Maxwell–Boltzmann starting temperature (0: start at rest), seed the seed of the random velocities, output the prefix of the energy, trajectory and restart files, and restart continues from the checkpoint.

Solvent and relativity

solvent:
  model: cpcm                     # cpcm | cosmo | iefpcm
  solvent: water                  # solvent name (sets epsilon), or give epsilon:
  epsilon: 10.0                   # e.g. static dielectric constant; overrides the name
  vdw_scale: 1.2                  # factor on the vdW radii of the cavity
  lebedev: 29                     # Lebedev degree per atom sphere

relativity:
  method: none                    # none | zora | x2c
  c_light: 137.03599967994        # speed of light (a.u.); large = non-relativistic limit

solvent: turns on an implicit solvent: the model (cpcm, cosmo or iefpcm), the solvent by name (which sets the dielectric constant) or epsilon directly, the scale of the van der Waals cavity radii and the Lebedev degree of each atomic sphere (Solvation with a polarizable continuum). relativity: method is none, scalar zora or spin-free x2c (Relativistic calculations with X2C); c_light set very large gives the non-relativistic limit.

Analysis

analysis:
  population: none                # none | mulliken | lowdin | both | natural | all
  orbital_character: none         # per-atom and per-shell decomposition of the HOMO
  dos: false                      # density of states, written to DOS.dat
  polarizability: false           # analytic static polarizability (coupled perturbed)
  nmr: false                      # GIAO NMR shielding tensors
  hyperfine: false                # Fermi-contact and spin-dipolar hyperfine couplings
  gtensor: false                  # electronic g-tensor
  magnetic_anisotropy: false      # spin-orbit magnetic anisotropy, D and E
  zfs_spin_spin: false            # spin-spin zero-field splitting
  molden_file: mol.molden         # e.g. Molden file with geometry, basis and orbitals
  wfx_file: mol.wfx               # e.g. wfx file for AIMAll and Multiwfn

Post-SCF properties, each a switch: Mulliken, Löwdin or natural population, the orbital_character of the HOMO, a density of states, the analytic static polarizability (Polarizabilities and hyperpolarizabilities, with SIC), GIAO nmr (NMR shielding tensors and chemical shifts), hyperfine couplings, the gtensor, the spin–orbit magnetic_anisotropy and the spin–spin zero-field splitting (Magnetic anisotropy and zero-field splitting). molden_file and wfx_file export the wavefunction for Molden, Jmol, Avogadro, AIMAll and Multiwfn.

Cube

cube:
  quantities: density, mo_alpha:homo   # e.g. what to write, see the cube tutorial
  prefix: cube                    # file name prefix
  spacing: 0.2                    # grid spacing (bohr)
  margin: 5.0                     # extent beyond the outermost nuclei (bohr)

quantities lists what to write (the density, spin density, ELF, orbitals such as mo_alpha:homo; Cube files: spin density, ELF and density differences), prefix the file name prefix, spacing the grid spacing and margin the extent beyond the outermost nuclei, both in bohr.

Tddft

tddft:                            # linear-response excitations after the SCF
  nroots: 10                      # number of lowest roots
  method: casida                  # casida | tda
  multiplicity: singlet           # singlet | triplet (closed shells)
  solver: dense                   # dense | davidson (matrix-free)
  coulomb: ri                     # Hartree part of the response: ri | eri | analytic | poisson
  frozen_core: false              # freeze the atomic cores of all-electron atoms

Linear-response TDDFT (Excitation energies (linear-response TDDFT)): the number of roots, the method (full casida or the Tamm–Dancoff approximation tda), singlets or triplets, the dense or Davidson solver, the Coulomb treatment of the response (ri is the fastest and needs an auxiliary basis), and frozen cores.

Rt_tddft

rt_tddft:                         # real-time propagation after the SCF
  field: kick                     # none | kick | gaussian | pulse | cw | pulse2 | static
  propagator: expm                # expm | magnus | cranknic
  dt: 0.05                        # time step (a.u.)
  steps: 1000                     # number of steps
  axis: z                         # x | y | z | xyz
  amplitude: 1.0e-3               # field strength (a.u.); static: the finite-field step
  tensor: false                   # static: full alpha, beta, gamma tensors (13 directions)
  spectrum: fft                   # fft | pade
  analysis: false                 # line fit, transition densities, orbital-pair assignment
  cap: false                      # complex absorbing potential (ionization)
  sic_potential: kli              # with SIC: kli | slater | exact
  output: rt                      # prefix of the dipole and spectrum files

Real-time propagation of the density matrix after the SCF (Optical spectra from real-time TDDFT): field is a delta kick, a laser pulse, a continuous wave, or static for the finite-field scan, with propagator, dt, steps, axis and amplitude. tensor: true gives the full \(\alpha\), \(\beta\), \(\gamma\) tensors from the finite-field scan. spectrum, analysis, cap and sic_potential choose the post-processing, a complex absorbing potential and the SIC potential; output is the prefix of the files.

Cdft

cdft:                             # constrained DFT
  donor_atoms: [1-6]              # e.g. atoms of the donor fragment (ranges allowed)
  acceptor_atoms: [7-12]          # e.g. atoms of the acceptor fragment
  constraint: charge              # charge | spin
  fragment_weights: becke         # becke | hirshfeld
  values: [0.0, 1.0]              # e.g. one constrained state per entry (q_D - q_A)
  conv_tol: 1.0e-7                # SCF commutator threshold of each state

cdft: constrains charge or spin on fragments given as atom indices: the donor and acceptor atoms (ranges allowed), the constraint type, how fragments are weighted (Becke or Hirshfeld) and the constrained values, one state per entry.

Pdscf

pdscf:                            # perturbative DeltaSCF excitations
  hole: 5                         # occupied orbital (default: HOMO)
  particle: 6                     # virtual orbital (default: LUMO)
  spin_purify: true               # closed shell: mixed and triplet states, S = 2M - T
  spin_correction: both           # triplet | raising | ci | both | all
  iterate: false                  # relax the state to convergence by energy minimization
  chp: false                      # constrained hole-particle SCF (charge-transfer states)

Perturbative \(\Delta\)SCF (Charge-transfer excitations: PDSCF and MOM): an excited determinant from the converged ground-state orbitals by a first-order update, with no SCF loop and so no collapse. hole and particle default to the HOMO and the LUMO; choose them yourself for charge-transfer states. spin_purify and spin_correction handle the singlet–triplet mixing, iterate relaxes the state, and chp runs the constrained hole–particle SCF.

Hubbard

hubbard:                          # DFT+U
  reference_basis: basis/minao_ref.nw   # e.g. reference minimal basis (required)
  elements: [Ti]                  # e.g. elements with a Hubbard site
  l: [2]                          # e.g. angular momentum of the corrected shell (2 = d)
  u: [4.0]                        # e.g. U per element
  j: [0.0]                        # J per element
  units: ev                       # ev | hartree

hubbard: is DFT+U: a reference minimal basis, the elements with a Hubbard site, the angular momentum of the corrected shell (2 = d), \(U\) and \(J\) per element, and their units.

Neo

neo:                              # quantum nuclei
  quantum_atoms: [2, 3]           # e.g. 1-based numbers of the quantum nuclei
  nuclear_basis: basis/neo-pb4d.nw   # e.g. nuclear basis file (required)
  epc: epc17-2                    # electron-proton correlation: none | epc17-1 | epc17-2 | ...
  uncontract_electronic: true     # uncontract the electronic basis on the quantum atoms

neo: treats selected nuclei quantum mechanically (nuclear–electronic orbital method): the atoms, a nuclear basis file, the electron–proton correlation functional (epc) and whether to uncontract the electronic basis on those atoms.

Sic: functional, solver, orbitals

sic:                              # self-interaction correction
  functional: none                # none | pz_sic | lsic
  solver: kli                     # kli | jacobi
  orbitals: flo                   # flo | free | free_complex
  coulomb_method: poisson         # self-Coulomb of the orbitals: poisson | analytic | density_fitting
  oep: kli                        # local potential of the KLI solver: kli | ceda

Self-interaction correction (Self-interaction correction with FLOSIC, Locally scaled SIC by direct minimization). functional is pz_sic or lsic; solver is the KLI local potential or the self-consistent jacobi solver; orbitals are Fermi–Löwdin orbitals (flo) or free (optionally complex) orbitals minimized over all rotations; coulomb_method builds the self-Coulomb potential of each orbital; oep is the local-potential approximation of the KLI solver (kli or ceda).

Sic: algorithm, FODs, relaxation

  scf_algorithm: jacobi           # jacobi | direct (minimizes the energy, for open shells)
  lsic_consistency: quasi         # LSIC with KLI: quasi | full
  fod_file: h2o.fod               # e.g. FOD positions in bohr, one per orbital and spin
  fod_guess_method: thomson       # automatic FODs when there is no file: thomson | assembly | centroid
  fod_optimization: none          # none | energy | foster_boys_spread
  relax_method: bfgs              # FOD relaxation: bfgs | cg | steepest
  relax_force_tol: 1.0e-4         # converged when the largest FOD force (Ha/bohr) is below this
  relax_max_iter: 30              # maximum outer iterations (each a full SCF)
  orbital_log_file: FLOSIC_ORBITAL_ENERGIES.log   # FODs and orbital SIC energies; '' disables

scf_algorithm: direct minimizes the energy at fixed FODs, which is what open shells need when the Jacobi fixed-point iteration does not converge. lsic_consistency chooses the LSIC variant used with KLI. The FODs come from fod_file (bohr, one per orbital and spin) or from the automatic guess (fod_guess_method: thomson, assembly, centroid), and fod_optimization: energy relaxes them with relax_method, relax_force_tol and relax_max_iter (FOD optimization). orbital_log_file records the FODs and each orbital’s SIC energy.

Atoms

atoms:
  - element: O                    # element symbol (required)
    position: [0.0, 0.0, 0.117]   # x y z in system: units (required)
    moment: 0.0                   # initial local spin moment (starting guess only)
    spin_axis: [0, 0, 1]          # local moment direction (noncollinear runs)
    core: ALL                     # ALL = all-electron, or an ECP label
    mass: 15.9949                 # e.g. atomic mass for frequencies (default: main isotope)
    mesh: {nrpt: 90, lm: 29}      # e.g. per-atom integration mesh, overrides mesh_default

One record per atom, introduced by -: element and position (required, in the system: units), the initial local spin moment (only the starting guess), its spin_axis in noncollinear runs, core (ALL or an ECP label), mass for frequencies and dynamics, and a per-atom mesh. With geometry_file the records instead select atoms by index or element to override these properties.

All input keys

Every public key by section with its default and description. The key names come from the input parser, the descriptions from the key tables of the User Manual (docs/DFTSW27_User_Manual.pdf), and for a key that the manual does not tabulate from the source. The complete reference, with the theory, is docs/z_fullM.pdf. A default shown as 0 or empty often means “chosen automatically”.

system (3 keys)

key

default

meaning

charge

0.0

Total molecular charge.

unpaired_electrons

0.0

N_alpha - N_beta of the whole system, rounded to an integer. With moment_mode: variable it is only the starting value.

units

bohr

Units of atomic positions: bohr or angstrom (also ang, angs).

functional (25 keys)

key

default

meaning

backend

inhouse

inhouse (built-in Slater, VWN5, PW92, PBE, SCAN family) or libxc (any libxc functional by its exact name).

exchange

(empty)

inhouse: slater, pbe, scan, rscan, rppscan, r2scan, r4scan or none. libxc: the exact libxc name, e.g. GGA_X_PBE, or a combined hybrid name such as HYB_GGA_XC_B3LYP.

correlation

(empty)

inhouse: vwn5, pw92 (Perdew-Wang 1992 LDA, as in UTEP-NRLMOL/FLOSIC), pbe, scan, rscan, rppscan, r2scan, r4scan or none. libxc: the exact libxc name, or none (required) when exchange is a combined XC functional.

local_hybrid

(empty)

Local hybrid: tw_t (mixing function a=b tau_W/tau), constant (a=b, a global hybrid) or the preset lh07t-svwn. exchange then names the semilocal exchange part.

lh_b

kind default

Parameter b of the mixing function (tw_t: 1; constant: required).

lh_spin

resolved

resolved (a_sigma from each spin’s own rho_sigma, tau_sigma) or common (a from the total quantities). Identical for closed shells.

lh_screen_tol

1e-10

Screening threshold of the seminumerical exact-exchange engine; 0 switches screening off.

lh_engine

seminumerical

seminumerical (any Coulomb method) or poisson (needs coulomb: method: poisson; 3-5 times slower, no analytic gradient).

exchange_scale

1

Factor on the whole semilocal exchange (composed and double hybrids).

b88_beta

-1.0e0

b88_beta > 0 (libxc backend): replaces the beta of libxc’s GGA_X_B88 (Becke’s 0.0042) in EVERY evaluation of that functional – the DFA exchange and the orbital self-exchange of a SIC alike (LSIC-B(beta’)PW91 needs both to use the same beta’).

correlation_scale

1

Factor on the whole semilocal correlation.

exx_fraction

backend value

Global exact-exchange fraction c_x; replaces the value libxc reports. Needs a DFT functional.

pt2_os

0

Opposite- and same-spin coefficients of the PT2 correlation added after the SCF (double hybrids). Both 0: no PT2. Without a functional the reference is HF, i.e. (SCS-)MP2.

pt2_ss

0

Opposite- and same-spin coefficients of the PT2 correlation added after the SCF (double hybrids). Both 0: no PT2. Without a functional the reference is HF, i.e. (SCS-)MP2.

pt2_engine

ri

ri (density fitting) or conventional (exact ERIs, memory n_ basis^4; small systems only).

pt2_aux_basis_file

coulomb: aux_basis_file

RI fitting basis of the ri engine (NWChem format). Use a correlation-fitting set such as cc-pVTZ-RI; J-fitting sets are not accurate enough.

pt2_on_sic

false

Experimental: allow the PT2 on SIC orbitals (see below).

dispersion

none

DFT-D3 correction: d3zero (zero damping) or d3bj (Becke-Johnson damping).

dispersion_functional

-

Functional name for the built-in D3 parameters in Grimme’s spelling (b3-lyp, pbe, pbe0, b2-plyp, b-p, tpss, hf, …), not the libxc name.

d3_s6

built-in

Override the damping parameters (a_1=r_s6, a_2=r_s8; zero damping defaults a_2=1, alpha=14; alpha unused for BJ). Without dispersion_functional, s_6, s_8, a_1 (and a_2 for BJ) are required.

d3_s8

built-in

Override the damping parameters (a_1=r_s6, a_2=r_s8; zero damping defaults a_2=1, alpha=14; alpha unused for BJ). Without dispersion_functional, s_6, s_8, a_1 (and a_2 for BJ) are required.

d3_a1

built-in

Override the damping parameters (a_1=r_s6, a_2=r_s8; zero damping defaults a_2=1, alpha=14; alpha unused for BJ). Without dispersion_functional, s_6, s_8, a_1 (and a_2 for BJ) are required.

d3_a2

built-in

Override the damping parameters (a_1=r_s6, a_2=r_s8; zero damping defaults a_2=1, alpha=14; alpha unused for BJ). Without dispersion_functional, s_6, s_8, a_1 (and a_2 for BJ) are required.

d3_alpha

built-in

Override the damping parameters (a_1=r_s6, a_2=r_s8; zero damping defaults a_2=1, alpha=14; alpha unused for BJ). Without dispersion_functional, s_6, s_8, a_1 (and a_2 for BJ) are required.

pt2_frozen_core

0

Lowest occupied orbitals per spin left out of the PT2.

basis (2 keys)

key

default

meaning

name

DEFAULT

Label for printing only.

file

(empty)

NWChem-format basis file (as exported by the Basis Set Exchange). Each element present is read once and its shells are placed on every atom of that element.

ecp (1 keys)

key

default

meaning

file

(empty)

NWChem-format ECP file. Used for atoms whose core is not ALL (e.g. core: ECP); see ecp_reference/ and examples/cu2.

mesh_default (4 keys)

key

default

meaning

nrpt

radial points per atom (default mesh for every atom without its own mesh)

lm

Lebedev angular order of the default mesh

alp_n

radial mapping scale of the default mesh

m_n

radial mapping exponent of the default mesh

mesh (2 keys)

key

default

meaning

cell_func

becke2

Fuzzy-cell partitioning of the molecular grid: becke1, becke2, becke3 or franchini.

prune

auto

Angular pruning of the molecular (XC) grid. auto: nwchem for built-in table meshes, none for meshes with an explicit lm. nwchem: the NWChem/PySCF scheme, which lowers the Lebedev order near the nucleus and far out. It roughly halves the grid.

scf (31 keys)

key

default

meaning

max_iter

100

Maximum SCF iterations.

stability

auto

Stability analysis after convergence: auto (open-shell plain HF/DFT with N_alpha!= N_beta), true or false (sec:stability).

stability_max_cycles

5

Maximum number of restarts along unstable modes.

inner_output

summary

Output of the SCFs at optimization steps and displaced geometries: summary (one line per SCF) or full. The first SCF is always printed in full.

efield

0 0 0

Uniform static electric field F (a.u.) on the electrons, h+= F. r (the energy contains - F.mu). Energy runs only: the nuclear gradient has no field terms, so tasks that need it refuse a nonzero field.

conv_tol

1e-8

Converged when both the mixing error (DIIS commutator or Broyden residual norm) and /Delta E_ total/ are below this value.

level_shift

0

Virtual-orbital level shift (Ha). Helps near-degenerate systems converge (e.g. 0.3 for Cu_2 with ECPs). In noncollinear runs it switches itself off once the DIIS error is below 1e-3.

print_energies

false

Print the energy breakdown every iteration.

evalues_log_file

evalues.log

File with the alpha and beta eigenvalues, occupations, HOMO, LUMO and gap of every SCF iteration (every SCF of the run is numbered). Emptied at the start of each run; ‘’ disables it.

evalues_max_virtual

10

Empty levels per spin listed in that file.

grid_block_size

500

Upper limit of grid points per block. Does not change results; rarely needs tuning.

incremental_fock

false

Build J/K from the density change on the ERI path (sec:incremental).

use_libcint_eri

false

Use libcint for the ERI shell-quartet builds (eri Coulomb, exact exchange, SIC ERI builds): 5-7 times faster Fock builds, 1.3-1.9 times faster runs. Needs the libcint build; an ordinary binary stops with an error.

mode

collinear

collinear or noncollinear (sec:noncollinear).

spin_orbit

false

Spin-orbit coupling in the noncollinear SCF (sec:soc-scf). Needs mode: noncollinear.

soc_scale

1.0

Factor on the spin-orbit operator.

constrain_axis

[0,0,0]

Hold the total moment along this direction with a penalty; zero vector = off (sec:soc-scf).

constraint_lambda

0.1

Penalty strength lambda (Ha).

constrain_moment

0

>0: also hold the magnitude M_0 (mu_B), penalty lambda/ M-M_0 e/^2.

initial_guess

atomic_potential_fit

atomic_potential_fit, sad or core_hamiltonian (sec:initial-guess).

moment_mode

fixed

fixed, variable, fixed_occupation or mom (sec:moment-mode).

restart

none

Checkpoint file: none, write (save the converged orbitals), read (start from a checkpoint; error if missing or incompatible) or readwrite (read if present, always write).

restart_file

automatic

Checkpoint path. By default a name that encodes geometry and basis, in scratch_dir (else DFTSW_SCRATCH, SCRATCH or TMPDIR).

scratch_dir

restart_save_to

restart_cleanup

false

restart_fock

false

restart_fock: on read, also seed DIIS with the checkpoint’s last (Fock, density) pair (mod_scf.F90’s scf_warm_start_t%FOCK).

restart_project

false

run’s, project its occupied orbitals onto the current basis instead of refusing (mod_restart.F90’s project_restart_orbitals). Needs an explicit restart_file (the automatic name encodes geometry + basis).

restart_every

0

restart_every: with restart=write/readwrite, also write the checkpoint every this many SCF iterations (0 = only at the end), so a killed or timed-out job can be resumed. The final write overwrites it.

occ_alpha

(none)

1-based alpha orbital positions to occupy. Required for fixed_occupation and mom.

occ_beta

(none)

Same for the beta channel.

mixing (4 keys)

key

default

meaning

method

diis

diis (Pulay DIIS) or broyden (Johnson’s modified Broyden). DIIS is the best-tested choice.

broyden_target

hamiltonian

With broyden: hamiltonian (mix the Fock matrix, then diagonalize) or density (diagonalize, then mix the density).

broyden_alpha

0.15

Broyden mixing parameter.

broyden_max_vecs

8

Broyden history length.

coulomb (24 keys)

key

default

meaning

method

see above

eri (exact integrals), poisson (numerical Poisson solver), analytic (closed-form Hartree potential on the grid) or density_fitting (RI-J; exact exchange by RI-K, so HF uses no four-index ERIs). With eri, poisson and analytic, exact exchange uses ERIs.

aux_basis_file

(empty)

NWChem-format auxiliary basis. Required for density_fitting (and for density-fitted SIC self-Coulomb and TDDFT coulomb: ri).

density_fitting_direct

auto

true: do not store the three-centre tensor (recompute it each J build; J only). false: store it. auto: direct for noncollinear runs, stored otherwise. Stored is about 100 times faster per build;

ri_exchange

true

Noncollinear runs with density_fitting: spinor RI-K exchange (false: ERI exchange).

rad_sol

hybrid

Poisson radial-solution method.

farfield

true

Use the far-field multipole expansion in the Poisson solver.

np

2

Poisson near-field expansion order.

ilm_tol

1e-10

Poisson multipole-moment truncation tolerance.

sic_l_tol

1e-8

Batched orbital-density (SIC) Poisson solves: high-l terms of the reconstructed potential bounded below this (Ha per orbital and atom) are dropped; 0 keeps the full expansion.

sic_ao_cache_mb

-1

Memory budget (MB) for keeping basis-function values on the Poisson mesh between batched SIC solves; <0: a quarter of the free memory, 0: no cache.

lm

0

Poisson expansion order for every atom (0: the coarse order of the built-in table, else the mesh lm).

charge_screen

false

Subtract the neutral free-atom densities before the Poisson solve and add their exact potential back. Improves the potential at high lm for about 40% more cost; no effect on SCF energies seen so far. Ignored with ECP atoms.

poisson_check

false

After the SCF, compare the Poisson Hartree potential with the exact one at every grid point and print the error by distance from the nearest atom.

exchange

eri

Source of exact exchange (HF, global hybrids): eri (the default route of method: ERIs, or RI-K with density_fitting), cosx (chain-of-spheres, any method; sec:cosx) or, with method: poisson only, numerical (orbital-pair Poisson solves).

exchange_tol

1e-8

Numerical exchange: skip grid blocks where both orbitals are below this value.

cosx_screen_tol

1e-10

COSX integral screening threshold. Looser values make K noisy and stall the SCF; keep the default.

cosx_overlap_fit

true

COSX overlap fitting (Izsak-Neese).

cosx_incremental

true

COSX: build K(D_n-D_n-1) and accumulate.

cosx_rebuild_every

8

COSX: full K build every n iterations.

cosx_final_grid

true

COSX: re-evaluate the exchange energy of the converged density on the larger final grid.

cosx_lm

0

COSX SCF grid: Lebedev order and radial points for every atom (0: built-in per-element values).

cosx_nrpt

0

COSX SCF grid: Lebedev order and radial points for every atom (0: built-in per-element values).

cosx_final_lm

0

The same for the final grid.

cosx_final_nrpt

0

The same for the final grid.

job (1 keys)

key

default

meaning

task

energy

energy / gradient (also dE/dR_A for every atom) / optimize (minimize the energy) / frequencies (harmonic analysis at the input geometry) / opt_freq (optimize, then frequencies) / raman (frequencies, then Raman activities) / opt_raman (optimize first) / ts …

gradient (2 keys)

key

default

meaning

method

analytic

analytic / numerical (central differences of the SCF energy).

step

0.002

Displacement (bohr), numerical only.

optimization (16 keys)

key

default

meaning

max_iter

100

Maximum gradient evaluations.

max_force

4.5e-4

Converged when the largest /dE/dR/ (Ha/bohr)…

rms_force

3.0e-4

… its RMS…

max_step

1.8e-3

… the largest component of the next step (bohr)…

rms_step

1.2e-3

… and its RMS are all below threshold (Gaussian’s defaults), or both force criteria are 100 times below threshold.

trust_radius

0.3

Initial trust radius (bohr, length of the whole step).

max_trust

1.0

Upper limit of the trust radius.

hessian

lindh

Starting Hessian: lindh (model Hessian) / unit.

trajectory_file

(none)

Multi-frame XYZ file (A) of every accepted geometry with its energy (Molden, Jmol, VMD, ASE).

force_trajectory_file

opt_traj_forces.xyz

Extended XYZ (ASE, OVITO) of every accepted geometry: positions (A), forces -dE/dR (Ha/bohr), energy (Ha), max and RMS force. ‘’ disables.

final_geometry_file

geom_final.xyz

XYZ file (A) of the final geometry. ‘’ disables.

final_fod_file

fod_opt.dat

SIC: the FODs at the final geometry (fod_file format). ‘’ disables.

coordinates

internal

internal (redundant internal coordinates) / cartesian.

constraints

(none)

One line, items separated by ;: distance i j [value], angle i j k [value], dihedral i j k l [value], freeze i [j …]. Distances in the input’s units, angles in degrees; without a value the starting value is held. Internal coordinates only.

ts_mode

1

TS search and IRC: Hessian eigenvector (ascending eigenvalue) followed uphill at the start.

hessian_recalc

0

TS search: recompute the Hessian every N steps (0: only at the start; Bofill updates in between).

frequencies (6 keys)

key

default

meaning

step

0.005

Displacement (bohr) for numerical Hessians.

temperature

298.15

Temperature (K) for the thermochemistry.

pressure

101325

Pressure (Pa).

symmetry_number

1

Rotational symmetry number sigma (2 for H_2O and CO_2, 3 for NH_3, 12 for CH_4 and benzene). Not detected automatically; it changes only S_ rot and G.

molden_file

(none)

Molden file with the normal modes, for animation.

hessian

auto

auto (analytic when available, else numerical) / analytic / numerical (central differences of the gradient). Also used for TS searches and IRC.

raman (6 keys)

key

default

meaning

field_step

0.002

Field step h (a.u.) of the finite-field polarizability.

mode_step

0.01

Displacement (bohr) along each unit-norm normal mode.

laser_nm

532

Excitation wavelength (nm) for the relative intensities.

polarizability

auto

auto (analytic where supported) / analytic / finite_field.

min_frequency

50

Modes below this (cm^-1) are skipped.

file

(none)

Table: mode, frequency, activity, depolarization ratio, relative intensity.

irc (10 keys)

key

default

meaning

step

0.1

Arc length of the first (adaptive) or every step, amu^1/2 bohr.

max_points

20

Points per direction.

adaptive

true

Adapt the step to the path curvature and the distance to the minimum.

min_step

0.02, 0.4

Bounds of the adaptive step.

max_step

0.02, 0.4

Bounds of the adaptive step.

trajectory_file

(none)

Multi-frame XYZ of the path, backward end -> TS -> forward end.

optimize_ends

false

Minimize both path ends afterwards (reactant and product, barrier heights).

projected_frequencies

false

Reaction-path Hamiltonian along the path: projected frequencies, zero-point energy, adiabatic potential, curvature (an SCF, gradient and Hessian per point).

frequency_stride

1

Use every n-th path point (and the ends).

rph_file

(none)

Table of s, E, ZPE_, , projected frequencies and curvature couplings.

md (45 keys)

key

default

meaning

dt

20

Time step (a.u.; 1 a.u. = 0.0242 fs).

steps

100

Number of steps.

temperature

0

Maxwell-Boltzmann start at this temperature (K); 0: start at rest.

seed

1

Seed of the random velocities.

velocities_file

(none)

Initial velocities instead: one line vx vy vz (bohr/a.u.) per atom.

remove_rotation

true

Remove the angular momentum (the linear momentum is always removed).

output

md

Prefix of _energy.dat, _traj.xyz and .mdrestart.

print_every

1

Progress line every N steps (the energy file has every step).

checkpoint_every

0

Write .mdrestart (Ehrenfest: .ehrestart) every N steps.

restart

false

Continue from the checkpoint for steps more steps.

method

bomd

bomd (Born-Oppenheimer: SCF and gradient every step) / ehrenfest (real-time TDDFT electrons with the mean-field force on the nuclei; LDA/GGA with coulomb: eri or density_fitting, global and range-separated hybrids and HF with density_fitting;

field

none, 1e-3, z

Ehrenfest: kick excites the electrons at t=0 (delta kick of strength kick along axis or direction: x y z);

kick

none, 1e-3, z

Ehrenfest: kick excites the electrons at t=0 (delta kick of strength kick along axis or direction: x y z);

direction

ehrenfest: kick / field direction (axis: x/y/z or direction: x y z)

amplitude

1.0e-3

ehrenfest: pulse / cw amplitude (a.u.)

omega

0.3e0

ehrenfest: pulse / cw frequency (a.u.)

t0

20.0e0

ehrenfest: pulse centre (a.u.)

sigma

5.0e0

ehrenfest: pulse width (a.u.)

ramp

0.0e0

ehrenfest: cw sin^2 switch-on time (a.u.; 0 = sudden)

amplitude2

ehrenfest: second pulse (field: pulse2)

omega2

t0_2

sigma2

axis2

corrector_iterations

1

Ehrenfest: corrector rounds per electronic step (>=1; one Fock build each plus the predictor’s).

substeps

1

Ehrenfest: electronic steps per nuclear step (electronic step dt/substeps, 0.2 a.u.); one geometry update and one force per nuclear step. E.g. dt: 2, substeps: 10.

propagator

expm

ehrenfest: electronic propagator ‘expm’ (exact exponential) / ‘cranknic’ (Crank-Nicolson / Cayley)

populations

0

Ehrenfest: write the occupations of the N lowest adiabatic Kohn-Sham orbitals per spin and the number of excited electrons to _populations.dat every step.

sic_potential

kli

Ehrenfest with SIC (sic: solver: kli): kli / exact (see below); with solver: jacobi see below (default variational).

corrector_tol

0

Ehrenfest: >0 repeats the corrector until the Hamiltonian changes by less than this (at most corrector_iterations rounds); SIC default 1e-8, 30 rounds.

sic_fd_step

1.0e-3

ehrenfest with SIC: bohr, central differences of the SIC energy for the SIC force

sic_force

analytic

ehrenfest with SIC: ‘analytic’ (PZ, density-fitted self-Coulomb) or ‘fd’

fod_relax

none

ehrenfest with SIC: ‘adiabatic’ relaxes the FODs to the minimum of E_SIC at the current density

fod_mass

10.0e0

ehrenfest with SIC, fod_relax: dynamics: fictitious mass of a FOD (electron masses)

fod_masses

optional: one mass per FOD (alpha FODs, then beta FODs); overrides fod_mass

fod_thermostat

none

FOD dynamics: ‘none’ / ‘friction’ / ‘berendsen’

fod_friction

0.0e0

friction: velocity damping rate gamma (1/fs)

fod_temperature

0.0e0

berendsen: target FOD temperature (K)

fod_tau

20.0e0

berendsen: coupling time (fs)

fod_relax_macro

5

exact SIC: FOD / density passes before the dynamics (0: none)

fod_relax_every

1

relaxation every N nuclear steps

fod_relax_tol

1.0e-4

max /dE_SIC/dFOD/ (Ha/bohr)

fod_relax_trust

0.05e0

max FOD displacement per relaxation (bohr)

fod_relax_iterations

100

max BFGS iterations per relaxation

axis

none, 1e-3, z

Ehrenfest: kick excites the electrons at t=0 (delta kick of strength kick along axis or direction: x y z);

solvent (12 keys)

key

default

meaning

model

cpcm

cpcm / cosmo / iefpcm (integral-equation formalism, K=S-f2piDAS with f=(epsilon-1)/(epsilon+1)). All models work with every feature below.

solvent

water

Solvent name giving epsilon: water, methanol, ethanol, acetonitrile, dmso, acetone, dichloromethane, chloroform, thf, toluene, benzene, hexane, cyclohexane.

epsilon

from name

Static dielectric constant; overrides the name.

vdw_scale

1.2

Factor on the vdW radii of the cavity.

lebedev

29

Lebedev degree per atom sphere (29 = 302 points; 23 = 194, 35 = 590).

epsilon_optical

1.78

Dielectric constant of the TDDFT response kernel (fast, electronic response of the solvent).

tddft_response

nonequilibrium

nonequilibrium: kernel with epsilon_optical (vertical excitations, PySCF’s default); equilibrium: kernel with the static epsilon.

far_field

false

Multipole far field for the Gaussian-charge kernels of the SCF reaction field and the gradient (large molecules; see below).

far_field_order

6

Expansion order beyond the pair’s own angular momentum.

far_field_theta

0.25

Multipole acceptance (d_B+d_T)/rho.

far_field_cell

4.0

Edge (bohr) of the cells that group primitive pairs and surface points.

far_field_min

0.4

Minimum share of the (pair, point) work that must be far for the far field to be used (0 forces it).

relativity (3 keys)

key

default

meaning

method

none

none / zora / x2c.

c_light

137.03599967994

Speed of light (a.u.); large values give the non-relativistic limit.

scaled

false

With zora: also report the scaled-ZORA energy after the SCF. Not with sic: or noncollinear runs.

analysis (17 keys)

key

default

meaning

population

none

none / mulliken / lowdin / both / natural / all. Per-atom populations and charges, also written to POPULATION_ANALYSIS.dat. Mulliken and L”owdin populations, spin populations and S^2 are always printed; natural adds the natural population analysis (sec:npa).

orbital_character

none

Same choices as population. Per-atom and per-shell-type decomposition of the HOMO.

dos

false

Total and projected density of states in DOS.dat (weights from orbital_character, Mulliken by default).

hyperfine

false

Isotropic (Fermi-contact) and spin-dipolar hyperfine couplings (s sec:hyperfine, sec:epr).

magnetic_anisotropy

false

Spin-orbit magnetic anisotropy (Pederson-Khanna): anisotropy tensor, easy axis, D, E (sec:mae).

soc_potential

coulomb / sap

Potential in the spin-orbit operator: coulomb (nuclear + Hartree; default after the SCF), nuclear (bare Breit-Pauli), sap (atomic model potential; default for scf: spin_orbit) or somf (spin-orbit mean field; post-SCF only, libcint build).

anisotropy_method

perturbative

perturbative, force_theorem or both (sec:mae).

zfs_spin_spin

false

Spin-spin zero-field splitting (sec:epr); with magnetic_anisotropy the total D=D_ SOC+D_ SS is printed.

zfs_soc_convention

pk

Spin prefactors of D_ SOC: pk, neese or vanwullen (sec:mae).

gtensor

false

Electronic g-tensor (sec:epr).

nmr

false

GIAO NMR shielding tensors (sec:nmr).

polarizability

false

Analytic static dipole polarizability alpha_ij (coupled-perturbed HF/KS; scope of the analytic Hessian; eri Coulomb is the default). Agrees with the finite-field scan to all printed digits (water PBE 10.4337, 10.2952, 10.1255 a.u.).

gtensor_origin

charge centre

Gauge origin (bohr) for gtensor; default the nuclear-charge centre.

dos_fwhm

0.02

Gaussian broadening (Ha).

dos_npoints

2000

Number of DOS points.

molden_file

(empty)

Write geometry, basis and orbitals to this Molden file (for Molden, Jmol, Avogadro, IboView).

wfx_file

(empty)

Write an AIMAll-style .wfx file (for AIMAll, Multiwfn).

cube (4 keys)

key

default

meaning

quantities

(empty)

Comma-separated list, see below.

prefix

cube

File-name prefix (may include a directory).

spacing

0.2

Grid spacing (bohr).

margin

5.0

Extent of the grid beyond the outermost nuclei (bohr).

tddft (24 keys)

key

default

meaning

nroots

10

Number of lowest roots.

method

casida

casida (full RPA) / tda.

multiplicity

singlet

singlet / triplet (closed-shell reference only; triplets have f=0). An open-shell reference is solved spin-blocked and gives all excitations at once.

solver

dense

dense (full diagonalization; small systems) / davidson (matrix-free).

coulomb

ri

Hartree part of the response: ri (fastest; needs coulomb: aux_basis_file) / eri (exact, slow) / analytic / poisson. Hybrids need ri or eri unless the exchange is cosx.

exchange

auto

Exact-exchange part of hybrids: auto (cosx when the SCF used coulomb: exchange: cosx, otherwise eri with coulomb: eri and ri else) / ri (RI-MO with the SCF auxiliary basis; needs coulomb: ri) / eri (exact, slow) / cosx (chain of spheres, any coulomb;

cosx_grid

scf

COSX grid of the response: scf (the small SCF grid) / final (the larger final grid; about 50% slower, about 30 times more accurate).

max_iter

60

Davidson iterations.

conv_res

1e-5, 1e-7

Davidson residual and /Deltaomega/ (Ha) thresholds.

conv_e

1e-5, 1e-7

Davidson residual and /Deltaomega/ (Ha) thresholds.

memory_cap_mb

4000

Memory cap (MB) for the RI blocks and the MO values on the grid; above it slower, recomputing routes are used. The RI exchange blocks of hybrids must fit.

run_checks

false

Run built-in self-tests and print PASS/FAIL lines.

frozen_core

false

Freeze the atomic cores (all-electron atoms, Z<= 54).

n_frozen

-1

Explicit number of frozen occupied orbitals (>= 0 overrides).

virt_cut_ev

0

Keep virtuals with epsilon_a-epsilon_ HOMO<= this value (eV); 0 keeps all. Can change roots by 1e-3 Ha or more.

profile

false

Time the kernel builds for 1, 4 and 16 trial vectors.

force_uks

false

Use the spin-blocked path for a closed-shell reference (gives singlets and triplets together; a test).

donor_atoms

-

Atom indices of two fragments (ranges allowed, e.g. [1-6]); both given switch on the coupling analysis (sec:eet).

acceptor_atoms

-

Atom indices of two fragments (ranges allowed, e.g. [1-6]); both given switch on the coupling analysis (sec:eet).

fed_nstates

4

Number of lowest roots used for the couplings.

fragment_weights

becke

becke / hirshfeld (see cdft).

coupling

fed

fed (excitation energy transfer) / fcd (charge transfer) / both.

transition_file

-

Write the singlet transition densities of this (monomer) run for eet_coupling. Closed-shell singlets only.

transition_nstates

0

Number of states written; 0 = all nroots.

rt_tddft (56 keys)

key

default

meaning

propagator

expm

‘expm’/’magnus’/’cranknic’

dt

0.05e0

time step (a.u.)

steps

1000

number of steps

commutators

25

BCH commutators (‘magnus’)

predictor_corrector

true

mid-point Fock matrix by extrapolate-propagate-average (false: extrapolation only)

field

kick

‘none’/’kick’/’pulse’/’cw’

tensor

false

field: static: full tensors alpha, beta, gamma

kick

1.0e-3

delta-kick strength (a.u.)

axis

direction

amplitude

1.0e-3

pulse / cw amplitude (a.u.)

ramp

0.0e0

cw switch-on time (a.u.)

cap

false

complex absorbing potential (ionization)

cap_radius

8.0e0

CAP: radius R0 of the absorber-free sphere (bohr)

cap_strength

0.01e0

CAP: strength eta (Ha/bohr^2)

amplitude2

second pulse (field: pulse2)

omega2

second pulse (field: pulse2): frequency (a.u.)

t0_2

second pulse: centre (a.u.)

sigma2

second pulse: width (a.u.)

axis2

second pulse: direction x/y/z

omega

0.3e0

pulse / cw frequency (a.u.)

t0

20.0e0

pulse centre (a.u.)

sigma

5.0e0

pulse width (a.u.)

print_every

1

progress line every N steps

output

rt

output prefix: _dipole.dat, _spectrum.dat

gamma

0.003e0

spectrum damping exp(-gamma t) (a.u.)

wmax_ev

30.0e0

upper end of the spectrum (eV)

dw_ev

0.02e0

spectrum grid spacing (eV)

corrector_iterations

1

corrector iterations of the mid-point Fock matrix (2-3: ~1e-11 Ha energy conservation)

corrector_tol

1.0e-8

convergence of the corrector iterations

spectrum

fft

‘fft’/’pade’

pade_samples

400

samples used by the Pade spectrum

pade_order

6

Pade denominator order per MO pair

analysis

false

line fit + transition densities of a delta-kick run

ao_cache_gb

2.0e0

AO cache on the xc grid (GB); 0 = off

pack_dfit

true

pack the RI-J tensor (upper triangle of the pair index)

dfit_screen

1.0e-10

RI-J pair screening of the packed 3-index tensor (< 0: keep all pairs)

checkpoint_every

0

write the propagation checkpoint every N steps (0: never)

checkpoint_file

checkpoint file (’’ = .rtrestart)

restart

false

continue a propagation from the checkpoint (steps = additional steps)

populations

false

time-resolved Mulliken/Loewdin charges and ground-state MO occupations

pop_every

0

population output every N steps (0: print_every)

pop_nmo

12

virtual MOs per spin in the MO-occupation output

snapshot_every

0

cube of the induced density every N steps (0: none)

snapshot_max

40

maximum number of snapshot cubes

fock_reuse

true

reuse the last predicted Fock matrix as H(t+dt) (corrector_iterations >= 2)

restricted_xc

true

propagate one spin channel when both spin Hamiltonians and densities coincide

analysis_lines

30

maximum number of fitted lines

analysis_gain

1.0e-2

stop adding lines when the residual improves by less than this fraction

analysis_fmin

0.02e0

smallest oscillator strength kept

analysis_cubes

4

transition-density cube files for the strongest lines

analysis_wmin_ev

0.5e0

lower end of the line-fit window (eV)

cube_spacing

0.35e0

cube grid spacing (bohr)

cube_margin

4.0e0

cube margin around the molecule (bohr)

sic_potential

kli

‘kli’/’slater’

sic_relax

false

re-converge the ground state under the time-dependent SIC Hamiltonian first

cdft (13 keys)

key

default

meaning

donor_atoms

-

Fragment atom indices (ranges allowed).

acceptor_atoms

-

Fragment atom indices (ranges allowed).

constraint

charge

charge: constrain q_D-q_A. spin: constrain M_D-M_A (M=N_alpha-N_beta) and q_D-q_A.

fragment_weights

becke

becke (atomic Becke cells of the grid) or hirshfeld (free-atom density weights; all-electron atoms only).

values

-

One state per entry: q_D-q_A (charge) or M_D-M_A (spin).

charge_values

0

spin only: q_D-q_A of each state (e.g. 2 and -2 for the D^+A^- and D^-A^+ triplet CT states).

unpaired_electrons

ground

N_alpha-N_beta of the CDFT states (2 for triplet diabats on a singlet ground state).

max_iter

100, 1e-7

SCF iterations and commutator threshold.

conv_tol

100, 1e-7

SCF iterations and commutator threshold.

constraint_tol

1e-9

Tolerance on /C-C_0/.

v_max

5

Bound on the multipliers (Ha).

run_checks

false

Hellmann-Feynman check dE/dC_0=-V for the first state.

mom

false

Maximum-overlap occupation from iteration 3. A state not converged after 40 aufbau iterations switches to MOM automatically.

pdscf (29 keys)

key

default

meaning

hole

0

occupied ordinal (0 = HOMO of the hole spin)

particle

0

virtual ordinal (0 = LUMO of the particle spin)

hole_spin

alpha

‘alpha’/’beta’

particle_spin

alpha

‘alpha’ / ‘beta’

states

[6>7, 5>7, 6>8]

spin_ci_alpha

1.0e0

scaling of the 2x2 CI coupling (Grimme-style; paper: 0.6 recommended over 1)

spin_purify

true

closed-shell reference: run M (a->a) and T (b->a), report S = 2M - T

spin_correction

both

‘triplet’/’raising’/’ci’/’both’/’all’

alpha_max

4.0e0

alpha_tol

1.0e-3

max_evals

16

relax_hole

true

relax_particle

true

relax_passive

true

subspace_solve

true

exact hole/particle block solve (degenerate-safe); false = first-order sums

iterate

false

iterate the perturbative state to convergence (Phase 3.3)

max_iter

100

conv_grad

1.0e-5

chp

false

constrained hole-particle SCF (OCDFT, Phase 4)

chp_max_iter

100

chp_start

auto

auto/one_step/rigid

chp_conv

1.0e-6

min_particle_weight

0.5e0

collapse guard (0 disables)

chp_spectators

auto

auto/overlap/aufbau

fod_mode

frozen

SIC: frozen/relax_final/alternate

fod_seed

move_hole

SIC: move_hole/ground

fod_force_tol

1.0e-4

Ha/bohr, frozen-density FOD relaxation

fod_max_macro

10

alternate: CHP + FOD cycles

fod_conv_e

1.0e-5

Ha, alternate: energy change between cycles

hubbard (7 keys)

key

default

meaning

reference_basis

-

Reference minimal basis in .nw format (required), e.g. basis/minao_ref.nw.

units

ev

Units of u/j: ev / hartree.

elements

-

Elements with a Hubbard site; every atom of the element is a site, e.g. [Ti].

l

-

Angular momentum of the corrected shell per element (2 = d, 3 = f, 4 = g).

ref_index

0

Which reference shell of that l (0 = the last, i.e. valence, shell).

u

-

U per element.

j

0

J per element; the energy uses U_ eff=U-J.

neo (6 keys)

key

default

meaning

quantum_atoms

-

1-based atom numbers of the quantum nuclei (ranges allowed, e.g. [2, 5-7]). Per-atom quantum: true in atoms does the same.

nuclear_basis

-

Nuclear basis file in .nw format, looked up by element (required). Supplied: basis/neo-pb4d.nw, neo-pb4f1.nw, neo-pb4f2.nw, neo-pb5d.nw, neo-pb6d.nw, neo-pb6h.nw (Yu, Pavosevic, Hammes-Schiffer) and the even-tempered neo-8s.nw, neo-8s8p.nw, neo-8s8p8d.nw.

epc

epc17-2 (DFT) / none (HF)

Electron-proton correlation: none / epc17-1 / epc17-2 / epc18-1 / epc18-2. The gradient-dependent epc19 is not implemented.

uncontract_electronic

true

Uncontract the electronic basis on the quantum atoms, giving one shell per distinct exponent and angular momentum. The contractions were fitted for point nuclei.

cross_coulomb

incore

Electron-nucleus Coulomb integrals (mu/PQ): computed once and stored (incore), or recomputed in every SCF iteration (direct). Both are exact.

incore_max_mb

4000

Largest storage for incore, all quantum nuclei together (8 n_e(n_e+1)/2. n_p(n_p+1)/2 bytes per nucleus for n_e electronic and n_p nuclear functions). Above it the run falls back to direct.

sic (82 keys)

key

default

meaning

functional

none

‘none’/’pz_sic’/’lsic’

orbitals

flo

‘flo’/’free’/’free_complex’

active

all

all/valence/core (SOSIC)

core_size

small

small/large (SOSIC core table)

active_partition

energy

energy (SOSIC)

flo_partition

none

none/core_valence/core_valence_rot

frozen_core_sic

false

Frozen-core FLOSIC (method by R. R. Zope): stage 1 with partitioned FLOs, frozen core self-Coulomb potentials and rigid core shells, stage 2 ordinary FLOSIC (KLI FOD relaxation). Experimental, not recommended (slower than an ordinary relaxation so far)

solver

kli

‘kli’/’jacobi’

locality

false

on/off/true/false

locality_tol

1.0e-8

oep

kli

‘kli’/’ceda’ (solver kli, pz_sic or lsic)

flo_type

real

‘real’/’two_point’ (complex FLOs, jacobi + pz_sic)

scf_algorithm

jacobi

‘jacobi’/’direct’

direct_grad_tol

1.0e-6

direct_method

auto

‘lbfgs’/’newton’/’auto’

direct_stability

true

direct_kick

0.0e0

symmetry-breaking rotation (rad) of the starting orbitals

direct_overlap_barrier

0.0e0

direct_overlap_barrier mu: the direct minimizer works on E - mu sum log det(V^H V) (V = unnormalized FO matrix) to stay off the Loewdin singularities (mod_flosic_direct.F90); 0 = off. FLOs only; e_total stays barrier-free

direct_starts

1

multi-start search for the lowest minimum (direct minimization)

direct_orbital_table

false

print the final localized orbitals: e_sic, centroid, spread (direct)

coulomb_method

poisson

‘poisson’/’density_fitting’/’analytic’

lsic_consistency

quasi

‘full’/’quasi’ (lsic only)

lsic_scaling_factor

tw_t

‘tw_t’/’alpha’

radial_grid_factor

0

SIC grid radial refinement (jacobi)

grid_lm

0

SIC grid angular order, 0 = SCF mesh (jacobi, kli)

grid_prune

SIC grid pruning: none/nwchem, ‘’ = SCF (jacobi, kli)

jacobi_scf

broyden

‘broyden’/’legacy’

jacobi_inner_sweeps

3

jacobi_broyden_alpha

0.3e0

lsic_perturbative

false

one-shot LSIC, lsic only

semicanonical_energies

true

occupied space, the DFA Hamiltonian in the virtual space) as the orbital energies, HOMO-LUMO gap and orbitals. Free after a fixed-FOD SCF; after a single-point FOD relaxation it costs one more fixed-FOD SCF.

seed_initial_guess

false

already SIC-symmetry-broken geometry instead of the bare, spherically-symmetric (hence exactly-degenerate) core-Hamiltonian guess.

ramp_iters

0

full rationale (targets the same C/F/S/Cl partially-filled-p-shell convergence failure sic_seed_initial_guess was tried against and found ineffective for).

fod_file

optional; auto-generated if unset (mod_fod_initial_guess)

fod_guess_method

thomson

‘thomson’/’quantum_p’/’quantum_d’/’quantum_lp’/’assembly’/’centroid’

fod_assembly_data

fod_guess_method=’assembly’ database

fod_assembly_file

fod_assembly.dat

fod_guess_method=’assembly’ output

fod_assembly_resonance

1

fod_assembly_jitter

0.0e0

a reproducible pseudo-random vector of this length (bohr), breaking the guess’s symmetry, which FOD optimization preserves (experimental: no benefit seen so far, see the Developer Manual).

fod_assembly_warm_start

true

fod_assembly_warm_start: run a plain-DFT SCF first and start the SIC SCF from its orbitals (as the quantum_* guesses do); without it the SIC SCF starts from the ordinary initial guess (C2H2 failed to converge).

fod_file_warm_start

false

fod_file_warm_start: with a fod_file, run the same preliminary plain-DFT SCF first and start the SIC SCF from its converged orbitals (default: the SIC SCF starts from the ordinary initial guess)

fod_assembly_spin_mode

lewis

lewis/linnett

fod_assembly_ionic

true

fod_assembly_cleanup

true

fod_assembly_fallback

centroid

centroid/none

fod_centroid_file

fod_centroid.dat

fod_guess_method=’centroid’ (and the assembly fallback): output file of the Boys-localized orbital centroids (read_fod_file format).

fod_localize_fb_max_iter

200

this is SELECTED (fod_optimization=’foster_boys_spread’). Steepest descent with backtracking (this project has no L-BFGS-B the way the legacy optimizer does).

fod_localize_fb_force_tol

1.0e-3

fod_localize_fb_step_init

0.3e0

fod_localize_fb_hops

0

accept (temperature in bohr^2 of spread), keeps the lowest, and writes the distinct minima to <fod_localize_fb_file>__min.fod. check = true compares the analytic gradient and J with the finite-difference routine at the starting FODs.

fod_localize_fb_hop_step

0.6e0

fod_localize_fb_temp

0.02e0

fod_localize_fb_seed

1

fod_localize_fb_check

false

fod_localize_fb_file

FB_FODS

fod_localize_fb_lam_floor

0.3e0

Regularisation of the spread: the unconstrained minimum drives FODs together (smallest eigenvalue of the Fermi-orbital overlap -> 0). Eigenvalues below lam_floor are penalised by (lam_penalty/2) sum max(0,lam_floor-lam)^2.

fod_localize_fb_lam_penalty

10.0e0

fod_localize_fb_core

free

core FODs (found as for sic: relax_core_mode, FODs within 0.35 r_cov of a nucleus): ‘free’ or ‘fixed’

orbital_log_file

FLOSIC_ORBITAL_ENERGIES.log

‘’ disables; see mod_pzsic_kli.F90

fod_optimization

none

none/energy/foster_boys_spread/ace_surrogate

relax_method

bfgs

‘bfgs’/’cg’/’steepest’

relax_precond

none

‘none’/’surrogate’

relax_precond_floor

1.0e-3

relax_coords

cartesian

‘cartesian’/’internal’

relax_core_mode

free

free/fixed/rigid

relax_energy_tol

0.0e0

Ha; 0 disables (kli)

relax_line_search

backtracking

‘wolfe’/’backtracking’ (kli)

relax_force_tol

1.0e-4

Ha/Bohr

relax_max_iter

30

outer (full-SCF) iterations

relax_step_init

0.20e0

Bohr

relax_restarts

1

direct/two-point FOD relaxation restarts

relax_restart_amp

0.25e0

bohr

relax_checkpoint_file

RELAXED_FOD.dat

relax_log_file

FOD_RELAX_PROGRESS.log

relax_warm_start

true

entirely (mod_pzsic_jacobi.F90’s run_scf_flosic_sc always cold- starts its own plain-DFA warm-up internally – see that module’s header).

fix_fod_at_nucleus

false

sic_solver=jacobi + fod_optimization=energy only

frozen_density

false

fod_optimization=energy only

frozen_max_iter

50

frozen_force_tol

0.0e0

frozen_then_relax

true

frozen_cycle

false

cheap force), then SCF at the new FODs, … until the FODs stop moving (max/force/ < relax_force_tol at the fresh SCF orbitals). Needs frozen_density and frozen_then_relax.

two_step

false

sic_solver=kli only

atoms (per atom, 10 keys)

key

meaning

element

element symbol (or atomic number)

position

Cartesian position [x, y, z] in system: units

moment

initial local spin moment of the atom (guess / fixed-moment bookkeeping)

spin_axis

local spin quantization axis (noncollinear runs)

core

all-electron (ALL) or ECP core for this atom

mass

atomic mass for frequencies / IRC (default: most abundant isotope)

quantum

basis_file

uncontract

mesh

per-atom mesh map {nrpt, lm, alp_n, m_n}, overriding mesh_default