You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/generate-basis.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
In ABACUS, the atomic orbital bases are generated using a scheme developed in the [paper](https://iopscience.iop.org/article/10.1088/0953-8984/22/44/445501). We provide a script named “generate_orbital.sh” under the directory tools/ to generate the atomic orbitals bases. In order to run this script, an ORBITAL_INPUT file is required.
6
6
7
-
An example of this ORBITAL_INPUT file can be found in $ABACUS/tools/SIAB/2_Generate:
7
+
An example of this ORBITAL_INPUT file can be found in $ABACUS/tools/SIAB/SimulatedAnnealing/example_N:
@@ -101,7 +101,7 @@ The ORBITAL_INPUT file contains 5 parts :
101
101
This part gives the bond lengths of the reference systems (dimer or trimer). Generally, the bond lengths are chosen to distribute on both sides of the equilibrium value. For example, for N dimer we use (in Å):
102
102
- Dis 1.0 1.1 1.5 2.0 3.0
103
103
104
-
It means we take 5 reference systems (dimer), and the bond lengths are 1.0 1.1 1.5 2.0 3.0 angstrom, respectively. Every element has reference systems with different bond lengths, which could be found in file $ABACUS/tools/SIAB/2_Generate/DIS.txt.
104
+
It means we take 5 reference systems (dimer), and the bond lengths are 1.0 1.1 1.5 2.0 3.0 angstrom, respectively. Every element has reference systems with different bond lengths, which could be found in file $ABACUS/tools/SIAB/DIS.txt.
105
105
4. orbital generation
106
106
107
107
The main parameters for orbital generation
@@ -142,7 +142,7 @@ The ORBITAL_INPUT file contains 5 parts :
142
142
143
143
the accept rise of spillage when optimizing the kinetic energy
144
144
145
-
After preparing the ORBITAL_INPUT file, one just needs to run the script and wait for the results. The results will be written into several output files under the directory $element.id_element/$Rcut/, for example 07_N/6/.
145
+
After preparing the ORBITAL_INPUT file, one just needs to run the script "$PATH_TO/generate_orbital.sh ORBITAL_INPUT" and wait for the results. The results will be written into several output files under the directory $element.id_element/$Rcut/, for example 07_N/6/.
146
146
147
147
Some output files listed here are useful.
148
148
- ORBITAL_RESULTS.txt
@@ -160,4 +160,4 @@ For some elements, you can download the reference ORBITAL_INPUT files and pseudo
160
160
A file README is also given and you can decide the parameters with it as a reference.
161
161
In most cases, you just need to modify the parameters in Section 1, 2. Section 4 may be
162
162
partially modified if you need higher precision orbitals. The users are not encouraged to change
163
-
the settings in sections 5, unless you are very familiar with the code generating algorithms.
163
+
the settings in sections 5, unless you are very familiar with the code generating algorithms.
The optimization can choose three minimization methods: 'Simulated Annealing', 'PyTorch Gradient' and 'PyTorch Gradient whit dpsi'.
15
+
The optimization can choose one of the three minimization methods:
16
+
17
+
- Simulated Annealing (**SA**),
18
+
- PyTorch Gradient (**PTG**),
19
+
- PyTorch Gradient with dpsi (**PTG_dpsi**).
20
+
21
+
The executable files for the three methods are:
22
+
23
+
- ./SimulatedAnnealing/source/SIA_s.exe,
24
+
- ./PyTorchGradient/source/main.py,
25
+
- ../opt_orb_pytorch_dpsi/main.py,
26
+
27
+
respectively.
13
28
14
-
The executable files for three methods are './SimulatedAnnealing/source/SIA_s.exe', './PyTorchGradient/source/main.py', '../opt_orb_pytorch_dpsi/main.py', respectively.
15
29
30
+
## 1. Write input file
16
31
17
-
## (1) write input file
18
-
Firstly, write the input file, such as "ORBITAL_INPUT_DZP" in example-directories, for script 'Generate_Orbital_AllInOne.sh'.
19
-
Both approachs, 'PyTorch Gradient' and 'Simulated Annealing', work with one bash script and use the same input file.
20
-
Please use the absolute path for each each file and directory.
32
+
Firstly, write the input file, such as **ORBITAL_INPUT_DZP** in example-directories, for script **Generate_Orbital_AllInOne.sh**.
33
+
All three approachs work with the same bash script and use the same input file.
34
+
Please use **absolute path** for each file/directory in input file.
21
35
22
36
23
-
## (2) set up dependence env
24
-
Then, we set up the dependence env for ABACUS and SIAB, such as:
0 commit comments