Subsections

2 Running Waveplot

Now, you have to decide, what kind of charge distributions, wavefunctions etc. to plot. In the current example, we will plot the total charge distribution of the water molecule, the charge distribution (wavefunction squared) for the highest occupied molecular orbital (HOMO), the wave function for the HOMO, and the total charge difference, which tells us, how the chemical bonding between the atoms modified the total charge distribution compared to the superpositions of neutral atomic densities.

2.1 Input

The appropriate waveplot input (waveplot_in.hsd) could look like the following:

# General options

Options = {
  TotalChargeDensity = Yes             # Total density be plotted?
  TotalChargeDifference = Yes          # Total density difference plotted?
  ChargeDensity = Yes                  # Charge density for each state?
  RealComponent = Yes                  # Plot real component of the wavefunction
  PlottedSpins = { 1 -1 }
  PlottedLevels = { 4 }                # Levels to plot
  PlottedRegion =  OptimalCuboid {}    # Region to plot

  NrOfPoints = { 50 50 50 }            # Number of grid points in each direction
  NrOfCachedGrids = -1                 # Nr of cached grids (speeds up things)
  Verbose = Yes                        # Wanna see a lot of messages?
}

DetailedXML = "detailed.xml"           # File containing the detailed xml output
                                       # of DFTB+
EigenvecBin = "eigenvec.bin"           # File cointaining the binary eigenvecs


# Definition of the basis
Basis = {
  Resolution = 0.01
  # Including mio-0-1.hsd. (If you use a set, which depends on other sets,
  # the wfc.*.hsd files for each required set must be included in a similar
  # way.)
  <<+ "wfc.mio-0-1.hsd"  
}

Some notes to the input:

2.2 Output

================================================================================
     WAVEPLOT  0.2
================================================================================

Interpreting input file 'waveplot_in.hsd'
--------------------------------------------------------------------------------
WARNING!
-> The following 3 node(s) had been ignored by the parser:
(1)
Path: waveplot/Basis/C
Line: 1-33 (File: wfc.mio-0-1.hsd)
(2)
Path: waveplot/Basis/N
Line: 52-84 (File: wfc.mio-0-1.hsd)
(3)
Path: waveplot/Basis/S
Line: 120-170 (File: wfc.mio-0-1.hsd)

Processed input written as HSD to 'waveplot_pin.hsd'
Processed input written as XML to 'waveplot_pin.xml'
--------------------------------------------------------------------------------

Doing initialisation

Starting main program

Origin
  -5.00000 -6.35306 -6.47114
Box
  10.00000 0.00000 0.00000
  0.00000 11.08472 0.00000
  0.00000 0.00000 12.94228
Spatial resolution [1/Bohr]:
  5.00000 4.51071 3.86331

Total charge of atomic densities:    7.981973


 Spin KPoint  State  Action        Norm   W. Occup.
    1      1      1    read
    1      1      2    read
    1      1      3    read
    1      1      4    read

Calculating grid

    1      1      1    calc    0.996855    2.000000
    1      1      2    calc    1.003895    2.000000
    1      1      3    calc    0.998346    2.000000
    1      1      4    calc    1.000053    2.000000
File 'wp-1-1-4-abs2.cube' written
File 'wp-1-1-4-real.cube' written
File 'wp-abs2.cube' written

Total charge:    7.998297

File 'wp-abs2diff.cube' written

================================================================================

Some notes on the output: