Nanotube in VASP
To make a suitable POSCAR file from
the graphene sheet,
$ c2x -y=7,0 -v --vasp graphene.cell POSCAR
The KPOINTS file used was
Automatic mesh 0 ! automatic generation M 1 1 2 ! grid 0. 0. 0. ! shift
and the INCAR used was
encut = 400 lvtot = .TRUE. lvhar = .TRUE. ialgo = 48
A suitable POTCAR is also required.
(For the analysis below, a minimum c2x version of 2.34d is required.)
The potential far from the tube (i.e. at (0,0,0)) and at the centre of the tube (i.e. at (0.5,0.5,0.5)) can then be recovered as:
$ c2x -z='(0,0,0)' LOCPOT Potential_eV at (0.000000,0.000000,0.000000): 3.790117e+00 $ c2x -z='(0.5,0.5,0.5)' LOCPOT Potential_eV at (0.500000,0.500000,0.500000): 3.222546e+00
So the difference is 0.568V
Alternatively, the electrostatic potential can be calculated from the density with:
$ c2x -E -z='(0,0,0)' CHGCAR Potential_Volts at (0.000000,0.000000,0.000000): -3.883333e+00 $ c2x -E -z='(0.5,0.5,0.5)' CHGCAR Potential_Volts at (0.500000,0.500000,0.500000): -3.311769e+00
And the difference is now 0.572V.
In common with most DFT codes, Vasp's definition of the local potential differs in sign from the electrostatic potential.
If one wishes Vasp to include the exchange-correlation potential in
the LOCPOT file, then the parameter lvhar
should be false, which is its default value.