Kpoints: Difference between revisions

From Wiki
Jump to navigation Jump to search
Rgarcia (talk | contribs)
mNo edit summary
Rgarcia (talk | contribs)
mNo edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
go back to [[Main Page]], [[Group Pages]], [[Núria_López_and_Group]], [[The_KPOINTS_file]] [[Scripts_for_VASP]]
go back to [[Main Page]], [[Group Pages]], [[Núria_López_and_Group]], [[The_KPOINTS_file]] [[Scripts_for_VASP]]


'''Instructions''': Put this script as executable in your ~/bin folder.  
The k-points concept is explained in the book of Sholl&Steckel: '''Density functional theory : a practical introduction'''.  


'''Recommended name''': kpggen
For a deeper view, please refer to the classic book of Ashcroft&Mermin: '''Solid state physics'''.


Those with a Chemistry background would benefit in reading the book of Roald Hoffmann (Nobel Laureate): '''Solids and surfaces: A chemist's view of bonding in extended structures'''. 
Besides, this script will allow you to generate automatically Gamma-centered k-point meshes. Put it script in your ~/bin folder and make it executable (chmod +x kpggen).
Recommended name: '''kpggen'''
  #!/bin/bash  
  #!/bin/bash  
   
   

Latest revision as of 19:39, 5 November 2019

go back to Main Page, Group Pages, Núria_López_and_Group, The_KPOINTS_file Scripts_for_VASP

The k-points concept is explained in the book of Sholl&Steckel: Density functional theory : a practical introduction.

For a deeper view, please refer to the classic book of Ashcroft&Mermin: Solid state physics.

Those with a Chemistry background would benefit in reading the book of Roald Hoffmann (Nobel Laureate): Solids and surfaces: A chemist's view of bonding in extended structures.

Besides, this script will allow you to generate automatically Gamma-centered k-point meshes. Put it script in your ~/bin folder and make it executable (chmod +x kpggen).

Recommended name: kpggen

#!/bin/bash 

##########################################
# Rodrigo García-Muelas @ iciq-Tgn       #
# Jan 10, 2013                           #
# For automatic generation of Γ-centered #
# Monkhorst-Pack grid of KPOINTS         #
##########################################

# Input ##################################   
# 1 2 3 # number of divisions            #
# 4     # title of first line (optional) #
##########################################

if [ -z $4 ] ; then  # If title if empty

cat >KPOINTS<<!
K-POINTS
 0
Gamma
  $1 $2 $3
  0 0 0
!

else                 # If title if specified

cat >KPOINTS<<!
$4
 0
Gamma
  $1 $2 $3
  0 0 0 
!

fi