├── lecture 3 - VASP ├── Notes on programming project │ ├── python │ │ ├── get-surface-energy │ │ │ ├── 100 │ │ │ │ ├── CHGCAR │ │ │ │ ├── REPORT │ │ │ │ ├── WAVECAR │ │ │ │ ├── e_InPd2-100-surf.299779 │ │ │ │ ├── KPOINTS │ │ │ │ ├── DOSCAR │ │ │ │ ├── PCDAT │ │ │ │ ├── run.sh │ │ │ │ ├── IBZKPT │ │ │ │ ├── INCAR │ │ │ │ ├── POSCAR │ │ │ │ ├── CONTCAR │ │ │ │ ├── XDATCAR │ │ │ │ └── OSZICAR │ │ │ ├── 110 │ │ │ │ ├── CHGCAR │ │ │ │ ├── REPORT │ │ │ │ ├── WAVECAR │ │ │ │ ├── KPOINTS │ │ │ │ ├── DOSCAR │ │ │ │ ├── PCDAT │ │ │ │ ├── e_InPd2-110-surf.299780 │ │ │ │ ├── run.sh │ │ │ │ ├── IBZKPT │ │ │ │ ├── INCAR │ │ │ │ ├── POSCAR │ │ │ │ └── CONTCAR │ │ │ ├── 111 │ │ │ │ ├── CHGCAR │ │ │ │ ├── REPORT │ │ │ │ ├── WAVECAR │ │ │ │ ├── KPOINTS │ │ │ │ ├── DOSCAR │ │ │ │ ├── PCDAT │ │ │ │ ├── e_InPd2-111-surf.299781 │ │ │ │ ├── run.sh │ │ │ │ ├── IBZKPT │ │ │ │ ├── INCAR │ │ │ │ ├── POSCAR │ │ │ │ ├── CONTCAR │ │ │ │ ├── XDATCAR │ │ │ │ └── OSZICAR │ │ │ ├── 010 │ │ │ │ ├── REPORT │ │ │ │ ├── WAVECAR │ │ │ │ ├── e_InPd2-010.285326 │ │ │ │ ├── KPOINTS │ │ │ │ ├── DOSCAR │ │ │ │ ├── PCDAT │ │ │ │ ├── run.sh │ │ │ │ ├── IBZKPT │ │ │ │ ├── INCAR │ │ │ │ ├── p4vasp.log │ │ │ │ ├── POSCAR │ │ │ │ └── CONTCAR │ │ │ ├── bulk │ │ │ │ ├── REPORT │ │ │ │ ├── WAVECAR │ │ │ │ ├── e_InPd2bulk.285194 │ │ │ │ ├── KPOINTS │ │ │ │ ├── PCDAT │ │ │ │ ├── run.sh │ │ │ │ ├── POSCAR │ │ │ │ ├── CONTCAR.cif │ │ │ │ ├── p4vasp.log │ │ │ │ ├── CONTCAR │ │ │ │ ├── INCAR │ │ │ │ ├── IBZKPT │ │ │ │ ├── XDATCAR │ │ │ │ ├── DOSCAR │ │ │ │ └── OSZICAR │ │ │ ├── formula-for-energy.png │ │ │ └── get-surface-energy.ipynb │ │ ├── slab-gen │ │ │ ├── cell.png │ │ │ ├── .ipynb_checkpoints │ │ │ │ ├── cell-checkpoint.png │ │ │ │ └── slab-gen-checkpoint.ipynb │ │ │ ├── CONTCAR_input │ │ │ ├── slab-gen.ipynb │ │ │ ├── POSCAR_100_output │ │ │ ├── POSCAR_111_output │ │ │ └── POSCAR_711_output │ │ └── to-install-anaconda.mp4 │ └── bash │ │ ├── k-gen │ │ ├── KPOINTS_output │ │ ├── kgen.sh │ │ └── POSCAR_input │ │ ├── add-mol │ │ ├── CONTCAR_mol_input │ │ ├── addmol.sh │ │ ├── CONTCAR_surface_input │ │ └── POSCAR_output │ │ └── ordtor │ │ ├── POSCAR_input │ │ ├── POSCAR_output │ │ └── ordtor.sh ├── 3rd-class.pdf ├── handsonIII.pdf └── VASP-notes │ ├── 1_optionic.pdf │ ├── 2_optelectron.pdf │ └── 3_performance.pdf ├── .gitattributes ├── Linux_bash_cheat_sheet.pdf ├── lecture 1 - VASP ├── 1st-class.pdf ├── handsonI.pdf ├── VASP-notes │ ├── 3_pseudopp1.pdf │ ├── 1_comput_mat.pdf │ └── 2_dft_introd.pdf └── additional-material │ └── DFT.pdf ├── lecture 2 - VASP ├── 2nd-class.pdf ├── handsonII.pdf └── VASP-notes │ ├── 1_pseudopp2.pdf │ └── 2_k-points.pdf ├── lecture 4 - VASP ├── 4th-class.pdf ├── handsonIV.pdf └── VASP-notes │ ├── 1_accuracy.pdf │ ├── 3_dft_depth.pdf │ ├── 4_magnetism.pdf │ ├── 0_vasp_summary.pdf │ └── 2_pseudoppdatabase.pdf ├── lecture 5 - Blender ├── notes.pdf ├── blender-file.blend ├── final-figure.png └── structures │ └── Cs-TS.xyz └── README.txt /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/010/REPORT: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/010/WAVECAR: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/100/CHGCAR: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/100/REPORT: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/100/WAVECAR: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/110/CHGCAR: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/110/REPORT: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/110/WAVECAR: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/111/CHGCAR: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/111/REPORT: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/111/WAVECAR: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/bulk/REPORT: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/bulk/WAVECAR: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/010/e_InPd2-010.285326: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/bulk/e_InPd2bulk.285194: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/100/e_InPd2-100-surf.299779: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Linux_bash_cheat_sheet.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/Linux_bash_cheat_sheet.pdf -------------------------------------------------------------------------------- /lecture 1 - VASP/1st-class.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 1 - VASP/1st-class.pdf -------------------------------------------------------------------------------- /lecture 1 - VASP/handsonI.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 1 - VASP/handsonI.pdf -------------------------------------------------------------------------------- /lecture 2 - VASP/2nd-class.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 2 - VASP/2nd-class.pdf -------------------------------------------------------------------------------- /lecture 2 - VASP/handsonII.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 2 - VASP/handsonII.pdf -------------------------------------------------------------------------------- /lecture 3 - VASP/3rd-class.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 3 - VASP/3rd-class.pdf -------------------------------------------------------------------------------- /lecture 4 - VASP/4th-class.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 4 - VASP/4th-class.pdf -------------------------------------------------------------------------------- /lecture 4 - VASP/handsonIV.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 4 - VASP/handsonIV.pdf -------------------------------------------------------------------------------- /lecture 5 - Blender/notes.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 5 - Blender/notes.pdf -------------------------------------------------------------------------------- /lecture 3 - VASP/handsonIII.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 3 - VASP/handsonIII.pdf -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/bash/k-gen/KPOINTS_output: -------------------------------------------------------------------------------- 1 | K-Points 2 | 0 3 | Gamma 4 | 4 3 1 5 | 0 0 0 6 | -------------------------------------------------------------------------------- /lecture 5 - Blender/blender-file.blend: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 5 - Blender/blender-file.blend -------------------------------------------------------------------------------- /lecture 5 - Blender/final-figure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 5 - Blender/final-figure.png -------------------------------------------------------------------------------- /lecture 1 - VASP/VASP-notes/3_pseudopp1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 1 - VASP/VASP-notes/3_pseudopp1.pdf -------------------------------------------------------------------------------- /lecture 2 - VASP/VASP-notes/1_pseudopp2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 2 - VASP/VASP-notes/1_pseudopp2.pdf -------------------------------------------------------------------------------- /lecture 2 - VASP/VASP-notes/2_k-points.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 2 - VASP/VASP-notes/2_k-points.pdf -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/010/KPOINTS: -------------------------------------------------------------------------------- 1 | K-Points 2 | 0 3 | Gamma 4 | 4 3 1 5 | 0 0 0 6 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/100/KPOINTS: -------------------------------------------------------------------------------- 1 | K-Points 2 | 0 3 | Gamma 4 | 4 4 1 5 | 0 0 0 6 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/110/KPOINTS: -------------------------------------------------------------------------------- 1 | K-Points 2 | 0 3 | Gamma 4 | 4 5 1 5 | 0 0 0 6 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/111/KPOINTS: -------------------------------------------------------------------------------- 1 | K-Points 2 | 0 3 | Gamma 4 | 5 4 1 5 | 0 0 0 6 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/bulk/KPOINTS: -------------------------------------------------------------------------------- 1 | K-Points 2 | 0 3 | Gamma 4 | 6 8 4 5 | 0 0 0 6 | -------------------------------------------------------------------------------- /lecture 3 - VASP/VASP-notes/1_optionic.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 3 - VASP/VASP-notes/1_optionic.pdf -------------------------------------------------------------------------------- /lecture 4 - VASP/VASP-notes/1_accuracy.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 4 - VASP/VASP-notes/1_accuracy.pdf -------------------------------------------------------------------------------- /lecture 4 - VASP/VASP-notes/3_dft_depth.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 4 - VASP/VASP-notes/3_dft_depth.pdf -------------------------------------------------------------------------------- /lecture 4 - VASP/VASP-notes/4_magnetism.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 4 - VASP/VASP-notes/4_magnetism.pdf -------------------------------------------------------------------------------- /lecture 1 - VASP/VASP-notes/1_comput_mat.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 1 - VASP/VASP-notes/1_comput_mat.pdf -------------------------------------------------------------------------------- /lecture 1 - VASP/VASP-notes/2_dft_introd.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 1 - VASP/VASP-notes/2_dft_introd.pdf -------------------------------------------------------------------------------- /lecture 1 - VASP/additional-material/DFT.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 1 - VASP/additional-material/DFT.pdf -------------------------------------------------------------------------------- /lecture 3 - VASP/VASP-notes/2_optelectron.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 3 - VASP/VASP-notes/2_optelectron.pdf -------------------------------------------------------------------------------- /lecture 3 - VASP/VASP-notes/3_performance.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 3 - VASP/VASP-notes/3_performance.pdf -------------------------------------------------------------------------------- /lecture 4 - VASP/VASP-notes/0_vasp_summary.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 4 - VASP/VASP-notes/0_vasp_summary.pdf -------------------------------------------------------------------------------- /lecture 4 - VASP/VASP-notes/2_pseudoppdatabase.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 4 - VASP/VASP-notes/2_pseudoppdatabase.pdf -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/slab-gen/cell.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 3 - VASP/Notes on programming project/python/slab-gen/cell.png -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/to-install-anaconda.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 3 - VASP/Notes on programming project/python/to-install-anaconda.mp4 -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/formula-for-energy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 3 - VASP/Notes on programming project/python/get-surface-energy/formula-for-energy.png -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/slab-gen/.ipynb_checkpoints/cell-checkpoint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FedeDat/VASP-tutorial/HEAD/lecture 3 - VASP/Notes on programming project/python/slab-gen/.ipynb_checkpoints/cell-checkpoint.png -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/010/DOSCAR: -------------------------------------------------------------------------------- 1 | 48 48 0 0 2 | 0.3275121E+02 0.8392901E-09 0.1145020E-08 0.1635850E-08 0.1500000E-15 3 | 1.000000000000000E-004 4 | CAR 5 | alloy-surf 6 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/100/DOSCAR: -------------------------------------------------------------------------------- 1 | 24 24 0 0 2 | 0.4432156E+02 0.8478000E-09 0.8392901E-09 0.1494930E-08 0.1500000E-15 3 | 1.000000000000000E-004 4 | CAR 5 | alloy-surf 6 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/110/DOSCAR: -------------------------------------------------------------------------------- 1 | 24 24 0 0 2 | 0.4066557E+02 0.8392901E-09 0.7123600E-09 0.1632400E-08 0.1500000E-15 3 | 1.000000000000000E-004 4 | CAR 5 | alloy-surf 6 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/111/DOSCAR: -------------------------------------------------------------------------------- 1 | 24 24 0 0 2 | 0.4351382E+02 0.7123600E-09 0.9402701E-09 0.1618590E-08 0.1500000E-15 3 | 1.000000000000000E-004 4 | CAR 5 | alloy-surf 6 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/010/PCDAT: -------------------------------------------------------------------------------- 1 | 1 48 1 0 0.3275121E+02 0.1000000E-03 2 | CAR 3 | alloy-surf 4 | 0 0 0 5 | 1 1 6 | 256 256 256 7 | 256 8 | 0.1000000E-09 9 | 0.6250000E-11 10 | 1 11 | 0.1500000E-15 0.8392901E-09 0.1145020E-08 0.1635850E-08 12 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/100/PCDAT: -------------------------------------------------------------------------------- 1 | 1 24 1 0 0.4432156E+02 0.1000000E-03 2 | CAR 3 | alloy-surf 4 | 0 0 0 5 | 1 1 6 | 256 256 256 7 | 256 8 | 0.1000000E-09 9 | 0.6250000E-11 10 | 1 11 | 0.1500000E-15 0.8478000E-09 0.8392901E-09 0.1494930E-08 12 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/110/PCDAT: -------------------------------------------------------------------------------- 1 | 1 24 1 0 0.4066557E+02 0.1000000E-03 2 | CAR 3 | alloy-surf 4 | 0 0 0 5 | 1 1 6 | 256 256 256 7 | 256 8 | 0.1000000E-09 9 | 0.6250000E-11 10 | 1 11 | 0.1500000E-15 0.8392901E-09 0.7123600E-09 0.1632400E-08 12 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/111/PCDAT: -------------------------------------------------------------------------------- 1 | 1 24 1 0 0.4351382E+02 0.1000000E-03 2 | CAR 3 | alloy-surf 4 | 0 0 0 5 | 1 1 6 | 256 256 256 7 | 256 8 | 0.1000000E-09 9 | 0.6250000E-11 10 | 1 11 | 0.1500000E-15 0.7123600E-09 0.9402701E-09 0.1618590E-08 12 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/bulk/PCDAT: -------------------------------------------------------------------------------- 1 | 1 12 1 0 0.1624061E+02 0.1000000E-03 2 | CAR 3 | bulk 4 | 0 0 0 5 | 1 1 6 | 256 256 256 7 | 256 8 | 0.1000000E-09 9 | 0.6250000E-11 10 | 1 11 | 0.1500000E-15 0.5616760E-09 0.4217100E-09 0.8227800E-09 12 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/111/e_InPd2-111-surf.299781: -------------------------------------------------------------------------------- 1 | rm: no s’ha pogut eliminar «/scratch/270306.1.c12m48ib.q/machines.270306»: S’ha denegat el permís 2 | rm: no s’ha pogut eliminar «/scratch/270306.1.c12m48ib.q/sge_machinefile_hnguyen.2481»: S’ha denegat el permís 3 | rm: no s’ha pogut eliminar «/scratch/270306.1.c12m48ib.q/qrsh_client_cache»: S’ha denegat el permís 4 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/bash/add-mol/CONTCAR_mol_input: -------------------------------------------------------------------------------- 1 | C O 2 | 1.0 3 | +15.0000000000 +0.0000000000 +0.0000000000 4 | +0.0000000000 +15.0000000000 +0.0000000000 5 | +0.0000000000 +0.0000000000 +15.0000000000 6 | C O 7 | 1 1 8 | Selective 9 | Cartesian 10 | +7.5000000000 +7.5000000000 +6.3565212870 T T T 11 | +7.5000000000 +7.5000000000 +7.5000000000 T T T 12 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/110/e_InPd2-110-surf.299780: -------------------------------------------------------------------------------- 1 | rm: no s’ha pogut eliminar «/scratch/Gau-12001.inp»: L’operació no és permesa 2 | rm: no s’ha pogut eliminar «/scratch/Gau-12002.chk»: L’operació no és permesa 3 | rm: no s’ha pogut eliminar «/scratch/Gau-12002.d2e»: L’operació no és permesa 4 | rm: no s’ha pogut eliminar «/scratch/Gau-12002.int»: L’operació no és permesa 5 | rm: no s’ha pogut eliminar «/scratch/Gau-12002.rwf»: L’operació no és permesa 6 | rm: no s’ha pogut eliminar «/scratch/Gau-12002.skr»: L’operació no és permesa 7 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/010/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ### SGE Parameters ####################### 3 | #$ -S /bin/bash 4 | #$ -N InPd2-010 5 | #$ -cwd 6 | #$ -masterq c12m48ib.q 7 | #$ -pe c12m48ib_mpi 12 8 | #$ -m ae 9 | #$ -M fdattila@iciq.es 10 | #$ -o o_$JOB_NAME.$JOB_ID 11 | #$ -e e_$JOB_NAME.$JOB_ID 12 | ### Load Environment Variables ########### 13 | . /etc/profile.d/modules.sh 14 | module load vasp/5.4.4 15 | ### Run Job ############################## 16 | export OMP_NUM_THREADS=1 17 | echo $PWD >> o_$JOB_NAME.$JOB_ID 18 | echo $TMP >> o_$JOB_NAME.$JOB_ID 19 | ~/bin/savecalc ; mpirun -np $NSLOTS vasp_std ; rm -f CHG* 20 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/100/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ### SGE Parameters ####################### 3 | #$ -S /bin/bash 4 | #$ -N InPd2-100-surf 5 | #$ -cwd 6 | #$ -masterq c12m48ib.q 7 | #$ -pe c12m48ib_mpi 12 8 | #$ -m ae 9 | #$ -M fdattila@iciq.es 10 | #$ -o o_$JOB_NAME.$JOB_ID 11 | #$ -e e_$JOB_NAME.$JOB_ID 12 | ### Load Environment Variables ########### 13 | . /etc/profile.d/modules.sh 14 | module load vasp/5.4.4 15 | ### Run Job ############################## 16 | export OMP_NUM_THREADS=1 17 | echo $PWD >> o_$JOB_NAME.$JOB_ID 18 | echo $TMP >> o_$JOB_NAME.$JOB_ID 19 | ~/bin/savecalc ; mpirun -np $NSLOTS vasp_std ; rm -f CHG 20 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/110/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ### SGE Parameters ####################### 3 | #$ -S /bin/bash 4 | #$ -N InPd2-110-surf 5 | #$ -cwd 6 | #$ -masterq c12m48ib.q 7 | #$ -pe c12m48ib_mpi 12 8 | #$ -m ae 9 | #$ -M fdattila@iciq.es 10 | #$ -o o_$JOB_NAME.$JOB_ID 11 | #$ -e e_$JOB_NAME.$JOB_ID 12 | ### Load Environment Variables ########### 13 | . /etc/profile.d/modules.sh 14 | module load vasp/5.4.4 15 | ### Run Job ############################## 16 | export OMP_NUM_THREADS=1 17 | echo $PWD >> o_$JOB_NAME.$JOB_ID 18 | echo $TMP >> o_$JOB_NAME.$JOB_ID 19 | ~/bin/savecalc ; mpirun -np $NSLOTS vasp_std ; rm -f CHG 20 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/111/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ### SGE Parameters ####################### 3 | #$ -S /bin/bash 4 | #$ -N InPd2-111-surf 5 | #$ -cwd 6 | #$ -masterq c12m48ib.q 7 | #$ -pe c12m48ib_mpi 12 8 | #$ -m ae 9 | #$ -M fdattila@iciq.es 10 | #$ -o o_$JOB_NAME.$JOB_ID 11 | #$ -e e_$JOB_NAME.$JOB_ID 12 | ### Load Environment Variables ########### 13 | . /etc/profile.d/modules.sh 14 | module load vasp/5.4.4 15 | ### Run Job ############################## 16 | export OMP_NUM_THREADS=1 17 | echo $PWD >> o_$JOB_NAME.$JOB_ID 18 | echo $TMP >> o_$JOB_NAME.$JOB_ID 19 | ~/bin/savecalc ; mpirun -np $NSLOTS vasp_std ; rm -f CHG 20 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/bulk/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ### SGE Parameters ####################### 3 | #$ -S /bin/bash 4 | #$ -N InPd2bulk 5 | #$ -cwd 6 | #$ -masterq c12m48ib.q 7 | #$ -pe c12m48ib_mpi 12 8 | #$ -m ae 9 | #$ -M fdattila@iciq.es 10 | #$ -o o_$JOB_NAME.$JOB_ID 11 | #$ -e e_$JOB_NAME.$JOB_ID 12 | ### Load Environment Variables ########### 13 | . /etc/profile.d/modules.sh 14 | module load vasp/5.4.4 15 | ### Run Job ############################## 16 | export OMP_NUM_THREADS=1 17 | echo $PWD >> o_$JOB_NAME.$JOB_ID 18 | echo $TMP >> o_$JOB_NAME.$JOB_ID 19 | ~/bin/savecalc ; mpirun -np $NSLOTS vasp_std ; rm -f CHG* 20 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/010/IBZKPT: -------------------------------------------------------------------------------- 1 | Automatically generated mesh 2 | 7 3 | Reciprocal lattice 4 | 0.00000000000000 0.00000000000000 0.00000000000000 1 5 | 0.25000000000000 0.00000000000000 0.00000000000000 2 6 | 0.50000000000000 0.00000000000000 0.00000000000000 1 7 | 0.00000000000000 0.33333333333333 0.00000000000000 2 8 | 0.25000000000000 0.33333333333333 0.00000000000000 2 9 | 0.50000000000000 0.33333333333333 0.00000000000000 2 10 | -0.25000000000000 0.33333333333333 0.00000000000000 2 11 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/100/IBZKPT: -------------------------------------------------------------------------------- 1 | Automatically generated mesh 2 | 9 3 | Reciprocal lattice 4 | 0.00000000000000 0.00000000000000 0.00000000000000 1 5 | 0.25000000000000 0.00000000000000 0.00000000000000 2 6 | 0.50000000000000 0.00000000000000 0.00000000000000 1 7 | 0.00000000000000 0.25000000000000 0.00000000000000 2 8 | 0.25000000000000 0.25000000000000 0.00000000000000 4 9 | 0.50000000000000 0.25000000000000 0.00000000000000 2 10 | 0.00000000000000 0.50000000000000 0.00000000000000 1 11 | 0.25000000000000 0.50000000000000 0.00000000000000 2 12 | 0.50000000000000 0.50000000000000 0.00000000000000 1 13 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/slab-gen/CONTCAR_input: -------------------------------------------------------------------------------- 1 | Silver - 3C 2 | 1.00000000000000 3 | 4.1461757515646962 0.0000000000000000 -0.0000000000000000 4 | 0.0000000000000000 4.1461757515646962 0.0000000000000000 5 | 0.0000000000000000 0.0000000000000000 4.1461757515646962 6 | Ag 7 | 4 8 | Selective dynamics 9 | Direct 10 | 0.0000000000000000 0.0000000000000000 0.0000000000000000 F F F 11 | 0.0000000000000000 0.5000000000000000 0.5000000000000000 T T T 12 | 0.5000000000000000 0.0000000000000000 0.5000000000000000 T T T 13 | 0.5000000000000000 0.5000000000000000 0.0000000000000000 T T T 14 | 15 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 16 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 17 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 18 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 19 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/bulk/POSCAR: -------------------------------------------------------------------------------- 1 | Indium palladium (1/2) 2 | 1.0 3 | +5.6167597771 +0.0000000000 +0.0000000000 4 | +0.0000000000 +4.2171001434 +0.0000000000 5 | +0.0000000000 +0.0000000000 +8.2278003693 6 | In Pd 7 | 4 8 8 | Selective 9 | Direct 10 | +0.8222000000 +0.2500000000 +0.3989000020 F F F 11 | +0.1778000000 +0.7500000000 +0.6010999680 T T T 12 | +0.6778000000 +0.7500000000 +0.8989000320 T T T 13 | +0.3222000000 +0.2500000000 +0.1010999980 T T T 14 | +0.8399999740 +0.2500000000 +0.0723000020 T T T 15 | +0.1600000260 +0.7500000000 +0.9276999830 T T T 16 | +0.6600000260 +0.7500000000 +0.5723000170 T T T 17 | +0.3399999740 +0.2500000000 +0.4276999830 T T T 18 | +0.9329000120 +0.2500000000 +0.7318000200 T T T 19 | +0.0670999880 +0.7500000000 +0.2681999800 T T T 20 | +0.5670999880 +0.7500000000 +0.2318000200 T T T 21 | +0.4329000120 +0.2500000000 +0.7681999800 T T T 22 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/110/IBZKPT: -------------------------------------------------------------------------------- 1 | Automatically generated mesh 2 | 11 3 | Reciprocal lattice 4 | 0.00000000000000 0.00000000000000 0.00000000000000 1 5 | 0.25000000000000 0.00000000000000 0.00000000000000 2 6 | 0.50000000000000 0.00000000000000 0.00000000000000 1 7 | 0.00000000000000 0.20000000000000 0.00000000000000 2 8 | 0.25000000000000 0.20000000000000 0.00000000000000 2 9 | 0.50000000000000 0.20000000000000 0.00000000000000 2 10 | -0.25000000000000 0.20000000000000 0.00000000000000 2 11 | 0.00000000000000 0.40000000000000 0.00000000000000 2 12 | 0.25000000000000 0.40000000000000 0.00000000000000 2 13 | 0.50000000000000 0.40000000000000 0.00000000000000 2 14 | -0.25000000000000 0.40000000000000 0.00000000000000 2 15 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/111/IBZKPT: -------------------------------------------------------------------------------- 1 | Automatically generated mesh 2 | 11 3 | Reciprocal lattice 4 | 0.00000000000000 0.00000000000000 0.00000000000000 1 5 | 0.20000000000000 -0.00000000000000 0.00000000000000 2 6 | 0.40000000000000 -0.00000000000000 0.00000000000000 2 7 | 0.00000000000000 0.25000000000000 0.00000000000000 2 8 | 0.20000000000000 0.25000000000000 0.00000000000000 2 9 | 0.40000000000000 0.25000000000000 0.00000000000000 2 10 | -0.40000000000000 0.25000000000000 0.00000000000000 2 11 | -0.20000000000000 0.25000000000000 0.00000000000000 2 12 | 0.00000000000000 0.50000000000000 0.00000000000000 1 13 | 0.20000000000000 0.50000000000000 0.00000000000000 2 14 | 0.40000000000000 0.50000000000000 0.00000000000000 2 15 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/010/INCAR: -------------------------------------------------------------------------------- 1 | general: 2 | SYSTEM = alloy-surf 3 | ISTART = 0 # 0: new, 2: read WC 4 | ICHARG = 2 # 0: WC , 1: CHGCAR, 2: new 5 | GGA = PE # PE: PBE 6 | ISPIN = 1 # No spin. To include if needed. 7 | 8 | electronic steps: 9 | ENCUT = 450 # [eV] 10 | EDIFF = 1E-5 # [eV] 11 | ISMEAR = 0 12 | SIGMA = 0.03 # [eV] 13 | ALGO = Fast 14 | LREAL = Auto 15 | NELM = 100 # 40 16 | NELMIN = 5 # 2 17 | NELMDL = -7 # 1 from the second run 18 | AMIX = 0.10 19 | BMIX = 3.00 20 | AMIN = 0.01 21 | 22 | ionic steps: 23 | IBRION = 1 24 | EDIFFG = -3E-2 # 25 | POTIM = 0.150 # 26 | NFREE = 2 # 27 | NSW = 200 # 28 | 29 | dipole correction: 30 | LDIPOL = T 31 | IDIPOL = 3 32 | 33 | files to write: 34 | LWAVE = F # WAVECAR not printed. 35 | LCHARG = F # CHG / CHGCAR not printed. To change for charge analysis 36 | LAECHG = F # Partial charge not printed. To change for bader charge analysis. 37 | NWRITE = 0 38 | 39 | parallelization 40 | KPAR = 1 ; NPAR = 12 ; NBANDS = 408 ; 41 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/bulk/CONTCAR.cif: -------------------------------------------------------------------------------- 1 | data_1 2 | _audit_creation_method 'Generated by vasp2cif' 3 | _cell_length_a 5.7251 4 | _cell_length_b 4.2390 5 | _cell_length_c 8.3929 6 | _cell_angle_alpha 90.00 7 | _cell_angle_beta 89.98 8 | _cell_angle_gamma 90.00 9 | 10 | _symmetry_space_group_name_H-M 'P 1' 11 | loop_ 12 | _atom_site_label 13 | _atom_site_type_symbol 14 | _atom_site_fract_x 15 | _atom_site_fract_y 16 | _atom_site_fract_z 17 | _atom_site_U_iso_or_equiv 18 | _atom_site_adp_type 19 | _atom_site_occupancy 20 | In1 In 0.8222 0.2500 0.3989 0.00000 Uiso 1.0 21 | In2 In 0.1785 0.7500 0.6004 0.00000 Uiso 1.0 22 | In3 In 0.6782 0.7500 0.8992 0.00000 Uiso 1.0 23 | In4 In 0.3219 0.2500 0.1004 0.00000 Uiso 1.0 24 | Pd5 Pd 0.8426 0.2500 0.0720 0.00000 Uiso 1.0 25 | Pd6 Pd 0.1575 0.7500 0.9274 0.00000 Uiso 1.0 26 | Pd7 Pd 0.6578 0.7500 0.5721 0.00000 Uiso 1.0 27 | Pd8 Pd 0.3429 0.2500 0.4275 0.00000 Uiso 1.0 28 | Pd9 Pd 0.9322 0.2500 0.7299 0.00000 Uiso 1.0 29 | Pd10 Pd 0.0677 0.7500 0.2695 0.00000 Uiso 1.0 30 | Pd11 Pd 0.5678 0.7500 0.2302 0.00000 Uiso 1.0 31 | Pd12 Pd 0.4325 0.2500 0.7694 0.00000 Uiso 1.0 32 | 33 | 34 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/100/INCAR: -------------------------------------------------------------------------------- 1 | general: 2 | SYSTEM = alloy-surf 3 | ISTART = 0 # 0: new, 2: read WC 4 | ICHARG = 2 # 0: WC , 1: CHGCAR, 2: new 5 | GGA = PE # PE: PBE 6 | ISPIN = 1 # No spin. To include if needed. 7 | 8 | electronic steps: 9 | ENCUT = 450 # [eV] 10 | EDIFF = 1E-5 # [eV] 11 | ISMEAR = 0 12 | SIGMA = 0.03 # [eV] 13 | ALGO = Fast 14 | LREAL = Auto 15 | NELM = 100 # 40 16 | NELMIN = 5 # 2 17 | NELMDL = -7 # 1 from the second run 18 | AMIX = 0.10 19 | BMIX = 3.00 20 | AMIN = 0.01 21 | 22 | ionic steps: 23 | IBRION = 1 24 | EDIFFG = -3E-2 # 25 | POTIM = 0.150 # 26 | NFREE = 2 # 27 | NSW = 200 # 28 | 29 | dipole correction: 30 | LDIPOL = T 31 | IDIPOL = 3 32 | 33 | files to write: 34 | LWAVE = F # WAVECAR not printed. 35 | LCHARG = F # CHG / CHGCAR not printed. To change for charge analysis 36 | LAECHG = F # Partial charge not printed. To change for bader charge analysis. 37 | NWRITE = 0 38 | 39 | parallelization 40 | KPAR = 1 ; NPAR = 12 ; NBANDS = 120 ; # To change according to the number of electrons. 41 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/110/INCAR: -------------------------------------------------------------------------------- 1 | general: 2 | SYSTEM = alloy-surf 3 | ISTART = 0 # 0: new, 2: read WC 4 | ICHARG = 2 # 0: WC , 1: CHGCAR, 2: new 5 | GGA = PE # PE: PBE 6 | ISPIN = 1 # No spin. To include if needed. 7 | 8 | electronic steps: 9 | ENCUT = 450 # [eV] 10 | EDIFF = 1E-5 # [eV] 11 | ISMEAR = 0 12 | SIGMA = 0.03 # [eV] 13 | ALGO = Fast 14 | LREAL = Auto 15 | NELM = 100 # 40 16 | NELMIN = 5 # 2 17 | NELMDL = -7 # 1 from the second run 18 | AMIX = 0.10 19 | BMIX = 3.00 20 | AMIN = 0.01 21 | 22 | ionic steps: 23 | IBRION = 1 24 | EDIFFG = -3E-2 # 25 | POTIM = 0.150 # 26 | NFREE = 2 # 27 | NSW = 200 # 28 | 29 | dipole correction: 30 | LDIPOL = T 31 | IDIPOL = 3 32 | 33 | files to write: 34 | LWAVE = F # WAVECAR not printed. 35 | LCHARG = F # CHG / CHGCAR not printed. To change for charge analysis 36 | LAECHG = F # Partial charge not printed. To change for bader charge analysis. 37 | NWRITE = 0 38 | 39 | parallelization 40 | KPAR = 1 ; NPAR = 12 ; NBANDS = 120 ; # To change according to the number of electrons. 41 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/111/INCAR: -------------------------------------------------------------------------------- 1 | general: 2 | SYSTEM = alloy-surf 3 | ISTART = 0 # 0: new, 2: read WC 4 | ICHARG = 2 # 0: WC , 1: CHGCAR, 2: new 5 | GGA = PE # PE: PBE 6 | ISPIN = 1 # No spin. To include if needed. 7 | 8 | electronic steps: 9 | ENCUT = 450 # [eV] 10 | EDIFF = 1E-5 # [eV] 11 | ISMEAR = 0 12 | SIGMA = 0.03 # [eV] 13 | ALGO = Fast 14 | LREAL = Auto 15 | NELM = 100 # 40 16 | NELMIN = 5 # 2 17 | NELMDL = -7 # 1 from the second run 18 | AMIX = 0.10 19 | BMIX = 3.00 20 | AMIN = 0.01 21 | 22 | ionic steps: 23 | IBRION = 1 24 | EDIFFG = -3E-2 # 25 | POTIM = 0.150 # 26 | NFREE = 2 # 27 | NSW = 200 # 28 | 29 | dipole correction: 30 | LDIPOL = T 31 | IDIPOL = 3 32 | 33 | files to write: 34 | LWAVE = F # WAVECAR not printed. 35 | LCHARG = F # CHG / CHGCAR not printed. To change for charge analysis 36 | LAECHG = F # Partial charge not printed. To change for bader charge analysis. 37 | NWRITE = 0 38 | 39 | parallelization 40 | KPAR = 1 ; NPAR = 12 ; NBANDS = 120 ; # To change according to the number of electrons. 41 | -------------------------------------------------------------------------------- /README.txt: -------------------------------------------------------------------------------- 1 | # VASP-tutorial 2 | Introductory course on the applications of the Vienna Ab Initio Simulation package to electrochemical systems. 3 | All video classes are available at: https://youtube.com/playlist?list=PLN_Wp4_IX03DMW5VdEu75ZrzIogryzEcS. 4 | Given by Dr. Federico Dattila (federico.dattila@polito.it) at the Institute of Chemical Research of Catalonia during September 2021. 5 | 6 | The course consists of 5 classes: 7 | (1) First class covering VASP handson 1 (https://youtu.be/GdaA8y2l-hw) and related tutorial (https://youtu.be/iMPbEImDGlg); 8 | (2) Second class covering VASP handson 2 (https://youtu.be/ZLqVEVwZmkY) and related tutorial (https://youtu.be/YyuFrppO_9g); 9 | (3) Third class covering VASP handson 3 (https://youtu.be/aV_dNwFq7QE) and related tutorial (https://youtu.be/mxQ14gX_C0Y); 10 | (4) Fourth class covering VASP handson 4 (https://youtu.be/xY1oFCHlyVU), related tutorial (https://youtu.be/YFmBUJ3FHQI), and tips on python and bash programming; 11 | (5) Additional class (https://youtu.be/ot9JmNC-UpE) covering an introduction to Blender (https://www.blender.org/), open-source rendering software. 12 | 13 | Each class includes 14 | (a) notes and hands-on exercises provided by the VASP support team; 15 | (b) additional notes prepared by Dr. Federico Dattila; 16 | (c) additional material provided by Dr. Federico Dattila (when applicable). -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/110/POSCAR: -------------------------------------------------------------------------------- 1 | InPd2 2 | 1.0 3 | 8.3929004669 0.0000000000 0.0000000000 4 | 0.0020014715 7.1235997249 0.0000000000 5 | 0.0000000000 0.0000000000 16.3239994049 6 | In Pd 7 | 8 16 8 | Selective 9 | Cartesian 10 | 3.347595481 3.596206869 0.000000000 F F F 11 | 7.546275114 1.672407507 1.212873133 F F F 12 | 0.843296471 5.895419816 1.702429916 F F F 13 | 5.039458972 3.974398610 2.917261913 F F F 14 | 3.347558354 1.073740179 3.406818696 T T T 15 | 7.548239208 6.273540648 4.619528732 T T T 16 | 0.843259156 3.372953232 5.109085272 T T T 17 | 5.039421594 1.451932132 6.324080852 T T T 18 | 0.603982778 3.690096038 0.069540235 F F F 19 | 6.125871535 4.102338546 0.374799022 F F F 20 | 1.931197830 1.164494847 0.836768181 F F F 21 | 4.800930688 1.578589671 1.143332959 F F F 22 | 3.588641302 5.992015807 1.773929076 F F F 23 | 6.458373535 6.404330073 2.079187802 F F F 24 | 2.262020806 3.464562726 2.539687813 F F F 25 | 7.783909949 3.877731710 2.845762753 F F F 26 | 0.603945463 1.167629242 3.476358992 T T T 27 | 6.125834658 1.579871962 3.781454378 T T T 28 | 1.933162049 5.765627776 4.243423841 T T T 29 | 4.802894782 6.179722812 4.550151411 T T T 30 | 3.588687968 3.469549224 5.180747650 T T T 31 | 6.458336657 3.881863064 5.486006498 T T T 32 | 2.261983429 0.942096036 5.946506265 T T T 33 | 7.783872571 1.355264808 6.252418474 T T T 34 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/111/POSCAR: -------------------------------------------------------------------------------- 1 | InPd2 2 | 1.0 3 | 7.1236000061 0.0000000000 0.0000000000 4 | -2.5248421355 9.0573697870 0.0000000000 5 | 0.0000000000 0.0000000000 16.1858997345 6 | In Pd 7 | 8 16 8 | Selective 9 | Cartesian 10 | -0.852621859 7.828103428 0.969211670 F F F 11 | 1.072376552 3.486181664 1.422740552 F F F 12 | 3.973455919 1.735210882 1.605317504 F F F 13 | 3.370862874 6.447488570 2.058037137 F F F 14 | 6.273350228 0.051536434 4.126109654 T T T 15 | 5.673506694 4.766984534 4.579638476 T T T 16 | 1.451011339 3.015923054 4.762215428 T T T 17 | 0.848321965 7.728291169 5.214773224 T T T 18 | 5.990686988 2.649914633 0.000000000 F F F 19 | 3.462878482 4.166571301 0.210902274 F F F 20 | 1.165459582 6.054489512 0.455147499 F F F 21 | 6.403736526 0.105880653 1.362205323 F F F 22 | -1.359828257 5.112704158 1.665529057 F F F 23 | 1.352754367 8.222733406 2.571291999 F F F 24 | 1.579256259 1.053009808 2.815051772 F F F 25 | 6.178689883 2.569123038 3.029029322 F F F 26 | 3.468217199 3.930717232 3.156897924 T T T 27 | 0.940362432 5.447283204 3.367800078 T T T 28 | -1.357010312 7.335292112 3.612045363 T T T 29 | 3.881266724 1.386683304 4.519103006 T T T 30 | 3.241327310 6.393416061 4.822426740 T T T 31 | 1.355152016 0.446075455 5.728189682 T T T 32 | 6.180386496 2.333812340 5.971787858 T T T 33 | 3.656219670 3.849925638 6.185927247 T T T 34 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/010/p4vasp.log: -------------------------------------------------------------------------------- 1 | STATUS:Searching for applets 2 | STATUS:Creating menu items 3 | MSG :Add menu Edit::New 4 | MSG :Add menu Structure::Window 5 | MSG :Add menu Structure::Control 6 | MSG :Add menu Electronic::DOS + bands 7 | MSG :Add menu Electronic::Local DOS+bands control 8 | MSG :Add menu Edit::Builder 9 | MSG :Add menu Database::Commit 10 | MSG :Add menu Database::Query 11 | MSG :Add menu Electronic::Dielectric function 12 | MSG :Add menu Edit::Edit sub-Z-matrix 13 | MSG :Add menu Convergence::Energy 14 | MSG :Add menu Structure::Export 15 | MSG :Add menu Convergence::Forces 16 | MSG :Add menu Edit::Info 17 | MSG :Add menu Electronic::View k-points 18 | MSG :Add menu Structure::Lattice 19 | MSG :Add menu Electronic::Local potential 20 | MSG :Add menu Structure::Measure 21 | MSG :Add menu Edit::Move atoms 22 | MSG :Add menu Edit::Multiply cell 23 | MSG :Add menu Edit::Rotate atoms 24 | MSG :Add menu Electronic::STM Window 25 | MSG :Add menu Electronic::STM Control 26 | MSG :Add menu Convergence::Selected forces 27 | MSG :Add menu Structure::Show/hide atoms 28 | MSG :Add menu Structure::Show (old) 29 | MSG :Add menu MD::VAC 30 | STATUS:Initializing toolbar buttons 31 | STATUS:Initializing selection applet 32 | STATUS:reading POSCAR 33 | STATUS:loading setup 34 | ERROR : Can not read setup.xml 35 | STATUS:setup loaded 36 | STATUS:reading vasprun.xml 37 | STATUS:reading vasprun.xml OK 38 | STATUS:OK 39 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/bulk/p4vasp.log: -------------------------------------------------------------------------------- 1 | STATUS:Searching for applets 2 | STATUS:Creating menu items 3 | MSG :Add menu Edit::New 4 | MSG :Add menu Structure::Window 5 | MSG :Add menu Structure::Control 6 | MSG :Add menu Electronic::DOS + bands 7 | MSG :Add menu Electronic::Local DOS+bands control 8 | MSG :Add menu Edit::Builder 9 | MSG :Add menu Database::Commit 10 | MSG :Add menu Database::Query 11 | MSG :Add menu Electronic::Dielectric function 12 | MSG :Add menu Edit::Edit sub-Z-matrix 13 | MSG :Add menu Convergence::Energy 14 | MSG :Add menu Structure::Export 15 | MSG :Add menu Convergence::Forces 16 | MSG :Add menu Edit::Info 17 | MSG :Add menu Electronic::View k-points 18 | MSG :Add menu Structure::Lattice 19 | MSG :Add menu Electronic::Local potential 20 | MSG :Add menu Structure::Measure 21 | MSG :Add menu Edit::Move atoms 22 | MSG :Add menu Edit::Multiply cell 23 | MSG :Add menu Edit::Rotate atoms 24 | MSG :Add menu Electronic::STM Window 25 | MSG :Add menu Electronic::STM Control 26 | MSG :Add menu Convergence::Selected forces 27 | MSG :Add menu Structure::Show/hide atoms 28 | MSG :Add menu Structure::Show (old) 29 | MSG :Add menu MD::VAC 30 | STATUS:Initializing toolbar buttons 31 | STATUS:Initializing selection applet 32 | STATUS:reading CONTCAR 33 | STATUS:loading setup 34 | ERROR : Can not read setup.xml 35 | STATUS:setup loaded 36 | STATUS:reading vasprun.xml 37 | STATUS:reading vasprun.xml OK 38 | STATUS:OK 39 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/slab-gen/slab-gen.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "code", 5 | "execution_count": 1, 6 | "metadata": {}, 7 | "outputs": [], 8 | "source": [ 9 | "import numpy as np\n", 10 | "import pandas as pd\n", 11 | "import sys\n", 12 | "import re" 13 | ] 14 | }, 15 | { 16 | "cell_type": "markdown", 17 | "metadata": {}, 18 | "source": [ 19 | "Check on https://pymatgen.org/pymatgen.core.surface.html\n", 20 | "\n", 21 | "The script should take the bulk structure CONTCAR_input, the Miller index of the chosen crystalline facet (e.g. 100), \n", 22 | "the number of layers, the vacuum thickness as INPUT parameters, and the xy extension (see email below)" 23 | ] 24 | }, 25 | { 26 | "cell_type": "markdown", 27 | "metadata": {}, 28 | "source": [ 29 | "" 30 | ] 31 | }, 32 | { 33 | "cell_type": "code", 34 | "execution_count": null, 35 | "metadata": {}, 36 | "outputs": [], 37 | "source": [] 38 | } 39 | ], 40 | "metadata": { 41 | "kernelspec": { 42 | "display_name": "Python 3", 43 | "language": "python", 44 | "name": "python3" 45 | }, 46 | "language_info": { 47 | "codemirror_mode": { 48 | "name": "ipython", 49 | "version": 3 50 | }, 51 | "file_extension": ".py", 52 | "mimetype": "text/x-python", 53 | "name": "python", 54 | "nbconvert_exporter": "python", 55 | "pygments_lexer": "ipython3", 56 | "version": "3.6.5" 57 | } 58 | }, 59 | "nbformat": 4, 60 | "nbformat_minor": 5 61 | } 62 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/100/POSCAR: -------------------------------------------------------------------------------- 1 | InPd2 2 | 1.0 3 | +8.4779996872 +0.0000000000 +0.0000000000 4 | +0.0000000000 +8.3929004669 +0.0000000000 5 | +0.0000000000 +0.0000000000 +14.9492998123 6 | In Pd 7 | 8 16 8 | Selective 9 | Cartesian 10 | +3.1792498830 +5.0374188390 +0.6342987690 F F F 11 | +1.0597499610 +0.8413043390 +1.4553143570 F F F 12 | +3.1792498830 +7.5462244430 +3.4951462060 T T T 13 | +1.0597499610 +3.3475923430 +4.3196001240 T T T 14 | +7.4182497266 +5.0374188390 +0.6342987690 F F F 15 | +5.2987498046 +0.8413043390 +1.4553143570 F F F 16 | +7.4182497266 +7.5462244430 +3.4951462060 T T T 17 | +5.2987498046 +3.3475923430 +4.3196001240 T T T 18 | +3.1792498830 +2.2600401250 +0.0000000000 F F F 19 | +3.1792498830 +7.7818974750 +0.5141064020 F F F 20 | +1.0597499610 +3.5866220930 +1.5755066680 F F F 21 | +1.0597499610 +6.4563225230 +2.0885665900 F F F 22 | +3.1792498830 +1.9312064470 +2.8630899820 T T T 23 | +3.1792498830 +4.8009068770 +3.3783922260 T T T 24 | +1.0597499610 +0.6039531360 +4.4363541050 T T T 25 | +1.0597499610 +6.1258099860 +4.9492647770 T T T 26 | +7.4182497266 +2.2600401250 +0.0000000000 F F F 27 | +7.4182497266 +7.7818974750 +0.5141064020 F F F 28 | +5.2987498046 +3.5866220930 +1.5755066680 F F F 29 | +5.2987498046 +6.4563225230 +2.0885665900 F F F 30 | +7.4182497266 +1.9312064470 +2.8630899820 T T T 31 | +7.4182497266 +4.8009068770 +3.3783922260 T T T 32 | +5.2987498046 +0.6039531360 +4.4363541050 T T T 33 | +5.2987498046 +6.1258099860 +4.9492647770 T T T 34 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/slab-gen/.ipynb_checkpoints/slab-gen-checkpoint.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "code", 5 | "execution_count": 1, 6 | "metadata": {}, 7 | "outputs": [], 8 | "source": [ 9 | "import numpy as np\n", 10 | "import pandas as pd\n", 11 | "import sys\n", 12 | "import re" 13 | ] 14 | }, 15 | { 16 | "cell_type": "markdown", 17 | "metadata": {}, 18 | "source": [ 19 | "Check on https://pymatgen.org/pymatgen.core.surface.html\n", 20 | "\n", 21 | "The script should take the bulk structure CONTCAR_input, the Miller index of the chosen crystalline facet (e.g. 100), \n", 22 | "the number of layers, the vacuum thickness as INPUT parameters, and the xy extension (see email below)" 23 | ] 24 | }, 25 | { 26 | "cell_type": "markdown", 27 | "metadata": {}, 28 | "source": [ 29 | "" 30 | ] 31 | }, 32 | { 33 | "cell_type": "code", 34 | "execution_count": null, 35 | "metadata": {}, 36 | "outputs": [], 37 | "source": [] 38 | } 39 | ], 40 | "metadata": { 41 | "kernelspec": { 42 | "display_name": "Python 3", 43 | "language": "python", 44 | "name": "python3" 45 | }, 46 | "language_info": { 47 | "codemirror_mode": { 48 | "name": "ipython", 49 | "version": 3 50 | }, 51 | "file_extension": ".py", 52 | "mimetype": "text/x-python", 53 | "name": "python", 54 | "nbconvert_exporter": "python", 55 | "pygments_lexer": "ipython3", 56 | "version": "3.6.5" 57 | } 58 | }, 59 | "nbformat": 4, 60 | "nbformat_minor": 5 61 | } 62 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/bash/add-mol/addmol.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # This script takes the CONTCAR of an optimized surface and insert the molecule on top of one of the surface atom of the crystalline facet 4 | 5 | # Remember that to run the script you need to execute the command: 6 | # ./addmolt.sh N (N = label of the active sites where you want to adsorb the molecule) 7 | # on the terminal 8 | # Besides, if the command does not work, you must enable its permission to execute 9 | # chmod +x ordtor.sh 10 | # 11 | 12 | # INPUT 13 | # S1 14 | 15 | # Structure of the files 16 | 17 | # You need to derive from the two CONTCAR how many elements and atoms you have in the systems. 18 | 19 | # Later you will have to adjust the line of elements and number of atoms, so that you are properly accounting for the insterted molecules 20 | # e.g. In Pd -> In Pd C O 21 | # e.g. 12 36 -> 12 36 1 1 22 | 23 | # To adjust those lines, remember the awk -v i="$pos" 'NR==n{$i=b1}1' n=1 b1=${var1[$i]} utility 24 | # b1 is the number of atom of species which you want to add 25 | # n=1 means that you are modifying the first line 26 | 27 | # Finally, you need to use the following command to extract the x,y,z of each of the atom of the molecules 28 | # sed -n "$pos_ads p" $2 | awk '{print $1}' | awk '{s+=$0}END{printf("%.10f\n", s)}' 29 | # where $pos_ads stands for each line of coordinates. 30 | # and use the bc utility to sum these three coordinates with the ones of the active sites (ax_x, as_y, as_z), which you can calculated from 31 | 32 | # ((line_as = 9 + $3)) 33 | 34 | # as_x=$(sed -n "$line_as p" $1 | awk '{print $1}' | awk '{s+=$0}END{printf("%.2f\n", s)}') 35 | # as_y=$(sed -n "$line_as p" $1 | awk '{print $2}' | awk '{s+=$0}END{printf("%.2f\n", s)}') 36 | # as_z=$(sed -n "$line_as p" $1 | awk '{print $3}' | awk '{s+=$0}END{printf("%.2f\n", s)}') 37 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/bulk/CONTCAR: -------------------------------------------------------------------------------- 1 | Indium palladium (1/2) 2 | 1.00000000000000 3 | 5.7250912870070785 0.0000000000000000 0.0011673943152462 4 | 0.0000000000000000 4.2390172752642705 0.0000000000000000 5 | 0.0017107225986034 0.0000000000000000 8.3929005981954745 6 | In Pd 7 | 4 8 8 | Selective dynamics 9 | Direct 10 | 0.8222000000000023 0.2500000000000000 0.3989000019999978 F F F 11 | 0.1785340664143544 0.7500000000000000 0.6003681670259107 T T T 12 | 0.6782288355496356 0.7500000000000000 0.8992440215392188 T T T 13 | 0.3219082945044712 0.2500000000000000 0.1004395482607764 T T T 14 | 0.8425910859331858 0.2500000000000000 0.0719578573326244 T T T 15 | 0.1574595087334345 0.7500000000000000 0.9273562254576629 T T T 16 | 0.6577565493359272 0.7500000000000000 0.5721419210334302 T T T 17 | 0.3428863747371348 0.2500000000000000 0.4274754034519679 T T T 18 | 0.9322290309834005 0.2500000000000000 0.7299195628123191 T T T 19 | 0.0676888784914553 0.7500000000000000 0.2694632069747924 T T T 20 | 0.5677637420938577 0.7500000000000000 0.2302496522617989 T T T 21 | 0.4325229464498546 0.2500000000000000 0.7694490187890577 T T T 22 | 23 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 24 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 25 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 26 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 27 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 28 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 29 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 30 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 31 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 32 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 33 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 34 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 35 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/bulk/INCAR: -------------------------------------------------------------------------------- 1 | general: 2 | SYSTEM = bulk # Put here the name of you system 3 | ISTART = 0 # 0: new calculation, 2: read a previously generated WC 4 | ICHARG = 2 # 0: WC , 1: CHGCAR read from a previous calculation, 2: new calculation 5 | GGA = PE # PE: PBE; pseudopotential you are using 6 | ISPIN = 1 # No spin 7 | 8 | electronic steps: 9 | ENCUT = 450 # Energy cutoff. Higher because you want the bulk to be fully converged. 10 | EDIFF = 1E-6 # Threshold for energy difference between electronic steps / eV 11 | ISMEAR = 0 # Fermi smearing 12 | SIGMA = 0.03 # Sigma 13 | ALGO = Fast # Algorithm for electronic convergence 14 | LREAL = Auto # Parameter for electronic convergence 15 | NELM = 100 # 40 Maximum number of electronic steps 16 | NELMIN = 5 # 2 Minimum number of electronic steps 17 | NELMDL = -7 # -5 Minimum number of self-consistant electronic steps 18 | AMIX = 0.10 # Converge parameters -> NOT TO BE CHANGED 19 | BMIX = 0.01 # Converge parameters -> NOT TO BE CHANGED 20 | AMIN = 0.10 # Converge parameters -> NOT TO BE CHANGED 21 | 22 | ionic steps: 23 | IBRION = 2 # Overall minimum of energy 24 | ISIF = 3 # Relaxation of atoms positions, cell shape and cell volume 25 | POTIM = 0.15 # [Ų/eV] IBRION=3 & C-H-O: 0.017 # Ionic step for relaxation 26 | EDIFFG = -0.020 # [eV/Å ] relaxation: -0.015; neb: -0.050 Threshold for ionic step convergence 27 | NSW = 100 # Maximum number of ionic steps allowed 28 | NFREE = 2 # Ion displaced both in positive and negative direction: x +- dx 29 | 30 | files to write: 31 | LWAVE = F # Not printing wavecar 32 | LCHARG = F # Not printing CHGCAR 33 | NWRITE = 0 # Low verbosity of OUTCAR 34 | LAECHG = F # Not printing input for Bader charges analysis 35 | 36 | parallelization 37 | KPAR = 1 ; NPAR = 12 ; NBANDS = 60 ; # Parallelization flags! To be changed!!! 38 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/slab-gen/POSCAR_100_output: -------------------------------------------------------------------------------- 1 | Ag 2 | 1.0 3 | +8.7954187905 +0.0000000000 +0.0000000000 4 | +0.0000000000 +8.7954187905 +0.0000000000 5 | +0.0000000000 +0.0000000000 +18.2192993164 6 | Ag 7 | 36 8 | Direct 9 | +0.1666666667 +0.1666666667 +0.0000000000 10 | +0.1666666667 +0.5000000000 +0.0000000000 11 | +0.1666666667 +0.8333333333 +0.0000000000 12 | +0.5000000000 +0.1666666667 +0.0000000000 13 | +0.5000000000 +0.5000000000 +0.0000000000 14 | +0.5000000000 +0.8333333333 +0.0000000000 15 | +0.8333333333 +0.1666666667 +0.0000000000 16 | +0.8333333333 +0.5000000000 +0.0000000000 17 | +0.8333333333 +0.8333333333 +0.0000000000 18 | +0.0000000000 +0.0000000000 +0.1137899980 19 | +0.0000000000 +0.3333333333 +0.1137899980 20 | +0.0000000000 +0.6666666667 +0.1137899980 21 | +0.3333333333 +0.0000000000 +0.1137899980 22 | +0.3333333333 +0.3333333333 +0.1137899980 23 | +0.3333333333 +0.6666666667 +0.1137899980 24 | +0.6666666667 +0.0000000000 +0.1137899980 25 | +0.6666666667 +0.3333333333 +0.1137899980 26 | +0.6666666667 +0.6666666667 +0.1137899980 27 | +0.1666666667 +0.1666666667 +0.2270182782 28 | +0.1666666667 +0.5000000000 +0.2270182782 29 | +0.1666666667 +0.8333333333 +0.2270182782 30 | +0.5000000000 +0.1666666667 +0.2270182782 31 | +0.5000000000 +0.5000000000 +0.2270182782 32 | +0.5000000000 +0.8333333333 +0.2270182782 33 | +0.8333333333 +0.1666666667 +0.2270182782 34 | +0.8333333333 +0.5000000000 +0.2270182782 35 | +0.8333333333 +0.8333333333 +0.2270182782 36 | +0.0000000000 +0.0000000000 +0.3383993010 37 | +0.0000000000 +0.3333333333 +0.3383993010 38 | +0.0000000000 +0.6666666667 +0.3383993010 39 | +0.3333333333 +0.0000000000 +0.3383993010 40 | +0.3333333333 +0.3333333333 +0.3383993010 41 | +0.3333333333 +0.6666666667 +0.3383993010 42 | +0.6666666667 +0.0000000000 +0.3383993010 43 | +0.6666666667 +0.3333333333 +0.3383993010 44 | +0.6666666667 +0.6666666667 +0.3383993010 45 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/slab-gen/POSCAR_111_output: -------------------------------------------------------------------------------- 1 | Ag 2 | 1.0 3 | +8.7953996658 +0.0000000000 +0.0000000000 4 | -4.3976998329 +7.6170395472 +0.0000000000 5 | +0.0000000000 +0.0000000000 +19.1814002991 6 | Ag 7 | 36 8 | Direct 9 | +0.0000000000 +0.0000000000 +0.0000000000 10 | +0.0000000000 +0.3333333333 +0.0000000000 11 | +0.0000000000 +0.6666666667 +0.0000000000 12 | +0.3333333333 +0.0000000000 +0.0000000000 13 | +0.3333333333 +0.3333333333 +0.0000000000 14 | +0.3333333333 +0.6666666667 +0.0000000000 15 | +0.6666666667 +0.0000000000 +0.0000000000 16 | +0.6666666667 +0.3333333333 +0.0000000000 17 | +0.6666666667 +0.6666666667 +0.0000000000 18 | +0.1111133300 +0.2222200033 +0.1247999970 19 | +0.1111133300 +0.5555533367 +0.1247999970 20 | +0.1111133300 +0.8888866700 +0.1247999970 21 | +0.4444466633 +0.2222200033 +0.1247999970 22 | +0.4444466633 +0.5555533367 +0.1247999970 23 | +0.4444466633 +0.8888866700 +0.1247999970 24 | +0.7777799967 +0.2222200033 +0.1247999970 25 | +0.7777799967 +0.5555533367 +0.1247999970 26 | +0.7777799967 +0.8888866700 +0.1247999970 27 | +0.2222164113 +0.1111169220 +0.2462100232 28 | +0.2222164113 +0.4444502553 +0.2462100232 29 | +0.2222164113 +0.7777835887 +0.2462100232 30 | +0.5555497447 +0.1111169220 +0.2462100232 31 | +0.5555497447 +0.4444502553 +0.2462100232 32 | +0.5555497447 +0.7777835887 +0.2462100232 33 | +0.8888830780 +0.1111169220 +0.2462100232 34 | +0.8888830780 +0.4444502553 +0.2462100232 35 | +0.8888830780 +0.7777835887 +0.2462100232 36 | -0.0000002375 +0.0000002375 +0.3690485583 37 | -0.0000002375 +0.3333335708 +0.3690485583 38 | -0.0000002375 +0.6666669042 +0.3690485583 39 | +0.3333330958 +0.0000002375 +0.3690485583 40 | +0.3333330958 +0.3333335708 +0.3690485583 41 | +0.3333330958 +0.6666669042 +0.3690485583 42 | +0.6666664292 +0.0000002375 +0.3690485583 43 | +0.6666664292 +0.3333335708 +0.3690485583 44 | +0.6666664292 +0.6666669042 +0.3690485583 45 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/slab-gen/POSCAR_711_output: -------------------------------------------------------------------------------- 1 | Ag 2 | 1.0 3 | +10.5707502365 +0.0000000000 +0.0000000000 4 | -1.2197047200 +8.7104176524 +0.0000000000 5 | +0.0000000000 +0.0000000000 +20.7087001801 6 | Ag 7 | 48 8 | Direct 9 | +0.1176400040 +0.0196066673 +0.0000000000 10 | +0.1176400040 +0.3529400007 +0.0000000000 11 | +0.1176400040 +0.6862733340 +0.0000000000 12 | +0.8431400060 +0.3071866633 +0.0280399990 13 | +0.8431400060 +0.6405199967 +0.0280399990 14 | +0.8431400060 +0.9738533300 +0.0280399990 15 | +0.5686200260 +0.2614399987 +0.0560700000 16 | +0.5686200260 +0.5947733320 +0.0560700000 17 | +0.5686200260 +0.9281066653 +0.0560700000 18 | +0.2941200140 +0.2156866593 +0.0841099990 19 | +0.2941200140 +0.5490199927 +0.0841099990 20 | +0.2941200140 +0.8823533260 +0.0841099990 21 | +0.0196000000 +0.1699333387 +0.1121400000 22 | +0.0196000000 +0.5032666720 +0.1121400000 23 | +0.0196000000 +0.8366000053 +0.1121400000 24 | +0.7451000220 +0.1241799993 +0.1401800070 25 | +0.7451000220 +0.4575133327 +0.1401800070 26 | +0.7451000220 +0.7908466660 +0.1401800070 27 | +0.4705800120 +0.0784333347 +0.1682100000 28 | +0.4705800120 +0.4117666680 +0.1682100000 29 | +0.4705800120 +0.7451000013 +0.1682100000 30 | +0.1960800000 +0.0326800000 +0.1962500070 31 | +0.1960800000 +0.3660133333 +0.1962500070 32 | +0.1960800000 +0.6993466667 +0.1962500070 33 | +0.9213066540 +0.3203606807 +0.2237042131 34 | +0.9213066540 +0.6536940140 +0.2237042131 35 | +0.9213066540 +0.9870273474 +0.2237042131 36 | +0.6499911819 +0.2754841506 +0.2522016210 37 | +0.6499911819 +0.6088174839 +0.2522016210 38 | +0.6499911819 +0.9421508173 +0.2522016210 39 | +0.3733251975 +0.2293048425 +0.2788434015 40 | +0.3733251975 +0.5626381758 +0.2788434015 41 | +0.3733251975 +0.8959715092 +0.2788434015 42 | +0.0981230935 +0.1832089801 +0.3062305561 43 | +0.0981230935 +0.5165423134 +0.3062305561 44 | +0.0981230935 +0.8498756468 +0.3062305561 45 | +0.8197956639 +0.1365664650 +0.3383799147 46 | +0.8197956639 +0.4698997983 +0.3383799147 47 | +0.8197956639 +0.8032331317 +0.3383799147 48 | +0.5461732910 +0.0920305703 +0.3606212381 49 | +0.5461732910 +0.4253639036 +0.3606212381 50 | +0.5461732910 +0.7586972370 +0.3606212381 51 | +0.2759997224 +0.0470312226 +0.3882210497 52 | +0.2759997224 +0.3803645559 +0.3882210497 53 | +0.2759997224 +0.7136978892 +0.3882210497 54 | +0.0050038473 +0.0009802945 +0.4136452578 55 | +0.0050038473 +0.3343136278 +0.4136452578 56 | +0.0050038473 +0.6676469612 +0.4136452578 57 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/bash/ordtor/POSCAR_input: -------------------------------------------------------------------------------- 1 | InPd2 2 | 1.0 3 | +8.3929004669 +0.0000000000 +0.0000000000 4 | +0.0039962028 +11.4501993836 +0.0000000000 5 | +0.0000000000 +0.0000000000 +16.3584995270 6 | In Pd 7 | 16 32 8 | Direct 9 | +0.5000000000 +0.0553749985 +0.0000000000 10 | +0.5006978441 +0.0562105733 +0.2589182749 11 | +0.0000000000 +0.1270750015 +0.1295700070 12 | -0.0130732646 +0.1348332293 +0.3947235877 13 | +0.7987999920 +0.3052250145 +0.0000000000 14 | +0.7977987485 +0.3061566635 +0.2589447989 15 | +0.2985000010 +0.3772250115 +0.1295700070 16 | +0.3124951806 +0.3849167615 +0.3946865093 17 | +0.5000000000 +0.5553749985 +0.0000000000 18 | +0.5006978441 +0.5562105733 +0.2589182749 19 | +0.0000000000 +0.6270750015 +0.1295700070 20 | -0.0130732646 +0.6348332293 +0.3947235877 21 | +0.7987999920 +0.8052250145 +0.0000000000 22 | +0.7977987485 +0.8061566635 +0.2589447989 23 | +0.2985000010 +0.8772250115 +0.1295700070 24 | +0.3124951806 +0.8849167615 +0.3946865093 25 | +0.1289073473 +0.2493215195 +0.2595608539 26 | +0.1289073473 +0.7493215195 +0.2595608539 27 | +0.1298000070 +0.2500250040 +0.0000000000 28 | +0.1298000070 +0.7500250040 +0.0000000000 29 | +0.1691000010 +0.4999749960 +0.0000000000 30 | +0.1691000010 +0.9999749960 +0.0000000000 31 | +0.1692650284 +0.4992904113 +0.2596392417 32 | +0.1692650284 +0.9992904113 +0.2596392417 33 | +0.3160806649 +0.1409609557 +0.3826451325 34 | +0.3160806649 +0.6409609557 +0.3826451325 35 | +0.3271000090 +0.1375750005 +0.1295700070 36 | +0.3271000090 +0.6375750005 +0.1295700070 37 | +0.4677850618 +0.2961652481 +0.2589802563 38 | +0.4677850618 +0.7961652481 +0.2589802563 39 | +0.4717000130 +0.2950249910 +0.0000000000 40 | +0.4717000130 +0.7950249910 +0.0000000000 41 | +0.6294999720 +0.4322249890 +0.1295700070 42 | +0.6294999720 +0.9322249890 +0.1295700070 43 | +0.6364046316 +0.4347584487 +0.3821806534 44 | +0.6364046316 +0.9347584487 +0.3821806534 45 | +0.6628578670 +0.1846149106 +0.3821898155 46 | +0.6628578670 +0.6846149106 +0.3821898155 47 | +0.6690000300 +0.1823749990 +0.1295700070 48 | +0.6690000300 +0.6823749990 +0.1295700070 49 | +0.8270000220 +0.0448749995 +0.0000000000 50 | +0.8270000220 +0.5448749995 +0.0000000000 51 | +0.8308274183 +0.0462599408 +0.2591317000 52 | +0.8308274183 +0.5462599408 +0.2591317000 53 | +0.9715999960 +0.3874250055 +0.1295700070 54 | +0.9715999960 +0.8874250055 +0.1295700070 55 | +0.9834668665 +0.3908474485 +0.3826825823 56 | +0.9834668665 +0.8908474485 +0.3826825823 57 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/bash/k-gen/kgen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # This script takes as input the POSCAR of a surface and generated the k-points mesh according to the Monkhorst-Pack. 4 | # Use it by writing in the terminal kgen.sh 5 | # If it does not work, there may be a permission problems, so grant the script execution permission 6 | # Type on the terminal 7 | # chmod +x kgen.sg 8 | 9 | # DEFINITION OF ROUND FUNCTION (USED TO PROPERLY ROUND THE NUMBER OF KPOINTS, SEE LAST SECTION 10 | 11 | round() 12 | { 13 | echo $(printf %.$2f $(echo "scale=$2;(((10^$2)*$1)+0.5)/(10^$2)" | bc)) 14 | }; 15 | 16 | # GET THE COORDINATES VECTORS 17 | 18 | ax=$(head -n 3 POSCAR_input | tail -n 1 | awk '{print $1}') # Get ax 19 | ay=$(head -n 3 POSCAR_input | tail -n 1 | awk '{print $2}') # Get ay 20 | az=$(head -n 3 POSCAR_input | tail -n 1 | awk '{print $3}') # Get az 21 | 22 | # Now extend the previous lines to the b and c lattive vectors 23 | 24 | echo "The lattice vectors are:" 25 | 26 | printf "%-4s %-10s %-10s %-10s\n" "a" "$ax" "$ay" "$az" 27 | # printf "%-4s %-10s %-10s %-10s\n" "b" "$bx" "$by" "$bz" # Remove the # symbol when you have properly defined bx, by, bz 28 | # printf "%-4s %-10s %-10s %-10s\n" "c" "$cx" "$cy" "$cz" # Remove the # symbol when you have properly defined cx, cy, cz 29 | 30 | # SECTION TO BE DEFINED 31 | 32 | # Understand why the following section is needed and then uncomment it (remove the #) 33 | 34 | # ax=${ax#+} ; ax=${ax#-} 35 | # ay=${ay#+} ; ay=${ay#-} 36 | # az=${az#+} ; az=${az#-} 37 | 38 | # bx=${bx#+} ; bx=${bx#-} 39 | # by=${by#+} ; by=${by#-} 40 | # bz=${bz#+} ; bz=${bz#-} 41 | 42 | # cx=${cx#+} ; cx=${cx#-} 43 | # cy=${cy#+} ; cy=${cy#-} 44 | # cz=${cz#+} ; cz=${cz#-} 45 | 46 | # Get the intensity of the three lattice vectors 47 | 48 | a2=$(echo "scale=10; $ax * $ax + $ay * $ay + $az * $az" | bc) 49 | # Add equivalent lines for b2 and c2 50 | 51 | a=$(echo "scale=6; sqrt($a2)" | bc) 52 | # Add equivalent lines for b and c 53 | 54 | # Apply the rules of thumb: 55 | 56 | kx=$(echo $(round 30/$ax 0)) 57 | # ky=$(echo "scale=1; 30/$by " | bc) Uncomment when you have properly defined the by variable 58 | kz=1 # For a surface, the number of k-points along the z-direction must always be one 59 | 60 | echo "The lattice vector magnitude is (a,b,c): 61 | $a " # Add $b and $c as well when you have properly defined them 62 | 63 | echo " " 64 | 65 | echo "The k-points sampling for a metal (k*a = 30) are (kx, ky, kz): 66 | $kx To be defined $kz" # Add $ky when you have properly defined it 67 | 68 | # PRINT THE KPOINTS FILE WITH kx, ky, AND kz, AS CALCULATED BEFORE 69 | 70 | cat >KPOINTS<> poscar-ordered 48 | # Insert in the ordered POSCAR the first 7 lines from input POSCAR (lattice vectors, elements) 49 | echo "Selective" >> poscar-ordered # 50 | # Print the line which is needed for selective dynamics 51 | head -n 8 POSCAR_input | tail -n 1 >> poscar-ordered # Insert the line with Direct 52 | 53 | for ((i=1;i<=$ne1;i++)) # Cycle among all elements 54 | do 55 | echo " Ordering atoms by atoms species and freeing the upper half" 56 | head -n ${linatom[$i]} POSCAR_input | tail -n ${Natom[$i]} | sort -k 3 >> poscar-ordered 57 | # the command sort -k 3 sort the atoms included in the head -n ${linatom[$i]} POSCAR | tail -n ${Natom[$i]} by their z-axis 58 | done 59 | 60 | echo " " 61 | (( ntot = 1 + $n )) 62 | 63 | for ((n=10;n<=$ntot;n++)) 64 | # Cycle among all the atomic coordinates. Three F are addeded respectively on the 4th, 5th, and 6th (i=4,5,6) to fix all the coordinates 65 | do 66 | awk -v i=4 'NR==n{$i=b1}1' n=$n b1="F" poscar-ordered > poscar-ord && mv poscar-ord poscar-ordered 67 | awk -v i=5 'NR==n{$i=b1}1' n=$n b1="F" poscar-ordered > poscar-ord && mv poscar-ord poscar-ordered 68 | awk -v i=6 'NR==n{$i=b1}1' n=$n b1="F" poscar-ordered > poscar-ord && mv poscar-ord poscar-ordered 69 | done 70 | 71 | for ((i=1;i<=$ne1;i++)) 72 | # Cycle among the atomic species. Now it free half of the cell (2 layers). Try to modify it, so that you only free (n - N) the surface layers, where n is the total number of layers, 4 in this case, and N is input 1, i.e. the number of layers you want as bulk? 73 | do 74 | ((nfree = ${Natom[$i]}/2)) 75 | ((linfin = ${linatom[$i]} + 1)) 76 | ((linin = $linfin - $nfree + 1)) 77 | sed -i "$linin,$linfin s/F/T/g" poscar-ordered 78 | done 79 | 80 | 81 | mv poscar-ordered POSCAR 82 | echo "POSCAR has been ordered successfully. Check it in the folder under the name POSCAR" 83 | 84 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/bulk/IBZKPT: -------------------------------------------------------------------------------- 1 | Automatically generated mesh 2 | 70 3 | Reciprocal lattice 4 | 0.00000000000000 0.00000000000000 0.00000000000000 1 5 | 0.16666666666667 0.00000000000000 0.00000000000000 2 6 | 0.33333333333333 0.00000000000000 0.00000000000000 2 7 | 0.50000000000000 0.00000000000000 0.00000000000000 1 8 | 0.00000000000000 0.12500000000000 0.00000000000000 2 9 | 0.16666666666667 0.12500000000000 0.00000000000000 4 10 | 0.33333333333333 0.12500000000000 0.00000000000000 4 11 | 0.50000000000000 0.12500000000000 0.00000000000000 2 12 | 0.00000000000000 0.25000000000000 0.00000000000000 2 13 | 0.16666666666667 0.25000000000000 0.00000000000000 4 14 | 0.33333333333333 0.25000000000000 0.00000000000000 4 15 | 0.50000000000000 0.25000000000000 0.00000000000000 2 16 | 0.00000000000000 0.37500000000000 0.00000000000000 2 17 | 0.16666666666667 0.37500000000000 0.00000000000000 4 18 | 0.33333333333333 0.37500000000000 0.00000000000000 4 19 | 0.50000000000000 0.37500000000000 0.00000000000000 2 20 | 0.00000000000000 0.50000000000000 0.00000000000000 1 21 | 0.16666666666667 0.50000000000000 0.00000000000000 2 22 | 0.33333333333333 0.50000000000000 0.00000000000000 2 23 | 0.50000000000000 0.50000000000000 0.00000000000000 1 24 | 0.00000000000000 0.00000000000000 0.25000000000000 2 25 | 0.16666666666667 0.00000000000000 0.25000000000000 2 26 | 0.33333333333333 0.00000000000000 0.25000000000000 2 27 | 0.50000000000000 0.00000000000000 0.25000000000000 2 28 | -0.33333333333333 0.00000000000000 0.25000000000000 2 29 | -0.16666666666667 0.00000000000000 0.25000000000000 2 30 | 0.00000000000000 0.12500000000000 0.25000000000000 4 31 | 0.16666666666667 0.12500000000000 0.25000000000000 4 32 | 0.33333333333333 0.12500000000000 0.25000000000000 4 33 | 0.50000000000000 0.12500000000000 0.25000000000000 4 34 | -0.33333333333333 0.12500000000000 0.25000000000000 4 35 | -0.16666666666667 0.12500000000000 0.25000000000000 4 36 | 0.00000000000000 0.25000000000000 0.25000000000000 4 37 | 0.16666666666667 0.25000000000000 0.25000000000000 4 38 | 0.33333333333333 0.25000000000000 0.25000000000000 4 39 | 0.50000000000000 0.25000000000000 0.25000000000000 4 40 | -0.33333333333333 0.25000000000000 0.25000000000000 4 41 | -0.16666666666667 0.25000000000000 0.25000000000000 4 42 | 0.00000000000000 0.37500000000000 0.25000000000000 4 43 | 0.16666666666667 0.37500000000000 0.25000000000000 4 44 | 0.33333333333333 0.37500000000000 0.25000000000000 4 45 | 0.50000000000000 0.37500000000000 0.25000000000000 4 46 | -0.33333333333333 0.37500000000000 0.25000000000000 4 47 | -0.16666666666667 0.37500000000000 0.25000000000000 4 48 | 0.00000000000000 0.50000000000000 0.25000000000000 2 49 | 0.16666666666667 0.50000000000000 0.25000000000000 2 50 | 0.33333333333333 0.50000000000000 0.25000000000000 2 51 | 0.50000000000000 0.50000000000000 0.25000000000000 2 52 | -0.33333333333333 0.50000000000000 0.25000000000000 2 53 | -0.16666666666667 0.50000000000000 0.25000000000000 2 54 | 0.00000000000000 0.00000000000000 0.50000000000000 1 55 | 0.16666666666667 0.00000000000000 0.50000000000000 2 56 | 0.33333333333333 0.00000000000000 0.50000000000000 2 57 | 0.50000000000000 0.00000000000000 0.50000000000000 1 58 | 0.00000000000000 0.12500000000000 0.50000000000000 2 59 | 0.16666666666667 0.12500000000000 0.50000000000000 4 60 | 0.33333333333333 0.12500000000000 0.50000000000000 4 61 | 0.50000000000000 0.12500000000000 0.50000000000000 2 62 | 0.00000000000000 0.25000000000000 0.50000000000000 2 63 | 0.16666666666667 0.25000000000000 0.50000000000000 4 64 | 0.33333333333333 0.25000000000000 0.50000000000000 4 65 | 0.50000000000000 0.25000000000000 0.50000000000000 2 66 | 0.00000000000000 0.37500000000000 0.50000000000000 2 67 | 0.16666666666667 0.37500000000000 0.50000000000000 4 68 | 0.33333333333333 0.37500000000000 0.50000000000000 4 69 | 0.50000000000000 0.37500000000000 0.50000000000000 2 70 | 0.00000000000000 0.50000000000000 0.50000000000000 1 71 | 0.16666666666667 0.50000000000000 0.50000000000000 2 72 | 0.33333333333333 0.50000000000000 0.50000000000000 2 73 | 0.50000000000000 0.50000000000000 0.50000000000000 1 74 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/bash/k-gen/POSCAR_input: -------------------------------------------------------------------------------- 1 | InPd2 2 | 1.00000000000000 3 | 8.3929004669000005 0.0000000000000000 0.0000000000000000 4 | 0.0039962028000000 11.4501993835999993 0.0000000000000000 5 | 0.0000000000000000 0.0000000000000000 16.3584995269999993 6 | In Pd 7 | 16 32 8 | Selective dynamics 9 | Direct 10 | 0.5000000000030909 0.0553749985007386 0.0000000000000000 F F F 11 | 0.7987999920030830 0.3052250145011186 0.0000000000000000 F F F 12 | 0.0000000000027640 0.1270750014959603 0.1295700069985983 F F F 13 | 0.2985000009988354 0.3772250115038602 0.1295700069985983 F F F 14 | 0.5006978440788838 0.0562105733281340 0.2589182749145238 T T T 15 | 0.7977987484886341 0.3061566634972265 0.2589447989070131 T T T 16 | -0.0130732645824607 0.1348332292679891 0.3947235877007823 T T T 17 | 0.3124951806087684 0.3849167615209629 0.3946865092492775 T T T 18 | 0.5000000000030909 0.5553749985007386 0.0000000000000000 F F F 19 | 0.7987999920030830 0.8052250145011186 0.0000000000000000 F F F 20 | 0.0000000000027640 0.6270750014959603 0.1295700069985983 F F F 21 | 0.2985000009988354 0.8772250115038602 0.1295700069985983 F F F 22 | 0.5006978440788838 0.5562105733281463 0.2589182749145238 T T T 23 | 0.7977987484886341 0.8061566634972438 0.2589447989070131 T T T 24 | -0.0130732645824607 0.6348332292679925 0.3947235877007823 T T T 25 | 0.3124951806087684 0.8849167615209746 0.3946865092492775 T T T 26 | 0.1298000070029772 0.2500250040012730 0.0000000000000000 F F F 27 | 0.1691000009970622 0.4999749959987270 0.0000000000000000 F F F 28 | 0.4717000129952851 0.2950249910004530 0.0000000000000000 F F F 29 | 0.8270000220037232 0.0448749994987807 0.0000000000000000 F F F 30 | 0.3271000090046101 0.1375750004979182 0.1295700069985983 F F F 31 | 0.6294999719971912 0.4322249889978735 0.1295700069985983 F F F 32 | 0.6690000299970507 0.1823749989970409 0.1295700069985983 F F F 33 | 0.9715999960047412 0.3874250055028554 0.1295700069985983 F F F 34 | 0.1289073473475683 0.2493215195286355 0.2595608538647724 T T T 35 | 0.1692650284272751 0.4992904113303256 0.2596392417355771 T T T 36 | 0.4677850618337510 0.2961652480683777 0.2589802562809290 T T T 37 | 0.8308274183427199 0.0462599407983886 0.2591316999603317 T T T 38 | 0.3160806649142451 0.1409609557242635 0.3826451324953564 T T T 39 | 0.6364046316289862 0.4347584486893508 0.3821806534461020 T T T 40 | 0.6628578669684995 0.1846149105760863 0.3821898155067592 T T T 41 | 0.9834668664647350 0.3908474484974124 0.3826825823124389 T T T 42 | 0.1298000070029772 0.7500250040012730 0.0000000000000000 F F F 43 | 0.1691000009970622 0.9999749959987270 0.0000000000000000 F F F 44 | 0.4717000129952851 0.7950249910004530 0.0000000000000000 F F F 45 | 0.8270000220037232 0.5448749994987807 0.0000000000000000 F F F 46 | 0.3271000090046101 0.6375750004979182 0.1295700069985983 F F F 47 | 0.6294999719971912 0.9322249889978735 0.1295700069985983 F F F 48 | 0.6690000299970507 0.6823749989970409 0.1295700069985983 F F F 49 | 0.9715999960047412 0.8874250055028554 0.1295700069985983 F F F 50 | 0.1289073473475683 0.7493215195286195 0.2595608538647724 T T T 51 | 0.1692650284272751 0.9992904113303365 0.2596392417355771 T T T 52 | 0.4677850618337510 0.7961652480683833 0.2589802562809290 T T T 53 | 0.8308274183427199 0.5462599407983861 0.2591316999603317 T T T 54 | 0.3160806649142451 0.6409609557242676 0.3826451324953564 T T T 55 | 0.6364046316289862 0.9347584486893611 0.3821806534461020 T T T 56 | 0.6628578669684995 0.6846149105760957 0.3821898155067592 T T T 57 | 0.9834668664647350 0.8908474484974243 0.3826825823124389 T T T 58 | 59 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 60 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 61 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 62 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 63 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 64 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 65 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 66 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 67 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 68 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 69 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 70 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 71 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 72 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 73 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 74 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 75 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 76 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 77 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 78 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 79 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 80 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 81 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 82 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 83 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 84 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 85 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 86 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 87 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 88 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 89 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 90 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 91 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 92 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 93 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 94 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 95 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 96 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 97 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 98 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 99 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 100 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 101 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 102 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 103 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 104 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 105 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 106 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 107 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/010/CONTCAR: -------------------------------------------------------------------------------- 1 | InPd2 2 | 1.00000000000000 3 | 8.3929004669000005 0.0000000000000000 0.0000000000000000 4 | 0.0039962028000000 11.4501993835999993 0.0000000000000000 5 | 0.0000000000000000 0.0000000000000000 16.3584995269999993 6 | In Pd 7 | 16 32 8 | Selective dynamics 9 | Direct 10 | 0.5000000000030909 0.0553749985007386 0.0000000000000000 F F F 11 | 0.7987999920030830 0.3052250145011186 0.0000000000000000 F F F 12 | 0.0000000000027640 0.1270750014959603 0.1295700069985983 F F F 13 | 0.2985000009988354 0.3772250115038602 0.1295700069985983 F F F 14 | 0.5006978440788838 0.0562105733281340 0.2589182749145238 T T T 15 | 0.7977987484886341 0.3061566634972265 0.2589447989070131 T T T 16 | -0.0130732645824607 0.1348332292679891 0.3947235877007823 T T T 17 | 0.3124951806087684 0.3849167615209629 0.3946865092492775 T T T 18 | 0.5000000000030909 0.5553749985007386 0.0000000000000000 F F F 19 | 0.7987999920030830 0.8052250145011186 0.0000000000000000 F F F 20 | 0.0000000000027640 0.6270750014959603 0.1295700069985983 F F F 21 | 0.2985000009988354 0.8772250115038602 0.1295700069985983 F F F 22 | 0.5006978440788838 0.5562105733281463 0.2589182749145238 T T T 23 | 0.7977987484886341 0.8061566634972438 0.2589447989070131 T T T 24 | -0.0130732645824607 0.6348332292679925 0.3947235877007823 T T T 25 | 0.3124951806087684 0.8849167615209746 0.3946865092492775 T T T 26 | 0.1298000070029772 0.2500250040012730 0.0000000000000000 F F F 27 | 0.1691000009970622 0.4999749959987270 0.0000000000000000 F F F 28 | 0.4717000129952851 0.2950249910004530 0.0000000000000000 F F F 29 | 0.8270000220037232 0.0448749994987807 0.0000000000000000 F F F 30 | 0.3271000090046101 0.1375750004979182 0.1295700069985983 F F F 31 | 0.6294999719971912 0.4322249889978735 0.1295700069985983 F F F 32 | 0.6690000299970507 0.1823749989970409 0.1295700069985983 F F F 33 | 0.9715999960047412 0.3874250055028554 0.1295700069985983 F F F 34 | 0.1289073473475683 0.2493215195286355 0.2595608538647724 T T T 35 | 0.1692650284272751 0.4992904113303256 0.2596392417355771 T T T 36 | 0.4677850618337510 0.2961652480683777 0.2589802562809290 T T T 37 | 0.8308274183427199 0.0462599407983886 0.2591316999603317 T T T 38 | 0.3160806649142451 0.1409609557242635 0.3826451324953564 T T T 39 | 0.6364046316289862 0.4347584486893508 0.3821806534461020 T T T 40 | 0.6628578669684995 0.1846149105760863 0.3821898155067592 T T T 41 | 0.9834668664647350 0.3908474484974124 0.3826825823124389 T T T 42 | 0.1298000070029772 0.7500250040012730 0.0000000000000000 F F F 43 | 0.1691000009970622 0.9999749959987270 0.0000000000000000 F F F 44 | 0.4717000129952851 0.7950249910004530 0.0000000000000000 F F F 45 | 0.8270000220037232 0.5448749994987807 0.0000000000000000 F F F 46 | 0.3271000090046101 0.6375750004979182 0.1295700069985983 F F F 47 | 0.6294999719971912 0.9322249889978735 0.1295700069985983 F F F 48 | 0.6690000299970507 0.6823749989970409 0.1295700069985983 F F F 49 | 0.9715999960047412 0.8874250055028554 0.1295700069985983 F F F 50 | 0.1289073473475683 0.7493215195286195 0.2595608538647724 T T T 51 | 0.1692650284272751 0.9992904113303365 0.2596392417355771 T T T 52 | 0.4677850618337510 0.7961652480683833 0.2589802562809290 T T T 53 | 0.8308274183427199 0.5462599407983861 0.2591316999603317 T T T 54 | 0.3160806649142451 0.6409609557242676 0.3826451324953564 T T T 55 | 0.6364046316289862 0.9347584486893611 0.3821806534461020 T T T 56 | 0.6628578669684995 0.6846149105760957 0.3821898155067592 T T T 57 | 0.9834668664647350 0.8908474484974243 0.3826825823124389 T T T 58 | 59 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 60 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 61 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 62 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 63 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 64 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 65 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 66 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 67 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 68 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 69 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 70 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 71 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 72 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 73 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 74 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 75 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 76 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 77 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 78 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 79 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 80 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 81 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 82 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 83 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 84 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 85 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 86 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 87 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 88 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 89 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 90 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 91 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 92 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 93 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 94 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 95 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 96 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 97 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 98 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 99 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 100 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 101 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 102 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 103 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 104 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 105 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 106 | 0.00000000E+00 0.00000000E+00 0.00000000E+00 107 | -------------------------------------------------------------------------------- /lecture 5 - Blender/structures/Cs-TS.xyz: -------------------------------------------------------------------------------- 1 | 121 2 | Generated with con2xyz 3 | Au 0.00000000000000 0.00000000000000 0.00000000000000 4 | Au 2.54416875229998 1.46887654089999 0.00000000000000 5 | Au 5.08833750469998 2.93775308170003 0.00000000000000 6 | Au 17.80918164120005 4.40662962260003 0.00000000000000 7 | Au 5.08833739360003 5.87550616350001 0.00000000000000 8 | Au 7.63250622219999 7.34438283649999 0.00000000000000 9 | Au 5.08833735879995 8.81325937739997 0.00000000000000 10 | Au 7.63250611109994 10.28213591829997 0.00000000000000 11 | Au 10.17667486340004 11.75101245910001 0.00000000000000 12 | Au 5.08833761580002 0.00000000000000 0.00000000000000 13 | Au 7.63250636810002 1.46887654089999 0.00000000000000 14 | Au 10.17667527310003 2.93775308170003 0.00000000000000 15 | Au 7.63250625699997 4.40662962260003 0.00000000000000 16 | Au 10.17667500929995 5.87550616350001 0.00000000000000 17 | Au 12.72084399070005 7.34438283649999 0.00000000000000 18 | Au 10.17667497459997 8.81325937739997 0.00000000000000 19 | Au 12.72084372689997 10.28213591829997 0.00000000000000 20 | Au 15.26501263189999 11.75101245910001 0.00000000000000 21 | Au 10.17667538419998 0.00000000000000 0.00000000000000 22 | Au 12.72084413659996 1.46887654089999 0.00000000000000 23 | Au 15.26501288890006 2.93775308170003 0.00000000000000 24 | Au 12.72084402540003 4.40662962260003 0.00000000000000 25 | Au 15.26501277780001 5.87550616350001 0.00000000000000 26 | Au 17.80918160639997 7.34438283649999 0.00000000000000 27 | Au 15.26501274300004 8.81325937739997 0.00000000000000 28 | Au 17.80918149530002 10.28213591829997 0.00000000000000 29 | Au 20.35335024770002 11.75101245910001 0.00000000000000 30 | Au 1.69611253860000 0.00000000000000 2.39866529999993 31 | Au 4.24028129090000 1.46887654089999 2.39866529999993 32 | Au 1.69611242750007 2.93775308170003 2.39866529999993 33 | Au 4.24028117980005 4.40662962260003 2.39866529999993 34 | Au 6.78444993220005 5.87550616350001 2.39866529999993 35 | Au 19.50529414499997 7.34438283649999 2.39866529999993 36 | Au 6.78444989739995 8.81325937739997 2.39866529999993 37 | Au 9.32861864969995 10.28213591829997 2.39866529999993 38 | Au 6.78444978630002 11.75101245910001 2.39866529999993 39 | Au 6.78445015440004 0.00000000000000 2.39866529999993 40 | Au 9.32861905939994 1.46887654089999 2.39866529999993 41 | Au 6.78445004329998 2.93775308170003 2.39866529999993 42 | Au 9.32861879559998 4.40662962260003 2.39866529999993 43 | Au 11.87278770060000 5.87550616350001 2.39866529999993 44 | Au 9.32861876079999 7.34438283649999 2.39866529999993 45 | Au 11.87278751319998 8.81325937739997 2.39866529999993 46 | Au 14.41695641810000 10.28213591829997 2.39866529999993 47 | Au 11.87278740200004 11.75101245910001 2.39866529999993 48 | Au 11.87278792279998 0.00000000000000 2.39866529999993 49 | Au 14.41695667509996 1.46887654089999 2.39866529999993 50 | Au 11.87278781170005 2.93775308170003 2.39866529999993 51 | Au 14.41695656400003 4.40662962260003 2.39866529999993 52 | Au 16.96112531640003 5.87550616350001 2.39866529999993 53 | Au 14.41695652929995 7.34438283649999 2.39866529999993 54 | Au 16.96112528160004 8.81325937739997 2.39866529999993 55 | Au 19.50529403390004 10.28213591829997 2.39866529999993 56 | Au 16.96112517050000 11.75101245910001 2.39866529999993 57 | Au 3.39222507720002 0.00000000000000 4.78616579999994 58 | Au 16.11306921369998 1.46887654089999 4.78616579999994 59 | Au 3.39222496609996 2.93775308170003 4.78616579999994 60 | Au 5.93639371840007 4.40662962260003 4.78616579999994 61 | Au 3.39222485500003 5.87550616350001 4.78616579999994 62 | Au 5.93639368359997 7.34438283649999 4.78616579999994 63 | Au 8.48056243599997 8.81325937739997 4.78616579999994 64 | Au 21.20140657250004 10.28213591829997 4.78616579999994 65 | Au 8.48056232490004 11.75101245910001 4.78616579999994 66 | Au 8.48056284559996 0.00000000000000 4.78616579999994 67 | Au 5.93639382950000 1.46887654089999 4.78616579999994 68 | Au 8.48056258190000 2.93775308170003 4.78616579999994 69 | Au 11.02473148680001 4.40662962260003 4.78616579999994 70 | Au 8.48056247070005 5.87550616350001 4.78616579999994 71 | Au 11.02473129940001 7.34438283649999 4.78616579999994 72 | Au 13.56890020440002 8.81325937739997 4.78616579999994 73 | Au 11.02473118829996 10.28213591829997 4.78616579999994 74 | Au 13.56889994060006 11.75101245910001 4.78616579999994 75 | Au 13.56890046140000 0.00000000000000 4.78616579999994 76 | Au 11.02473159799996 1.46887654089999 4.78616579999994 77 | Au 13.56890035030005 2.93775308170003 4.78616579999994 78 | Au 16.11306910260005 4.40662962260003 4.78616579999994 79 | Au 13.56890023920001 5.87550616350001 4.78616579999994 80 | Au 16.11306906779995 7.34438283649999 4.78616579999994 81 | Au 18.65723782019995 8.81325937739997 4.78616579999994 82 | Au 16.11306895670002 10.28213591829997 4.78616579999994 83 | Au 18.65723770910001 11.75101245910001 4.78616579999994 84 | Au 0.00000000000000 0.00000000000000 7.21109999999997 85 | Au 2.54416875229998 1.46887654089999 7.21109999999997 86 | Au 5.08833750469998 2.93775308170003 7.21109999999997 87 | Au 17.80918164120005 4.40662962260003 7.21109999999997 88 | Au 5.08833739360003 5.87550616350001 7.21109999999997 89 | Au 7.63250622219999 7.34438283649999 7.21109999999997 90 | Au 5.08833735879995 8.81325937739997 7.21109999999997 91 | Au 7.63250611109994 10.28213591829997 7.21109999999997 92 | Au 10.17667486340004 11.75101245910001 7.21109999999997 93 | Au 5.08833761580002 0.00000000000000 7.21109999999997 94 | Au 7.63250636810002 1.46887654089999 7.21109999999997 95 | Au 10.17667527310003 2.93775308170003 7.21109999999997 96 | Au 7.63250625699997 4.40662962260003 7.21109999999997 97 | Au 10.17667500929995 5.87550616350001 7.21109999999997 98 | Au 12.72084399070005 7.34438283649999 7.21109999999997 99 | Au 10.17667497459997 8.81325937739997 7.21109999999997 100 | Au 12.72084372689997 10.28213591829997 7.21109999999997 101 | Au 15.26501263189999 11.75101245910001 7.21109999999997 102 | Au 10.17667538419998 0.00000000000000 7.21109999999997 103 | Au 12.72084413659996 1.46887654089999 7.21109999999997 104 | Au 15.26501288890006 2.93775308170003 7.21109999999997 105 | Au 12.72084402540003 4.40662962260003 7.21109999999997 106 | Au 15.26501277780001 5.87550616350001 7.21109999999997 107 | Au 17.80918160639997 7.34438283649999 7.21109999999997 108 | Au 15.26501274300004 8.81325937739997 7.21109999999997 109 | Au 17.80918149530002 10.28213591829997 7.21109999999997 110 | Au 20.35335024770002 11.75101245910001 7.21109999999997 111 | C 10.16126342657973 5.87326387206419 9.34194538427868 112 | O 10.46404946109667 7.08455791333452 9.83148199558269 113 | O 9.92476147692286 4.89846564188423 10.01455302739044 114 | Cs 13.44690188536876 7.57355751923716 10.86462732963891 115 | O 12.75134796710869 5.29698444618106 12.85663640188326 116 | O 10.80026667610999 7.11263455364682 12.29224238657055 117 | O 13.52931205127131 10.24670368783347 12.58495771061049 118 | H 11.90134904769006 5.73413497564177 12.65701750524495 119 | H 12.66788652896606 4.44484198046892 12.54310015725990 120 | H 9.99905833641643 7.03401580595125 12.82182158990883 121 | H 10.41575823287482 7.06955542633009 10.94394502089024 122 | H 12.89585714844727 10.87575636078978 12.21869279848626 123 | H 13.46860947440815 10.37988017534026 13.54066568463372 124 | -------------------------------------------------------------------------------- /lecture 3 - VASP/Notes on programming project/python/get-surface-energy/get-surface-energy.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "code", 5 | "execution_count": 5, 6 | "id": "63f9d642-d778-44ff-af22-0737016a67d9", 7 | "metadata": {}, 8 | "outputs": [], 9 | "source": [ 10 | "import numpy as np\n", 11 | "import pandas as pd\n", 12 | "import sys\n", 13 | "import re\n", 14 | "\n", 15 | "# INPUT\n", 16 | "\n", 17 | "bulk_struct=\"./bulk/CONTCAR\" \n", 18 | "surf_struct=\"./010/CONTCAR\"\n", 19 | "\n", 20 | "bulk_energy=\"./bulk/OUTCAR\"\n", 21 | "surf_energy=\"./010/OUTCAR\"" 22 | ] 23 | }, 24 | { 25 | "cell_type": "markdown", 26 | "id": "28fbfe4c-84df-4a28-a1b8-2fa651566ee5", 27 | "metadata": {}, 28 | "source": [ 29 | "" 30 | ] 31 | }, 32 | { 33 | "cell_type": "code", 34 | "execution_count": 35, 35 | "id": "2ffae886-4828-4bcb-8a36-1bd7b5e1ccd9", 36 | "metadata": {}, 37 | "outputs": [ 38 | { 39 | "name": "stdout", 40 | "output_type": "stream", 41 | "text": [ 42 | "Reading input.\n", 43 | "Lattive vectors and number of atoms in the unit cell\n", 44 | "[8.39290047 0. 0. ] [3.99620280e-03 1.14501994e+01 0.00000000e+00] [ 0. 0. 16.35849953] 48\n", 45 | "Area of the surface and number of atoms within the cell\n", 46 | "96.10038375271454 48\n" 47 | ] 48 | } 49 | ], 50 | "source": [ 51 | "# Work with this command to extract the lattice vectors and calculated the area of the surface. Similarly, check how many unit cell do you have in your cell to estimate the N value\n", 52 | "\n", 53 | "print(\"Reading input.\")\n", 54 | "\n", 55 | "# Reading the vectors of the elementary cell #\n", 56 | "\n", 57 | "cell_vec=pd.read_csv(surf_struct, delim_whitespace=True,skiprows=2,nrows=3,names=['x','y','z'])\n", 58 | "cell_vec.head()\n", 59 | "a1=np.array([float(cell_vec.loc[0].x),float(cell_vec.loc[0].y),float(cell_vec.loc[0].z)])\n", 60 | "a2=np.array([float(cell_vec.loc[1].x),float(cell_vec.loc[1].y),float(cell_vec.loc[1].z)])\n", 61 | "a3=np.array([float(cell_vec.loc[2].x),float(cell_vec.loc[2].y),float(cell_vec.loc[2].z)])\n", 62 | "\n", 63 | "# Reading the number of atoms#\n", 64 | "\n", 65 | "atoms_n=pd.read_csv(surf_struct, delim_whitespace=True,skiprows=5,nrows=1)\n", 66 | "n_atoms=atoms_n.T.sum().loc[0]\n", 67 | "\n", 68 | "print(\"Lattive vectors and number of atoms in the unit cell\")\n", 69 | "print(a1,a2,a3,n_atoms)\n", 70 | "\n", 71 | "area=a1[0]*a2[1] # Area calculated in Angstrom\n", 72 | "print(\"Area of the surface and number of atoms within the cell\")\n", 73 | "print(area,n_atoms)\n", 74 | "\n", 75 | "# Repeat the same with the bulk" 76 | ] 77 | }, 78 | { 79 | "cell_type": "code", 80 | "execution_count": 24, 81 | "id": "5874d9b6-822f-4647-931b-6d419851b154", 82 | "metadata": {}, 83 | "outputs": [ 84 | { 85 | "data": { 86 | "text/html": [ 87 | "
| \n", 105 | " | In | \n", 106 | "Pd | \n", 107 | "
|---|---|---|
| 0 | \n", 112 | "4 | \n", 113 | "8 | \n", 114 | "