User Tools

Site Tools


exercises:2014_ethz_mmm:uv

This is an old revision of the document!


Absorption spectroscopy with time-dependent density functional theory

In this exercise we will compute the UV absorption spectrum of a water molecule, using the quantum chemistry software NWCHEM. The present exercise follows what is already available in the online manual of this open source software: Reference to TDDFT.

First, add the following lines to your .bash_profile file, using an editor (for example, nano ~/.bash_profile)

PATH=.:/cluster/home03/matl/danielep/NWCHEM/6.3/bin:$PATH
export PATH

Then source your profile file:

. ~/.bash_profile

Now you are able to run the nwchem code. Theo

We will show how a simple change in the termination (1 vs. 2 Hydrogens) changes the state structure completely.

You should run these calculations on 16 nodes with bsub -n 16. Copy, as usual, the files from the directory /cluster/home03/matl/danielep/LECTURE10/EXERCISE_10.2 (and later here on the media manager).

1. Task: Running the job and looking at the orbitals

This time we will not optimize the structure. With an ENERGY run, we run with cp2k the job 1h.1.5.inp and 2h.1.5.inp, meaning that there are here 1.5 units of the original molecule in the gas phase.

The interesting part of the code is in the &PRINT section of &DFT :

    &PRINT
    &STM
      BIAS -2.0 -1.0 1.0 2.0
      TH_TORB S
    &END STM
    &MO_CUBES
       NHOMO 10
       NLUMO 10
       STRIDE 2 2 2
       WRITE_CUBE T
    &END
    &V_HARTREE_CUBE
    &END

      &MO
       FILENAME EIG
       ADD_LAST NUMERIC
       EIGENVALUES
       OCCUPATION_NUMBERS
      &END
    &END

There will be an output file with the energy levels and their occupation. The last one can be easily found…

Hitting ls -ltr will allow you to see on the last lines of the screen the most recent files.
  1. Draw the energy level diagram for the two molecules. What is the energy gap in the two cases? What are the differences?
  2. Look with vmd at the cube files corresponding to the most interesting levels (close to Fermi…). Comment on the distribution of the states.

2. Task: Producing a simple STM image

The section &STM shown above produces STM images at different bias (feel free to change), meaning, using the Tersoff-Hamann approximation, it integrates all the density of states with energies between Fermi energy and the Bias potential: this energy interval is involved in the tunnel current. The *STM*cube files are 3D maps of the integrated density of states. Imagine that we have a microscope with a feedback that can keep constant current between tip and sample, by changing the height of the tip on the surface. Since the current is proportional to the density of states, we move the tip on isosurfaces of our cubefile. The program stm ** (in the same working dir) allows to extract a 2D map of the height of a given isosurface.

Run the program in the following way:
$ module load boost/1.54.0
$ module load mkl
$ stm -c 2h*STM*.cube --isovalues 1E-5 > stm.out

The resulting .igor files contain the z profile (in bohr) and may for example be plotted by gnuplot:

gnuplot
set pm3d map
set size square
set xrange [......
set yrange [.....

splot "mystm.igor" matrix using 2:1:3

Where instead of “mystm” you use an appropriate filename.

  1. In the output file of cp2k, the program tells you how many states have contributed to each STM image. Discuss the images that you see in the two cases.
  2. What makes the 1h* case particular with respect to the 2h*?
  3. Change the isosurface and look at the z-range. Discuss the changes in the range.
  4. Would you define the differences between 1h and 2h in the STM images as more of structural origin or electronic origin?
exercises/2014_ethz_mmm/uv.1400208994.txt.gz · Last modified: 2020/08/21 10:14 (external edit)