Basics of deMonNano

1. How it works

Rappel:

Get the tutorial documents typing :

$ wget <download-url>/handson_deMonNano2025.tar.gz

$ tar -xzvf handson_deMonNano2025.tar.gz
$ vi TPvars.sh

Change the correct paths to deMon and FT :

$ source TPvars.sh
$ cd run

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

This is the most important files to run a deMonNano calculation :

  • deMon.inp : the input file
  • deMon.out : the main output file
  • deMon.mol : final geometry of molecule, use molden deMon.mol to visualize the geometries

The input file deMon.inp looks like :

MAINKEYWORD SUBKEY1 SUBKEY2 ...
MAINKEYWORD’ SUBKEY’1 SUBKEY’2 ...

The geometry should be given at the end like this

SYMBOL_1 POSITION_X POSITION_Y POSITION_Z
SYMBOL_2 POSITION_X POSITION_Y POSITION_Z
SYMBOL_3 POSITION_X POSITION_Y POSITION_Z
...

See the Keywords page for the list of keywords.

Note: Each line starting with # is not read by the deMon input parser.

The output file deMon.out contains all detailed results and time analysis.

You have already an input file in run/ directory. Just type

$ deMon

Don't forget to change the inside basis directory ~/basis by your own path.

2. Start a new calculation

To create a new calculation, write a new file deMon.inp somewhere :

DFTB
PARAM PTYPE=NSC
∼/basis
GEOMETRY
O  1.2478 -0.5185 3.4049
H  1.5946 -1.4204 3.3886
H  0.9008 -0.3341 2.5062

Run this calculation with the deMonNano binary provided in the website.

With this example, we ask a simple DFTB calculation. The PARAM keyword specifies the location of the basis.

Note: It is strongly recommended that you change the basis location with your current basis directory

When you finish to explore the deMon.out file, try to start a new calculation with DFTB SCC. We need to change NSC by BIO or MAT.

Now, below the first line in your input file, add OPTIMIZATION. This key will specify to start an optimization of geometry. At the end of calculation, plot trajectory with your favourite visualization software. For the example, we used molden : molden deMon.mol.

Note: You found the optimized geometry at the end of deMon.mol. Details of the optimisation are recorded in deMon.out. The default algorithm optimiser is the conjugate gradient method.

Perform a single point SCC calculation on the optimized water molecule. Add debug option to write many information with the new line PRINT DEBUG.

In the output file, you could observe the Hamiltonian, Overlaps, Density matrix.

Leave run directory :

$ cd ..

Go back to the tutorial 0 if you want to continue with python library.

Next steps

To drive the same calculations from Python, continue with Tutorial 0 — Basics about deMonNano, which sets up the DeMonNanoPy environment and runs a first calculation. For the deMonNano binary itself, the Quickstart page walks through the installation and the first run.