Xps.py: Difference between revisions
Jump to navigation
Jump to search
New page: go back to Main Page, Computational Resources, Scripts, Scripts for VASP or VASP 1. Download this script and move xps.py to your ~/bin folder. 2. chmod u+x ~/bin/xps... |
No edit summary |
||
| Line 8: | Line 8: | ||
3. Go to your calculation directory and run command: xps.py num (num is the number of the atom which you are intersted in) | 3. Go to your calculation directory and run command: xps.py num (num is the number of the atom which you are intersted in) | ||
4 | 4 This script will move the selected atom to the end of POSCAR and modify the line 6 and 7 accordingly. | ||
Note: | |||
1) By default, this script reads POSCAR as input, if you want to use CONTCAR, there are two options: | |||
i) mv CONTCAR POSCAR | |||
ii) In line 16 of the script, change f = open("POSCAR", 'r') to f = open("CONTCAR", 'r') | |||
Enjoy | Enjoy | ||
Revision as of 10:34, 27 April 2018
go back to Main Page, Computational Resources, Scripts, Scripts for VASP or VASP
1. Download this script and move xps.py to your ~/bin folder.
2. chmod u+x ~/bin/xps.py
3. Go to your calculation directory and run command: xps.py num (num is the number of the atom which you are intersted in)
4 This script will move the selected atom to the end of POSCAR and modify the line 6 and 7 accordingly.
Note: 1) By default, this script reads POSCAR as input, if you want to use CONTCAR, there are two options: i) mv CONTCAR POSCAR ii) In line 16 of the script, change f = open("POSCAR", 'r') to f = open("CONTCAR", 'r')
Enjoy