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: docs/examples/dpgen.md
+187-3Lines changed: 187 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,9 @@
2
2
3
3
[back to main page](../../README.md)
4
4
5
-
[DP-GEN](https://github.com/deepmodeling/dpgen), the deep potential generator, is a package designed to generate deep learning based model of interatomic potential energy and force fields (Yuzhi Zhang, Haidi Wang, Weijie Chen, Jinzhe Zeng, Linfeng Zhang, Han Wang, and Weinan E, DP-GEN: A concurrent learning platform for the generation of reliable deep learning based potential energy models, Computer Physics Communications, 2020, 107206). ABACUS can now interface with DP-GEN to generate deep potentials. In the following, we take the FCC aluminum as an example.
5
+
[DP-GEN](https://github.com/deepmodeling/dpgen), the deep potential generator, is a package designed to generate deep learning based model of interatomic potential energy and force fields (Yuzhi Zhang, Haidi Wang, Weijie Chen, Jinzhe Zeng, Linfeng Zhang, Han Wang, and Weinan E, DP-GEN: A concurrent learning platform for the generation of reliable deep learning based potential energy models, Computer Physics Communications, 2020, 107206). ABACUS can now interface with DP-GEN to generate deep potentials and performe autotests. In the following, we take the FCC aluminum as an example.
6
+
7
+
## init_bulk and run
6
8
7
9
This example can be found in examples/dpgen-example/init_and_run directory.
8
10
@@ -11,7 +13,7 @@ Firstly, one needs to prepare input files for ABACUS calculation, e.g., “INPUT
11
13
Secondly, for the "dpgen init_bulk" step, an `init.json` file should be provided:
12
14
13
15
14
-
```
16
+
```json
15
17
{
16
18
"init_fp_style": "ABACUS", # abacus interface
17
19
"stages": [1,2,3,4],
@@ -36,7 +38,7 @@ Secondly, for the "dpgen init_bulk" step, an `init.json` file should be provided
36
38
```
37
39
38
40
Next, for the "dpgen run" step, the following `run_param.json` should be provided.
39
-
```
41
+
```json
40
42
{
41
43
"type_map": [
42
44
"Al"
@@ -181,6 +183,188 @@ Next, for the "dpgen run" step, the following `run_param.json` should be provide
181
183
}
182
184
```
183
185
186
+
## autotest
187
+
188
+
This example can be found in examples/dpgen-example/autotest directory.
189
+
190
+
`dpgen autotest` supports to perform `relaxation`,`eos` (equation of state),`elastic`,`surface`,`vacancy`, and `interstitial` calculations with ABACUS. A `property.json` and `machine.json` file need to be provided. For example,
For each property, the command `dpgen autotest make property.json` will generate the input files, `dpgen autotest run property.json machine.json` will run the corresponding tasks, and `dpgen autotest post property.json` will collect the final results.
367
+
184
368
185
369
Notes:
186
370
- The ABACUS-DPGEN interface can be used in both pw and lcao basis.
@@ -148,6 +148,9 @@ This part of variables are used to control general system parameters.
148
148
-*md*: molecular dynamics
149
149
-*sto-scf*: do self-consistent electronic structure calculation with [stochastic DFT](#electronic-structure-sdft)
150
150
-*sto-md*: molecular dynamics with [stochastic DFT](#electronic-structure-sdft)
151
+
-*test_memory* : checks memory required for the calculation. The number is not quite reliable, please use with care
152
+
-*test_neighbour* : only performs neighbouring atom search
153
+
-*gen_jle* : generates projectors for DeePKS; see also deepks_lmax_descriptor
151
154
152
155
> Note: *istate* and *ienvelope* only work for LCAO basis set and are not working right now.
153
156
-**Default**: scf
@@ -597,9 +600,9 @@ This part of variables are used to control the parameters of stochastic DFT (SDF
597
600
- **Description**:
598
601
- Different method to do SDFT.
599
602
- 1: SDFT calculates $T_n(\hat{h})\ket{\chi}$ twice, where $T_n(x)$ is the n-th order Chebyshev polynomial and $\hat{h}=\frac{\hat{H}-\bar{E}}{\Delta E}$ owning eigen-value $\in(-1,1)$. This method cost less memory but slow.
600
-
- 2: SDFT calculates $T_n(\hat{h})\ket{\chi}$ once but need much more memory. This method is fast but when memory is not enough, only method 1 can be used.
601
-
- other: use 1
602
-
- **Default**: 1
603
+
- 2: SDFT calculates $T_n(\hat{h})\ket{\chi}$ once but need much more memory. This method is much faster. Besides, it calculate $N_e$ with $\bra{\chi}\sqrt{\hat f}\sqrt{\hat f}\ket{\chi}$, which needs smaller [nche_sto](#nche_sto). However, when memory is not enough, only method 1 can be used.
604
+
- other: use 2
605
+
- **Default**: 2
603
606
604
607
#### nbands_sto
605
608
@@ -642,6 +645,12 @@ This part of variables are used to control the parameters of stochastic DFT (SDF
642
645
- **Description**: Frequency (once each initsto_freq steps) to generate new stochastic orbitals when running md.
643
646
- **Default**:1000
644
647
648
+
#### npart_sto
649
+
650
+
- **Type**: Integer
651
+
- **Description**: Make memory cost to 1/npart_sto times of previous one when running post process of SDFT like DOS with method_sto = 2.
652
+
- **Default**:1
653
+
645
654
### Geometry relaxation
646
655
647
656
This part of variables are used to control the geometry relaxation.
@@ -963,8 +972,8 @@ Warning: this function is not robust enough for the current version. Please try
963
972
#### deepks_descriptor_lmax
964
973
965
974
- **Type**: Integer
966
-
- **Description**: control the max angular momentum of descriptor basis.
967
-
- **Default**: 0
975
+
- **Description**: when generating projectors, this variable controls the max angular momentum of descriptor basis.
976
+
- **Default**: 2
968
977
969
978
#### deepks_scf
970
979
@@ -1597,12 +1606,6 @@ This part of variables are used to control berry phase and wannier90 interfacae
1597
1606
- **Description**: If set to 1, output to terminal will have some color.
1598
1607
- **Default**: 0
1599
1608
1600
-
#### test_just_neighbor
1601
-
1602
-
- **Type**: Boolean
1603
-
- **Description**: If set to 1, then only perform the neighboring atoms search.
1604
-
- **Default**: 0
1605
-
1606
1609
### Electronic conductivities
1607
1610
1608
1611
Frequency-dependent electronic conductivities can be calculated with Kubo-Greenwood formula[Phys. Rev. B 83, 235120 (2011)].
0 commit comments