Skip to content

Commit 9ba17da

Browse files
committed
Merge branch 'develop' of https://gitee.com/deepmodeling/abacus-develop into HSolver
2 parents 8262eb6 + f2c5f94 commit 9ba17da

File tree

270 files changed

+51160
-7010
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

270 files changed

+51160
-7010
lines changed

docs/examples/band-struc.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ pw_diag_thr 1.0e-7
2727
#Parameters (File)
2828
init_chg file
2929
out_band 1
30+
out_proj_band 1
3031
3132
#Parameters (Smearing)
3233
smearing_method gaussian
@@ -58,4 +59,35 @@ points.
5859
Run the program, and you will see a file named BANDS_1.dat in the output directory. Plot it
5960
to get energy band structure.
6061

61-
[back to top](#band-structure)
62+
If "out_proj_band" set 1, it will also produce the projected band structure in a file called PBAND_1 in xml format.
63+
64+
The PBAND_1 file starts with number of atomic orbitals in the system, the text contents of element <band structure> is the same as data in the BANDS_1.dat file, such as:
65+
```
66+
<pband>
67+
<nspin>1</nspin>
68+
<norbitals>153</norbitals>
69+
<band_structure nkpoints="96" nbands="50" units="eV">
70+
...
71+
72+
```
73+
74+
The rest of the files arranged in sections, each section with a header such as below:
75+
76+
```
77+
<orbital
78+
index=" 1"
79+
atom_index=" 1"
80+
species="Si"
81+
l=" 0"
82+
m=" 0"
83+
z=" 1"
84+
>
85+
<data>
86+
...
87+
</data>
88+
89+
```
90+
91+
The shape of text contents of element <data> is (Number of k-points, Number of bands)
92+
93+
[back to top](#band-structure)

docs/input-main.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
- [Variables related to output information](#variables-related-to-output-information)
3434

35-
[out_force](#out_force) | [out_mul](#out_mul) | [out_freq_elec](#out_freq_elec) | [out_freq_ion](#out_freq_ion) | [out_chg](#out_chg) | [out_pot](#out_pot) | [out_dm](#out-dm) | [out_wfc_pw](#out_wfc_pw) | [out_wfc_r](#out_wfc_r) | [out_wfc_lcao](#out_wfc_lcao) | [out_dos](#out-dos) | [out_band](#out-band) | [out_stru](#out-stru) | [out_level](#out_level) | [out_alllog](#out-alllog) | [out_mat_hs](#out_mat_hs) | [out_mat_r](#out_mat_r) | [out_mat_hs2](#out_mat_hs2) | [out_element_info](#out-element-info) | [restart_save](#restart_save) | [restart_load](#restart_load)
35+
[out_force](#out_force) | [out_mul](#out_mul) | [out_freq_elec](#out_freq_elec) | [out_freq_ion](#out_freq_ion) | [out_chg](#out_chg) | [out_pot](#out_pot) | [out_dm](#out-dm) | [out_wfc_pw](#out_wfc_pw) | [out_wfc_r](#out_wfc_r) | [out_wfc_lcao](#out_wfc_lcao) | [out_dos](#out-dos) | [out_band](#out-band) | [out_proj_band](#out-proj-band) | [out_stru](#out-stru) | [out_level](#out_level) | [out_alllog](#out-alllog) | [out_mat_hs](#out_mat_hs) | [out_mat_r](#out_mat_r) | [out_mat_hs2](#out_mat_hs2) | [out_element_info](#out-element-info) | [restart_save](#restart_save) | [restart_load](#restart_load)
3636

3737
- [Density of states](#density-of-states)
3838

@@ -735,6 +735,12 @@ This part of variables are used to control the output of properties.
735735
- **Description**: Controls whether to output the band structure. For mroe information, refer to the [worked example](examples/band-struc.md)
736736
- **Default**: 0
737737
738+
#### out_proj_band
739+
740+
- **Type**: Integer
741+
- **Description**: Controls whether to output the projected band structure. For mroe information, refer to the [worked example](examples/band-struc.md)
742+
- **Default**: 0
743+
738744
#### out_stru
739745
740746
- **Type**: Boolean
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
INPUT_PARAMETERS
2+
#Parameters (1.General)
3+
suffix autotest
4+
calculation scf
5+
ntype 1
6+
#nbands 8
7+
symmetry 1
8+
pseudo_type upf201
9+
10+
#Parameters (2.Iteration)
11+
ecutwfc 60
12+
scf_thr 1e-8
13+
scf_nmax 100
14+
cal_force 1
15+
cal_stress 1
16+
#Parameters (3.Basis)
17+
basis_type pw
18+
19+
#Parameters (4.Smearing)
20+
smearing_method gauss
21+
smearing_sigma 0.002
22+
23+
#Parameters (5.Mixing)
24+
mixing_type pulay
25+
mixing_beta 0.3
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+
5 5 5 0 0 0
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
ATOMIC_SPECIES
2+
Si 14 ../potential/Si_ONCV_PBE-1.0.upf
3+
4+
LATTICE_CONSTANT
5+
1
6+
7+
LATTICE_VECTORS
8+
10.2000000 10.2000000 0.0000000
9+
10.2000000 0.0000000 10.2000000
10+
0.0000000 10.2000000 10.2000000
11+
12+
ATOMIC_POSITIONS
13+
Direct
14+
15+
Si
16+
0.0
17+
16
18+
0.0000000 0.0000000 0.0000000 1 1 1
19+
0.1250000 0.1250000 0.1250000 1 1 1
20+
0.0000000 0.0000000 0.5000000 1 1 1
21+
0.1250000 0.1250000 0.6250000 1 1 1
22+
0.0000000 0.5000000 0.0000000 1 1 1
23+
0.1250000 0.6250000 0.1250000 1 1 1
24+
0.0000000 0.5000000 0.5000000 1 1 1
25+
0.1250000 0.6250000 0.6250000 1 1 1
26+
0.5000000 0.0000000 0.0000000 1 1 1
27+
0.6250000 0.1250000 0.1250000 1 1 1
28+
0.5000000 0.0000000 0.5000000 1 1 1
29+
0.6250000 0.1250000 0.6250000 1 1 1
30+
0.5000000 0.5000000 0.0000000 1 1 1
31+
0.6250000 0.6250000 0.1250000 1 1 1
32+
0.5000000 0.5000000 0.5000000 1 1 1
33+
0.6250000 0.6250000 0.6250000 1 1 1
34+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
etotref -1813.8232293743853916
2+
etotperatomref -113.3639518359
3+
totalforceref 1.114578
4+
totalstressref 6239.868141
5+
totaltimeref +72.75981
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
INPUT_PARAMETERS
2+
#Parameters (1.General)
3+
suffix autotest
4+
calculation scf
5+
ntype 1
6+
#nbands 8
7+
symmetry 1
8+
pseudo_type upf201
9+
10+
#Parameters (2.Iteration)
11+
ecutwfc 60
12+
scf_thr 1e-8
13+
scf_nmax 100
14+
cal_force 1
15+
cal_stress 1
16+
#Parameters (3.Basis)
17+
basis_type pw
18+
19+
#Parameters (4.Smearing)
20+
smearing_method gauss
21+
smearing_sigma 0.002
22+
23+
#Parameters (5.Mixing)
24+
mixing_type pulay
25+
mixing_beta 0.3
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+
3 5 5 0 0 0
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
ATOMIC_SPECIES
2+
Si 14 ../potential/Si_ONCV_PBE-1.0.upf
3+
4+
LATTICE_CONSTANT
5+
1.00000
6+
7+
LATTICE_VECTORS
8+
20.4000000 20.4000000 0.0000000
9+
10.2000000 0.0000000 10.2000000
10+
0.0000000 10.2000000 10.2000000
11+
12+
ATOMIC_POSITIONS
13+
Direct
14+
15+
Si
16+
0.0
17+
32
18+
0.0000000 0.0000000 0.0000000 1 1 1
19+
0.0625000 0.1250000 0.1250000 1 1 1
20+
0.0000000 0.0000000 0.5000000 1 1 1
21+
0.0625000 0.1250000 0.6250000 1 1 1
22+
0.0000000 0.5000000 0.0000000 1 1 1
23+
0.0625000 0.6250000 0.1250000 1 1 1
24+
0.0000000 0.5000000 0.5000000 1 1 1
25+
0.0625000 0.6250000 0.6250000 1 1 1
26+
0.2500000 0.0000000 0.0000000 1 1 1
27+
0.3125000 0.1250000 0.1250000 1 1 1
28+
0.2500000 0.0000000 0.5000000 1 1 1
29+
0.3125000 0.1250000 0.6250000 1 1 1
30+
0.2500000 0.5000000 0.0000000 1 1 1
31+
0.3125000 0.6250000 0.1250000 1 1 1
32+
0.2500000 0.5000000 0.5000000 1 1 1
33+
0.3125000 0.6250000 0.6250000 1 1 1
34+
0.5000000 0.0000000 0.0000000 1 1 1
35+
0.5625000 0.1250000 0.1250000 1 1 1
36+
0.5000000 0.0000000 0.5000000 1 1 1
37+
0.5625000 0.1250000 0.6250000 1 1 1
38+
0.5000000 0.5000000 0.0000000 1 1 1
39+
0.5625000 0.6250000 0.1250000 1 1 1
40+
0.5000000 0.5000000 0.5000000 1 1 1
41+
0.5625000 0.6250000 0.6250000 1 1 1
42+
0.7500000 0.0000000 0.0000000 1 1 1
43+
0.8125000 0.1250000 0.1250000 1 1 1
44+
0.7500000 0.0000000 0.5000000 1 1 1
45+
0.8125000 0.1250000 0.6250000 1 1 1
46+
0.7500000 0.5000000 0.0000000 1 1 1
47+
0.8125000 0.6250000 0.1250000 1 1 1
48+
0.7500000 0.5000000 0.5000000 1 1 1
49+
0.8125000 0.6250000 0.6250000 1 1 1
50+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
etotref -3627.6469120976985323
2+
etotperatomref -113.3639660031
3+
totalforceref 0.009692
4+
totalstressref 6239.895699
5+
totaltimeref +1860.40001

0 commit comments

Comments
 (0)