exercises:2017_ethz_mmm:reaction_energy_2017
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
exercises:2017_ethz_mmm:reaction_energy_2017 [2017/04/27 09:44] – dpasserone | exercises:2017_ethz_mmm:reaction_energy_2017 [2020/08/21 10:15] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
+ | We will investigate today a very important chemical reaction, the production of ethene (ethylene) from ethanol. Ethanol is heated with an excess of concentrated sulphuric acid at a temperature of 170°C. The gases produced are passed through sodium hydroxide solution to remove the carbon dioxide and sulphur dioxide produced from side reactions. | ||
+ | Another way to favor this reaction is in presence of a catalyst surface, which makes the reaction exothermic even at room temperature, | ||
+ | The use of hematite (iron-based nanocrystal) as a catalyst is described computationally in the following paper by Lopes et al: [[doi> | ||
+ | The reaction is the following: | ||
+ | {{ : | ||
+ | and this is the pictorial view in the gas phase: | ||
+ | {{ : | ||
- | The input file is shown below: | + | In the supplementary material of the paper, which can be found [[http:// |
- | <code cp2k> | ||
- | &GLOBAL | ||
- | PROJECT Si_bulk8 | ||
- | RUN_TYPE ENERGY_FORCE | ||
- | PRINT_LEVEL LOW | ||
- | &END GLOBAL | ||
- | & | ||
- | METHOD Quickstep | ||
- | &SUBSYS | ||
- | &KIND Si | ||
- | ELEMENT | ||
- | BASIS_SET DZVP-GTH-PADE | ||
- | POTENTIAL GTH-PADE-q4 | ||
- | &END KIND | ||
- | &CELL | ||
- | A | ||
- | B | ||
- | C | ||
- | &END CELL | ||
- | &COORD | ||
- | Si 0.000000000 | ||
- | Si 0.000000000 | ||
- | Si 2.715348700 | ||
- | Si 2.715348700 | ||
- | Si 4.073023100 | ||
- | Si 1.357674400 | ||
- | Si 1.357674400 | ||
- | Si 4.073023100 | ||
- | &END COORD | ||
- | &END SUBSYS | ||
- | &DFT | ||
- | BASIS_SET_FILE_NAME | ||
- | POTENTIAL_FILE_NAME | ||
- | &QS | ||
- | EPS_DEFAULT 1.0E-10 | ||
- | &END QS | ||
- | &MGRID | ||
- | NGRIDS 4 | ||
- | CUTOFF 300 | ||
- | REL_CUTOFF 60 | ||
- | &END MGRID | ||
- | &XC | ||
- | & | ||
- | &END XC_FUNCTIONAL | ||
- | &END XC | ||
- | &SCF | ||
- | SCF_GUESS ATOMIC | ||
- | EPS_SCF 1.0E-7 | ||
- | MAX_SCF 300 | ||
- | & | ||
- | ALGORITHM STANDARD | ||
- | &END DIAGONALIZATION | ||
- | & | ||
- | METHOD BROYDEN_MIXING | ||
- | ALPHA 0.4 | ||
- | NBROYDEN 8 | ||
- | &END MIXING | ||
- | &END SCF | ||
- | &END DFT | ||
- | |||
- | &FORCES ON | ||
- | &END FORCES | ||
- | &END PRINT | ||
- | &END FORCE_EVAL | ||
- | </ | ||
- | The main sections in the input file are: | + | We will compare our results with the published ones. |
- | + | ||
- | * [[http:// | + | |
- | * [[http:// | + | |
- | + | ||
- | We look at each section in detail. The '' | + | |
- | '' | + | |
- | + | ||
- | <code cp2k> | + | |
- | & | + | |
- | PROJECT Si_bulk8 | + | |
- | RUN_TYPE ENERGY_FORCE | + | |
- | PRINT_LEVEL LOW | + | |
- | &END GLOBAL | + | |
- | </ | + | |
- | + | ||
- | We will be doing a static energy and force calculation, | + | |
- | case, we must set [[http:// | + | |
- | alias for '' | + | |
- | calculation, | + | |
- | generated by '' | + | |
- | '' | + | |
- | output of '' | + | |
- | verbosity of the output can be fine-tuned by overriding this setting | + | |
- | in each individual subsection of the input. | + | |
- | + | ||
- | We now explain | + | |
- | + | ||
- | <code cp2k> | + | |
- | METHOD Quickstep | + | |
- | </ | + | |
- | The keyword [[http:// | + | The input file structure is shown below: |
- | atoms to '' | + | |
- | Gaussian and Planewaves (GPW) method. | + | |
<code cp2k> | <code cp2k> | ||
- | & | ||
- | | ||
& | & | ||
& | & | ||
Line 119: | Line 27: | ||
&END QS | &END QS | ||
- | & | + | # |
- | & | + | # Include |
- | &END XC_FUNCTIONAL | + | # |
- | & | + | @INCLUDE './pbe.inc' |
- | & | + | |
- | | + | |
- | &END SCREENING | + | |
- | & | + | |
- | &END XC | + | |
& | & | ||
Line 137: | Line 41: | ||
&END CELL | &END CELL | ||
& | & | ||
- | | + | |
- | C | + | H |
- | C | + | C |
- | H | + | C |
+ | H | ||
+ | H | ||
&END COORD | &END COORD | ||
& | & | ||
Line 149: | Line 55: | ||
&KIND H ! potential and basis for H | &KIND H ! potential and basis for H | ||
& | & | ||
- | 3 | + | @INCLUDE './H_631Gdp.inc' |
- | | + | |
- | 12.25200000 | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
& | & | ||
| | ||
Line 167: | Line 65: | ||
&KIND C ! potential and basis for C | &KIND C ! potential and basis for C | ||
& | & | ||
- | 5 | + | @INCLUDE './C_631Gdp.inc' |
- | | + | |
- | 1252.60000000 | + | |
- | | + | |
- | 42.83900000 | + | |
- | 11.81800000 | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
& | & | ||
| | ||
Line 200: | Line 81: | ||
| | ||
&END GLOBAL | &END GLOBAL | ||
- | | + | |
</ | </ | ||
- | <!-- ===== Introduction ===== | + | The exercise is executed |
- | In this tutorial, we are going to show the reader how to perform a | + | <note tip> |
- | simple static self-consistent Kohn-Sham Density Functional Theory | + | |
- | energy and force calculation | + | |
- | We will use face centred cubic bulk Si, with 8 atoms in a cubic unit | + | Copy the files to the created directory |
- | cell as an example. The example | + | <note tip> |
- | '' | + | In the directory you will find the following |
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | | ||
+ | * several '' | ||
+ | </ | ||
- | The reader should note that the integration grid settings used in | + | The command to launch |
- | the example calculations have already chosen | + | <note important>> |
- | the given accuracy. A [[converging_cutoff|separate tutorial]] is available to show how to | + | where file.inp has to be replaced by the relevant prefix of the input file (example: '' |
- | achieve this. | + | In the '' |
+ | <note important>> | ||
+ | This will list all the energies. Pick the last one for the optimized structure. You can also visualize it with vmd. | ||
+ | You will run the calculation by changing in **ALL THREE INPUT FILES** the '' | ||
+ | At the line concerning the exchange and correlation potential, you prescribe the level of theory: | ||
+ | <note important> | ||
+ | * hf.inc for Hartree-Fock | ||
+ | * pbe.inc for DFT/PBE, with gradient corrected local density | ||
+ | * b3lyp.inp for hybrid functional containing a percentage of exact exchange | ||
+ | </ | ||
- | ===== Input Files ===== | + | When you are done with the three levels of theory, then you can redo the exercise with the larger basis set, and change EVERYWHERE in the input file the instances of '' |
- | We first look at the input files required | + | Redo the calculations with the three levels '' |
- | necessary input files are: | + | |
+ | <note warning> | ||
+ | Assignments: | ||
+ | - Compute the reaction energy for the dehydration reaction of ethanol | ||
+ | - Prepare a table with rows and columns: on the rows the level of theory, on the columns the basis set (3x2 table) | ||
+ | - Compare the results with the published ones (note the conversion factors. You can use the tool at [[http:// | ||
+ | - Comment on the dependence on the basis set and on the level of theory (hint: this also need the next theory lecture) | ||
+ | - Is this information enough to determine the rates of reaction? Why? | ||
+ | </ | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | A list of basis set and pseudopotential files may be found in | + | === BONUS TRACK === |
- | '' | + | |
- | should cover most of the commonly used elements. The user will, | + | |
- | however, need to produce their own main input file for a given | + | |
- | calculation. | + | |
- | Let us look at the main input: | + | <note tip>We may be interested in the visualisation of the electronic density. Copy the '' |
- | this file can be arbitrary, so is the file extension. The input file | + | |
- | is structured | + | |
- | are unimportant. Each input block is referred to as a " | + | |
- | this tutorial, and some sections are " | + | |
- | sections. Full definitions of the input file format and keywords is | + | |
- | available via the [[http:// | + | |
- | + | ||
- | The input file is shown below: | + | |
+ | Add the following sections: | ||
+ | **under &DFT** | ||
<code cp2k> | <code cp2k> | ||
- | &GLOBAL | + | |
- | PROJECT Si_bulk8 | + | &E_DENSITY_CUBE |
- | RUN_TYPE ENERGY_FORCE | + | &END |
- | PRINT_LEVEL LOW | + | |
- | &END GLOBAL | + | |
- | & | + | SCF_GUESS |
- | METHOD Quickstep | + | |
- | & | + | |
- | &KIND Si | + | |
- | ELEMENT | + | |
- | BASIS_SET DZVP-GTH-PADE | + | |
- | POTENTIAL GTH-PADE-q4 | + | |
- | | + | |
- | & | + | |
- | A | + | |
- | B | + | |
- | C | + | |
- | | + | |
- | & | + | |
- | Si 0.000000000 | + | |
- | | + | |
- | Si 2.715348700 | + | |
- | Si 2.715348700 | + | |
- | Si 4.073023100 | + | |
- | Si 1.357674400 | + | |
- | Si 1.357674400 | + | |
- | Si 4.073023100 | + | |
- | &END COORD | + | |
- | &END SUBSYS | + | |
- | &DFT | + | |
- | BASIS_SET_FILE_NAME | + | |
- | POTENTIAL_FILE_NAME | + | |
- | &QS | + | |
- | EPS_DEFAULT 1.0E-10 | + | |
- | &END QS | + | |
- | & | + | |
- | NGRIDS 4 | + | |
- | CUTOFF 300 | + | |
- | REL_CUTOFF 60 | + | |
- | &END MGRID | + | |
- | &XC | + | |
- | & | + | |
- | &END XC_FUNCTIONAL | + | |
- | &END XC | + | |
- | | + | |
- | SCF_GUESS | + | |
- | EPS_SCF 1.0E-7 | + | |
- | MAX_SCF 300 | + | |
- | & | + | |
- | ALGORITHM STANDARD | + | |
- | &END DIAGONALIZATION | + | |
- | & | + | |
- | METHOD BROYDEN_MIXING | + | |
- | ALPHA 0.4 | + | |
- | NBROYDEN 8 | + | |
- | &END MIXING | + | |
- | &END SCF | + | |
- | &END DFT | + | |
- | & | + | |
- | &FORCES ON | + | |
- | &END FORCES | + | |
- | &END PRINT | + | |
- | & | + | |
</ | </ | ||
+ | This tells to read the old wavefunction and to print the cubefile of the density. | ||
- | The main sections in the input file are: | + | At the end of the input file: |
- | + | ||
- | * [[http:// | + | |
- | * [[http:// | + | |
- | + | ||
- | We look at each section in detail. The '' | + | |
- | '' | + | |
<code cp2k> | <code cp2k> | ||
- | &GLOBAL | + | &EXT_RESTART |
- | | + | RESTART_FILE_NAME ./ |
- | RUN_TYPE ENERGY_FORCE | + | &END |
- | PRINT_LEVEL LOW | + | |
- | & | + | |
</ | </ | ||
- | We will be doing a static energy and force calculation, in this | + | Then, change |
- | case, we must set [[http:// | + | |
- | alias for '' | + | |
- | calculation, | + | |
- | generated by '' | + | |
- | '' | + | |
- | output of '' | + | |
- | verbosity of the output can be fine-tuned by overriding this setting | + | |
- | in each individual subsection of the input. | + | |
- | + | ||
- | We now explain the section '' | + | |
- | + | ||
- | <code cp2k> | + | |
- | METHOD Quickstep | + | |
- | </ | + | |
- | + | ||
- | The keyword [[http:// | + | |
- | atoms to '' | + | |
- | Gaussian and Planewaves (GPW) method. | + | |
- | + | ||
- | <code cp2k> | + | |
- | & | + | |
- | &KIND Si | + | |
- | ELEMENT | + | |
- | BASIS_SET DZVP-GTH-PADE | + | |
- | POTENTIAL GTH-PADE-q4 | + | |
- | &END KIND | + | |
- | &CELL | + | |
- | A | + | |
- | B | + | |
- | C | + | |
- | &END CELL | + | |
- | & | + | |
- | Si 0.000000000 | + | |
- | Si 0.000000000 | + | |
- | Si 2.715348700 | + | |
- | Si 2.715348700 | + | |
- | Si 4.073023100 | + | |
- | Si 1.357674400 | + | |
- | Si 1.357674400 | + | |
- | Si 4.073023100 | + | |
- | &END COORD | + | |
- | &END SUBSYS | + | |
- | </ | + | |
- | + | ||
- | The subsection [[http:// | + | |
- | initial coordinates of atoms in the calculation. | + | |
- | + | ||
- | The subsection [[http:// | + | |
- | calculation. There must be one '' | + | |
- | this example, for Si, we have defined the basis set to be used: | + | |
- | '' | + | |
- | for Geodecker-Teter-Hutter PADE LDA pseudopotential); | + | |
- | pseudopotential: | + | |
- | pseudopotential with 4 valence electrons). | + | |
- | + | ||
- | The basis set and pseudopotential names //must// correspond to an | + | |
- | existing entry in the corresponding basis set and pseudopotential | + | |
- | files defined by [[http:// | + | |
- | keywords in [[http:// | + | |
- | basis for Si corresponds to parameters: | + | |
- | + | ||
- | < | + | |
- | Si DZVP-GTH-PADE | + | |
- | 2 | + | |
- | 3 0 1 4 2 2 | + | |
- | 1.2032422345 | + | |
- | 0.4688409786 | + | |
- | 0.1679863234 | + | |
- | 0.0575619526 | + | |
- | 3 2 2 1 1 | + | |
- | 0.4500000000 | + | |
- | </ | + | |
- | + | ||
- | in file '' | + | |
- | parameters: | + | |
- | + | ||
- | < | + | |
- | Si GTH-PADE-q4 GTH-LDA-q4 | + | |
- | 2 2 | + | |
- | | + | |
- | 2 | + | |
- | | + | |
- | 3.25819622 | + | |
- | | + | |
- | </ | + | |
- | + | ||
- | in file '' | + | |
- | + | ||
- | The subsection [[http:// | + | |
- | calculation. | + | |
- | with lattice constant equal to 5.4306975 Angstroms. " | + | |
- | the default unit for cell vectors. [[http:// | + | |
- | second and third lattice (cell) vectors. There are many ways to | + | |
- | define the cell, see [[http:// | + | |
- | + | ||
- | The initial atomic coordinates are specified in the [[http:// | + | |
- | subsection. The default input format for atomic coordinates in | + | |
- | '' | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | where '' | + | |
- | can be changed by configuring keyword [[http:// | + | |
- | '' | + | |
- | be fractional with respect to the lattice vectors. One can also | + | |
- | change the unit for the Cartesian coordinates by setting the keyword | + | |
- | [[http:// | + | |
- | corresponds to the definition of the elements in the [[http:// | + | |
- | subsections. | + | |
- | + | ||
- | After the '' | + | |
- | the [[http:// | + | |
- | self-consistent Kohn-Sham Density Functional Theory | + | |
- | calculation. This subsection is only relevant if and only if the | + | |
- | '' | + | |
- | + | ||
- | <code cp2k> | + | |
- | BASIS_SET_FILE_NAME | + | |
- | POTENTIAL_FILE_NAME | + | |
- | </ | + | |
- | + | ||
- | As already mentioned above, the keywords [[http:// | + | |
- | [[http:// | + | |
- | pseudopotential parameters. | + | |
- | + | ||
- | <code cp2k> | + | |
- | &QS | + | |
- | EPS_DEFAULT 1.0E-10 | + | |
- | &END QS | + | |
- | </ | + | |
- | + | ||
- | The [[http:// | + | |
- | '' | + | |
- | used within '' | + | |
- | set, and they will override the '' | + | |
- | + | ||
- | <code cp2k> | + | |
- | & | + | |
- | NGRIDS 4 | + | |
- | CUTOFF 300 | + | |
- | REL_CUTOFF 60 | + | |
- | &END MGRID | + | |
- | </ | + | |
- | + | ||
- | The [[http:// | + | |
- | '' | + | |
- | multi-grid method for representing Gaussian functions numerically on | + | |
- | the grid. Narrow and sharp Gaussians are mapped onto a finer grid | + | |
- | than wider and smoother Gaussians. In this case, we are telling the | + | |
- | code to set up 4 levels of multi-grids, | + | |
- | the finest grid set to be 300 Ry, and with the grid spacing | + | |
- | underneath any Gaussian functions to be finer than the equivalent | + | |
- | planewave cutoff of 60 Ry. The users should read the tutorial | + | |
- | " | + | |
- | parameters affect the grid constructed, | + | |
- | sufficient grid for their calculation. In this example, the grid | + | |
- | defined has already been found to be sufficient for the energy and | + | |
- | force calculation. | + | |
- | + | ||
- | The [[http:// | + | |
- | + | ||
- | <code cp2k> | + | |
- | &XC | + | |
- | & | + | |
- | &END XC_FUNCTIONAL | + | |
- | &END XC | + | |
- | </ | + | |
- | + | ||
- | This defines which exchange-correlation density functional we want | + | |
- | to use. In this we choose PADE LDA functional, which is consistent | + | |
- | with the basis set and pseudopotential we have chosen. | + | |
- | + | ||
- | <code cp2k> | + | |
- | &SCF | + | |
- | SCF_GUESS ATOMIC | + | |
- | EPS_SCF 1.0E-7 | + | |
- | MAX_SCF 300 | + | |
- | & | + | |
- | ALGORITHM STANDARD | + | |
- | &END DIAGONALIZATION | + | |
- | & | + | |
- | METHOD BROYDEN_MIXING | + | |
- | ALPHA 0.4 | + | |
- | NBROYDEN 8 | + | |
- | &END MIXING | + | |
- | &END SCF | + | |
- | </ | + | |
- | + | ||
- | The [[http:// | + | |
- | used to find a self-consistent solution of the Kohn-Sham DFT | + | |
- | formalism. | + | |
- | + | ||
- | [[http:// | + | |
- | ρ(→r) is to be generated. In this example ('' | + | |
- | initial density is to be generated using overlapping of atomic | + | |
- | charge densities. A good starting | + | |
- | the self-consistency loop is important in obtaining a convergent | + | |
- | result quickly. | + | |
- | residual. This overrides the '' | + | |
- | subsection. [[http:// | + | |
- | loops '' | + | |
- | calculation. | + | |
- | + | ||
- | <code cp2k> | + | |
- | & | + | |
- | ALGORITHM STANDARD | + | |
- | &END DIAGONALIZATION | + | |
- | </ | + | |
- | + | ||
- | The [[http:// | + | |
- | traditional diagonalisation method for finding the ground state | + | |
- | Kohn-Sham energy and electron density. The subsection heading also | + | |
- | takes an argument, and in this case is set to "'' | + | |
- | equivalent to "'' | + | |
- | diagonalisation method is turned on. One can also omit the value of | + | |
- | the subsection heading, which defaults to "'' | + | |
- | alternative to diagonalisation is to use the Orbital Transform (OT) | + | |
- | method, in which case, the user should either delete the | + | |
- | '' | + | |
- | "'' | + | |
- | keyword sets the algorithm to use for diagonalisation of the | + | |
- | Kohn-Sham Hamiltonian. "'' | + | |
- | LAPACK/ | + | |
- | + | ||
- | <code cp2k> | + | |
- | & | + | |
- | METHOD BROYDEN_MIXING | + | |
- | ALPHA 0.4 | + | |
- | NBROYDEN 8 | + | |
- | &END MIXING | + | |
- | </ | + | |
- | + | ||
- | The [[http:// | + | |
- | charge mixing in a self-consistency calculation. The subsection also | + | |
- | admits a value, which can be either '' | + | |
- | ('' | + | |
- | '' | + | |
- | diagonalisation method//. The OT method uses a different approach for | + | |
- | charge mixing, and is explained in other tutorials. The keyword | + | |
- | [[http:// | + | |
- | density | + | |
- | input density in the next SCF iteration. The keyword [[http:// | + | |
- | the mixing method; in this case, we will use Broyden mixing. The | + | |
- | keyword [[http:// | + | |
- | sets the number of histories to be used in the Broyden mixing | + | |
- | algorithm. | + | |
- | + | ||
- | The final [[http:// | + | |
- | + | ||
- | <code cp2k> | + | |
- | & | + | |
- | &FORCES ON | + | |
- | &END FORCES | + | |
- | &END PRINT | + | |
- | </ | + | |
- | + | ||
- | tells '' | + | |
- | output of the calculation. | + | |
- | + | ||
- | + | ||
- | ===== Running the Calculation ===== | + | |
- | To run the calculation, | + | |
- | package compiled, and with the path to its binaries in the system | + | |
- | '' | + | |
- | should be in the same working directory. In this example, we will | + | |
- | use the MPI version of '' | + | |
- | < | + | |
- | mpirun -n 2 cp2k.popt -o Si_bulk8.out Si_bulk8.inp & | + | |
- | </ | + | |
- | in the working directory to run '' | + | |
- | processes in the background. The '' | + | |
- | output to file '' | + | |
- | output of successive runs to '' | + | |
- | to start completely from afresh, they must delete '' | + | |
- | before running a new calculation. | + | |
- | + | ||
- | + | ||
- | ===== Obtaining the Results ===== | + | |
- | After the job has finished, we should obtain the following files: | + | |
- | + | ||
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | + | ||
- | The file '' | + | |
- | job. '' | + | |
- | from the calculation. '' | + | |
- | Kohn-Sham wavefunctions obtained from the ''< | + | |
- | step; in this case, '' | + | |
- | wavefunctions obtained from the last SCF step. Should the reader | + | |
- | want to start a new calculation from the previous calculated | + | |
- | wavefunctions, | + | |
- | subsection of '' | + | |
- | <code cp2k> | + | |
- | SCF_GUESS RESTART | + | |
- | </ | + | |
- | provided that the new calculation shares the same '' | + | |
- | the one that generated the wavefunctions. Otherwise, we would need | + | |
- | to rename the restart wavefunction files to correspond to the | + | |
- | project name of the new calculation. | + | |
- | + | ||
- | We now look at the main '' | + | |
- | + | ||
- | < | + | |
- | Number of electrons: | + | |
- | Number of occupied orbitals: | + | |
- | Number of molecular orbitals: | + | |
- | + | ||
- | Number of orbital functions: | + | |
- | Number of independent orbital functions: | + | |
- | + | ||
- | Extrapolation method: initial_guess | + | |
- | + | ||
- | + | ||
- | SCF WAVEFUNCTION OPTIMIZATION | + | |
- | + | ||
- | | + | |
- | | + | |
- | 1 NoMix/Diag. 0.40E+00 | + | |
- | 2 Broy./Diag. 0.40E+00 | + | |
- | 3 Broy./Diag. 0.40E+00 | + | |
- | 4 Broy./Diag. 0.40E+00 | + | |
- | 5 Broy./Diag. 0.40E+00 | + | |
- | 6 Broy./Diag. 0.40E+00 | + | |
- | 7 Broy./Diag. 0.40E+00 | + | |
- | 8 Broy./Diag. 0.40E+00 | + | |
- | 9 Broy./Diag. 0.40E+00 | + | |
- | 10 Broy./Diag. 0.40E+00 | + | |
- | + | ||
- | *** SCF run converged in 10 steps *** | + | |
- | </ | + | |
- | + | ||
- | The above shows a typical output from a self-consistent Kohn-Sham | + | |
- | ground state calculation. It states that we are using | + | |
- | diagonalisation method with Broyden charge mixing, and it took 10 | + | |
- | Broyden mixing steps (each containing a diagonalisation process to | + | |
- | obtain the wavefunctions) to reach the required tolerance for | + | |
- | self-consistency. | + | |
- | + | ||
- | < | + | |
- | | + | |
- | Core density on regular grids: | + | |
- | Total charge density on r-space grids: | + | |
- | Total charge density g-space grids: | + | |
- | + | ||
- | | + | |
- | Self energy of the core charge distribution: | + | |
- | Core Hamiltonian energy: | + | |
- | | + | |
- | | + | |
- | + | ||
- | Total energy: | + | |
- | + | ||
- | ENERGY| Total FORCE_EVAL ( QS ) energy (a.u.): | + | |
- | + | ||
- | + | ||
- | ATOMIC FORCES in [a.u.] | + | |
- | + | ||
- | # Atom | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | SUM OF ATOMIC FORCES | + | |
- | </ | + | |
- | + | ||
- | The above shows the results on final energies and forces. | + | |
- | should always check if the total number of electrons calculated from | + | |
- | the final electron density, in this case 31.9999999939, | + | |
- | + | ||
- | The results show that the force on the atoms are almost zero. This | + | |
- | means the system is more or less relaxed, and its geometry is close | + | |
- | to its optimal at ground state. | + | |
- | + | ||
- | + | ||
- | ===== Adding Smearing ===== | + | |
- | In the example so far, we have not used any smearing on electron | + | |
- | occupation. This is fine for system with a large band gap. However, | + | |
- | for metals or systems with a small gap, this may cause the | + | |
- | calculation to be unstable, and the self-consistency loop may never | + | |
- | converge, due to the discontinuity in the electron occupation | + | |
- | function. | + | |
- | + | ||
- | To add smearing, we need to add the subsection [[http:// | + | |
- | subsection '' | + | |
- | + | ||
- | <code cp2k> | + | |
- | &SMEAR ON | + | |
- | METHOD FERMI_DIRAC | + | |
- | ELECTRONIC_TEMPERATURE [K] 300 | + | |
- | &END SMEAR | + | |
- | </ | + | |
- | + | ||
- | This tells '' | + | |
- | occupation. In this example, we use the Fermi-Dirac smearing | + | |
- | function, | + | |
- | that, in '' | + | |
- | value by using a unit enclosed in square bracket, such as "'' | + | |
- | before the value. | + | |
- | + | ||
- | This is not all, since smearing may lead to occupation of molecular | + | |
- | orbitals in the conduction band, we must tell '' | + | |
- | extra, empty, molecular orbitals into the calculation, | + | |
- | otherwise would be omitted (for reducing computational cost). To do | + | |
- | this, we need to add the keyword [[http:// | + | |
- | subsection: | + | |
- | + | ||
- | <code cp2k> | + | |
- | ADDED_MOS 10 | + | |
- | </ | + | |
- | + | ||
- | In this example, we have asked '' | + | |
- | lowest empty molecular orbitals in the calculation. It should be | + | |
- | noted that given a chosen basis set, there is a maximum number of | + | |
- | molecular orbitals, i.e. the number of eigenvectors of the | + | |
- | Hamiltonian, | + | |
- | rank of the Hamiltonian generated in the calculation. | + | |
- | + | ||
- | In the output of the calculation using smearing, we first notice | + | |
- | that: | + | |
- | + | ||
- | < | + | |
- | Number of electrons: | + | |
- | Number of occupied orbitals: | + | |
- | Number of molecular orbitals: | + | |
- | + | ||
- | Number of orbital functions: | + | |
- | Number of independent orbital functions: | + | |
- | </ | + | |
- | + | ||
- | unlike in the previous case with no smearing, now 26 molecular | + | |
- | orbitals have been used during the calculation. There are a total of | + | |
- | 104 basis functions ("atom centred orbitals" | + | |
- | Gaussians) used in the calculation for the given basis set, so 26 is | + | |
- | well within the limit of the calculation. | + | |
- | + | ||
- | < | + | |
- | | + | |
- | Core density on regular grids: | + | |
- | Total charge density on r-space grids: | + | |
- | Total charge density g-space grids: | + | |
- | + | ||
- | | + | |
- | Self energy of the core charge distribution: | + | |
- | Core Hamiltonian energy: | + | |
- | | + | |
- | | + | |
- | | + | |
- | Fermi energy: | + | |
- | + | ||
- | Total energy: | + | |
- | + | ||
- | ENERGY| Total FORCE_EVAL ( QS ) energy (a.u.): | + | |
- | </ | + | |
- | + | ||
- | In the final energy section of the output, we notice that there is | + | |
- | an extra entropy (TS) term: | + | |
- | + | ||
- | < | + | |
- | Electronic entropic energy: | + | |
- | </ | + | |
- | + | ||
- | This should be small for the calculation to be a reliable | + | |
- | approximation to the zero electron temperature result. The final | + | |
- | free energy is the sum of the total DFT energy and the entropic | + | |
- | energy. The total DFT energy is given by: | + | |
- | + | ||
- | < | + | |
- | Total energy: | + | |
- | </ | + | |
- | + | ||
- | and the final free energy extrapolated for TS→0 is given by: | + | |
- | + | ||
- | < | + | |
- | ENERGY| Total FORCE_EVAL ( QS ) energy (a.u.): | + | |
- | </ | + | |
- | This is the energy to be quoted as the final result. | ||
- | --> |
exercises/2017_ethz_mmm/reaction_energy_2017.1493286294.txt.gz · Last modified: 2020/08/21 10:15 (external edit)