exercises:2017_uzh_cp2k-tutorial:hybrid
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
exercises:2017_uzh_cp2k-tutorial:hybrid [2017/07/11 23:15] – gtocci | exercises:2017_uzh_cp2k-tutorial:hybrid [2020/08/21 10:15] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
The purpose of this section is to explain how to perform hybrid functional calculations (or Hartree-Fock exchange, HFX) with CP2K in condensed phase systems. It is based on the developments described in [[doi> | The purpose of this section is to explain how to perform hybrid functional calculations (or Hartree-Fock exchange, HFX) with CP2K in condensed phase systems. It is based on the developments described in [[doi> | ||
- | Hartree-Fock exchange in CP2K is based on four center electron repulsion integrals (ERI), these are computed with an external library ([[http:// | + | Hartree-Fock exchange in CP2K is based on four center electron repulsion integrals (ERI), these are computed with an external library ([[http:// |
- | This approach has a computational cost that depends strongly on the nature of the basis, unless | + | This approach has a computational cost that depends strongly on the nature of the basis. Unless |
This tutorial is also based on the '' | This tutorial is also based on the '' | ||
< | < | ||
- | Tutorial re-adapted from [[https:// | + | Tutorial re-adapted from the [[https:// |
- | For more info see also the slides from Joost VandeVondele [[https:// | + | For more info see also the slides from Joost VandeVondele [[pdf>https:// |
- | and Sanliang Ling [[https:// | + | Matt Watkins [[https:// |
</ | </ | ||
===== Truncated Coulomb operator ===== | ===== Truncated Coulomb operator ===== | ||
- | To enable HFX in the condensed phase (described at the Gamma point only), | + | To enable HFX in the condensed phase CP2K employs a truncated Coulomb operator for the exchange part. The physical picture is that we do not want to have ' |
==== 1st task : GGA restart wfn ==== | ==== 1st task : GGA restart wfn ==== | ||
Line 31: | Line 31: | ||
! various runtypes (energy, geo_opt, etc.) available. | ! various runtypes (energy, geo_opt, etc.) available. | ||
| | ||
- | | + | ! amount of information printed to output |
- | | + | |
- | ! reduce the amount of IO | + | |
| | ||
&END GLOBAL | &END GLOBAL | ||
Line 74: | Line 72: | ||
& | & | ||
& | & | ||
- | ! compute eigenvalues and homo-lumo gap each 10nd MD step | + | ! compute eigenvalues and homo-lumo gap |
& | & | ||
NLUMO 4 | NLUMO 4 | ||
Line 88: | Line 86: | ||
| | ||
| | ||
- | | + | |
& | & | ||
! an accurate preconditioner suitable also for larger systems | ! an accurate preconditioner suitable also for larger systems | ||
Line 188: | Line 186: | ||
! important parameter to get stable HFX calcs (contributions to hfx smaller than EPS_SCHWARZ are not considered) | ! important parameter to get stable HFX calcs (contributions to hfx smaller than EPS_SCHWARZ are not considered) | ||
EPS_SCHWARZ 1.0E-6 | EPS_SCHWARZ 1.0E-6 | ||
- | ! needs a good (GGA) initial guess (screening on density matrix elements) | + | ! needs a good (GGA) initial guess |
+ | ! screening on the product between maximum of density matrix elements | ||
SCREEN_ON_INITIAL_P TRUE | SCREEN_ON_INITIAL_P TRUE | ||
&END | &END | ||
Line 194: | Line 193: | ||
! for condensed phase systems | ! for condensed phase systems | ||
POTENTIAL_TYPE TRUNCATED | POTENTIAL_TYPE TRUNCATED | ||
- | ! should be less than halve the cell | + | ! should be less than half the cell |
- | CUTOFF_RADIUS | + | CUTOFF_RADIUS |
! data file needed with the truncated operator | ! data file needed with the truncated operator | ||
T_C_G_DATA ./t_c_g.dat | T_C_G_DATA ./t_c_g.dat | ||
Line 220: | Line 219: | ||
Topics: | Topics: | ||
* '' | * '' | ||
- | * '' | + | * '' |
* '' | * '' | ||
* '' | * '' | ||
Line 274: | Line 273: | ||
* Look at the output where the HOMO-LUMO gap has been printed out. How does this compare to the GGA result? | * Look at the output where the HOMO-LUMO gap has been printed out. How does this compare to the GGA result? | ||
* Adjust the fraction of exchange (modify the input in two places!) to 20% and/or 30%, how does this influence the gap ? | * Adjust the fraction of exchange (modify the input in two places!) to 20% and/or 30%, how does this influence the gap ? | ||
- | * Most of the time in the SCF cycle is spent in the first step, while the other steps are much faster. Why do you think is that? | + | * The most expensive part of the whole SCF cycle is represented by the first step, while the other steps are much faster. Why is that? |
* __Optional__ You can check if the SCF cycle is stable by decreasing the values of '' | * __Optional__ You can check if the SCF cycle is stable by decreasing the values of '' | ||
* __Optional__ CP2K tries to store the ERI in-core and avoid to calculate them at each SCF step. Especially for large systems that can be run on large HCP machines it is important to run in-core operation and fit the calculations of the ERI into memory. To see the effect of not having enough memory on the time for the '' | * __Optional__ CP2K tries to store the ERI in-core and avoid to calculate them at each SCF step. Especially for large systems that can be run on large HCP machines it is important to run in-core operation and fit the calculations of the ERI into memory. To see the effect of not having enough memory on the time for the '' | ||
Line 301: | Line 300: | ||
Rerun the single point energy calculation and note the band gap. | Rerun the single point energy calculation and note the band gap. | ||
* Is such a short range sufficient to have a sizable effect on the band gap ? | * Is such a short range sufficient to have a sizable effect on the band gap ? | ||
- | * is '' | + | * is '' |
===== Auxiliary Density Matrix Methods (ADMM) ===== | ===== Auxiliary Density Matrix Methods (ADMM) ===== | ||
Line 364: | Line 363: | ||
RUN_TYPE ENERGY | RUN_TYPE ENERGY | ||
! limit the runs to 30min | ! limit the runs to 30min | ||
- | WALLTIME 1800 | + | WALLTIME 1800 |
! reduce the amount of IO | ! reduce the amount of IO | ||
IOLEVEL | IOLEVEL | ||
Line 380: | Line 379: | ||
! Charge and multiplicity | ! Charge and multiplicity | ||
- | CHARGE | + | CHARGE |
- | MULTIPLICITY | + | MULTIPLICITY |
&MGRID | &MGRID |
exercises/2017_uzh_cp2k-tutorial/hybrid.1499814957.txt.gz · Last modified: 2020/08/21 10:15 (external edit)