exercises:2015_ethz_mmm:simple_stm
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| exercises:2015_ethz_mmm:simple_stm [2015/05/29 10:47] – pshinde | exercises:2015_ethz_mmm:simple_stm [2020/08/21 10:15] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| Download, as usual, the files from the media manager: {{exercise-10.2.tar.gz|}}. The 1h.1.5.inp file is **commented**). | Download, as usual, the files from the media manager: {{exercise-10.2.tar.gz|}}. The 1h.1.5.inp file is **commented**). | ||
| - | Please use command **module load cp2k/trunk.2.5.13191** to do this particular exercise. | + | Please use command **module load cp2k/2.5.14075** , as well as **module load python/ |
| </ | </ | ||
| ===== 1. Task: Running the job and looking at the orbitals ===== | ===== 1. Task: Running the job and looking at the orbitals ===== | ||
| Line 45: | Line 45: | ||
| &END | &END | ||
| - | &MO | + | |
| - | ! molecular orbitals eigenvalues and molecular ocuupations after each scf | + | |
| - | | + | |
| - | ! add the last iteration with description | + | |
| - | | + | |
| - | ! printing of eigenvalues of molecular orbitals | + | |
| - | | + | |
| - | ! also print occupation of the molecular orbitals | + | |
| - | | + | |
| - | &END | + | |
| - | &END | + | |
| </ | </ | ||
| - | There will be an output file with the energy levels and their occupation. The last one can be easily found... | + | There will be an output file with the unoccupied |
| - | + | To plot the energy level diagram, copy and paste following lines into the python script **eldplot.py**. The file **energy.dat** contains energy eigenvalues | |
| - | To plot the energy level diagram, copy and paste following lines into the python script **eldplot.py**. The file **energy.dat** contains energy eigenvalues in a column from the output file at the previous step. The Fermi energy (Ef) must be entered in the **eldplot.py** script. Use command **python eldplot.py** to get the energy level diagram as a png image. Identify the occupied and unoccupied energy levels and name them. | + | |
| < | < | ||
| import matplotlib.pyplot as plt | import matplotlib.pyplot as plt | ||
| Line 81: | Line 70: | ||
| # Fermi energy | # Fermi energy | ||
| - | |||
| Ef=0.0 | Ef=0.0 | ||
| Line 110: | Line 98: | ||
| #plt.show() | #plt.show() | ||
| - | # save plot in a png file | + | # save plot in a eps file |
| - | plt.savefig(' | + | plt.savefig(' |
| </ | </ | ||
| An example of the energy level diagram is as follows, | An example of the energy level diagram is as follows, | ||
| - | {{ eld.png? | + | {{ eld1.png? |
| <note tip> | <note tip> | ||
exercises/2015_ethz_mmm/simple_stm.1432896471.txt.gz · Last modified: (external edit)
