Scripts for VASP: Difference between revisions

From Wiki
Jump to navigation Jump to search
Rgarcia (talk | contribs)
No edit summary
Rgarcia (talk | contribs)
mNo edit summary
 
(109 intermediate revisions by 16 users not shown)
Line 1: Line 1:
go back to [[Main Page]], [[Computational Resources]], [[Scripts]], [[VASP]], [[Núria López and Group]]
go back to [[Main Page]], [[Computational Resources]], [[Scripts]], [[VASP_beginners]], [[Núria López and Group]]


= TEST VERSION =
= General applications =


== General applications ==
* '''Generate pseudopotentials''' automatically: In bash: [[potgen]]; in python: [[potgenpbe5.3]] and [[pos2pot.py]] (''by David, Rodrigo, Qiang, and Konstantin).


=== Generate a POTCAR file ===
* '''Generate KPOINTS file''' containing a Gamma-centered Monkhorst-Pack grid: [[kpoints]] (''by Rodrigo'').


Script to generate pseudopotentials automatically: [[potcar.sh]]
* '''Automatic generation of job scripts''' (1), [[rungen]] (''by Rodrigo''): Works in tekla, tekla2 and MareNostrum4. Use along [[savecalc]].


Pseudopotentials Location:
* '''Automatic generation of job scripts''' (2), [[vasp.sh]] (''by Max''): Works in tekla and tekla2.
*/home/oldhome/nlopez/PPS/pot_for_vasp5.2/pot_paw_LDA
*/home/oldhome/nlopez/PPS/pot_for_vasp5.2/pot_paw_PBE


=== Generate a KPOINTS file ===
* '''Automatic generation of job scripts''' (3), [[adjust.sh]] (''by Luca''): Works in tekla and tekla2.


This script generates automatically a KPOINTS file containing a Gamma-centered Monkhorst-Pack grid [[kpoints.sh]]
* '''Running VASP on [[Tekla2]]''' [[http://aliga.iciq.es/wiki/index.php/SENDING_CALCULATIONS]]


=== Generate a run file ===
* '''Running VASP on [http://www.bsc.es/marenostrum-support-services/res MareNostrum]''' [[vasp-mn.s]]


''' Running VASP on [[Tekla]] ''' [[run-vasp-tekla.s]]
= Specific applications =


''' Running VASP on [[Tekla2]] ''' [[http://aliga.iciq.es/wiki/index.php/SENDING_CALCULATIONS tekla2_scripts]]
== Molecular dynamics ==


''' Running VASP on [[MareNostrum]] ''' [[vasp-mn.s]]
'''Extracting useful information''' [[Image:vaspmd.tgz]] (''modified version of Luca'')


''' Automatic generation of job scripts (1)''', [[adjust.sh]] (''by Luca''): Works in tekla and tekla2.
'''Running iteratively on MareNostrum (1)''': [[scylla&charybdis.tgz]] (''by Luca'')


''' Automatic generation of job scripts (2)''', [[vasp.sh]] (''by Max''): Works in tekla and tekla2.
'''Running iteratively on MareNostrum (2)''': [[resurrection_script]] (''by Rodrigo'')


''' Automatic generation of job scripts (3)''', [[rungen]] (''by Rodrigo''): Works in tekla, tekla2 and MareNostrum.
'''Computing BI- and TRI-dimensional RDF for an optimization/dynamics''': [[RDF]] (''by Luca'')


== Specific applications ==
'''Measuring distance between two atoms during MD run ''': [[curls]] (''by Federico & Edvin'')


=== Molecular dynamics ===
== Reactions: NEB, IDM & IRC, Network==


'''Extracting useful information''' [[Image:vaspmd.tgz]] (''modified version of Luca'')
'''Improved Dimer Method''': [[IDM]] (''by Rodrigo'')


'''Running iteratively on MareNostrum (1)''': [[scylla&charybdis.tgz]] (''by Luca'')
'''Get dimer direction (VASP 5.2_IDM only)''': [[get-dimer-dir.sh]] (''by David'')


'''Running iteratively on MareNostrum (2)''': [[resurrection_script]] (''by Rodrigo'')
'''Get IRC trajectory (VASP 5.2_IDM only)''': [[get-irc-path.sh]] (''by David'')


=== CI-NEB ===
'''CI-NEB''': see /home/iciq08/iciq08897/tools (''by Uberuaga'')


/home/iciq08/iciq08897/tools (''by Uberuaga'')
'''Calculate entropy from vibrations''': [[entropy.py]] (''by Qiang'')


== Auxiliar applications ==
'''Get complete reaction network of Glycerol decomposition''': [[version-6.py]] (''By Qiang'')


'''General script for handling inputs''' [[coco.sh]]
== Format conversion ==
All in one script: translation from vasp format to gaussian (with ''pos2xcry.pl'' and ''xcr_gv.sh''), running gaussview to prepare the input, and translation back to vasp format (with ''gv_vasp.sh'') and preparation of the job (with ''adjust.sh'') (''by Luca'')


'''Calculation of the Cell Parameter''' : [[loop.s]] (''by David'')
Conversion between different formats: [http://openbabel.org/wiki/Main_Page Open Babel]


'''Removing files from queues''' : [[annihilator.s]]
''' ''From VASP'' ''':


'''Changing the dimension and the size of the cell''' : [[ShapeChange.tgz]]  (''by Luca'')
'''POSCAR/CONTCAR to .xcrysden''' (1): [[poscar2xcrysden.pl]]  (asks for atom labels) (''by Luca'')


== Format conversion ==
'''POSCAR/CONTCAR to .xcrysden''' (2): [[pos2xcry.pl]] (does not ask for atom labels) (''by Luca'')


'''POSCAR/CONTCAR to .xcrysden''' (1): [[poscar2xcrysden.pl]] (asks for atom labels) (''by Luca'')
'''POSCAR/CONTCAR to .xcrysden''' (3): [[Image:Xcrysden.tgz]] ('''v2xsf''', ''by Jens Kunstmann''[https://nano.tu-dresden.de/~jkunstmann/software.html], ''posted by Rodrigo'')


'''CPOSCAR/CONTCAR to .xcrysden''' (2): [[pos2xcry.pl]] (does not ask for atom labels) (''by Luca'')
'''POSCAR/CONTCAR to .com''': [[xcr_gv.sh]] Interface between xcrysden and GaussView (''by Luca'')


'''POSCAR/CONTCAR to .xcrysden''' (3): [[Image:Xcrysden.tgz]] (''By Jens Kunstmann, posted by Rodrigo'')
'''POSCAR/CONTCAR to .xyz''' : [[vasp2xyz.sh]] (''by Luca'')


'''POSCAR/CONTCAR to .com''': [[xcr_gv.sh]] Interface between xcrysden and GaussView (''by Luca'')
'''POSCAR/CONTCAR to .cif''' : [[vasp2cif.sh]] (''by Marcos'')


'''POSCAR/CONTCAR to XYZ''' : [[vasp2xyz.sh]]  (''by Luca'')
''' ''To VASP'' ''':


''' XYZ to POSCAR/CONTCAR''' : [[xyz_poscar.pl]] (''By Atahualpa'')
'''.cif to POSCAR/CONTCAR''' : [[cif2vasp.py]] (''by Rodrigo'')  


''' PDB to POSCAR/CONTCAR''' : [[pdb_poscar.pl]]  '''FALTA!!!!!'''
'''.xyz to POSCAR/CONTCAR''' : [[xyz_poscar.pl]]  (''by Atahualpa'')


'''.com to POSCAR/CONTCAR''' : [[gv_vasp.sh]] Interface between GaussView and VASP (''by Luca'')
'''.com to POSCAR/CONTCAR''' : [[gv_vasp.sh]] Interface between GaussView and VASP (''by Luca'')
'''Direct coordinates to Cartesian for POSCAR/CONTCAR''' : [[dire2cart.py]] (''by Qiang'') or [[posutil_d2c]] (''by Rodrigo'')


== Visual tools ==
== Visual tools ==


'''Visualizing vibrations with MOLDEN''': [[nfreq.sh]] (''by Luca'')
'''Visualizing vibrations with MOLDEN''': [[nfreq]]  
old versions: [[freq.s]] [[freq_2.s]] [[nfreq46.sh]]  
old versions: [[nfreq-luca]], [[freq.s]], [[freq_2.s]], [[nfreq46.sh]]
 
'''Visualizing vibrations with [[Jmol]]''': Simply draw the OUTCAR file to the Jmol window.


'''Visualizing optimizations  with MOLDEN''': [[ngeom.sh]] (''by Luca'')
'''Visualizing optimizations  with MOLDEN''': [[ngeom.sh]] (''by Luca'')
old versions: [[geom.s]] [[geom_2.s]]  
old versions: [[geom.s]], [[geom_2.s]]
 
'''Generating a large number of figures with xcrysden''': [[generate_figures]] (''by Rodrigo'')
 
'''Generating a LOCPOT_Z from  LOCPOT for Work Function Visualization ''': [[vtotav.py]] (''by Qiang'')
 
'''Visualizing Vibrations with Jmol''': [[Jmol.sh]]  (''by Qiang'')
 
== Queue and Job management ==
 
'''Removing files from queues''': [[annihilator.s]]


'''Generating a large number of figures''': [[generate_figures]]
'''Checking elapsed/remaining time of a queue''': [[bcheck]] (''by Luca'')


== Old applications =
'''Quickly get into the calculation directory''': [[enter]] (''by Qiang'')


'''Starting a Database''' : [[setandsubmit.s]]
== Band, DOS, and XPS Calculations ==




= Old page =
'''Get Kpoints coordinations connecting specific points in the Brillouin zone''': [[pbekpoints.py]](''by Qiang'')


== General information and examples ==
'''Get PBE band data for visulization''': [[pbeband.py]](''by Qiang'')


        '''Pseudopotentials Location''': /home/oldhome/nlopez/PPS/pot_for_vasp5.2/pot_paw_LDA
'''Get KPOINTS for HSE band calculation''': [[hsekpoints.py]](''by Qiang'')
                                    /home/oldhome/nlopez/PPS/pot_for_vasp5.2/pot_paw_PBE


        '''Starting CI-NEB and other scripts''':   /home/iciq08/iciq08897/tools
'''Get HSE band data for visulization''': [[hseband.py]](''by Qiang'')
                ''(by Uberuaga)''


        '''Running VASP calcul. on [[Tekla]] ''' : ==>  [[run-vasp-tekla.s]] <==
'''HSE-band calculation example: Si''': [[Example_hse_band.tgz]](''by Qiang'')
        '''Running VASP calcul. on [[Tekla2]] ''':  ==>  [[http://aliga.iciq.es/wiki/index.php/SENDING_CALCULATIONS tekla2_scripts]] <==


== General calculations and file management ==
'''Get Specific DOS information''': [[dos_extract_v5.py]](''by Qiang'')


        '''Generating a POTCAR file'''             ==>    [[potcar.sh]]     <==
'''Extracting specific orbitals from one atom in the DOSCAR''': [[pdos.py]] (''by Nathan'')


        '''Calculation of the Cell Parameter''' :   ==>      [[loop.s]]     <==  (''by David'')
'''Get d band center''': [[dcenter.py]](''by Qiang'')


        '''Starting a Database''' :                 ==>  [[setandsubmit.s]] <==
'''Compare two dos data and visualize them''': [[dos_compare.py]](''by Qiang'')


        '''Removing files from queues''' :         ==>  [[annihilator.s]]   <==
'''Prepare POSCAR for XPS calculations (version-1)''': [[xps.py]](''by Qiang'')


        '''Preparing job files''' :                 ==>    [[adjust.sh]]   <== Preparation of the .sub file  (''by Luca'')
'''Prepare POSCAR for XPS calculations (version-2: Recommend)''': [[xps_2.py]](''by Qiang'')


        '''Preparing and submitting job files''' : ==>    [[vasp.sh]]     <== Preparation and submission of the ''.sub'' file  (''by Max'')
'''Assign Gaussian bells to computed XPS shift and sum the bells generating a spectra''': [[curlz]] (''by Javier & Edvin'')


        '''General script for handling inputs''':   ==>      [[coco.sh]]     <==
'''Get the specific atoms' magnetization from OUTCAR''': [[get_mag.sh]] (''by Qiang'')
          (All in one script: translation from vasp format to gaussian (with ''pos2xcry.pl'' and ''xcr_gv.sh''), running
          gaussview to prepare the input, and translation back to vasp format (with ''gv_vasp.sh'') and preparation of
          the job (with ''adjust.sh'')).                                                                (''by Luca'')


== Format conversion ==


        '''From CONTCAR/POSCAR to .xcrysden''':     ==>  [[poscar2xcrysden.pl]] <== (ASKS FOR ATOM LABELS)
== Geometry Manipulations ==
                                              ==>      [[pos2xcry.pl]]    <== (NO QUESTIONS ABOUT ATOM LABELS) (''by Luca'')
'''Direct coordinates to Cartesian for POSCAR/CONTCAR and fix layers''' : [[dire2cart.py]] (''by Qiang'')  
                                              ==>      [[Image:Xcrysden.tgz]] (By Jens Kunstmann, posted by Rodrigo García)


        '''From XYZ to POSCAR''' :                 ==>  [[xyz_poscar.pl]] <==
'''Sorting the coordinates in a POSCAR file''': [[sortcolumn.py]] (''by Nathan'')
        ''(Courtesy from Ata)''


        '''From PDB to POSCAR''' :                 ==>  [[pdb_poscar.pl]] <==    '''FALTA!!!!!'''
'''Sorting the coordinates in a POSCAR file''': [[sortcar.py]] (''by Qiang'')


        '''Translating POSCAR/CONTCAR to .com for gaussview''' : ==>  [[xcr_gv.sh]] <== Interface between xcrysden and gv  (''by Luca'')
'''Move species from one POSCAR to another''' : [[move_atoms_v1.py]] (''by Qiang'')  


        '''Translating .com to POSCAR/CONTCAR''' :               ==>  [[gv_vasp.sh]] <== Interface between gv and xcrysden  (''by Luca'')
'''Species translations on the Surface''' : [[translate.py]] (''by Qiang'')  


        '''Translating POSCAR/CONTCAR to XYZ''' :               ==>  [[vasp2xyz.sh]] <== ''by Luca''
'''Species rotations''' : [[rotation.py]] (''by Qiang'')


        '''Changing the dimension and the size of the cell''' : ==>  [[ShapeChange.tgz]] <== ''by Luca''
'''Move a molecule over a surface''': [[putontop]] (''by Sergio Pablo'')


== Files visualization ==
'''Breaking bonds in batch mode''': [[batch_dehydrogenation]] (''by Rodrigo'')


        '''Visualizing vibrations with MOLDEN''':      ==>  [[freq.s]]  <== ''Outdated''
== Other applications ==
                                                ==>  [[freq_2.s]]  <==  ''Outdated''
                                                ==> [[nfreq46.sh]] <==  ''Outdated''
                                                ==>  [[nfreq.sh]]  <==  ''by Luca'' (improved version of older versions)


'''General script for handling inputs''': [[coco.sh]] (''by Luca'')


        '''Visualizing optimizations  with MOLDEN''':  ==>  [[geom.s]]   <==  ''Outdated''
All in one script: translation from VASP format to Gaussian with [[pos2xcry.pl]] and [[xcr_gv.sh]], running GaussView to prepare the input, and translation back to VASP format with [[gv_vasp.sh]] and preparation of the job with [[adjust.sh]]
                                                ==>  [[geom_2.s]] <==  ''Outdated''
                                                ==>  [[ngeom.sh]] <==  Improved and quicker version of geom_2.s  (''by Luca'')


        '''Generating a large number of figures ''': ==> [[generate figures]]
'''Changing the dimension and the size of the cell''' :  [[ShapeChange.tgz]] (''by Luca'')


== Molecular Dynamics ==
'''Starting a Database''' : [[setandsubmit.s]]


        '''Extracting useful information''':           ==>  [[Image:vaspmd.tgz]] <== (modified version, ''by Luca'')
'''Calculation of the Cell Parameter''' : [[loop.s]] (''by David'')


        '''Running iteratively''':                     ==>  [[scylla&charybdis.tgz]] <== (''by Luca'')
'''Calculate intensities''': [[intensities.sh]] (''by David'')
 
go back to [[Main Page]], [[Computational Resources]], [[Scripts]], [[VASP]], [[Núria López and Group]]

Latest revision as of 15:54, 13 September 2021

go back to Main Page, Computational Resources, Scripts, VASP_beginners, Núria López and Group

General applications[edit]

  • Generate pseudopotentials automatically: In bash: potgen; in python: potgenpbe5.3 and pos2pot.py (by David, Rodrigo, Qiang, and Konstantin).
  • Generate KPOINTS file containing a Gamma-centered Monkhorst-Pack grid: kpoints (by Rodrigo).
  • Automatic generation of job scripts (1), rungen (by Rodrigo): Works in tekla, tekla2 and MareNostrum4. Use along savecalc.
  • Automatic generation of job scripts (2), vasp.sh (by Max): Works in tekla and tekla2.
  • Automatic generation of job scripts (3), adjust.sh (by Luca): Works in tekla and tekla2.

Specific applications[edit]

Molecular dynamics[edit]

Extracting useful information File:Vaspmd.tgz (modified version of Luca)

Running iteratively on MareNostrum (1): scylla&charybdis.tgz (by Luca)

Running iteratively on MareNostrum (2): resurrection_script (by Rodrigo)

Computing BI- and TRI-dimensional RDF for an optimization/dynamics: RDF (by Luca)

Measuring distance between two atoms during MD run : curls (by Federico & Edvin)

Reactions: NEB, IDM & IRC, Network[edit]

Improved Dimer Method: IDM (by Rodrigo)

Get dimer direction (VASP 5.2_IDM only): get-dimer-dir.sh (by David)

Get IRC trajectory (VASP 5.2_IDM only): get-irc-path.sh (by David)

CI-NEB: see /home/iciq08/iciq08897/tools (by Uberuaga)

Calculate entropy from vibrations: entropy.py (by Qiang)

Get complete reaction network of Glycerol decomposition: version-6.py (By Qiang)

Format conversion[edit]

Conversion between different formats: Open Babel

From VASP :

POSCAR/CONTCAR to .xcrysden (1): poscar2xcrysden.pl (asks for atom labels) (by Luca)

POSCAR/CONTCAR to .xcrysden (2): pos2xcry.pl (does not ask for atom labels) (by Luca)

POSCAR/CONTCAR to .xcrysden (3): File:Xcrysden.tgz (v2xsf, by Jens Kunstmann[2], posted by Rodrigo)

POSCAR/CONTCAR to .com: xcr_gv.sh Interface between xcrysden and GaussView (by Luca)

POSCAR/CONTCAR to .xyz : vasp2xyz.sh (by Luca)

POSCAR/CONTCAR to .cif : vasp2cif.sh (by Marcos)

To VASP :

.cif to POSCAR/CONTCAR : cif2vasp.py (by Rodrigo)

.xyz to POSCAR/CONTCAR : xyz_poscar.pl (by Atahualpa)

.com to POSCAR/CONTCAR : gv_vasp.sh Interface between GaussView and VASP (by Luca)

Direct coordinates to Cartesian for POSCAR/CONTCAR : dire2cart.py (by Qiang) or posutil_d2c (by Rodrigo)

Visual tools[edit]

Visualizing vibrations with MOLDEN: nfreq old versions: nfreq-luca, freq.s, freq_2.s, nfreq46.sh

Visualizing vibrations with Jmol: Simply draw the OUTCAR file to the Jmol window.

Visualizing optimizations with MOLDEN: ngeom.sh (by Luca) old versions: geom.s, geom_2.s

Generating a large number of figures with xcrysden: generate_figures (by Rodrigo)

Generating a LOCPOT_Z from LOCPOT for Work Function Visualization : vtotav.py (by Qiang)

Visualizing Vibrations with Jmol: Jmol.sh (by Qiang)

Queue and Job management[edit]

Removing files from queues: annihilator.s

Checking elapsed/remaining time of a queue: bcheck (by Luca)

Quickly get into the calculation directory: enter (by Qiang)

Band, DOS, and XPS Calculations[edit]

Get Kpoints coordinations connecting specific points in the Brillouin zone: pbekpoints.py(by Qiang)

Get PBE band data for visulization: pbeband.py(by Qiang)

Get KPOINTS for HSE band calculation: hsekpoints.py(by Qiang)

Get HSE band data for visulization: hseband.py(by Qiang)

HSE-band calculation example: Si: Example_hse_band.tgz(by Qiang)

Get Specific DOS information: dos_extract_v5.py(by Qiang)

Extracting specific orbitals from one atom in the DOSCAR: pdos.py (by Nathan)

Get d band center: dcenter.py(by Qiang)

Compare two dos data and visualize them: dos_compare.py(by Qiang)

Prepare POSCAR for XPS calculations (version-1): xps.py(by Qiang)

Prepare POSCAR for XPS calculations (version-2: Recommend): xps_2.py(by Qiang)

Assign Gaussian bells to computed XPS shift and sum the bells generating a spectra: curlz (by Javier & Edvin)

Get the specific atoms' magnetization from OUTCAR: get_mag.sh (by Qiang)


Geometry Manipulations[edit]

Direct coordinates to Cartesian for POSCAR/CONTCAR and fix layers : dire2cart.py (by Qiang)

Sorting the coordinates in a POSCAR file: sortcolumn.py (by Nathan)

Sorting the coordinates in a POSCAR file: sortcar.py (by Qiang)

Move species from one POSCAR to another : move_atoms_v1.py (by Qiang)

Species translations on the Surface : translate.py (by Qiang)

Species rotations : rotation.py (by Qiang)

Move a molecule over a surface: putontop (by Sergio Pablo)

Breaking bonds in batch mode: batch_dehydrogenation (by Rodrigo)

Other applications[edit]

General script for handling inputs: coco.sh (by Luca)

All in one script: translation from VASP format to Gaussian with pos2xcry.pl and xcr_gv.sh, running GaussView to prepare the input, and translation back to VASP format with gv_vasp.sh and preparation of the job with adjust.sh

Changing the dimension and the size of the cell : ShapeChange.tgz (by Luca)

Starting a Database : setandsubmit.s

Calculation of the Cell Parameter : loop.s (by David)

Calculate intensities: intensities.sh (by David)

go back to Main Page, Computational Resources, Scripts, VASP, Núria López and Group