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
It can be found that 3010 structures are generated in `iter.000001`, in which no structure is collected for first-principle calculations. Therefore, the final models are not updated in iter.000002/00.train.
691
691
692
692
693
-
###Auto-test
693
+
## Auto-test
694
694
695
-
To verify the accuracy of the DP model, users can calculate a simple set of properties and compare the results with those of a DFT or traditional empirical force field. DPGEN's autotest module supports the calculation of a variety of properties, such as
695
+
The function, `auto-test`, is only for alloy materials to verify the accuracy of their DP model, users can calculate a simple set of properties and compare the results with those of a DFT or traditional empirical force field. DPGEN's autotest module supports the calculation of a variety of properties, such as
696
696
697
697
- 00.equi:(default task) the equilibrium state;
698
698
@@ -706,6 +706,309 @@ To verify the accuracy of the DP model, users can calculate a simple set of pro
706
706
707
707
- 05.surf: the surface formation energy.
708
708
709
+
In this part, the Al-Mg-Cu DP potential is used to illustrate how to automatically test DP potential of alloy materials. Each `auto-test` task includes three stages:
710
+
-`make` prepares all required calculation files and input scripts automatically;
711
+
-`run` can help submit calculation tasks to remote calculation plantforms and when calculation tasks are completed, will collect results automatically;
712
+
-`post` returns calculation results to local root automatically.
713
+
714
+
### structure relaxation
715
+
716
+
#### step1-`make`
717
+
Prepare the following files in a separate folder.
718
+
```sh
719
+
├── machine.json
720
+
├── relaxation.json
721
+
├── confs
722
+
│ ├── mp-3034
723
+
```
724
+
**IMPORTANT!** The ID number, mp-3034, is in the line with Material Project ID for Al-Mg-Cu.
725
+
- machine.json is the same with the one used in `init` and `run`. For more information about it, please check this [link](https://bohrium-doc.dp.tech/#/docs/DP-GEN?id=步骤3:准备计算文件).
726
+
- relaxtion.json
727
+
728
+
```json
729
+
{
730
+
"structures": ["confs/mp-3034"],//in this folder, confs/mp-3034, required files and scripts will be generated automatically by `dpgen autotest make relaxation.json`
731
+
"interaction": {
732
+
"type": "deepmd",
733
+
"model": "graph.pb",
734
+
"in_lammps": "lammps_input/in.lammps",
735
+
"type_map": {"Mg":0,"Al": 1,"Cu":2} //if you calculate other materials, remember to modify element types here.
736
+
},
737
+
"relaxation": {
738
+
"cal_setting":{"etol": 1e-12,
739
+
"ftol": 1e-6,
740
+
"maxiter": 5000,
741
+
"maximal": 500000,
742
+
"relax_shape": true,
743
+
"relax_vol": true}
744
+
}
745
+
}
746
+
```
747
+
748
+
Run this command,
749
+
```bash
750
+
dpgen autotest make relaxation.json
751
+
```
752
+
and then corresponding files and scripts used for calculation will be generated automatically.
753
+
754
+
#### step2-`run`
755
+
```bash
756
+
nohup dpgen autotest run relaxation.json machine.json &
757
+
```
758
+
After running this command, structures will be relaxed.
759
+
760
+
#### step3-`post`
761
+
```bash
762
+
dpgen autotest post relaxation.json
763
+
```
764
+
### property calculation
765
+
#### step1-`make`
766
+
The parameters used for property calculations are in property.json.
0 commit comments