Skip to content

Commit fded181

Browse files
committed
Add nscf and relax integrate tests for DeePKS.
1 parent 362566e commit fded181

File tree

27 files changed

+42478
-17
lines changed

27 files changed

+42478
-17
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
INPUT_PARAMETERS
2+
#Parameters (1.General)
3+
suffix autotest
4+
calculation nscf
5+
dft_functional pbe
6+
7+
nbands 6
8+
symmetry 0
9+
pseudo_dir ../../PP_ORB
10+
orbital_dir ../../PP_ORB
11+
read_file_dir ./
12+
13+
#Parameters (2.Iteration)
14+
ecutwfc 20
15+
scf_thr 1e-7
16+
scf_nmax 50
17+
18+
#Parameters (3.Basis)
19+
basis_type lcao
20+
gamma_only 1
21+
22+
#Parameters (4.Smearing)
23+
smearing_method gaussian
24+
smearing_sigma 0.02
25+
26+
#Parameters (5.Mixing)
27+
mixing_type broyden
28+
mixing_beta 0.4
29+
30+
cal_force 1
31+
cal_stress 1
32+
deepks_scf 1
33+
deepks_out_labels 0
34+
deepks_model ../Model_ProjOrb/model_lda_pbe_18.ptg
35+
36+
init_chg file
37+
out_dos 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+
1 1 1 0 0 0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test nscf calculation with deepks_scf = ture, for gamma_only CH4 molecule

tests/deepks/102_NO_GO_deepks_nscf/SPIN1_CHG.cube

Lines changed: 36011 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
ATOMIC_SPECIES
2+
C 12.000 C_ONCV_PBE-1.0.upf #Element, Mass, Pseudopotential
3+
H 1.008 H_ONCV_PBE-1.0.upf
4+
5+
NUMERICAL_ORBITAL
6+
C_gga_8au_100Ry_2s2p1d.orb
7+
H_gga_8au_100Ry_2s1p.orb
8+
9+
NUMERICAL_DESCRIPTOR
10+
../Model_ProjOrb/2au_20Ry_jle.orb
11+
12+
LATTICE_CONSTANT
13+
20 #Lattice constant
14+
15+
LATTICE_VECTORS
16+
1 0 0
17+
0 1 0
18+
0 0 1
19+
20+
ATOMIC_POSITIONS
21+
Cartesian #Cartesian(Unit is LATTICE_CONSTANT)
22+
C #Name of element
23+
0.0 #Magnetic for this element.
24+
1 #Number of atoms
25+
0.999619 0.000169648 0.00131031
26+
27+
H
28+
0.0
29+
4
30+
0.998911 6.75673e-05 0.0374835
31+
0.0418908 0.000157703 0.987531
32+
0.980183 0.965348 0.9869
33+
0.98072 0.0340401 0.987153
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
etotref -74.3929555830920890
2+
etotperatomref -14.8785911166
3+
totalforceref 778.174226
4+
totalstressref 1272.711619
5+
totaldosref 11.9083
6+
deepks_desc 8.045214
7+
deepks_dm_eig 29.53046024463444
8+
totaltimeref 1.08
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
INPUT_PARAMETERS
2+
#Parameters (1.General)
3+
suffix autotest
4+
calculation relax
5+
relax_method bfgs
6+
relax_nmax 10
7+
dft_functional pbe
8+
9+
pseudo_dir ../../PP_ORB
10+
orbital_dir ../../PP_ORB
11+
12+
#Parameters (2.Iteration)
13+
ecutwfc 20
14+
scf_thr 5e-6
15+
scf_nmax 50
16+
17+
#Parameters (3.Basis)
18+
basis_type lcao
19+
gamma_only 1
20+
21+
#Parameters (4.Smearing)
22+
smearing_method gaussian
23+
smearing_sigma 0.02
24+
25+
#Parameters (5.Mixing)
26+
mixing_type broyden
27+
mixing_beta 0.8
28+
29+
cal_force 1
30+
force_thr_ev 1e-4
31+
cal_stress 1
32+
stress_thr 1e-7
33+
deepks_scf 1
34+
deepks_out_labels 0
35+
deepks_model ../Model_ProjOrb/model_Si_135.ptg
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+
1 1 1 0 0 0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test relax calculation with deepks_scf = ture, for gamma_only fcc-Si crystal
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
ATOMIC_SPECIES
2+
Si 28.0855 Si_ONCV_PBE-1.0.upf upf201
3+
4+
NUMERICAL_ORBITAL
5+
Si_gga_6au_100Ry_2s2p1d.orb
6+
7+
NUMERICAL_DESCRIPTOR
8+
../Model_ProjOrb/5au_100Ry_jle.orb
9+
10+
LATTICE_CONSTANT
11+
1.8897261255
12+
13+
LATTICE_VECTORS
14+
2.7298099909 2.7298099909 0.0000000000
15+
0.0000000000 2.7298099909 2.7298099909
16+
2.7298099909 0.0000000000 2.7298099909
17+
18+
ATOMIC_POSITIONS
19+
Direct
20+
21+
Si #label
22+
0.0000 #magnetism
23+
2 #number of atoms
24+
0.0000000000 0.0000000000 0.0000000000 m 0 0 0
25+
0.2500000000 0.2500000000 0.2500000000 m 1 1 1

0 commit comments

Comments
 (0)