Editing
Potgen
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
go back to [[Main Page]], [[Group Pages]], [[Núria López and Group]], [[Scripts_for_VASP]], [[pos2pot.py]] '''Instructions''': This script will make automatically a POTCAR file. Put it in your ~/bin/ folder ($ vim ~/bin/potgen) and make it executable ($ chmod +x potgen). Mind that the repository for pseudopotentials (line 7) will change depending on the functional. '''For newcomers''': Most elements have more than one pseudopotential available. Besides the default one, there are '''h'''ard and '''s'''oft versions; other ones include ''s'' or ''p'' core electrons; for cations the selection may depend on the valence. The pseudopotential also depend on the density functional you chose. The right pseudopotentials should be selected at the very beginning of each project. '''potgen''' #!/bin/bash # Create a GGA_PAW POTCAR file by concatenation of POTCAR files # D.K. version 2010-07-08 # Rev. R.G. 2012-12-12 # Define local potpaw_GGA pseudopotential repository. Here provided for tekla2: repo="/home/oldhome/nlopez/PPS/PBE" # Check if older version of POTCAR is present if [ -f POTCAR ] ; then mv -f POTCAR old-POTCAR echo " ** Warning: old POTCAR file found and renamed to 'old-POTCAR'." fi # Main loop - concatenate the appropriate POTCARs (or archives) for i in $* do if test -f $repo/$i/POTCAR ; then cat $repo/$i/POTCAR >> POTCAR elif test -f $repo/$i/POTCAR.Z ; then zcat $repo/$i/POTCAR >> POTCAR elif test -f $repo/$i/POTCAR.gz ; then gunzip -c $repo/$i/POTCAR.gz >> POTCAR else echo " ** Warning: No suitable POTCAR for element '$i' found!! Skipped this element." fi done Change the line 6 with the path where you have the pseudopotentials. In tekla: '''Pseudopotentials Location''': /home/oldhome/nlopez/PPS/PBE /home/oldhome/nlopez/PPS/PW91 /home/oldhome/nlopez/PPS/PW91USPP /home/oldhome/nlopez/PPS/LDA In you use more than one set of pseudopotentials, you can generate several versions naming them accordingly, like [[potgenpbe5.3]]. '''Example of use''': $ potcar.sh C_s H O_s Au Pt go back to [[Main Page]], [[Group Pages]], [[Núria López and Group]], [[Scripts_for_VASP]]
Summary:
Please note that all contributions to Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information