Skip to content

Commit 4728408

Browse files
committed
tests : add autotests for electric field and dipole correction
1 parent 5a19708 commit 4728408

File tree

13 files changed

+147
-0
lines changed

13 files changed

+147
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
INPUT_PARAMETERS
2+
#Parameters (1.General)
3+
suffix autotest
4+
calculation scf
5+
ntype 2
6+
nbands 6
7+
symmetry 0
8+
pseudo_dir ../tools/PP_ORB/
9+
10+
#Parameters (2.Iteration)
11+
ecutwfc 20
12+
scf_thr 1e-9
13+
scf_nmax 100
14+
15+
#Parameters (3.Basis)
16+
basis_type pw
17+
18+
#Parameters (4.Smearing)
19+
smearing_method fixed
20+
21+
#Parameters (5.Mixing)
22+
mixing_type pulay
23+
mixing_beta 0.7
24+
25+
efield 1
26+
dipole 1
27+
eamp 0.01
28+
cal_force 1
29+
cal_stress 1

tests/integrate/112_PW_dipole/KPT

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 2 1 0 0 0
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
This test for: dipole correction
2+
*H2O
3+
*PW
4+
*kpoints 2*2*1
5+
*sg15 pseudopotential
6+
*smearing_method fixed
7+
*ks_solver cg
8+
*mixing_type pulay
9+
*mixing_beta 0.7

tests/integrate/112_PW_dipole/STRU

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
ATOMIC_SPECIES
2+
O 15.999 O_ONCV_PBE-1.0.upf
3+
H 1.008 H_ONCV_PBE-1.0.upf
4+
5+
LATTICE_CONSTANT
6+
1
7+
8+
LATTICE_VECTORS
9+
5.66917837283813 0.00000000000000 0.00000000000000
10+
0.00000000000000 5.66917837283813 0.00000000000000
11+
0.00000000000000 0.00000000000000 11.33835674567626
12+
13+
ATOMIC_POSITIONS
14+
Direct
15+
16+
O
17+
0
18+
1
19+
0.00000000000000 0.00000000000000 0.00000000000000 0 0 0
20+
21+
H
22+
0
23+
2
24+
0.26356319124800 0.00000000000000 0.102036213339 0 0 0
25+
-0.26356319124800 0.00000000000000 0.102036213339 0 0 0

tests/integrate/112_PW_dipole/jd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test dipole correction, nspin=1, symmetry=off
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
etotref -441.6269889265234951
2+
etotperatomref -147.2089963088
3+
totalforceref 7.602881
4+
totalstressref 2040.163460
5+
totaltimeref +0.45540
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
INPUT_PARAMETERS
2+
#Parameters (1.General)
3+
suffix autotest
4+
calculation scf
5+
ntype 2
6+
nbands 6
7+
symmetry 0
8+
pseudo_dir ../tools/PP_ORB/
9+
10+
#Parameters (2.Iteration)
11+
ecutwfc 20
12+
scf_thr 1e-9
13+
scf_nmax 100
14+
15+
#Parameters (3.Basis)
16+
basis_type pw
17+
18+
#Parameters (4.Smearing)
19+
smearing_method fixed
20+
21+
#Parameters (5.Mixing)
22+
mixing_type pulay
23+
mixing_beta 0.7
24+
25+
efield 1
26+
dipole 0
27+
cal_force 1
28+
cal_stress 1

tests/integrate/112_PW_efield/KPT

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 2 1 0 0 0
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
This test for: electric field
2+
*H2O
3+
*PW
4+
*kpoints 2*2*1
5+
*sg15 pseudopotential
6+
*smearing_method fixed
7+
*ks_solver cg
8+
*mixing_type pulay
9+
*mixing_beta 0.7

tests/integrate/112_PW_efield/STRU

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
ATOMIC_SPECIES
2+
O 15.999 O_ONCV_PBE-1.0.upf
3+
H 1.008 H_ONCV_PBE-1.0.upf
4+
5+
LATTICE_CONSTANT
6+
1
7+
8+
LATTICE_VECTORS
9+
5.66917837283813 0.00000000000000 0.00000000000000
10+
0.00000000000000 5.66917837283813 0.00000000000000
11+
0.00000000000000 0.00000000000000 11.33835674567626
12+
13+
ATOMIC_POSITIONS
14+
Direct
15+
16+
O
17+
0
18+
1
19+
0.00000000000000 0.00000000000000 0.00000000000000 0 0 0
20+
21+
H
22+
0
23+
2
24+
0.26356319124800 0.00000000000000 0.102036213339 0 0 0
25+
-0.26356319124800 0.00000000000000 0.102036213339 0 0 0

0 commit comments

Comments
 (0)