You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 3.9 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. # Contents
  2. - [Description](#description)
  3. - [Model Architecture](#model-architecture)
  4. - [Dataset](#dataset)
  5. - [Environment Requirements](#environment-requirements)
  6. - [Script Description](#script-description)
  7. - [Script and Sample Code](#script-and-sample-code)
  8. - [Training Process](#training-process)
  9. - [Evaluation Process](#evaluation-process)
  10. - [Result](#result)
  11. - [ModelZoo Homepage](#modelzoo-homepage)
  12. ## Description
  13. Molecular Dynamics (MD) is playing an increasingly important role in the research of biology, pharmacy, chemistry, and materials science. The architecture is based on DeePMD, which using an NN scheme for MD simulations, which overcomes the limitations associated to auxiliary quantities like the symmetry functions or the Coulomb matrix. Each environment contains a number of atoms, whose local coordinates are arranged in a symmetry preserving way following the prescription of the Deep Potential method. According to the atomic position, atomic types and box tensor to construct energy.
  14. Thanks a lot for DeePMD team's help.
  15. [1] Paper: L Zhang, J Han, H Wang, R Car, W E. Deep potential molecular dynamics: a scalable model with the accuracy of quantum mechanics. Physical review letters 120 (14), 143001 (2018).
  16. [2] Paper: H Wang, L Zhang, J Han, W E. DeePMD-kit: A deep learning package for many-body potential energy representation and molecular dynamics. Computer Physics Communications 228, 178-184 (2018).
  17. ## Model Architecture
  18. The overall network architecture of MD simulation is show below.
  19. [Link](https://arxiv.org/abs/1707.09571)
  20. ## Dataset
  21. Dataset used: deepmodeling/deepmd-kit/examples/water/data
  22. The data is generated by Quantum Espresso and the input of Quantum Espresso is set manually.
  23. The directory structure of the dataset is as follows:
  24. ```text
  25. └─data
  26. ├─type.raw
  27. ├─set.000
  28. │ ├──box.npy
  29. │ ├──coord.npy
  30. │ ├──energy.npy
  31. │ └──force.npy
  32. ├─set.001
  33. ├─set.002
  34. └─set.003
  35. ```
  36. In `deepmodeling/deepmd-kit/source`:
  37. - Use `train/DataSystem.py` to get d_coord and atype.
  38. - Use function compute_input_stats in `train/DataSystem.py` to get avg and std.
  39. - Use `op/descrpt_se_a.cc` to get d_nlist and nlist.
  40. - Save d_coord, d_nlist, atype, avg, std and nlist as `Npz` file for inference.
  41. ## Environment Requirements
  42. - Hardware (Ascend)
  43. - Framework
  44. - [MindSpore](https://www.mindspore.cn/install/en)
  45. - For more information, please check the resources below:
  46. - [MindSpore Tutorials](https://www.mindspore.cn/tutorial/training/en/master/index.html)
  47. - [MindSpore Python API](https://www.mindspore.cn/doc/api_python/en/master/index.html)
  48. ## Script Description
  49. ### Script and Sample Code
  50. ```shell
  51. ├── md
  52. ├── README.md # descriptions about MD
  53. ├── script
  54. │ ├── eval.sh # evaluation script
  55. ├── src
  56. │ ├── descriptor.py # descriptor function
  57. │ └── network.py # MD simulation architecture
  58. └── eval.py # evaluation interface
  59. ```
  60. ### Training Process
  61. To Be Done
  62. ### Evaluation Process
  63. After installing MindSpore via the official website, you can start evaluation as follows:
  64. ```shell
  65. python eval.py --dataset_path [DATASET_PATH] --checkpoint_path [CHECKPOINT_PATH]
  66. ```
  67. > checkpoint can be trained by using DeePMD-kit, and convert into the ckpt of MindSpore.
  68. ### Result
  69. The infer result:
  70. ```text
  71. energy: -29944.03
  72. atom_energy: -94.38766 -94.294426 -94.39194 -94.70758 -94.51311 -94.457954 ...
  73. ```
  74. ## ModelZoo Homepage
  75. Please check the official [homepage](https://gitee.com/mindspore/mindspore/tree/master/model_zoo).