howto:gfn1xtb
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howto:gfn1xtb [2022/07/19 12:03] – ahehn | howto:gfn1xtb [2024/01/03 13:22] (current) – oschuett | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== How to run a GFN1-xTB calculation ====== | + | This page has been moved to: https://manual.cp2k.org/trunk/methods/semiempiricals/xtb.html |
- | + | ||
- | This is a short tutorial on how to run GFN1-xTB computations. The details on the theory and the original implementation by Grimme can be found in [[https:// | + | |
- | Please cite this paper if you were to use the GFN1-xTB module. | + | |
- | + | ||
- | ===== Brief theory recap ===== | + | |
- | + | ||
- | The semi-empirical GFN1-xTB energy expression comprises contributions due to electronic (EL), atom-pairwise repulsion (REP), dispersion (DISP), and halogen-bonding (XB) terms, | + | |
- | + | ||
- | \begin{equation}\label{gfnxtb1_plus_nonbonded} | + | |
- | \begin{aligned} | + | |
- | E_{\rm{\tiny{GFN1-xTB}}} = E_{\rm{\tiny{EL}}} + E_{\rm{\tiny{REP}}} + E_{\rm{\tiny{DISP}}} + E_{\rm{\tiny{XB}}} \, . | + | |
- | \end{aligned} | + | |
- | \end{equation} | + | |
- | + | ||
- | 1. The electronic energy contribution, | + | |
- | + | ||
- | \begin{equation}\label{electronic_energy} | + | |
- | \begin{aligned} | + | |
- | E_{\rm{\tiny{EL}}} = \sum_i^{\rm{\tiny{occ}}} n_i \langle \Psi_i | h_0 | \Psi_i \rangle + \frac{1}{2} \sum_{A,B} \sum_{{l}^A}\sum_{{l' | + | |
- | \end{aligned} | + | |
- | \end{equation} | + | |
- | + | ||
- | contains zeroth-order contributions based on a zeroth-order Hamiltonian $h_0$, the valence molecular orbitals $\Psi_i$, occupation numbers $n_i$ as well as second-order contributions which are optimized self-consistently as well as third-order diagonal contributions. | + | |
- | The second order contributions are described using the semi-empirical electron repulsion operator $\gamma_{AB, | + | |
- | + | ||
- | \begin{equation}\label{scc_charges} | + | |
- | \begin{aligned} | + | |
- | p_l^A = p_l^{A_0} - \sum_{\nu}^{N_{\rm{\tiny{AO}}}} \sum_{\mu \in A, \mu \in l} S_{\mu \nu } P_{\mu \nu} \, , | + | |
- | \end{aligned} | + | |
- | \end{equation} | + | |
- | + | ||
- | referring to the atomic orbital overlap matrix $\mathbf{S}$ and the density matrix $\mathbf{P}$. | + | |
- | + | ||
- | The remaining diagonal terms represent a cubic charge correction based on the Mulliken charge $q_A$ of atom $A$ and the charge derivative $\Gamma_A$ of the atomic Hubbard parameter $\eta_A$. | + | |
- | Furthermore, | + | |
- | + | ||
- | 2. Repulsion is described via an atom-pairwise potential, | + | |
- | + | ||
- | \begin{equation}\label{repulsion} | + | |
- | \begin{aligned} | + | |
- | E_{\rm{\tiny{REP}}} = \sum_{AB} \frac{Z_A^{\rm{\tiny{eff}}} Z_B^{\rm{\tiny{eff}}} }{R_{AB}} \exp^{- (\alpha_A \alpha_B)^{1/ | + | |
- | \end{aligned} | + | |
- | \end{equation} | + | |
- | with the effective nuclear charge $\mathbf{Z}^{\rm{\tiny{eff}}}$ as well as the global or element-specific parameters $k_f$ and $\alpha$. | + | |
- | + | ||
- | 3. Dispersion is included by the well-established D3 method in the BJ-damping scheme[[https://aip.scitation.org/doi/10.1063/1.3382344]]. | + | |
- | + | ||
- | 4. Corrections for element-specific interactions are possible using either a halogen-bonding correction term (XB) or a generic nonbonding potential correction (NONBOND). Note that the generic nonbonding potential correction is CP2K specific and thus the so-obtained energy differs from the original GFN1-xTB method, | + | |
- | + | ||
- | \begin{equation}\label{gfnxtb1_energy_expression} | + | |
- | \begin{aligned} | + | |
- | E_{\rm{\tiny{GFN1-xTB+NONBOND}}} = E_{\rm{\tiny{GFN1-xTB}}} + E_{\rm{\tiny{NONBOND}}} \, . | + | |
- | \end{aligned} | + | |
- | \end{equation} | + | |
- | + | ||
- | + | ||
- | ===== The GFN1-xTB input section ===== | + | |
- | + | ||
- | The most important keywords and subsections of section '' | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | + | ||
- | The additional keywords '' | + | |
- | + | ||
- | + | ||
- | ===== Simple examples ===== | + | |
- | + | ||
- | ==== GFN1-xTB ground-state energy for ==== | + | |
- | + | ||
- | The following input is an examplary standard input for calculating GFN1-xTB ground-state energies. | + | |
- | + | ||
- | <code - periodic.inp> | + | |
- | + | ||
- | & | + | |
- | RUN_TYPE | + | |
- | PROJECT_NAME xtb | + | |
- | PRINT_LEVEL | + | |
- | PREFERRED_DIAG_LIBRARY SL | + | |
- | &END GLOBAL | + | |
- | & | + | |
- | | + | |
- | &DFT | + | |
- | &QS | + | |
- | | + | |
- | & | + | |
- | CHECK_ATOMIC_CHARGES F ! Keyword to check if Mulliken charges are physically reasonable | + | |
- | DO_EWALD | + | |
- | USE_HALOGEN_CORRECTION T ! Element-specific correction for halogen interactions (Cl, Br) with (O, N) | + | |
- | & | + | |
- | &END QS | + | |
- | &SCF | + | |
- | | + | |
- | | + | |
- | | + | |
- | & | + | |
- | | + | |
- | | + | |
- | & | + | |
- | & | + | |
- | | + | |
- | | + | |
- | & | + | |
- | &END SCF | + | |
- | & | + | |
- | & | + | |
- | & | + | |
- | COORD_FILE_FORMAT | + | |
- | COORD_FILE_NAME | + | |
- | CONNECTIVITY OFF | + | |
- | & | + | |
- | &END CENTER_COORDINATES | + | |
- | & | + | |
- | &CELL | + | |
- | ABC 21.64 21.64 21.64 | + | |
- | ALPHA_BETA_GAMMA 90.0 90.0 90.0 | + | |
- | PERIODIC XYZ | + | |
- | &END CELL | + | |
- | &END SUBSYS | + | |
- | &END FORCE_EVAL | + | |
- | + | ||
- | </code> | + | |
- | + | ||
- | The so-obtained output is listing information on the chosen system-specific parameters. Note that parameters can be changed manually by adding a '' | + | |
- | + | ||
- | <code - cp2k> | + | |
- | + | ||
- | ##### ##### | + | |
- | # | + | |
- | # | + | |
- | # | + | |
- | # | + | |
- | # | + | |
- | #### # ##### # ## ## | + | |
- | + | ||
- | + | ||
- | xTB| Parameter file xTB_parameters | + | |
- | xTB| Basis expansion STO-NG | + | |
- | xTB| Basis expansion STO-NG for Hydrogen | + | |
- | xTB| Halogen interaction potential | + | |
- | xTB| Halogen interaction potential cutoff radius | + | |
- | xTB| Nonbonded interactions | + | |
- | xTB| D3 Dispersion: Parameter | + | |
- | xTB| Huckel constants ks kp kd 1.850 | + | |
- | xTB| Huckel constants ksp k2sh 2.080 | + | |
- | xTB| Mataga-Nishimoto exponent | + | |
- | xTB| Repulsion potential exponent | + | |
- | xTB| Coordination number scaling kcn(s) kcn(p) kc | + | |
- | xTB| Electronegativity scaling | + | |
- | xTB| Halogen potential scaling kxr kx2 1.300 | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | Analogously to any other self-consistent field optimization (SCF) method, the output also includes the energy and convergence during the SCF steps with the finally converged GFN1-xTB energy. | + | |
- | + | ||
- | <code - cp2k> | + | |
- | + | ||
- | SCF WAVEFUNCTION OPTIMIZATION | + | |
- | + | ||
- | ----------------------------------- OT --------------------------------------- | + | |
- | Minimizer | + | |
- | in the iterative subspace | + | |
- | | + | |
- | safer DIIS on | + | |
- | Preconditioner : FULL_SINGLE_INVERSE : inversion of | + | |
- | H + eS - 2*(Sc)(c^T*H*c+const)(Sc)^T | + | |
- | Precond_solver : DEFAULT | + | |
- | stepsize | + | |
- | eps_taylor | + | |
- | ----------------------------------- OT --------------------------------------- | + | |
- | + | ||
- | Step | + | |
- | ------------------------------------------------------------------------------ | + | |
- | 1 OT DIIS | + | |
- | 2 OT DIIS | + | |
- | 3 OT DIIS | + | |
- | 4 OT DIIS | + | |
- | 5 OT DIIS | + | |
- | 6 OT DIIS | + | |
- | 7 OT DIIS | + | |
- | 8 OT DIIS | + | |
- | 9 OT DIIS | + | |
- | 10 OT DIIS | + | |
- | 11 OT DIIS | + | |
- | 12 OT DIIS | + | |
- | 13 OT DIIS | + | |
- | 14 OT DIIS | + | |
- | 15 OT DIIS | + | |
- | + | ||
- | *** SCF run converged in 15 steps *** | + | |
- | + | ||
- | + | ||
- | Core Hamiltonian energy: | + | |
- | Repulsive potential energy: | + | |
- | Electronic energy: | + | |
- | DFTB3 3rd order energy: | + | |
- | Dispersion energy: | + | |
- | + | ||
- | Total energy: | + | |
- | + | ||
- | outer SCF iter = 1 RMS gradient = | + | |
- | outer SCF loop converged in 1 iterations or 15 steps | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | ==== Adding a generic correction potential ==== | + | |
- | + | ||
- | It is possible to add a generic non bonded correction potential. The potential form can be chosen freely and needs to be specified by adding the keyword '' | + | |
- | + | ||
- | <code - periodic_with_generic_correction_potential.inp> | + | |
- | + | ||
- | & | + | |
- | RUN_TYPE | + | |
- | PROJECT_NAME | + | |
- | PRINT_LEVEL | + | |
- | PREFERRED_DIAG_LIBRARY SL | + | |
- | &END GLOBAL | + | |
- | & | + | |
- | | + | |
- | &DFT | + | |
- | &QS | + | |
- | | + | |
- | & | + | |
- | CHECK_ATOMIC_CHARGES F | + | |
- | DO_EWALD | + | |
- | USE_HALOGEN_CORRECTION T | + | |
- | DO_NONBONDED T ! Possible option to include a generic non-bonded potential | + | |
- | & | + | |
- | & | + | |
- | ATOMS Kr Br | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | RCUT 40.5 | + | |
- | &END GENPOT | + | |
- | & | + | |
- | & | + | |
- | &END QS | + | |
- | &SCF | + | |
- | | + | |
- | | + | |
- | | + | |
- | & | + | |
- | | + | |
- | | + | |
- | & | + | |
- | & | + | |
- | | + | |
- | | + | |
- | & | + | |
- | &END SCF | + | |
- | & | + | |
- | & | + | |
- | & | + | |
- | COORD_FILE_FORMAT | + | |
- | COORD_FILE_NAME | + | |
- | CONNECTIVITY OFF | + | |
- | & | + | |
- | &END CENTER_COORDINATES | + | |
- | & | + | |
- | &CELL | + | |
- | ABC 21.64 21.64 21.64 | + | |
- | ALPHA_BETA_GAMMA 90.0 90.0 90.0 | + | |
- | PERIODIC XYZ | + | |
- | &END CELL | + | |
- | &END SUBSYS | + | |
- | &END FORCE_EVAL | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | + |
howto/gfn1xtb.1658232223.txt.gz · Last modified: 2022/07/19 12:03 by ahehn