Szczepanik Research Group

Department of Theoretical Chemistry
Faculty of Chemistry, Jagiellonian University
Gronostajowa 2, 30-387 Krakow, Poland
Tel: (+48) 12 686 23 90
E-mail: dariusz.szczepanik@uj.edu.pl

HOME      PROJECTS      PUBLICATIONS      runEDDB      X

About EDDB       Download       Tutorials       Manual



◼ Tutorial 5 — Substituent effects from differential BDF maps

A hydrogen-bonded dimer of acrylic acid, and the same dimer with an amino or a cyano group on the β-carbon. Which substituent really changes the π-delocalization, and where? Comparing two BDF maps by eye rarely answers that; subtracting them point by point does. The differential map ΔBDFπ = BDFπ(perturbed) − BDFπ(reference) shows in one picture where delocalization grows and where it shrinks.

What you will learn
  • Choosing the π-NOBDs by hand with -s — and checking the choice.
  • Computing a differential BDFπ map with --export-cube dbdf and --cube-ref.
  • Superimposing two structures on a common fragment with --cube-align.
  • Reading a substituent effect from the map and from the per-atom π populations.

Before you start

We study the hydrogen-bonded dimer of (E)-acrylic acid and two derivatives substituted at the β-carbon: R = NH2, a π-electron donor, and R = CN, a π-electron acceptor. The parent dimer, R = H, is the reference against which both are compared. You need three geometry files, each holding a separately optimized dimer:

💾 H.xyz💾 NH2.xyz💾 CN.xyz


Figure 1. The carboxylic-acid dimers studied: R = H (reference), NH2 and CN. The molecules are held together by a pair of O–H···O=C hydrogen bonds.

All runs below use the built-in GFN2-xTB engine (the input is a plain .xyz file) and finish in about a second.


Part 1 — Choosing the π-NOBDs

The parent monomer has six π-electrons: two from the C=C bond, two from the C=O bond and a lone pair on the hydroxyl oxygen. The amino substituent adds its nitrogen lone pair, and the nitrile adds the component of its triple bond that lies perpendicular to the molecular plane — two electrons in both cases. The dimers therefore have 12 (R = H) or 16 (R = NH2, CN) π-electrons, so the R = H dimer has six π-type NOBDs and the substituted dimers eight.

If a π-NOBD is missing in either the substituted or the reference system, the difference map shows an artefact wherever it is missing. The order of the NOBDs can also differ between the two systems, so the right ones have to be identified in each. Print the NOBD table and export the orbitals for viewing, for each of the three dimers:

 terminal
$ runEDDB -i H.xyz --export-fchk nobd --table nobd
$ runEDDB -i NH2.xyz --export-fchk nobd --table nobd
$ runEDDB -i CN.xyz --export-fchk nobd --table nobd
 H.xyz, NOBD table
  ⋯ banner and stage lines omitted ⋯
▶ Printing analysis details:

  ┌────────────────────────────────────────────────────────────────────────────────────┐
  │            NATURAL ORBITALS FOR BOND DELOCALIZATION (NOBD) IN NVB BASIS            │
  └────────────────────────────────────────────────────────────────────────────────────┘
    Index  Sel   Occupancy    s (l=0)  %s    p (l=1)  %p    d (l=2)  %d    f (l=3)  %f
   ─────── ───   ═════════   ───────── ───  ───────── ───  ───────── ───  ───────── ───
         1  *      0.59076     0.00000  0     0.59076 100    0.00000  0     0.00000  0 
         2  *      0.59042     0.00000  0     0.59042 100    0.00000  0     0.00000  0 
         3  *      0.37962     0.00000  0     0.37962 100    0.00000  0     0.00000  0 
         4  *      0.37862     0.00000  0     0.37862 100    0.00000  0     0.00000  0 
         5  *      0.24288     0.01023  4     0.23264  96    0.00000  0     0.00000  0 
         6  *      0.23973     0.01399  6     0.22574  94    0.00000  0     0.00000  0 
         7  *      0.14323     0.03701  26    0.10621  74    0.00000  0     0.00000  0 
         8  *      0.14276     0.03681  26    0.10595  74    0.00000  0     0.00000  0 
         9  *      0.11227     0.03570  32    0.07657  68    0.00000  0     0.00000  0 
        10  *      0.11131     0.03919  35    0.07213  65    0.00000  0     0.00000  0 
        11  *      0.09509     0.00000  0     0.09509 100    0.00000  0     0.00000  0 
        12  *      0.09461     0.00000  0     0.09461 100    0.00000  0     0.00000  0 
        13  *      0.07465     0.01736  23    0.05728  77    0.00000  0     0.00000  0 
        14  *      0.07451     0.01679  23    0.05772  77    0.00000  0     0.00000  0 
  ⋯ NOBDs 15–28 omitted ⋯

Open H.NOBD_G.fchk in Avogadro2 (as in Tutorial 2) and look at the orbitals together with the %p column:


Figure 2. NOBDs 1–12 of the R = H dimer, with occupancies. The six π-NOBDs are marked in red with an asterisk.


Figure 3. The eight π-NOBDs of the R = NH2 dimer, with occupancies.

Whatever the selection, the summary block of the dissected run provides the check: Total ED_G must equal the formal π-electron count.

Table 1. The π-NOBD selections, and the check that validates them.

dimerπ electronsπ-NOBDs-s listTotal ED_G (check)
R = H1261:4,11,1212.000
R = NH21681:816.000
R = CN1681:4,7,8,11,1216.000
Why not -a? The automatic π-selection works on planar molecules, but here the point is to compare the same π-space in three systems, so it pays to see each NOBD once. Trying -a on these dimers is one of the exercises at the end.

Part 2 — The reference BDF map (R = H)

 terminal
$ runEDDB -i H.xyz -s 1:4,11,12 --export-cube bdf --table npa > H.log
 H.log
  ⋯ banner and stage lines omitted ⋯
▶ Printing analysis details:

  ┌────────────────────────────────────────────────────────────────────────────────────┐
  │          NATURAL POPULATION ANALYSIS IN CONDENSED-ATOMIC (NVB) RESOLUTION          │
  └────────────────────────────────────────────────────────────────────────────────────┘
     Atom      Charge       ED_G        α         β        EDDB_G       α         β
   ────────   ─────────   ───────── ───────── ─────────   ═════════ ───────── ─────────
       1 C    -0.06416     1.00896      -         -        0.05189      -         -   
       2 C    +0.51112     0.80778      -         -        0.21648      -         -   
       3 O    -0.52401     1.50209      -         -        0.42142      -         -   
       4 O    -0.43750     1.75956      -         -        0.33000      -         -   
       5 H    +0.38004     0.00000      -         -        0.00000      -         -   
       6 C    -0.01560     0.92160      -         -        0.04475      -         -   
       7 H    +0.04806     0.00000      -         -        0.00000      -         -   
       8 H    +0.05857     0.00000      -         -        0.00000      -         -   
       9 H    +0.04348     0.00000      -         -        0.00000      -         -   
  ⋯ atoms 10–18 (second monomer) omitted ⋯

▶ Printing summary of EDDB calculations:

        Total   ED_G population:           12.00000    per atom:     0.66667
        Total EDLB_G population:            9.87089    per atom:     0.54838
        Total EDDB_G population:            2.12911    per atom:     0.11828

▶ Calculation completed on 2026-10-29. Total time: 1s.


Figure 4. BDFπ of the unsubstituted dimer, isosurface 0.025. Yellow: BDFπ < 0 (localized bonding dominates).

Only negative lobes appear at this isovalue. The π-system of acrylic acid is dominated by localized bonding: the vinyl C=C bond, the carboxyl C=O bond and the oxygen lone pairs each appear as a separate localized domain, and only 17.7 % of the π-density is delocalized (Total EDDB_G 2.129 of 12.000 e).

What delocalization there is stays almost entirely in the carboxyl fragment: the per-atom EDDB_G values in the NPA table place about 91 % of it on the three carboxyl atoms (C2, O3, O4), and the four π-NOBDs with the highest occupancies (1–4, Figure 2) are carboxyl orbitals, while the vinyl C=C bond carries only NOBDs 11 and 12.


Part 3 — The differential map for R = NH2

We now compute BDFπ(NH2) on the grid of the reference from Part 2 and subtract:

ΔBDFπ = BDFπ(NH2) − BDFπ(H)

Positive values of ΔBDFπ mark regions where delocalization increases upon NH2 substitution; negative values, a decrease (localization).

 terminal
$ runEDDB -i NH2.xyz -s 1:8 --export-cube dbdf --cube-ref H.BDF_G.cube --cube-align 1:4,6,10:13,15 --table npa > NH2.log
 NH2.log, the alignment report
  ⋯ banner and stage lines omitted ⋯
▶ Exporting differential BDF to NH2.DBDF_G.cube...
    Alignment atoms (--cube-align):    10
    RMSD after rigid alignment:           0.01944 Angstrom
    Max residual displacement:            0.03203 Angstrom
    (arbitrary translation + rotation removed; residual = internal deformation)
                                    1s
⚠ Before you align. The alignment atoms must carry the same index and the same element in both structures, or runEDDB stops with an error — so check the numbering of every file you align. Then read the RMSD the program reports: the fit removes only a rigid translation and rotation, and because the three dimers were optimized separately, any genuine difference in the fragment geometry survives as a residual (here 0.019 Å, small enough).


Figure 5. ΔBDFπ(NH2 − H), isosurface ±0.020. Green: ΔBDFπ > 0; orange: ΔBDFπ < 0.

Because both runs printed --table npa, we can also follow how the π-electrons redistribute. Figure 6 shows the change of the per-atom ED_G populations read from H.log and NH2.log, ΔED_G = ED_G(NH2) − ED_G(H).


Figure 6. ΔED_G(NH2 − H). Red: π-density lost; blue: gained. Values in brackets are the absolute populations of the substituent atoms.

The π-density of the amino lone pair spreads over the whole π-system. The largest gain is on the α-carbon (+0.147 e), and the carbonyl oxygen also gains noticeably (+0.038 e). Both the change in delocalization and this π-polarization follow from resonance structures (1) and (2) contributing alongside the base structure (0). Structure (2) in particular favours the hydrogen bond: it places a negative charge on the acceptor oxygen. The strengthening shows up as a shorter hydrogen bond — H···O is 1.675 Å for R = H and 1.668 Å for NH2.


Figure 7. Resonance structures of the amino-substituted dimer.


Part 4 — A contrasting case: the electron-withdrawing group (R = CN)

 terminal
$ runEDDB -i CN.xyz -s 1:4,7,8,11,12 --export-cube dbdf --cube-ref H.BDF_G.cube --cube-align 1:4,6,10:13,15 --table npa > CN.log

-s 1:4,7,8,11,12 selects the eight π-NOBDs and leaves out the in-plane nitrile NOBDs 13 and 14. The alignment RMSD is 0.015 Å.


Figure 8. ΔBDFπ(CN − H). Colours as in Figure 5.

In contrast to NH2, the CN group changes the delocalization of the acrylic-acid dimer only slightly. Small green isosurfaces appear on the two vinyl carbons, and the carboxyl group shows no change at this isovalue. The large orange lobe on the nitrile is, like the one on the amine nitrogen, the substituent’s own localized π-bond rather than a reorganization. The electron-withdrawing group perturbs the C=C bond slightly, and the perturbation stops there.

The π-populations, ΔED_G = ED_G(CN) − ED_G(H), tell the same local story. The largest change is a small loss on the α-carbon (−0.032 e), partly offset by a gain on the β-carbon (+0.021 e); everything else moves by less than 0.01 e.


Figure 9. ΔED_G(CN − H), on the same colour scale as Figure 6.

This slight polarization corresponds to resonance structure (1) in Figure 10, with a positive charge on the α-carbon. Its weight is much smaller than that of the corresponding structure for NH2: the change of the π-population on the α-carbon is almost five times smaller. And unlike the amino group, the nitrile does not reinforce the hydrogen bond: H···O lengthens slightly, to 1.679 Å.


Figure 10. Resonance structures of the nitrile-substituted dimer.


Summary

Table 2. π-populations (ED_G) of the common acrylic-acid core, per monomer, from the NPA tables of the three runs.

atom (per monomer)R = HR = CNR = NH2CN − HNH2 − H
C6 (β-carbon, bears R)0.9220.9430.951+0.021+0.030
C1 (α-carbon)1.0090.9771.156−0.032+0.147
C2 (carboxyl carbon)0.8080.8130.827+0.005+0.019
O3 (carbonyl O, H-bond acceptor)1.5021.4981.541−0.004+0.038
O4 (hydroxyl O, H-bond donor)1.7601.7521.780−0.008+0.020
acrylic-acid core6.0005.9826.254−0.018+0.254
Take-home
  • When you compute differential maps, the indices of the π-NOBDs can change between the perturbed and the reference system — identify them in each, and check that Total ED_G equals the formal π-count.
  • Lobes on atoms that do not exist in the reference come from the substituent’s own BDF map and are not a change. Interpret the atoms common to both molecules.
  • Check the alignment RMSD: it measures how much the common fragment really differs, and that difference is in the map too.

What to try next

Where to go next. Tutorial 6 applies the same differential map to a hydrogen-bonded guanine quartet, where only one of four monomers can be aligned at a time. The Maps & files page of the Manual describes --export-cube dbdf, --cube-ref and --cube-align in full.

Tutorial prepared by Paweł Wieczorkiewicz.


 

HOME      PROJECTS      PUBLICATIONS      runEDDB      X

About EDDB       Download       Tutorials       Manual