exercises:2016_uzh_cmest:electronic_structure_dft
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
exercises:2016_uzh_cmest:electronic_structure_dft [2016/10/06 08:23] – created tmueller | exercises:2016_uzh_cmest:electronic_structure_dft [2016/10/06 14:06] – [1. Step: Changing the method in the configuration file] tmueller | ||
---|---|---|---|
Line 2: | Line 2: | ||
In this exercise, you will perform again an electronic structure calculation (of Ethene), but this time using Density Functional Theory and different functionals. | In this exercise, you will perform again an electronic structure calculation (of Ethene), but this time using Density Functional Theory and different functionals. | ||
+ | |||
+ | |||
+ | ===== 1. Step: Running a DFT calculation ===== | ||
+ | |||
+ | Create a new directory for this exercise and create an input input file using the following content: | ||
+ | |||
+ | <code - ethene_LDA.inp > | ||
+ | &GLOBAL | ||
+ | PROJECT ethene | ||
+ | RUN_TYPE ENERGY | ||
+ | PRINT_LEVEL MEDIUM | ||
+ | &END GLOBAL | ||
+ | |||
+ | & | ||
+ | METHOD Quickstep | ||
+ | &DFT | ||
+ | BASIS_SET_FILE_NAME | ||
+ | POTENTIAL_FILE_NAME | ||
+ | |||
+ | & | ||
+ | PERIODIC NONE | ||
+ | PSOLVER | ||
+ | &END POISSON | ||
+ | & | ||
+ | SCF_GUESS ATOMIC | ||
+ | EPS_SCF 1.0E-6 | ||
+ | MAX_SCF 300 | ||
+ | &END SCF | ||
+ | & | ||
+ | & | ||
+ | &END XC_FUNCTIONAL | ||
+ | &END XC | ||
+ | &END DFT | ||
+ | |||
+ | &SUBSYS | ||
+ | &CELL | ||
+ | ABC 10 10 10 | ||
+ | PERIODIC NONE ! Non periodic calculations. That's why the POISSON section is needed | ||
+ | &END CELL | ||
+ | & | ||
+ | & | ||
+ | &END | ||
+ | &END | ||
+ | &COORD | ||
+ | C | ||
+ | C | ||
+ | H | ||
+ | H | ||
+ | H | ||
+ | H | ||
+ | &END COORD | ||
+ | &KIND H | ||
+ | ELEMENT H | ||
+ | BASIS_SET DZVP-GTH-PADE | ||
+ | POTENTIAL GTH-PADE-q1 | ||
+ | &END KIND | ||
+ | &KIND C | ||
+ | ELEMENT C | ||
+ | BASIS_SET DZVP-GTH-PADE | ||
+ | POTENTIAL GTH-PADE-q4 | ||
+ | &END KIND | ||
+ | &END SUBSYS | ||
+ | &END FORCE_EVAL | ||
+ | </ | ||
+ | |||
+ | Comparing this input file to the one from the previous exercise, we notice a couple of things: | ||
+ | |||
+ | * the '' | ||
+ | * the parameter for the '' | ||
+ | * the specifications for the '' | ||
+ | |||
+ | As you have seen in the lecture, one has to select a basis set for doing calculations efficiently. Furthermore we approximate the core electrons of an atom by a common pseudopotential instead of calculating them explicitly, reducing the computational complexity even further. | ||
+ | |||
+ | CP2K comes with a number of files, specifying the respective coefficients. Which one of those files is going to be used to lookup the basis sets/ | ||
+ | In the ''& | ||
+ | |||
+ | The files are located in '' | ||
+ | |||
+ | < | ||
+ | $ cd $CP2K_DATA_DIR | ||
+ | $ less BASIS_SET | ||
+ | $ less GTH_POTENTIALS | ||
+ | </ | ||
+ | |||
+ | In the basis sets you will find entries like: | ||
+ | |||
+ | < | ||
+ | [...] | ||
+ | H DZVP-GTH-PADE | ||
+ | 2 | ||
+ | 1 0 0 4 2 | ||
+ | 8.3744350009 | ||
+ | 1.8058681460 | ||
+ | 0.4852531032 | ||
+ | 0.1658235797 | ||
+ | 2 1 1 1 1 | ||
+ | 0.7000000000 | ||
+ | [...] | ||
+ | </ | ||
+ | |||
+ | while the pseudopotentials file contains something like: | ||
+ | |||
+ | < | ||
+ | H GTH-PADE-q1 GTH-LDA-q1 GTH-PADE GTH-LDA | ||
+ | 1 | ||
+ | | ||
+ | 0 | ||
+ | </ | ||
+ | |||
+ | Now return to the previous (exercise) directory ('' | ||
+ | Compare the energy calculated using DFT-LDA ('' |
exercises/2016_uzh_cmest/electronic_structure_dft.txt · Last modified: 2020/08/21 10:15 by 127.0.0.1