Skip to content

Commit d3aa439

Browse files
Additional explanations to the example files and fixing result.ref file in examples/bsse/water (#5484)
* fixing sigma value in input files and adding comments to ecutwfc keyword * fixing comments in examples using LCAO basis * fixing comments in examples using LCAO basis * futher change of additional information in example files and change of result.ref in examples/bsse/water/ * adding more explanations in example INPUT and KPT files * minor change of English * fixing file name error * minor fix of a file (I do not tell you which one)
1 parent a95eb5b commit d3aa439

File tree

133 files changed

+384
-295
lines changed

Some content is hidden

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

133 files changed

+384
-295
lines changed

examples/band/lcao_Si2/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ if [[ ! -f scf.output ]] ||
1919
[[ ! ( "$(tail -1 OUT.ABACUS/running_scf.log)" == " Total Time :"* ) ]] ||
2020
[[ ! ( "$(tail -1 OUT.ABACUS/running_nscf.log)" == " Total Time :"* ) ]]
2121
then
22-
echo "job is failed!"
22+
echo "job failed!"
2323
exit 1
2424
else
25-
echo "job is successed!"
25+
echo "job succeeded!"
2626
exit 0
2727
fi
2828

examples/band/pw_Al/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ if [[ ! -f scf.output ]] ||
1919
[[ ! ( "$(tail -1 OUT.ABACUS/running_scf.log)" == " Total Time :"* ) ]] ||
2020
[[ ! ( "$(tail -1 OUT.ABACUS/running_nscf.log)" == " Total Time :"* ) ]]
2121
then
22-
echo "job is failed!"
22+
echo "job failed!"
2323
exit 1
2424
else
25-
echo "job is successed!"
25+
echo "job succeeded!"
2626
exit 0
2727
fi

examples/berryphase/lcao_PbTiO3/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ if [[ ! -f scf.output ]] ||
2121
[[ ! ( "$(tail -1 OUT.ABACUS/running_scf.log)" == " Total Time :"* ) ]] ||
2222
[[ ! ( "$(tail -1 OUT.ABACUS/running_nscf.log)" == " Total Time :"* ) ]]
2323
then
24-
echo "job is failed!"
24+
echo "job failed!"
2525
exit 1
2626
else
27-
echo "job is successed!"
27+
echo "job succeeded!"
2828
exit 0
2929
fi

examples/berryphase/pw_PbTiO3/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ if [[ ! -f scf.output ]] ||
1919
[[ ! ( "$(tail -1 OUT.ABACUS/running_scf.log)" == " Total Time :"* ) ]] ||
2020
[[ ! ( "$(tail -1 OUT.ABACUS/running_nscf.log)" == " Total Time :"* ) ]]
2121
then
22-
echo "job is failed!"
22+
echo "job failed!"
2323
exit 1
2424
else
25-
echo "job is successed!"
25+
echo "job succeeded!"
2626
exit 0
2727
fi

examples/bravais_lattice/fcc_SiO2/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ if [[ ! -f output ]] ||
1010
[[ ! -f OUT.ABACUS/running_scf.log ]] ||
1111
[[ ! ( "$(tail -1 OUT.ABACUS/running_scf.log)" == " Total Time :"* ) ]]
1212
then
13-
echo "job is failed!"
13+
echo "job failed!"
1414
exit 1
1515
else
16-
echo "job is successed!"
16+
echo "job succeeded!"
1717
exit 0
1818
fi

examples/bravais_lattice/hexagonal_MoS2/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ if [[ ! -f output ]] ||
1010
[[ ! -f OUT.ABACUS/running_scf.log ]] ||
1111
[[ ! ( "$(tail -1 OUT.ABACUS/running_scf.log)" == " Total Time :"* ) ]]
1212
then
13-
echo "job is failed!"
13+
echo "job failed!"
1414
exit 1
1515
else
16-
echo "job is successed!"
16+
echo "job succeeded!"
1717
exit 0
1818
fi

examples/bravais_lattice/so_SnTe/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ if [[ ! -f output ]] ||
1010
[[ ! -f OUT.ABACUS/running_scf.log ]] ||
1111
[[ ! ( "$(tail -1 OUT.ABACUS/running_scf.log)" == " Total Time :"* ) ]]
1212
then
13-
echo "job is failed!"
13+
echo "job failed!"
1414
exit 1
1515
else
16-
echo "job is successed!"
16+
echo "job succeeded!"
1717
exit 0
1818
fi

examples/bsse/water/INPUT

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1+
#this is the input of using counterpoise to correct the BSSE error
2+
#
13
INPUT_PARAMETERS
24
#Parameters (General)
35
pseudo_dir ../../../tests/PP_ORB
46
orbital_dir ../../../tests/PP_ORB
57
#Parameters (Accuracy)
6-
ecutwfc 60 ### Please refer to orbital files[1] to set ecutwfc for LCAO basis.
8+
ecutwfc 60 ###Energy cutoff needs to be tested to ensure your calculation is reliable.[1]
79
scf_nmax 100
810
scf_thr 1e-6
911
basis_type lcao
1012

11-
gamma_only 1 ### Abacus will generate KPT file when gamma_only=1.
13+
gamma_only 1 ### Abacus will generate/overwrite a KPT file when gamma_only is set to 1.
1214

1315
smearing_method gauss
14-
smearing_sigma 0.02
16+
smearing_sigma 0.015
1517

1618

17-
### [1]The energy cutoff of a LCAO basis can be found in lines starting with "Energy Cutoff" of a .orb file.
19+
### [1] Energy cutoff determines the quality of numerical quadratures in your calculations.
20+
### So it is strongly recommended to test whether your result (such as converged SCF energies) is
21+
### converged with respect to the energy cutoff.

examples/bsse/water/KPT

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ K_POINTS
22
0
33
Gamma
44
1 1 1 0 0 0
5+
###This file will be overwritten by Abacus because either kspacing is used or gamma_only is set to 1

examples/bsse/water/README

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
example showcasing how to use BSSE correction to calculate formation energy of water
22
STRU_0 : used along with ntype = 2;normal calculation of water molecule (E_h2o)
3-
obtained total energy of -466.4838149140513 eV
3+
obtained total energy of -466.1225988776397 eV
44
STRU_1 : used along with ntype = 2;calculation of single O atom (E_o)
5-
obtained total energy of -427.9084406198214 eV
5+
obtained total energy of -427.6271689751553 eV
66
STRU_2 : used along with ntype = 3;calculation of 1st H atom (E_h1)
7-
obtained total energy of -12.59853381731160 eV
7+
obtained total energy of -12.58872469295076 eV
88
STRU_3 : used along with ntype = 3;calculation of 2nd H atom (E_h2)
9-
obtained total energy of -12.59853378720844 eV
9+
obtained total energy of -12.58872446212924 eV
1010

1111
Thus, the formation energy is given by:
12-
E_h2o - (E_o + E_h1 + E_h2) ~ -13.38 eV
12+
E_h2o - (E_o + E_h1 + E_h2) ~ -13.32 eV

0 commit comments

Comments
 (0)