exercises:common:pdos
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| exercises:common:pdos [2022/09/08 15:26] – jglan | exercises:common:pdos [2022/09/08 15:29] (current) – jglan | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ======= Projected density of states | + | ======= Projected density of states for WO$_3$ ======= |
| In this exercise, we will carry out Density Of States(DOS) and band structure calculation using K-point sampling for Cubic lattice WO$_3$. The reference DOS and band structure you can find in [[http:// | In this exercise, we will carry out Density Of States(DOS) and band structure calculation using K-point sampling for Cubic lattice WO$_3$. The reference DOS and band structure you can find in [[http:// | ||
| Line 134: | Line 134: | ||
| </ | </ | ||
| - | ====== Getting the band structure of WO$_3$ Lattice ====== | ||
| - | To get the band structure for < | ||
| - | |||
| - | <code - WO3-bs.inp> | ||
| - | &GLOBAL | ||
| - | | ||
| - | | ||
| - | | ||
| - | &END GLOBAL | ||
| - | |||
| - | & | ||
| - | | ||
| - | & | ||
| - | BASIS_SET_FILE_NAME | ||
| - | POTENTIAL_FILE_NAME | ||
| - | |||
| - | & | ||
| - | | ||
| - | &END POISSON | ||
| - | &QS | ||
| - | | ||
| - | &END QS | ||
| - | &SCF | ||
| - | | ||
| - | | ||
| - | | ||
| - | |||
| - | | ||
| - | & | ||
| - | ALGORITHM STANDARD | ||
| - | EPS_ADAPT 0.01 | ||
| - | & | ||
| - | & | ||
| - | METHOD FERMI_DIRAC | ||
| - | ELECTRONIC_TEMPERATURE [K] 300 | ||
| - | & | ||
| - | |||
| - | & | ||
| - | METHOD BROYDEN_MIXING | ||
| - | ALPHA 0.2 | ||
| - | BETA 1.5 | ||
| - | NBROYDEN 8 | ||
| - | & | ||
| - | |||
| - | &END SCF | ||
| - | &XC | ||
| - | & | ||
| - | & | ||
| - | &END XC | ||
| - | & | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | &END KPOINTS | ||
| - | |||
| - | & | ||
| - | ADDED_MOS 2 | ||
| - | FILE_NAME WO3.bs | ||
| - | & | ||
| - | UNITS B_VECTOR | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | &END | ||
| - | & | ||
| - | &END PRINT | ||
| - | & | ||
| - | |||
| - | & | ||
| - | &CELL | ||
| - | ABC [angstrom] 3.810000 3.810000 3.810000 | ||
| - | | ||
| - | | ||
| - | &END CELL | ||
| - | & | ||
| - | | ||
| - | &END TOPOLOGY | ||
| - | &COORD | ||
| - | | ||
| - | W 0.0 0.0 0.0 | ||
| - | O 0.5 0.0 0.0 | ||
| - | O 0.0 0.5 0.0 | ||
| - | O 0.0 0.0 0.5 | ||
| - | &END | ||
| - | &KIND W | ||
| - | | ||
| - | | ||
| - | | ||
| - | &END KIND | ||
| - | &KIND O | ||
| - | | ||
| - | | ||
| - | | ||
| - | &END KIND | ||
| - | & | ||
| - | |||
| - | &END FORCE_EVAL | ||
| - | |||
| - | </ | ||
| - | |||
| - | <note important> | ||
| - | |||
| - | Some notes on the input file: | ||
| - | * By specifying the '' | ||
| - | * While you could specify the K-Points directly, we are using the Monkhorst-Pack scheme [(http:// | ||
| - | * After the basic calculation, | ||
| - | * The keyword '' | ||
| - | * The '' | ||
| - | |||
| - | <note tip>You are encouraged to use [[ http:// | ||
| - | <code - WO3-cubic.xyz> | ||
| - | 4 | ||
| - | WO3; a=3.810000 | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | |||
| - | Now, when you run this input file you will get in addition the the output file, a file named '' | ||
| - | |||
| - | < | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | 20 | ||
| - | | ||
| - | | ||
| - | -1.34739188 | ||
| - | | ||
| - | | ||
| - | | ||
| - | 20 | ||
| - | | ||
| - | | ||
| - | -1.44087258 | ||
| - | | ||
| - | | ||
| - | |||
| - | [...] | ||
| - | </ | ||
| - | |||
| - | For each set there is a block named '' | ||
| - | |||
| - | < | ||
| - | Your tasks: | ||
| - | |||
| - | * Lookup the special points for the $\Gamma$, $X$,$M$,$R$ points in the [[http:// | ||
| - | * Compare your plot with plots from literature. What is different? | ||
| - | * How many orbital energies do you get and why? Try to change the input to get more unoccupied orbitals. | ||
| - | </ | ||
| - | |||
| - | |||
| - | To convert the band structure file to a file which can be plotted directly, you can use the script '' | ||
| - | |||
| - | To plot the '' | ||
| - | < | ||
| - | gnuplot> | ||
| - | </ | ||
| - | <file python cp2k_bs2csv.py> | ||
| - | # | ||
| - | """ | ||
| - | Convert the CP2K band structure output to CSV files | ||
| - | """ | ||
| - | |||
| - | import re | ||
| - | import argparse | ||
| - | |||
| - | SET_MATCH = re.compile(r''' | ||
| - | [ ]* | ||
| - | SET: [ ]* (? | ||
| - | TOTAL [ ] POINTS: [ ]* (? | ||
| - | \n | ||
| - | (? | ||
| - | [\s\S]*? | ||
| - | ) | ||
| - | ''', | ||
| - | |||
| - | SPOINTS_MATCH = re.compile(r''' | ||
| - | [ ]* | ||
| - | POINT [ ]+ (? | ||
| - | ''', | ||
| - | |||
| - | POINTS_MATCH = re.compile(r''' | ||
| - | [ ]* | ||
| - | Nr\. [ ]+ (? | ||
| - | Spin [ ]+ (? | ||
| - | K-Point [ ]+ (? | ||
| - | \n | ||
| - | [ ]* (? | ||
| - | (? | ||
| - | [\s\S]*? | ||
| - | ) | ||
| - | ''', | ||
| - | |||
| - | if __name__ == ' | ||
| - | parser = argparse.ArgumentParser(description=__doc__) | ||
| - | parser.add_argument(' | ||
| - | help=" | ||
| - | |||
| - | args = parser.parse_args() | ||
| - | |||
| - | with open(args.bsfilename, | ||
| - | for kpoint_set in SET_MATCH.finditer(fhandle.read()): | ||
| - | filename = " | ||
| - | kpoint_set.group(' | ||
| - | set_content = kpoint_set.group(' | ||
| - | |||
| - | with open(filename, | ||
| - | print((" | ||
| - | " | ||
| - | | ||
| - | |||
| - | print(" | ||
| - | for point in SPOINTS_MATCH.finditer(set_content): | ||
| - | print(" | ||
| - | **point.groupdict())) | ||
| - | |||
| - | for point in POINTS_MATCH.finditer(set_content): | ||
| - | results = point.groupdict() | ||
| - | results[' | ||
| - | csvout.write(" | ||
| - | |||
| - | </ | ||
exercises/common/pdos.1662650798.txt.gz · Last modified: by jglan
