We had generated wavefunctions using Pyscf. I think you are right, let me post the results.
A: Nuclear repulsion energy of the twist
grep_last */nscf-1-9-1*/nscf.out "nuclear repulsion”
(grep_last greps the last occurence)
B: Total energy of the twist
grep_last */nscf-1-9-1*/nscf.out "energy"
C: Nuclear repulsion energy of the converged SCF calculation
grep_last */scf-*/scf.out "nuclear repulsion”
D: QMCpack ion-ion repulsion energies
qmca -q ii */vmc/*scalar.dat
The results above were calculated with cell.dimension=3 and gaussian density fitting.
Then, on the same system with different vacuum values I tested PYSCF with cell.dimension=2. For the calculations below lengths of the lattices in z-direction are 11.81, 16.81, 21.81, 26.81 and 31.81 A. Thickness of the layer is 4.81 A.
PYSCF results:
cell.dimension=2
grep_last scf-bfd-vdz-*/scf.out energyscf-bfd-vdz-11_81/scf.out SCF energy = -151.467435077443
scf-bfd-vdz-16_81/scf.out converged SCF energy = -23.1069539258172
scf-bfd-vdz-21_81/scf.out converged SCF energy = -23.146747839115
scf-bfd-vdz-26_81/scf.out converged SCF energy = -23.1467528451104
scf-bfd-vdz-31_81/scf.out converged SCF energy = -23.1467528459707
grep repulsion */scf.out
scf-bfd-vdz-11_81/scf.out:nuclear repulsion = -126.592599474847
scf-bfd-vdz-16_81/scf.out:nuclear repulsion = -126.592599658569
scf-bfd-vdz-21_81/scf.out:nuclear repulsion = -126.592599475009
scf-bfd-vdz-26_81/scf.out:nuclear repulsion = -126.592599475
scf-bfd-vdz-31_81/scf.out:nuclear repulsion = -126.592599475012
with cell.dimension=2, the nuclear repulsion energies seem consistent, but for some reason they are negative.
cell.dimension=3
grep_last scf-bfd-vdz-*/scf.out energy
scf-bfd-vdz-11_81/scf.out converged SCF energy = -23.1467413478879
scf-bfd-vdz-16_81/scf.out converged SCF energy = -23.1467527192448
scf-bfd-vdz-21_81/scf.out converged SCF energy = -23.1467527972999
scf-bfd-vdz-26_81/scf.out converged SCF energy = -23.1467528127675
grep repulsion scf-bfd-vdz-*/scf.out
scf-bfd-vdz-11_81/scf.out:nuclear repulsion = -8.49734100093103
scf-bfd-vdz-16_81/scf.out:nuclear repulsion = 18.73296157142
scf-bfd-vdz-21_81/scf.out:nuclear repulsion = 50.2709709955986
scf-bfd-vdz-26_81/scf.out:nuclear repulsion = 83.7065412613107
QMCPACK results:
Here, I am using trial wavefunctions generated with cell.dimension=2 in pyscf. Despite that, qmcpack ion repulsion is weird.
qmca -q ii opt*/*scalar.dat
opt-J2-11_81-1/opt series 0 IonIon = -8.497727 +/- 0.000000
opt-J2-16_81-1/opt series 0 IonIon = 18.732568 +/- 0.000000
opt-J2-21_81-1/opt series 0 IonIon = 50.270599 +/- 0.000000
opt-J2-26_81-1/opt series 0 IonIon = 83.706164 +/- 0.000000
opt-J2-31_81-1/opt series 0 IonIon = 118.144499 +/- 0.000000
Here I have attached the DFT and VMC input files for you to see as well.
Thanks,
Kayahan