exercises:2015_pitt:mp2
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
exercises:2015_pitt:mp2 [2015/03/05 11:31] – created vondele | exercises:2015_pitt:mp2 [2020/08/21 10:15] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== MP2 and RPA ====== | + | ====== MP2 and RPA ===== |
- | TODO | + | In order to go beyond GGA and hybrid DFT, one option is to include wavefunction correlation terms. Recently, MP2 and RPA correlation have been added to CP2K [[doi> |
+ | |||
+ | However, significant computer resources need to be available for condensed phase calculations. We will start with gas phase calculations first, even though RI-GPW is not particularly efficient in this case. | ||
+ | |||
+ | ===== 1. Task: Benzene dimer MP2 binding energy ===== | ||
+ | |||
+ | Employ the provided input file to compute the benzene dimer binding energy. The provided dimer geometry is optimized already. To obtain the energy of the monomer, geometry optimization is necessary (is it?). | ||
+ | |||
+ | Topics: | ||
+ | * RI approach ('' | ||
+ | * Wavelet solver ('' | ||
+ | * gas phase HFX calculation | ||
+ | * Parallel efficiency ('' | ||
+ | |||
+ | ===== 2. Task: Benzene monomer RPA energy: frequency integration ===== | ||
+ | |||
+ | RPA is HFX+RPA correlation. It can be performed with HFX orbitals and eigenvalues, | ||
+ | |||
+ | Here, we look at the convergence of the RPA energy as a function of the number of integration points ('' | ||
+ | |||
+ | Use the following section to change to RPA: | ||
+ | |||
+ | < | ||
+ | ! with WF correlation | ||
+ | & | ||
+ | ! use the RI-GPW approach | ||
+ | METHOD | ||
+ | & | ||
+ | &END | ||
+ | & | ||
+ | ! number of quadrature points, essential for accurate energies. | ||
+ | ! small gap systems need more points | ||
+ | RPA_NUM_QUAD_POINTS | ||
+ | ! essentially always use minimax | ||
+ | MINIMAX | ||
+ | &HF | ||
+ | FRACTION 1.0000000 | ||
+ | & | ||
+ | EPS_SCHWARZ 1.0E-8 | ||
+ | SCREEN_ON_INITIAL_P FALSE | ||
+ | &END SCREENING | ||
+ | &END HF | ||
+ | &END RI_RPA | ||
+ | MEMORY | ||
+ | NUMBER_PROC | ||
+ | &END | ||
+ | </ | ||
+ | |||
+ | It is strongly recommended to use the '' | ||
+ | |||
+ | ===== 3. task : condensed phase systems ===== | ||
+ | |||
+ | Condensed phase systems are computationally are demanding. However, example input files can be found as part of [[src> | ||
+ | |||
+ | While the corresponding runtimes are available online [[performance: | ||
+ | |||
+ | For large runs, using a mixed MPI+OMP setup will be beneficial, and these calculations can also exploit GPUs. | ||
+ | |||
+ | ====== Required files ====== | ||
+ | |||
+ | input file for an RI-MP2 calculation on a benzene dimer | ||
+ | |||
+ | <code - benzene_dimer.inp> | ||
+ | & | ||
+ | PROJECT | ||
+ | RUN_TYPE | ||
+ | &END GLOBAL | ||
+ | |||
+ | & | ||
+ | METHOD | ||
+ | &DFT | ||
+ | ! specification of basis and potential files (cp2k/ | ||
+ | BASIS_SET_FILE_NAME | ||
+ | POTENTIAL_FILE_NAME | ||
+ | & | ||
+ | CUTOFF | ||
+ | &END MGRID | ||
+ | |||
+ | &QS | ||
+ | METHOD GPW | ||
+ | EPS_DEFAULT | ||
+ | EPS_PGF_ORB | ||
+ | &END QS | ||
+ | |||
+ | ! standard OT | ||
+ | &SCF | ||
+ | SCF_GUESS ATOMIC | ||
+ | EPS_SCF 1.0E-6 | ||
+ | MAX_SCF 40 | ||
+ | &OT | ||
+ | MINIMIZER | ||
+ | PRECONDITIONER | ||
+ | &END | ||
+ | & | ||
+ | EPS_SCF 1.0E-6 | ||
+ | MAX_SCF 10 | ||
+ | &END | ||
+ | &END SCF | ||
+ | |||
+ | ! Non periodic calculation needs Poisson solver: use wavelet solver | ||
+ | & | ||
+ | PERIODIC NONE | ||
+ | PSOLVER | ||
+ | &END POISSON | ||
+ | |||
+ | &XC | ||
+ | ! no XC functional | ||
+ | & | ||
+ | &END XC_FUNCTIONAL | ||
+ | ! and 100%HFX | ||
+ | & | ||
+ | FRACTION | ||
+ | & | ||
+ | EPS_SCHWARZ | ||
+ | &END SCREENING | ||
+ | & | ||
+ | MAX_MEMORY | ||
+ | &END | ||
+ | &END HF | ||
+ | ! with WF correlation | ||
+ | & | ||
+ | ! use the RI-GPW approach | ||
+ | METHOD | ||
+ | & | ||
+ | &END | ||
+ | ! block sizes and memory affect parallel efficiency | ||
+ | & | ||
+ | BLOCK_SIZE | ||
+ | &END | ||
+ | MEMORY | ||
+ | NUMBER_PROC | ||
+ | &END | ||
+ | &END XC | ||
+ | &END DFT | ||
+ | |||
+ | & | ||
+ | ! sufficiently large non-periodic unit cell | ||
+ | &CELL | ||
+ | ABC [angstrom] | ||
+ | PERIODIC NONE ! Non periodic calculation. | ||
+ | &END CELL | ||
+ | |||
+ | ! specification of an external file with coordinates | ||
+ | & | ||
+ | H | ||
+ | C | ||
+ | C | ||
+ | H | ||
+ | C | ||
+ | H | ||
+ | C | ||
+ | H | ||
+ | C | ||
+ | H | ||
+ | C | ||
+ | H | ||
+ | H | ||
+ | H | ||
+ | C | ||
+ | C | ||
+ | C | ||
+ | C | ||
+ | H | ||
+ | H 10.1283042427 | ||
+ | C | ||
+ | C | ||
+ | H | ||
+ | H | ||
+ | &END | ||
+ | |||
+ | ! keep atoms away from box borders, | ||
+ | ! a requirement for the wavelet Poisson solver | ||
+ | & | ||
+ | & | ||
+ | &END | ||
+ | &END TOPOLOGY | ||
+ | |||
+ | ! MP2 needs correlation consistent basis set | ||
+ | ! RI-MP2 needs an auxiliary basis set | ||
+ | ! We employ HF pseudo potentials | ||
+ | &KIND H | ||
+ | BASIS_SET | ||
+ | RI_AUX_BASIS_SET | ||
+ | POTENTIAL | ||
+ | &END KIND | ||
+ | &KIND C | ||
+ | BASIS_SET | ||
+ | RI_AUX_BASIS_SET | ||
+ | POTENTIAL | ||
+ | &END KIND | ||
+ | &END SUBSYS | ||
+ | &END FORCE_EVAL | ||
+ | |||
+ | ! how to propagate the system, selection via RUN_TYPE in the &GLOBAL section | ||
+ | & | ||
+ | & | ||
+ | | ||
+ | | ||
+ | | ||
+ | & | ||
+ | & | ||
+ | & | ||
+ | &END | ||
+ | </ | ||
exercises/2015_pitt/mp2.1425555069.txt.gz · Last modified: 2020/08/21 10:15 (external edit)