Skip to content

Commit 2f05e74

Browse files
committed
add test case for DFT+U in PW base
1 parent 209f815 commit 2f05e74

File tree

12 files changed

+160
-1
lines changed

12 files changed

+160
-1
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
INPUT_PARAMETERS
2+
suffix autotest
3+
nbands 40
4+
5+
calculation scf
6+
ecutwfc 10
7+
scf_thr 1.0e-4
8+
scf_nmax 50
9+
out_chg 0
10+
11+
#init_chg file
12+
#out_dos 1
13+
#dos_sigma 0.05
14+
#out_band 1
15+
16+
smearing_method gaussian
17+
smearing_sigma 0.01
18+
19+
#force_thr_ev 0.01
20+
#relax_method cg
21+
#relax_bfgs_init 0.5
22+
23+
mixing_type pulay
24+
mixing_beta 0.3
25+
mixing_restart 1e-3
26+
mixing_dmr 1
27+
mixing_gg0 1.1
28+
29+
ks_solver dav_subspace
30+
pw_diag_ndim 2
31+
basis_type pw
32+
gamma_only 0
33+
noncolin 1
34+
lspinorb 1
35+
cal_force 1
36+
cal_stress 1
37+
38+
#Parameter DFT+U
39+
dft_plus_u 1
40+
orbital_corr 2
41+
hubbard_u 5.0
42+
onsite_radius 3.0
43+
pseudo_dir ../../PP_ORB
44+
orbital_dir ../../PP_ORB
45+
46+
pw_seed 1
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
K_POINTS
2+
0
3+
Gamma
4+
2 1 1 0 0 0
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
ATOMIC_SPECIES
2+
Fe 1.000 Fe.upf
3+
4+
NUMERICAL_ORBITAL
5+
Fe_gga_6au_100Ry_4s2p2d1f.orb
6+
7+
LATTICE_CONSTANT
8+
8.190
9+
10+
LATTICE_VECTORS
11+
1.00 0.50 0.50
12+
0.50 1.00 0.50
13+
0.50 0.50 1.00
14+
ATOMIC_POSITIONS
15+
Direct
16+
17+
Fe
18+
0.0
19+
2
20+
0.00 0.00 0.00 mag 1.0 1.0 1.0
21+
0.51 0.51 0.51 mag 1.0 1.0 1.0
22+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DFTU + NSPIN4, Fe2, multi-k case
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
etotref -5662.3907716600897402
2+
etotperatomref -2831.1953858300
3+
totalforceref 16.203644
4+
totalstressref 100583.080933
5+
totaltimeref 1.15
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
INPUT_PARAMETERS
2+
suffix autotest
3+
nbands 40
4+
5+
calculation scf
6+
ecutwfc 10
7+
scf_thr 1.0e-4
8+
scf_nmax 50
9+
out_chg 0
10+
11+
#init_chg file
12+
#out_dos 1
13+
#dos_sigma 0.05
14+
#out_band 1
15+
16+
smearing_method gaussian
17+
smearing_sigma 0.01
18+
19+
#force_thr_ev 0.01
20+
#relax_method cg
21+
#relax_bfgs_init 0.5
22+
23+
mixing_type pulay
24+
mixing_beta 0.3
25+
mixing_restart 1e-3
26+
mixing_dmr 1
27+
mixing_gg0 1.1
28+
29+
ks_solver dav_subspace
30+
pw_diag_ndim 2
31+
basis_type pw
32+
gamma_only 0
33+
noncolin 1
34+
lspinorb 1
35+
cal_force 1
36+
cal_stress 1
37+
38+
#Parameter DFT+U
39+
dft_plus_u 1
40+
orbital_corr 2
41+
hubbard_u 5.0
42+
onsite_radius 3.0
43+
pseudo_dir ../../PP_ORB
44+
orbital_dir ../../PP_ORB
45+
46+
pw_seed 1
47+
device cpu
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
K_POINTS
2+
0
3+
Gamma
4+
2 1 1 0 0 0
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
ATOMIC_SPECIES
2+
Fe 1.000 Fe.upf
3+
4+
NUMERICAL_ORBITAL
5+
Fe_gga_6au_100Ry_4s2p2d1f.orb
6+
7+
LATTICE_CONSTANT
8+
8.190
9+
10+
LATTICE_VECTORS
11+
1.00 0.50 0.50
12+
0.50 1.00 0.50
13+
0.50 0.50 1.00
14+
ATOMIC_POSITIONS
15+
Direct
16+
17+
Fe
18+
0.0
19+
2
20+
0.00 0.00 0.00 mag 1.0 1.0 1.0
21+
0.51 0.51 0.51 mag 1.0 1.0 1.0
22+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DFTU + NSPIN4, Fe2, multi-k case
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
etotref -5662.3922501453689620
2+
etotperatomref -2831.1961250727
3+
totalforceref 16.358498
4+
totalstressref 100581.507470
5+
totaltimeref 2.63

0 commit comments

Comments
 (0)