Tip

All input files can be downloaded: Files.

opt

This keyword controls the search of geometry minimum, transistion state, and reaction path.

Options

type

Value

Min Search the geometry minimum.

NEB Use the nudged elastic band (NEB) algorithm to search the reaction path and transition state.

Dimer Use the dimer algorithm to search the transition state given the reactant and product geometry.

QST2 Use the QST2 algorithm to search the transition state given the reactant and product geometry.

TS Search the transition state from a single structure.

Default

Min

Determine what type of geometry optimization you want to do.

For Min and TS, the initial structure should be given in mol. The optimization process is output to x-opt-traj.xyz and the final minimum or transition state is output to x-opt.xyz.

For NEB, Dimer, and QST2, 2 structures have to be given in mol and mol2, which represent a reactant and product pose, respectively. Usually, one can first use NEB to rapidly find a reasonable path and transition state. If NEB is hard to converge, then use the structures from NEB result to do a Dimer or QST2 search. Dimer and QST2 require reactant and product structures of high quality.

For NEB, the reaction path is output to x-opt-traj.xyz and the final transition state is output to x-opt.xyz.

For Dimer and QST2, the transition state is output to x-opt.xyz. The x-opt-traj.xyz is NOT reaction path! It is just the optimization process as Min or TS.

max_step

Value

An integer

Default

1000

The maximum number of geometry optimization steps.

energy_cov

Value

A real number

Default

1.E-4

The energy convergence threshold. When the energy change is smaller than this value, this energy condition is satisfied.

grad_cov

Value

A real number

Default

1.E-3

The gradient convergence threshold. This actually determines 4 convergence thresholds:

Maximum gradient component

grad_cov

RMS gradient:

grad_cov * 2/3

Maximum atomic displacement

grad_cov * 4

RMS atomic displacement

grad_cov * 8/3

When all these 4 conditions are met, this gradient condition is satisfied.

max_dr

Value

A real number

Default

0.5

The maximum atomic displacement in an optimization step. If the molecule is highly flexible (Mathematically, the potential energy surface is very flat), or the structure (especially transition state) is very close to the stationary point but not converge, setting a smaller max_dr like 0.1 is very useful.

num_images

Value

An integer

Default

10

The number of images for NEB transition state search. This number canNOT be set too small, say, 5.

neb_k

Value

A real number

Default

0.01

The force constant for NEB transition state search. For a specific system, the optimal number of neb_k should be chose by trail-and-error.

fix_atoms

Value

Atom range

Default

None

Assign the atoms that are fixed during geometry optimization. For example:

1opt
2  fix_atom 2 5-9 23 26
3end

The atoms 2,5,6,7,8,9,23,26 will be fixed during geometry optimization.

fix_bond

Value

2 integers

Default

None

Assign the bond that are fixed during geometry optimization. For example:

1opt
2  fix_bond 1 4
3  fix_bond 2 6
4end

The bonds (1,4) and (2,6) will be fixed during geometry optimization.

fix_angle

Value

3 integers

Default

None

Assign the angle that are fixed during geometry optimization. For example:

1opt
2  fix_angle 1 4 5
3  fix_angle 2 6 7
4end

The angles (1, 4, 5) and (2, 6, 7) will be fixed during geometry optimization.

fix_torsion

Value

4 integers

Default

None

Assign the torsion that are fixed during geometry optimization. For example:

1opt
2  fix_torsion 1 4 5 9
3  fix_torsion 2 6 7 12
4end

The torsions (1, 4, 5, 9) and (2, 6, 7, 12) will be fixed during geometry optimization.

Attention

Currently, the transition state search algorithm QST2 and TS do NOT support constraints. If you want to search a transition state with constraints, please use NEB or Dimer.

Theoretical Background

Minimum

The minimum is defined as a stable isomer on its potential energy surface (PES) of a molecule. The gradients on all atoms are zero. The optimization of minimum depends strongly on the initial structure. For different starters, one can get different isomers.

Transition State

Transition state is a short-lived configuration of atoms that in maximum on one direction but minimum on other directions. The gradients on all atoms are also zero. In Qbics, one can use NEB or dimer method to search the transition state. Only (unoptimized) reactant and product structures are needed. No exact Hessian needs to be computed.

A good strategy is:

  • Use cheap method, like xTB, to find a reasonable path and transition state with NEB (type neb).

  • Then, use standard DFT method to refine the transition state with dimer (type dimer) or QST2 (type QST2), even the previous NEB result is not converged.

This strategy is shown below:

../_images/optk.jpg

Input Examples

Example: Minimum Structure of Aspirin

Search the minimum structure of aspirin at B3LYP/def2-SVP level of theory:

opt-1.inp
 1basis
 2    def2-svp
 3end
 4
 5scf
 6    charge  0
 7    spin2p1 1
 8end
 9
10mol
11    O    1.23330    0.55400    0.77920
12    O    -0.69520    -2.71480    -0.75020
13    O    0.79580    -2.18430    0.86850
14    O    1.78130    0.81050    -1.48210
15    C    -0.08570    0.60880    0.44030
16    C    -0.79270    -0.55150    0.12440
17    C    -0.72880    1.84640    0.41330
18    C    -2.14260    -0.47410    -0.21840
19    C    -2.07870    1.92380    0.07060
20    C    -2.78550    0.76360    -0.24530
21    C    -0.14090    -1.85360    0.14770
22    C    2.10940    0.67150    -0.31130
23    C    3.53050    0.59960    0.16350
24    H    -0.18510    2.75450    0.65930
25    H    -2.72470    -1.36050    -0.45640
26    H    -2.57970    2.88720    0.05060
27    H    -3.83740    0.82380    -0.50900
28    H    3.72900    1.41840    0.85930
29    H    4.20450    0.69690    -0.69240
30    H    3.71050    -0.36590    0.64260
31    H    -0.25550    -3.59160    -0.73370
32end
33
34task
35    opt b3lyp
36end

Example: Minimum Structure with Constraints

Search the minimum structure of a molecule “1UML” with a bond and a torsion fixed at xTB level of theory:

opt-2.inp
 1opt
 2    fix_bond 7 51
 3    fix_torsion 2 9 12 13
 4end
 5
 6mol
 7    1uml.xyz
 8end
 9
10task
11    opt xtb
12end

Check the constraints during optimization:

../_images/opt-2.gif

Example: Transition State of SN2 Reaction

Search the transion state of an SN2 reaction with NEB algorithm at B3LYP/def2-SVP level of theory:

ts-1.inp
 1basis # Define basis set.
 2    def2-svp
 3end
 4
 5opt
 6    type       NEB   # Type: Min, NEB, Dimer, QST2, TS
 7    num_images 10    # The number of images for NEB calculations.
 8    neb_k      0.01  # The force constant for NEB calculations.
 9end
10
11scf
12    charge     -1      # The net charge.
13    spin2p1     1      # 2S+1
14end
15
16xtb
17    chrg -1
18end
19
20mol
21    C  -2.25147439    4.89406277   -1.00469981
22    H  -1.89481996    3.88525277   -1.00469981
23    H  -1.89480154    5.39846096   -0.13104831
24    H  -3.32147439    4.89407596   -1.00469981
25    Cl -1.66479756    5.72372709   -2.44173406
26    Cl -2.67350651    4.09697871    0.73250622
27end
28
29mol2
30    C  -2.36845504    4.69197207   -0.60149770
31    H  -1.76657311    4.00286639   -1.15626927
32    H  -1.80200132    5.57659799   -0.39786281
33    H  -3.23625780    4.94775799   -1.17280492
34    Cl -1.66479756    5.72372709   -2.44173406
35    Cl -2.86278952    3.94963672    0.91579319
36end
37
38task
39    opt b3lyp
40    # opt xtb # You can also try this.
41end

The reaction path is given in ts-1-opt-traj.xyz:

../_images/ts-1.gif

The energies can be found in the output file ts-1.out:

ts-1.out
 1NEB path updated in "ts-1-opt-traj.xyz":
 2----------------------------------------------------
 3   #          Energy      Dist     Gtang     Gperp
 4----------------------------------------------------
 5   0   -960.06873748   0.13968   0.00000   0.00000
 6   1   -960.06864683   0.11091   0.00029   0.00035
 7   2   -960.06738628   0.07888   0.00032   0.00028
 8   3   -960.06508634   0.07078   0.00008   0.00030
 9   4   -960.06240481   0.09854  -0.00028   0.00036
10   5   -960.05912811   0.18516  -0.00087   0.00032
11   6   -960.05781339   0.21042  -0.00025   0.00051
12   7   -960.06424460   0.26756  -0.00057   0.00032
13   8   -960.06880165   0.00000   0.00000   0.00000
14   9   -960.05738746   0.06067   0.00014   0.00026
15----------------------------------------------------
16
17Geometry optimization step 34:
18 Current energy:   -960.05738746
19 Delta Energy:     8.34686E-08; Target: 1.00000E-04; Converged? Yes
20 Max displacement: 2.30167E-04; Target: 4.00000E-03; Converged? Yes
21 RMS displacement: 1.07545E-04; Target: 2.66667E-03; Converged? Yes
22 Max gradient:     5.45965E-04; Target: 1.00000E-03; Converged? Yes
23 RMS gradient:     2.56874E-04; Target: 6.66667E-04; Converged? Yes
24Stationary point has reached.

In the table, structure 0 and 1 are the reactant and product, respectively, and structure 6 is the transition state, which is also given in ts-1-opt.xyz.

You can change b3lyp to xtb to perform the calculation in a much more rapid way.

You can also try type dimer, which is computationally cheaper than NEB but requires reactant and product structures must be of high quality.

Example: Transion State of Decarboxylation Reaction

Search the transion state of the following decarboxylation reaction with NEB algorithm at B3LYP/def2-SVP level of theory:

ts-2.inp
 1mol
 2    a1.xyz
 3end
 4
 5mol2
 6    a2.xyz
 7end
 8
 9scf
10    charge -1
11    spin2p1 1
12end
13
14opt
15    type neb  # You can also try "dimer".
16    num_images 15
17    neb_k 0.01
18end
19
20basis
21    def2-svp
22end
23
24task
25    opt b3lyp
26end

Structures in a1.xyz and a2.xyz are shown below. They are put arbitrarily without optimization:

../_images/a1.jpg

The optimized transtion state ts-2-opt.xyz and path ts-2-opt-traj.xyz are shown below:

../_images/a.jpg

Example: Transion State of Pd(OAc)-Catalyzed Nucleopalladation

Search the transion state of the following Pd(OAc)-catalyzed nucleopalladation with DIMER algorithm at B3LYP/def2-SVP level of theory:

ts-3.inp
 1mol
 2    a1.xyz
 3end
 4
 5mol2
 6    a2.xyz
 7end
 8
 9scf
10    charge  0
11    spin2p1 1
12end
13
14opt
15    type dimer # You can also use qst2
16end
17
18basis
19    def2-svp
20end
21
22pseudopotential
23    def2-ecp # Since Pd is used, you need to use ECP.
24end
25
26
27task
28    opt b3lyp
29end

Structures in a1.xyz and a2.xyz are shown below. They are put arbitrarily without optimization:

../_images/a12.jpg

The optimized transtion state is ts-3-opt.xyz, shown below:

../_images/ats2.jpg