exercises:2019_conexs_newcastle:ex3
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
exercises:2019_conexs_newcastle:ex3 [2019/09/10 12:33] – [MgS and MgO: Periodic systems and XAS] abussy | exercises:2019_conexs_newcastle:ex3 [2020/08/21 10:15] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
- | In this exercise we are going to compute near-edge X-ray absorption spectra of bulk MgS and MgO, performing all-electron calculations with GAPW method, using the Transition Potential and ΔSCF approaches. Our goal is to identify differences in the electronic structure, and as a consequence in the K-edge absorption spectrum, of the magnesium due to the different anions it os bounded to. We are also going to analyze the influence of basis set quality in the calculations. | + | In this exercise we are going to compute near-edge X-ray absorption spectra of bulk MgS and MgO, performing all-electron calculations with GAPW method, using the Transition Potential and ΔSCF approaches. Our goal is to identify differences in the electronic structure, and as a consequence in the K-edge absorption spectrum, of the magnesium due to the different anions it is bounded to. We are also going to analyze the influence of basis set quality in the calculations. |
Before starting, it is recommended to create one directory for each system (MgO and MgS) and, within the system' | Before starting, it is recommended to create one directory for each system (MgO and MgS) and, within the system' | ||
Line 103: | Line 103: | ||
Do not forget to put in your work directory the files '' | Do not forget to put in your work directory the files '' | ||
- | To run the calculation, type in your terminal: | + | To run the calculation |
- | < | ||
- | ./cp2k.sopt -i MgO_opt.inp -o MgO_opt.out & | ||
- | </ | ||
After the calculation is finished, you can check the files created in your directory. First open the output file '' | After the calculation is finished, you can check the files created in your directory. First open the output file '' | ||
Line 121: | Line 118: | ||
cp2k prints out the coordinates for each step of the calculation (they are indicated in the file by the index i, right below the number of atoms), so in order to use the optimized geometry in the following calculations, | cp2k prints out the coordinates for each step of the calculation (they are indicated in the file by the index i, right below the number of atoms), so in order to use the optimized geometry in the following calculations, | ||
- | It is also important to check for warnings in your output file. In the end of the output | + | It is also important to check for warnings in your output file. In the end of the file you can find the following banner: |
< | < | ||
Line 164: | Line 161: | ||
<note important> | <note important> | ||
- | Now the input is ready, and can be run in the same way as before, just changing | + | Now the input is ready and it can be run in the same way as before, just remember to change |
- | + | ||
- | < | + | |
- | ./cp2k.sopt -i MgS_opt.inp -o MgS_opt.out & | + | |
- | </ | + | |
After the calculation is finished, open the output file '' | After the calculation is finished, open the output file '' | ||
Line 188: | Line 181: | ||
&DFT | &DFT | ||
- | | + | !where to find all-electron basis sets and potentials |
- | POTENTIAL_FILE_NAME | + | BASIS_SET_FILE_NAME |
+ | POTENTIAL_FILE_NAME | ||
UKS | UKS | ||
Line 216: | Line 210: | ||
&SCF | &SCF | ||
- | MAX_SCF | + | MAX_SCF |
EPS_SCF 1.0E-5 | EPS_SCF 1.0E-5 | ||
SCF_GUESS ATOMIC | SCF_GUESS ATOMIC | ||
Line 226: | Line 220: | ||
&END MIXING | &END MIXING | ||
- | & | ||
- | EPS_SCF 1.0E-5 | ||
- | MAX_SCF 50 | ||
- | &END OUTER_SCF | ||
&END SCF | &END SCF | ||
Line 272: | Line 262: | ||
| | ||
| | ||
- | &END SMEAR | + | &END SMEAR |
&END SCF | &END SCF | ||
Line 345: | Line 335: | ||
<note important> | <note important> | ||
- | To run this calculation | + | To run this calculation |
- | + | ||
- | < | + | |
- | ./cp2k.sopt -i MgS_xas.inp -o MgS_xas.out & | + | |
- | </ | + | |
This calculation should take longer than the geometry optimization to run. Once it is finished, check the number of warnings and if the calculation converged. Sometimes it does not converge within the maximum number of iterations we set in the input file. If this is the case, you can increase the number using the keyword '' | This calculation should take longer than the geometry optimization to run. Once it is finished, check the number of warnings and if the calculation converged. Sometimes it does not converge within the maximum number of iterations we set in the input file. If this is the case, you can increase the number using the keyword '' | ||
Line 379: | Line 365: | ||
As an output you are going to get two files: '' | As an output you are going to get two files: '' | ||
- | In order to obtain the spectrum for atom 2, you can open the file '' | + | In order to obtain the spectrum for atom 2, you can open the file '' |
absorption spectrum. | absorption spectrum. | ||
Line 391: | Line 377: | ||
</ | </ | ||
- | For the MgS system, for example, run the calculation | + | instead of '' |
- | < | + | After the calculation |
- | ./cp2k.sopt -i MgS_dscf.inp -o MgS_dscf.out & | + | |
- | </ | + | |
- | + | ||
- | After the calculation | + | |
< | < | ||
Line 416: | Line 398: | ||
< | < | ||
+ | |||
+ | You can check the tutorial [[exercises: | ||
exercises/2019_conexs_newcastle/ex3.1568118828.txt.gz · Last modified: 2020/08/21 10:15 (external edit)