howto:newtonx
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howto:newtonx [2023/08/31 12:28] – [Brief theory recap] ahehn | howto:newtonx [2024/01/03 13:09] (current) – oschuett | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== How to run NAMD computations using the CP2K-NEWTONX interface ====== | + | This page has been moved to: https://manual.cp2k.org/trunk/methods/sampling/newton-x.html |
- | + | ||
- | This is a short tutorial on how to use the CP2K-NEWTONX interface to a) generate initial conditions to compute photoabsorption spectra and b) to run non-adiabatic dynamics simulations using orbital derivative couplings. A more comprehensive tutorial on all NEWTONX features, including a documentation of the required specifications for the CP2K interface, can be found on the NEWTONX homepage, https:// | + | |
- | + | ||
- | ===== Brief theory recap ===== | + | |
- | + | ||
- | The interface enables to use electronic-structure data from CP2K and combine it with the surface hopping module of NEWTONX. Excitation energies $\Omega^M$ and excited-state eigenvectors $\mathbf{X}^M$ to describe the excited state $M$ are provided by CP2K, relying on the Tamm-Dancoff eigenvalue problem, | + | |
- | + | ||
- | \begin{equation} \label{tda_equation} | + | |
- | \begin{aligned} | + | |
- | \mathbf{A} \mathbf{X}^M &= \Omega^M \mathbf{S} \mathbf{X}^M \, , \\ | + | |
- | \sum_{\kappa k} [ F_{\mu \kappa \sigma} \delta_{ik} - F_{ik \sigma} S_{\mu \kappa} ] X^M_{\kappa k \sigma} + \sum_{\lambda} K_{\mu \lambda \sigma} [\mathbf{D}^{{\rm{\tiny{X}}}M}] C_{\lambda i \sigma} & | + | |
- | \end{aligned} | + | |
- | \end{equation} | + | |
- | + | ||
- | with $\mathbf{S}$ representing the conventional atomic-orbital overlap matrix, $\mathbf{F}$ the Kohn-Sham matrix, $\mathbf{K}$ the kernel comprising -- depending on the chosen functional -- Coulomb, exchange and exchange-correlation contributions, | + | |
- | The corresponding excited-state gradient is obtained setting up a variational Lagrangian and taking the derivative with respect to the nuclear coordinates $\mathbf{R}$ (see also https://www.cp2k.org/howto: | + | |
- | + | ||
- | By performing a TDDFPT computation, | + | |
- | + | ||
- | \begin{equation} \label{newtons_eom} | + | |
- | \begin{aligned} | + | |
- | \mathbf{R}(t + \Delta t) &= \mathbf{R} (t) + \mathbf{v} (t) \Delta t + \frac{1}{2} \mathbf{a}(t) \Delta t^2 \, ,\\ | + | |
- | \mathbf{v} (t + \Delta t) &= \mathbf{v} (t) + \frac{1}{2} (\mathbf{a} (t) + \mathbf{a} (t+ \Delta t) ) \Delta t \, , \\ | + | |
- | \mathbf{a} (t) &= - \frac{1}{m} \nabla \Omega^M (\mathbf{R}(t)) \, . | + | |
- | \end{aligned} | + | |
- | \end{equation} | + | |
- | + | ||
- | The coefficients $c^M$ of the total wave function $\Psi$ are obtained implying hopping probabilities $P_{M\rightarrow N}$ of Tully' | + | |
- | + | ||
- | \begin{equation}\label{surface_hopping} | + | |
- | \begin{aligned} | + | |
- | \Psi (\mathbf{R}(t)) &= \sum_{M} c^{M} (t) \Psi^M (\mathbf{R}(t)) \\ | + | |
- | %i \frac{{\rm{d}} c^M (t)}{{\rm{d}} c^M (t)}{\rm{d}}t} &= \sum_N c^N (t) ( \delta_{MN} E_N (\mathbf{R}(t)) - i \sigma_{MN} (t)) \, , \\ | + | |
- | P_{M \rightarrow N} &= {\rm{max}} [ 0, \frac{-2 \Delta t}{| c^M|^2} {\rm{Re}} (c^M c^{N \ast}) \sigma_{MN} ] \, . | + | |
- | \end{aligned} | + | |
- | \end{equation} | + | |
- | + | ||
- | The therefore required non-adiabatic time derivative couplings $\sigma_{MN}$ can be obtained relying on semi-empirical models (Baeck-An; please cite Barbatti et al., //Open Research Europe// 1, 49 (2021).) or as numerical time derivative couplings (orbital time derivative (OD); please cite Ryabinkin et al., //J. Phys. Chem. Lett.// 6, 4200 (2015); Barbatti et al., // | + | |
- | + | ||
- | \begin{equation}\label{ot_time_deriverative_couplings} | + | |
- | \begin{aligned} | + | |
- | \sigma_{MN}^{{\rm{\tiny{OD}}}} &= \sum_{ia} X_{ia}^{M} \frac{\partial }{\partial t} X_{ia}^N + \sum_{iab} X_{ia}^M X_{ib}^N | + | |
- | | + | |
- | S_{pq}^{{\rm{\tiny{t - \Delta t , t}}}} &= \frac{\langle \phi_i (\mathbf{R}(t- \Delta t )) | \phi_j (\mathbf{R} (t)) \rangle}{\Delta t} \, . | + | |
- | \end{aligned} | + | |
- | \end{equation} | + | |
- | $a,b, \dots$ denote virtual molecular orbitals. | + | |
- | + | ||
- | ===== General input setup ===== | + | |
- | + | ||
- | The input sections for TDDFPT energy and gradient computations are described in the CP2K tutorial https:// | + | |
- | To furthermore provide the required CP2K output, subsequently read in by NEWTONX, the following print statements have to be added to the CP2K input files: | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | It should furthermore be noted that cartesian coordinates have to be provided in terms of the external file " | + | |
- | + | ||
- | ===== A) Initial conditions and photoabsorption spectra ===== | + | |
- | + | ||
- | The following tutorial to obtain photoabsorption spectra is based on https:// | + | |
- | For the electronic-structure calculation with CP2K, a '' | + | |
- | + | ||
- | Examplary input files for computing the absorption spectrum of a water molecule are given below: | + | |
- | <code - h2o_cp2k.inp> | + | |
- | + | ||
- | The resulting output file of the initcond.pl script of NEWTONX states that the read-in cartesian normal modes are first transfered to mass-weighted normal modes. | + | |
- | + | ||
- | <code cp2k> | + | |
- | Cartesian normal modes (1/ | + | |
- | + | ||
- | 0.00 0.00 0.00 0.00 0.00 0.00 | + | |
- | + | ||
- | 0.0000 | + | |
- | | + | |
- | | + | |
- | 0.0001 | + | |
- | 0.7043 | + | |
- | | + | |
- | 0.0000 | + | |
- | 0.7043 | + | |
- | | + | |
- | + | ||
- | | + | |
- | + | ||
- | 0.0712 | + | |
- | | + | |
- | 0.0000 | + | |
- | | + | |
- | 0.0000 | + | |
- | | + | |
- | | + | |
- | 0.0000 | + | |
- | 0.4222 | + | |
- | + | ||
- | Mass weighted normal modes | + | |
- | Frequencies will be multiplied by ANH_F = 1.00000 | + | |
- | + | ||
- | 0.00 0.00 0.00 0.00 0.00 0.00 | + | |
- | + | ||
- | 0.0001 | + | |
- | | + | |
- | | + | |
- | 0.0001 | + | |
- | 0.7071 | + | |
- | | + | |
- | 0.0000 | + | |
- | 0.7071 | + | |
- | | + | |
- | + | ||
- | | + | |
- | + | ||
- | 0.2847 | + | |
- | | + | |
- | 0.0000 | + | |
- | | + | |
- | 0.0000 | + | |
- | | + | |
- | | + | |
- | 0.0000 | + | |
- | 0.4238 | + | |
- | </ | + | |
- | + | ||
- | The thereon based initial conditions are summarized in the output files dubbed " | + | |
- | + | ||
- | <code cp2k> | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | 0.000417197 | + | |
- | 0.000997296 | + | |
- | Epot of initial state (eV): 0.0865 | + | |
- | | + | |
- | Ekin of initial state (eV): 0.0479 | + | |
- | | + | |
- | | + | |
- | </ | + | |
- | + | ||
- | Moreover, the output file '' | + | |
- | + | ||
- | + | ||
- | ===== B) Non-adiabatic dynamics using orbital determinant derivatives ===== | + | |
- | + |
howto/newtonx.1693484882.txt.gz · Last modified: 2023/08/31 12:28 by ahehn