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
init_surf Generating initial data for surface systems.
125
-
init_bulk Generating initial data for bulk systems.
126
-
auto_gen_param auto gen param.json
127
-
init_reaction Generating initial data for reactive systems.
128
-
run Main process of Deep Potential Generator.
129
-
run/report Report the systems and the thermodynamic conditions of
130
-
the labeled frames.
131
-
collect Collect data.
132
-
simplify Simplify data.
133
-
autotest Auto-test for Deep Potential.
134
-
db Collecting data from DP-GEN.
135
-
136
-
optional arguments:
137
-
-h, --help show this help message and exit
138
-
```
139
95
140
96
141
97
## Init: Preparing Initial Data
@@ -378,7 +334,7 @@ In each iteration, there are three stages of work, namely, `00.train 01.model_d
378
334
379
335
+ 00.train: DP-GEN will train several (default 4) models based on initial and generated data. The only difference between these models is the random seed for neural network initialization.
380
336
381
-
+ 01.model_devi : represent for model-deviation. DP-GEN will use models obtained from 00.train to run Molecular Dynamics(default LAMMPS). Larger deviation for structure properties (default is force of atoms) means less accuracy of the models. Using this criterion, a few fructures will be selected and put into next stage `02.fp` for more accurate calculation based on First Principles.
337
+
+ 01.model_devi : represent for model-deviation. Model-deviation engine in `01.model_devi` can be chosen between Molecular Dynamics(LAMMPS and GROMACS) or Structures Prediction(CALYPSO). DP-GEN will use models obtained from 00.train to run Molecular Dynamics or to run structure optimization with ASE in CALYPSO. Larger deviation for structure properties (default is force of atoms) means less accuracy of the models. Using this criterion, a few structures will be selected and put into next stage `02.fp` for more accurate calculation based on First Principles.
382
338
383
339
+ 02.fp : Selected structures will be calculated by first principles methods(default VASP). DP-GEN will obtain some new data and put them together with initial data and data generated in previous iterations. After that a new training will be set up and DP-GEN will enter next iteration!
384
340
@@ -614,7 +570,40 @@ The bold notation of key (such aas **type_map**) means that it's a necessary key
614
570
| *fp_style == cp2k*
615
571
| **user_fp_params** | Dict | |Parameters for cp2k calculation. find detail in manual.cp2k.org. only the kind section must be set before use. we assume that you have basic knowledge for cp2k input.
616
572
| **external_input_path** | String | | Conflict with key:user_fp_params, use the template input provided by user, some rules should be followed, read the following text in detail.
573
+
| *fp_style == ABACUS*
574
+
| **user_fp_params** | Dict | |Parameters for ABACUS INPUT. find detail [Here](https://github.com/deepmodeling/abacus-develop/blob/develop/docs/input-main.md#out-descriptor). If `deepks_model` is set, the model file should be in the pseudopotential directory.
575
+
| **fp_orb_files** | List | |List of atomic orbital files. The files should be in pseudopotential directory.
576
+
| **fp_dpks_descriptor** | String | |DeePKS descriptor file name. The file should be in pseudopotential directory.
577
+
578
+
One can choose the model-deviation engine by specifying the key `model_devi_engine`. If `model_devi_engine` is not specified, the default model-deviation engine will be LAMMPS.
579
+
580
+
There are some new keys needed to be added into `param` and `machine` if CALYPSO as model-deviation engine.
617
581
582
+
The bold notation of key (such as **calypso_path**) means that it's a necessary key.
|**model_devi_engine**| string | "calypso" | CALYPSO as model-deviation engine.|
588
+
|**calypso_input_path**| string | "/home/zhenyu/workplace/debug" | The absolute path of CALYPSO input file named input.dat(PSTRESS and fmax should be included), when this keys exists, all the iters will use the same CALYPSO input file until reach the number of max iter specified by **model_devi_max_iter** and **model_devi_jobs** key will not work.|
589
+
|**model_devi_max_iter**| int | 10 | The max iter number code can run, it works when **calypso_input_path** exists.|
590
+
|**model_devi_jobs**| List of Dict |[{ "times":[3],"NameOfAtoms":["Al","Cu"],"NumberOfAtoms":[1,10],"NumberOfFormula":[1,2],"Volume":[300],"DistanceOfIon":[[ 1.48,1.44],[ 1.44,1.41]],"PsoRatio":[0.6],"PopSize":[5],"MaxStep":[3],"ICode":[1],"Split":"T"},...]| Settings for exploration in `01.model_devi`. Different number in `times` List means different iteration index and iterations mentioned in List wil use same CALYPSO parameters.|
591
+
|**model_devi_jobs["times"]**| List of int |[0,1,2]| Different number in `times` List means different iteration index and iterations mentioned in List wil use same CALYPSO parameters.|
592
+
|**model_devi_jobs["NameOfAtoms"]**| List of string |["Al","Cu"]| Parameter of CALYPSO input file, means the element species of structures to be generated. |
593
+
|**model_devi_jobs["NumberOfAtoms"]**| List of int |[1,10]| Parameter of CALYPSO input file, means the number of atoms for each chemical species in one formula unit. |
594
+
|**model_devi_jobs["NumberOfFormula"]**| List of int |[1,2]| Parameter of CALYPSO input file, means the range of formula unit per cell. |
595
+
|**model_devi_jobs["Volume"]**| List of int |[300]| Parameter of CALYPSO input file, means the colume per formula unit(angstrom^3). |
596
+
|**model_devi_jobs["DistanceOfIon"]**| List of float |[[ 1.48,1.44],[ 1.44,1.41]]| Parameter of CALYPSO input file, means minimal distance between atoms of each chemical species. Unit is in angstrom. |
597
+
|**model_devi_jobs["PsoRatio"]**| List of float |[0.6]| Parameter of CALYPSO input file, means the proportion of the structures generated by PSO. |
598
+
|**model_devi_jobs["PopSize"]**| List of int |[5]| Parameter of CALYPSO input file, means the number of structures to be generated in one step in CALYPSO. |
599
+
|**model_devi_jobs["MaxStep"]**| List of int |[3]| Parameter of CALYPSO input file, means the number of max step in CALYPSO.|
600
+
|**model_devi_jobs["ICode"]**| List of int |[13]| Parameter of CALYPSO input file, means the chosen of local optimization, 1 is vasp and 13 is ASE with dp. |
601
+
|**model_devi_jobs["Split"]**| String |"T" | Parameter of CALYPSO input file, means that generating structures and optimizing structures are split into two parts, in dpgen workflow, Split must be T. |
602
+
|**model_devi_jobs["PSTRESS"]**| List of float |[0.001]| Same as PSTRESS in INCAR. |
603
+
|**model_devi_jobs["fmax"]**| List of float |[0.01]| The convergence criterion is that the force on all individual atoms should be less than *fmax*. |
604
+
| *in machine file*
605
+
|**model_devi["deepmdkit_python"]**| String | "/home/zhenyu/soft/deepmd-kit/bin/python" | A python path with deepmd package. |
606
+
|**model_devi["calypso_path"]**| string | "/home/zhenyu/workplace/debug" | The absolute path of calypso.x.|
618
607
619
608
#### Rules for cp2k input at dictionary form
620
609
Converting cp2k input is very simple as dictionary used to dpgen input. You just need follow some simple rule:
@@ -1352,7 +1341,7 @@ mem_limit | Interger | 16 | Maximal memory permitted to apply for the job.
1352
1341
| group_size | Integer | 5 | DP-GEN will put these jobs together in one submitting script.
1353
1342
| user_forward_files | List of str | ["/path_to/vdw_kernel.bindat"] | These files will be uploaded in each calculation task. You should make sure provide the path exists.
1354
1343
| user_backward_files | List of str | ["HILLS"] | Besides DP-GEN's normal output, these files will be downloaded after each calculation. You should make sure these files can be generated.
1355
-
1344
+
1356
1345
## Troubleshooting
1357
1346
1. The most common problem is whether two settings correspond with each other, including:
1358
1347
- The order of elements in `type_map` and `mass_map` and **`fp_pp_files`**.
0 commit comments