Skip to content

Commit a87eee5

Browse files
authored
Update QE example to pseudo compatible with newer versions. (#109)
1 parent 3dd808e commit a87eee5

File tree

7 files changed

+55869
-18
lines changed

7 files changed

+55869
-18
lines changed

examples/fp/espresso/6.2/Bi/clean.sh

100644100755
File mode changed.

examples/fp/espresso/6.2/Bi/input/Bi.rel-pbe-dn-kjpaw_psl.1.0.0.UPF

Lines changed: 55848 additions & 0 deletions
Large diffs are not rendered by default.
-340 KB
Binary file not shown.

examples/fp/espresso/6.2/Bi/input/bi.nscf.in

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,24 @@
22
calculation = 'bands'
33
prefix = 'bi',
44
pseudo_dir = '../'
5-
outdir = '../scf'
5+
outdir = '../scf'
66
wf_collect = .true.
77
verbosity = 'high'
88
nstep = 200
99
/
1010
&system
1111
ibrav = 5,
12-
celldm(1) = 8.9682623
13-
celldm(4) = 0.5412183115484169
12+
celldm(1) = 8.9682623
13+
celldm(4) = 0.5412183115484169
1414
nat = 2,
1515
ntyp = 1,
1616
ecutwfc = 50.0,
17+
ecutrho = 480.0
1718
occupations = 'smearing',
1819
degauss = 0.001,
1920
noncolin = .true.,
2021
lspinorb = .true.,
21-
nbnd = 16
22+
nbnd = 36
2223
/
2324
&electrons
2425
mixing_beta = 0.2
@@ -27,8 +28,7 @@
2728
&ions
2829
/
2930
ATOMIC_SPECIES
30-
Bi 208.98038 Bi_MT_PBE.UPF
31+
Bi 208.98038 Bi.rel-pbe-dn-kjpaw_psl.1.0.0.UPF
3132
ATOMIC_POSITIONS crystal
32-
Bi 0.23389 0.23389 0.23389
33+
Bi 0.23389 0.23389 0.23389
3334
Bi -0.23389 -0.23389 -0.23389
34-

examples/fp/espresso/6.2/Bi/input/bi.scf.in

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
/
1010
&system
1111
ibrav = 5,
12-
celldm(1) = 8.9682623
13-
celldm(4) = 0.5412183115484169
12+
celldm(1) = 8.9682623
13+
celldm(4) = 0.5412183115484169
1414
nat = 2,
1515
ntyp = 1,
1616
ecutwfc = 50.0,
17+
ecutrho = 480.0
1718
occupations = 'smearing',
1819
degauss = 0.001,
1920
noncolin = .true.,
@@ -24,9 +25,9 @@
2425
conv_thr = 1.0d-8
2526
/
2627
ATOMIC_SPECIES
27-
Bi 208.98038 Bi_MT_PBE.UPF
28+
Bi 208.98038 Bi.rel-pbe-dn-kjpaw_psl.1.0.0.UPF
2829
ATOMIC_POSITIONS crystal
29-
Bi 0.23389 0.23389 0.23389
30+
Bi 0.23389 0.23389 0.23389
3031
Bi -0.23389 -0.23389 -0.23389
3132
K_POINTS automatic
3233
6 6 6 0 0 0

examples/fp/espresso/6.2/Bi/input/tpl_bi.win

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
num_wann 10
2-
num_bands 10
3-
exclude_bands 11 - 16
1+
num_wann 30
2+
num_bands 30
3+
exclude_bands 31 - 36
44
spinors : false
55
num_iter 0
66
use_bloch_phases : true

examples/fp/espresso/6.2/Bi/run.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
import z2pack
1212

1313
# Edit the paths to your Quantum Espresso and Wannier90 here
14-
qedir = '/home/greschd/software/qe-6.2/bin'
15-
wandir = '/home/greschd/software/wannier90-2.1.0'
14+
qedir = '/home/greschd/software/spack/opt/spack/linux-ubuntu20.04-skylake/gcc-9.3.0/quantum-espresso-6.6-hzv46p4wdlvw6rrgq3cqnz7fwwzd7um6/bin'
15+
wandir = '/home/greschd/software/spack/opt/spack/linux-ubuntu20.04-skylake/gcc-9.3.0/wannier90-3.1.0-ldgbc7e5fmfkvjiyf2xiyzfopyr5haqa/bin'
1616

1717
# Commands to run pw, pw2wannier90, wannier90
1818
mpirun = 'mpirun -np 4 '
@@ -21,7 +21,7 @@
2121
wancmd = wandir + '/wannier90.x'
2222

2323
z2cmd = (
24-
wancmd + ' bi -pp;' + pwcmd + '< bi.nscf.in >& pw.log;' + pw2wancmd +
24+
wancmd + ' -pp bi;' + pwcmd + '< bi.nscf.in >& pw.log;' + pw2wancmd +
2525
'< bi.pw2wan.in >& pw2wan.log;'
2626
)
2727

@@ -55,7 +55,7 @@
5555
]
5656
system = z2pack.fp.System(
5757
input_files=input_files,
58-
kpt_fct=[z2pack.fp.kpoint.qe, z2pack.fp.kpoint.wannier90_full],
58+
kpt_fct=[z2pack.fp.kpoint.qe_explicit, z2pack.fp.kpoint.wannier90_full],
5959
kpt_path=["bi.nscf.in", "bi.win"],
6060
command=z2cmd,
6161
executable='/bin/bash',
@@ -67,12 +67,14 @@
6767
system=system,
6868
surface=lambda s, t: [0, s / 2, t],
6969
save_file='./results/res_0.json',
70+
min_neighbour_dist=1e-3,
7071
load=True
7172
)
7273
result_1 = z2pack.surface.run(
7374
system=system,
7475
surface=lambda s, t: [0.5, s / 2, t],
7576
save_file='./results/res_1.json',
77+
min_neighbour_dist=1e-3,
7678
load=True
7779
)
7880

0 commit comments

Comments
 (0)