Electronic properties of isolated molecules: Difference between revisions

From Wiki Max
Jump to navigation Jump to search
Line 122: Line 122:
Calculate the reaction Enthalpy of the methane combustion:
Calculate the reaction Enthalpy of the methane combustion:


CH{{sub|4}}+2O{{sub|2}} → 2H{{sub|2}}O+CO{{sub|2}}
CH<sub>4</sub>{{sub|4}}+2O{{sub|2}} → 2H{{sub|2}}O+CO{{sub|2}}


EXP: ∆Hc = -890 KJ/mol = 212.7151051 Kcal/mol
EXP: ∆Hc = -890 KJ/mol = 212.7151051 Kcal/mol


C2H5OH using C{{sub|2}}H{{sub|5}}OH
C2H5OH using C{{sub|2}}H{{sub|5}}OH

Revision as of 20:40, 18 March 2021

Prev:LabQSM#Lecture 2: DFT simulations of Molecules

Calculation of molecules: Intro

Originals from L. Gross, F. Mohn, N. Moll, P. Liljeroth, G. Meyer, The chemical structure of a molecule resolved by atomic force microscopy, Science 325, 1110-1114 (2009)

At variance with bulk crystalline systems (fully periodic in 3D), molecules are finite isolated systems, and special care needs to be put in setting up calculations, accordingly.

  • scf + nscf: DFT calculations for molecules (or systems with reduced dimensionality in general) follow the same strategies discussed in the previous lectures, where scf calculations are followed by nscf runs (and perhaps by post-processing steps, as discussed below in Electronic properties of isolated molecules#Post processing tools).
  • isolation: when localised basis sets are used, systems are usually treated as isolated by default (and care must be used to impose periodicity). Instead, when using plane-waves, periodic boundary conditions (PBC) are automatically enforced and molecule isolation has to be imposed.
  • vacuum: As a preliminary step, the unit cell describing an isolated molecule has to be large enough to avoid direct chemicalinteraction (ie chemical bonds) of atoms belonging to different replicas (given PBC, the atoms in one cell are infinitely repeated, giving rise to a lattice of replicas).
  • electrostatics: similarly, one also wants to avoid electrostatic interactions (driven in Kohn-Sham DFT by the Hartree potential) among replicas. The presence of long range interactions (dipoles, quadrupoles...) makes convergence wrt vacuum (ie cell size) slow and dedicated techniques should be used. When using Quantum ESPRESSO, consider setting assume_isolated="mt" (standing for Martyna Tuckerman approach, as from J. Chem. Phys. 110, 2810 (1999)) in the SYSTEM namelist.
  • When charged systems are considered the situation is even more critical: in principle the total energy would diverge for a system in PBC, and by default a compensating uniform background is added to the system (though resulting in spurious effects in the properties of the system). In this cases the use of the Martyna-Tuckerman approach is strongly recommended.
  • In principle, the exchange-correlation energy and potential would also have a contribution related to the presence of replicas (long range physical contributions are also there, just consider van der Waals interactions as an example). Nevertheless, when using simple approximations to the xc functional (eg LDA, GGA, meta-GGA) long range contributions are not present and so the xc term does not pose any problems.
  • Overall, a 10-15 Angstrom of vacuum in between replicas is typically enough to describe neutral molecules with mild dipoles to a decent accuracy. If the Martyna-Tuckerman approach is used, one needs to be very careful with the molecule separation since it needs to be at least as large as the physical dimension of the system in that direction (so for elongated molecules a large region of vacuum is actually needed).
  • Importantly: though rules of thumb exist (see above), the amount of vacuum to be included in the system description is a convergence parameter that needs to be tested against the quantities of interested to be calculated.

K-points and Gamma sampling

  • The Brillouin zone of a infinitely large cell subject to PBC becomes a single point, Gamma. Because of this, even when using a large but finite cell, K-point sampling should not be used. This should not be relevant in terms of results (if it is, spurious interactions are present), but would result in a waste of computational resources. The so-called Gamma sampling should then be sued.
  • Moreover, in view of the Gamma sampling, wave functions can be taken to be real, leading to more memory and computational time savings.
  • In Quantum ESPRESSO one needs to set the following:
  K_POINTS automatic
  1 1 1   0 0 0         # for Gamma sampling using complex wavefunctions
                        # deprecated, unless for testing or debugging
  K_POINTS (gamma)      # for proper gamma sampling using real wavefunctions

Post processing tools

Here we take the occasion to introduce some among the post processing tools of Quantum ESPRESSO. By post processing (PP) one means the set of tools and operations to be performed on the output data of the calculations (here the simulations performed at the DFT level). Quantum ESPRESSO provides a tool, pp.x, dedicated to post-processing calculations.

Possible quantities that can be extracted and plotted using pp.x:

  • charge density
  • electrostatic potential (V_ion + V_H)
  • total Kohn-Sham potential (V_ion + V_H + V_xc)
  • selected Kohn-Sham orbitals

Here is an example input file:

 &INPUTPP
    prefix="..."
    outdir="..."
    plot_num=11            # electrost. Pot
    filplot = "pot.pp"
 /

 &PLOT
    nfile=1
    filepp(1)="pot.pp"
    iflag=3
    output_format=5        # xsf xcrysden fmt
    fileout="pot.xsf"
 /

where plot_num can be chosen according to:

 plot_num = 
   0      total charge
   1      total potential
   5      STM images     
   7      KS orbitals
  11     electrostatic potential

More options are available at: INPUT_PP

Another post-processing tool useful in this context is average.x which performs planar (xy) and double averages of a given input scalar field on a 3D grid. This is particularly useful, e.g., to plot the average potential, in the form v(z), in the vacuum region of the cell in order to determine the position of the vacuum level. See exercises for more details.

Exercises

Exercise 1

Structural relaxation of the Guanine molecule

  • Use a molecular builder to find the initial molecular structure. (Avogadro)
  • Perform classical force field (FF) relaxation (using a built-in engine)
  • Perform a quantum mechanical (DFT based) refinement of the relaxation (using Quantum ESPRESSO, with thr=10^-3 on forces)
  • Use the xcrysden software to visualize the relaxation path.

Hints

Exercise 2

Electronic properties of the Guanine molecule

Using the guanine atomic coordinates determined at the previous step, compute:

  • HOMO and LUMO frontier orbital energies
  • How do they depend on the supercell volume and why?
  • Estimate the vacuum level wrt supercell size (pp.x, average.x)
  • Repeat the calculation using the “assume_isolated” variable
  • Is -HOMO a good estimate of IP ? IP_exp=8.0-8.3 eV

Hints

Exercise 3

Electronic properties of the Guanine molecule What does IP mean? [ IP = Etot(N-1)-Etot(N) ]

  • Let’s do this calculation explicitly (the ∆-scf procedure)
  • Repeat the calculation for different volumes
  • Repeat the above using different functionals (LDA,PBE,PBE0,HF...).

Note: hybrid functionals may take very long, special care must be used in setting the parameters

Hints

Exercise 4

Electronic properties of the Guanine molecule

  • Density, HOMO and LUMO orbitals and plot them (pp.x + xcrysden)
  • How the HOMO and LUMO orbitals looks like?
  • Density of states (dos.x tool)
  • The projected density of states (projwfc.x tool,sumpdos.x)

Exercise 5

A simple Reaction: Methane Combustion

Calculate the reaction Enthalpy of the methane combustion:

CH4Template:Sub+2OTemplate:Sub → 2HTemplate:SubO+COTemplate:Sub

EXP: ∆Hc = -890 KJ/mol = 212.7151051 Kcal/mol

C2H5OH using CTemplate:SubHTemplate:SubOH