DFTB basics and a single-point water calculation

The tutorials run on a deMonNano installation. To download and configure deMonNano first, see the Quickstart page.

DFTB basics

Remember the DFTB energy expression :

$$ E_{DFTB} = \underset{AB}{Σ} E^{rep}_{AB} + Σ_i n_i c_iᵀ H⁰ c_i + ½ \underset{AB}{Σ} Δq_A Δq_B γ_{AB} $$

We call

$$ E_{band} = \underset{i}{Σ} n_i c_iᵀ H⁰ c_i \\ E_{coul} = ½ \underset{AB}{Σ} Δq_A Δq_B γ_{AB} \\ E_{electronic} = E_{band} + E_{coul} $$

Starting the tutorial

Get the tutorial documents typing :

wget https://demon-nano.ups-tlse.fr/doc/handson_deMonNano2025.tar.gz
tar -xzvf handson_deMonNano2025.tar.gz
vi TPvars.sh

change the correct paths to deMonNano :

source TPvars.sh
cd run

All the calculations are expected to be run in non-parallel : type export OMP_NUM_THREADS=1

Important files are :

  • deMon.inp
  • deMon.out : the main output file
  • deMon.mol type molden deMon.mol to visualize the geometries

Modify deMon.inp to give the correct path to basis directory. deMon is called by typing deMon.

The deMon.inp file :

MAINKEYWORD SUBKEY1 SUBKEY2 ...
MAINKEYWORD' SUBKEY'1 SUBKEY'2 ...

The GEOMETRY should be given at the end

See the Keywords page for the list of keywords.

Each line starting with # is not read by deMon.

Arrows → indicate line to be included in the input file

A first single-point DFTB2 calculation

With the setup above, run your first calculation: a single-point SCC-DFTB energy of the water molecule.

→ TITLE
→ DFTB SCC
→ PARAM PTYPE=BIO
→ basis
→ GEOMETRY
→ O  0.0740460  0.0714570  2.9997510
→ H  1.0138220 -0.0874930  2.9002910
→ H -0.0878680  1.0160340  2.9999580

The input lines :

  • DFTB SCC : single-point DFTB with the self-consistent-charge variant, in which the atomic charges are updated self-consistently during the SCF (the default is non-SCC).
  • PARAM PTYPE=BIO : gives the path to the DFTB (Slater-Koster) parameter folder, written on the line following PARAM; PTYPE=BIO selects the BIO parameter set, one of the sets used for SCC calculations.
  • basis : the path to the parameter folder, on the line following PARAM (modify it to give the correct path to the basis directory of your installation).
  • GEOMETRY : the coordinates of the water molecule, one line per atom (element symbol, x, y, z); GEOMETRY must be the last keyword of the input file.