Skip to content

Commit 5f70933

Browse files
committed
add OW test in 02_NAO_Gamma 023_NO_GO_NVT_OW
1 parent 0154390 commit 5f70933

File tree

12 files changed

+187
-52
lines changed

12 files changed

+187
-52
lines changed

docs/advanced/input_files/input-main.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1681,14 +1681,14 @@ These variables are used to control the output of properties.
16811681

16821682
- **Type**: Integer
16831683
- **Availability**: Numerical atomic orbital basis
1684-
- **Description**: Whether to output the wavefunction coefficients into files in the folder `OUT.${suffix}`. The files are named as `WFC_{GAMMA|K}{index of K point}`, and if [out_app_flag](#out_app_flag) is false, the file name will also contains `_ION{ION step}`, where `ION step` is the index of ionic step:
1684+
- **Description**: Whether to output the electronci wavefunction coefficients into files and store them in the folder `OUT.${suffix}`. The files are named as `wf{s}{spin index}{k(optinal)}{k-point index}{g(optional)}{geometry index1}{_nao} + {".txt"/".dat"}`. Here, 's' refers to spin, where s1 means spin up channel while s2 means spin down channel, and 's12' refer to spinor wave functions that contains both spin channels with spin-orbital coupling or noncollinear calculations enabled. In addition, if 'gamma_only' is set to 0, then the optinoal k-point sampling index appears with the k-point index attached to the electronic wave function file names. Finally, if [out_app_flag](#out_app_flag) is set to false, the file name contains the optinal 'g' index for each ionic step that may have different geometries, and if [out_app_flag](#out_app_flag) is set to true, the wave functions accumulate during ionic steps.
16851685
- 0: no output
16861686
- 1: (txt format)
1687-
- gamma-only: `WFC_NAO_GAMMA1_ION1.txt` or `WFC_NAO_GAMMA1.txt`, ...;
1688-
- non-gamma-only: `WFC_NAO_K1_ION1.txt` or `WFC_NAO_K1.txt`, ...;
1687+
- gamma-only: `wfs1_nao.txt` or `wfs2_nao.txt`, ...;
1688+
- non-gamma-only: `wfs1k1_nao.txt` or `wfs1k2_nao.txt`, ...;
16891689
- 2: (binary format)
1690-
- gamma-only: `WFC_NAO_GAMMA1_ION1.dat` or `WFC_NAO_GAMMA1.dat`, ...;
1691-
- non-gamma-only: `WFC_NAO_K1_ION1.dat` or `WFC_NAO_K1.dat`, ....
1690+
- gamma-only: `wfs1_nao.dat` or `wfs2_nao.dat`, ...;
1691+
- non-gamma-only: `wfs1k1_nao.dat` or `wfs1k2_nao.dat`, ....
16921692

16931693
The corresponding sequence of the orbitals can be seen in [Basis Set](../pp_orb.md#basis-set).
16941694

source/module_io/write_wfc_nao.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ std::string wfc_nao_gen_fname(const int out_type,
7474
std::string istep_block
7575
= (istep >= 0 && (!out_app_flag))
7676
? "g" + std::to_string(istep + 1)
77-
: ""; // only when istep >= 0 and out_app_flag is true will write each wfc to a separate file
77+
: ""; // only when istep >= 0 and out_app_flag is false will write each wfc to a separate file
7878

7979
std::string suffix_block;
8080
if (out_type == 1)

tests/02_NAO_Gamma/023_NO_GO_NVT/INPUT

Lines changed: 0 additions & 36 deletions
This file was deleted.

tests/02_NAO_Gamma/023_NO_GO_NVT/README

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/02_NAO_Gamma/023_NO_GO_NVT/result.ref

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
INPUT_PARAMETERS
2+
3+
# general
4+
calculation md
5+
md_nstep 2
6+
basis_type lcao
7+
gamma_only 1
8+
nbands 8
9+
10+
# scf
11+
ecutwfc 20
12+
scf_nmax 20
13+
scf_thr 1E-7
14+
15+
# solver
16+
ks_solver genelpa
17+
mixing_type broyden
18+
mixing_beta 0.7
19+
20+
# force and stress
21+
cal_force 1
22+
force_thr_ev 1.0e-3
23+
cal_stress 1
24+
stress_thr 1e-6
25+
26+
# md parameters
27+
md_type nvt
28+
md_tchain 4
29+
md_tfirst 10
30+
md_dt 1
31+
md_restart 0
32+
33+
# input and output
34+
init_vel 1
35+
out_wfc_lcao 1
36+
out_app_flag 1
37+
38+
# directories
39+
suffix autotest
40+
read_file_dir ./
41+
pseudo_dir ../../PP_ORB
42+
orbital_dir ../../PP_ORB
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
MD-NVT-NHC of Si2 with gamma only, 3 step
2+
out_wfc_lcao=1 and out_app_flag=1
3+

tests/02_NAO_Gamma/023_NO_GO_NVT/STRU renamed to tests/02_NAO_Gamma/023_NO_GO_NVT_OW/STRU

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
ATOMIC_SPECIES
2-
Si 1 Si_ONCV_PBE-1.0.upf
2+
Si 14 Si_dojo_nsoc.upf
33

44
NUMERICAL_ORBITAL
5-
Si_gga_8au_60Ry_2s2p1d.orb
5+
Si_dojo_6au_sz.orb
66

77
LATTICE_CONSTANT
88
10.2
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
etotref -183.6640641450765
2+
etotperatomref -91.8320320725
3+
totalforceref 3.980624
4+
totalstressref 6288.648153
5+
Compare_wfc_lcao_pass 0
6+
totaltimeref 0.95
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
8 (number of bands)
2+
8 (number of orbitals)
3+
1 (band)
4+
-3.17295570e-01 (Ry)
5+
2.00000000e+00 (Occupations)
6+
5.03337316e-01 -4.02389384e-04 5.00471301e-03 -2.49018712e-03 5.03332794e-01
7+
4.14426488e-04 -4.97678575e-03 2.48429977e-03
8+
2 (band)
9+
9.29330043e-01 (Ry)
10+
1.98790885e+00 (Occupations)
11+
7.76446752e-04 -3.79877164e-01 -2.58007563e-01 3.43132168e-01 5.03737778e-04
12+
3.79873097e-01 2.58009953e-01 -3.43124029e-01
13+
3 (band)
14+
9.42181648e-01 (Ry)
15+
1.80564806e+00 (Occupations)
16+
1.32201097e-03 7.08668917e-02 -4.96788049e-01 -2.92929945e-01 1.06222909e-03
17+
-7.08588011e-02 4.96800223e-01 2.92925683e-01
18+
4 (band)
19+
9.49897352e-01 (Ry)
20+
1.43157216e+00 (Occupations)
21+
1.44338720e-03 4.32891018e-01 -1.53988102e-01 3.65084849e-01 1.39198620e-03
22+
-4.32908435e-01 1.53993998e-01 -3.65104107e-01
23+
5 (band)
24+
9.58980611e-01 (Ry)
25+
7.74870923e-01 (Occupations)
26+
-1.23404446e+00 8.15088645e-04 -2.13946167e-02 1.12724767e-02 1.23404767e+00
27+
8.65498553e-04 -2.12263640e-02 1.12431213e-02
28+
6 (band)
29+
1.41226194e+00 (Ry)
30+
0.00000000e+00 (Occupations)
31+
3.41130567e-02 5.42228330e-01 -2.30426805e-01 4.70242454e-01 -3.41106836e-02
32+
5.42211487e-01 -2.30424717e-01 4.70231127e-01
33+
7 (band)
34+
1.46024205e+00 (Ry)
35+
0.00000000e+00 (Occupations)
36+
3.39084699e-02 3.50134969e-02 -6.70734134e-01 -3.69546592e-01 -3.38946868e-02
37+
3.50168188e-02 -6.70730429e-01 -3.69544063e-01
38+
8 (band)
39+
1.51511254e+00 (Ry)
40+
0.00000000e+00 (Occupations)
41+
-4.09868066e-02 5.45068215e-01 2.94478292e-01 -4.83589135e-01 4.09724725e-02
42+
5.45074724e-01 2.94475300e-01 -4.83596613e-01
43+
8 (number of bands)
44+
8 (number of orbitals)
45+
1 (band)
46+
-3.17225651e-01 (Ry)
47+
2.00000000e+00 (Occupations)
48+
5.03336868e-01 -5.03919568e-04 5.20127382e-03 -2.41952294e-03 5.03331968e-01
49+
5.16392330e-04 -5.17371132e-03 2.41404724e-03
50+
2 (band)
51+
9.29502146e-01 (Ry)
52+
1.98773427e+00 (Occupations)
53+
7.63199548e-04 -3.82431446e-01 -2.48847208e-01 3.46965855e-01 4.91930727e-04
54+
3.82427006e-01 2.48849449e-01 -3.46957195e-01
55+
3 (band)
56+
9.42048645e-01 (Ry)
57+
1.81366880e+00 (Occupations)
58+
1.43506972e-03 6.99796279e-02 -5.03323096e-01 -2.81540238e-01 1.17991803e-03
59+
-6.99721718e-02 5.03335642e-01 2.81536954e-01
60+
4 (band)
61+
9.50232056e-01 (Ry)
62+
1.41766082e+00 (Occupations)
63+
1.45524218e-03 4.30782548e-01 -1.47802987e-01 3.70378079e-01 1.42777730e-03
64+
-4.30799971e-01 1.47807958e-01 -3.70396279e-01
65+
5 (band)
66+
9.59015070e-01 (Ry)
67+
7.80936102e-01 (Occupations)
68+
-1.23399455e+00 1.27344385e-03 -2.21666140e-02 1.09678477e-02 1.23399791e+00
69+
1.33287959e-03 -2.20043216e-02 1.09415719e-02
70+
6 (band)
71+
1.41090028e+00 (Ry)
72+
0.00000000e+00 (Occupations)
73+
3.46958312e-02 5.39639313e-01 -2.23308093e-01 4.76017650e-01 -3.46940332e-02
74+
5.39622756e-01 -2.23306453e-01 4.76006573e-01
75+
7 (band)
76+
1.46128891e+00 (Ry)
77+
0.00000000e+00 (Occupations)
78+
3.74392056e-02 2.87469892e-02 -6.80465140e-01 -3.52362662e-01 -3.74251513e-02
79+
2.87499197e-02 -6.80460888e-01 -3.52359846e-01
80+
8 (band)
81+
1.51561323e+00 (Ry)
82+
0.00000000e+00 (Occupations)
83+
-3.92693406e-02 5.48039795e-01 2.76874403e-01 -4.90804498e-01 3.92554029e-02
84+
5.48046145e-01 2.76872164e-01 -4.90812147e-01
85+
8 (number of bands)
86+
8 (number of orbitals)
87+
1 (band)
88+
-3.17033515e-01 (Ry)
89+
2.00000000e+00 (Occupations)
90+
5.03335611e-01 -6.84364322e-04 5.51437815e-03 -2.42274247e-03 5.03330256e-01
91+
6.97694570e-04 -5.48821835e-03 2.41868497e-03
92+
2 (band)
93+
9.29523287e-01 (Ry)
94+
1.98887374e+00 (Occupations)
95+
7.21475617e-04 -3.84993155e-01 -2.39754937e-01 3.50145624e-01 4.60331625e-04
96+
3.84989326e-01 2.39757108e-01 -3.50136937e-01
97+
3 (band)
98+
9.42141518e-01 (Ry)
99+
1.82267901e+00 (Occupations)
100+
1.55867089e-03 6.65635918e-02 -5.08604428e-01 -2.72507675e-01 1.31685236e-03
101+
-6.65564621e-02 5.08617320e-01 2.72505902e-01
102+
4 (band)
103+
9.51085326e-01 (Ry)
104+
1.38701660e+00 (Occupations)
105+
1.51952298e-03 4.29047319e-01 -1.44911854e-01 3.74135183e-01 1.55117417e-03
106+
-4.29063893e-01 1.44914195e-01 -3.74151227e-01
107+
5 (band)
108+
9.59117869e-01 (Ry)
109+
8.01430655e-01 (Occupations)
110+
-1.23387839e+00 2.01913048e-03 -2.34672460e-02 1.10352123e-02 1.23388183e+00
111+
2.09803759e-03 -2.33203361e-02 1.10241720e-02
112+
6 (band)
113+
1.40797771e+00 (Ry)
114+
0.00000000e+00 (Occupations)
115+
3.69333377e-02 5.36352961e-01 -2.20838609e-01 4.79532577e-01 -3.69328400e-02
116+
5.36337301e-01 -2.20838039e-01 4.79522463e-01
117+
7 (band)
118+
1.46267877e+00 (Ry)
119+
0.00000000e+00 (Occupations)
120+
4.15798507e-02 1.82081900e-02 -6.88299354e-01 -3.37994308e-01 -4.15658772e-02
121+
1.82111165e-02 -6.88294596e-01 -3.37990682e-01
122+
8 (band)
123+
1.51772121e+00 (Ry)
124+
0.00000000e+00 (Occupations)
125+
-3.80991915e-02 5.51820117e-01 2.58478576e-01 -4.97562644e-01 3.80861066e-02
126+
5.51825574e-01 2.58476895e-01 -4.97570139e-01

0 commit comments

Comments
 (0)