Nanotube in Siesta
A calculation of a rather small radius nanotube in Siesta raises issues with the basis set which are absent in plane wave codes. The following does not try particularly hard to find a suitable basis set, which may explain why the answer is not in line with the plane wave codes.
The fdf file used is given as tube.fdf, and the pseudopotential C.psf was taken from the Siesta distribution.
Results are:
$ c2x -z='(0,0,0)' tube.VH Recorded data are single precision Also reading tube.fdf Also reading tube.XV Potential at (0.000000,0.000000,0.000000): -5.304234e-01 $ c2x -z='(0.5,0.5,0.5)' tube.VH Recorded data are single precision Also reading tube.fdf Also reading tube.XV Potential at (0.500000,0.500000,0.500000): -9.676908e-01
This leads to a potential difference of 0.4373V. Again one can check by asking c2x to calculate the potential from the charge.
$ c2x -E -z='(0,0,0)' tube.RHO
Recorded data are single precision
Also reading tube.fdf
Also reading tube.XV
Warning: cell not neutral generating ES pot. g=0 component is -0.012103
corresponding net charge is -3.86412e-05
Potential_Volts at (0.000000,0.000000,0.000000): -3.825266e+00
$ c2x -E -z='(0.5,0.5,0.5)' tube.RHO
Recorded data are single precision
Also reading tube.fdf
Also reading tube.XV
Warning: cell not neutral generating ES pot. g=0 component is -0.012103
corresponding net charge is -3.86412e-05
Potential_Volts at (0.500000,0.500000,0.500000): -3.388015e+00
A potential difference of 0.4373V again, with the sign reversed due to the difference conventions of reporting electrostatic potentials and Hartree potentials.
The warnings over the cell's net charge arise due to the manner in which Siesta produces its .RHO file and that it is stored in single precision -- the integral will not be precisely the number of electrons.