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 5.2 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. # SPONGE Example
  2. - [Description](#Description)
  3. - [Dataset](#Dataset)
  4. - [Environment Requirements](#Environment-Requirements)
  5. - [Quick Start](#Quick-Start)
  6. - [Script Description](#Script-Description)
  7. - [Script and Sample Code](#Script-and-Sample-Code)
  8. - [Training Process](#Training-Process)
  9. - [Model Description](#Model-Description)
  10. - [Evaluation Performance](#Evaluation-Performance)
  11. - [Result](#Result)
  12. - [ModelZoo Homepage](#ModelZoo-Homepage)
  13. ## Description
  14. SPONGE in MindSpore is a high-performance and modularized molecular dynamics simulation library developed by `Yiqin Gao` group (`Peking University` and `Shenzhen Bay Laboratory`) and `MindSpore` team at `Huawei` Company. It can efficiently simulate traditional molecular dynamics tasks based on the “graph-kernel-fusion” and “automatic parallelization” features of MindSpore. In the meanwhile, it utilizes the automatic differentiation feature of MindSpore, and introduces machine learning methods, such as neural network, into traditional molecular simulation, achieving methodological inventions.
  15. This example demonstrates how to perform high-performance molecular dynamics simulations with the built-in SPONGE module of MindSpore on GPU.
  16. ## Dataset
  17. There are three inputs for the example, property file `NVT_290_10ns.in`, topology file `ala.parm7` and coordinates file `ala_NVT_290_10ns.out`, respectivelly.
  18. ![ALA Aqueous System](https://images.gitee.com/uploads/images/2021/0323/184453_4bd9b1a6_8142020.png "图片1.png")
  19. Topology file and coordinates file can be generated by `tleap` in `AmberTools` ([link](<http://ambermd.org/GetAmber.php>)). For more details, please refer to:
  20. - [SPONGE Tutorial](https://gitee.com/mindspore/docs/blob/master/tutorials/training/source_zh_cn/advanced_use/hpc_sponge.md)
  21. ## Environment Requirements
  22. - Hardware: GPU
  23. - Prepare hardware environment with GPU processor.
  24. - Framework
  25. - [MindSpore](https://www.mindspore.cn/install/en)
  26. - For more information, please check the resources below:
  27. - [MindSpore Tutorials](https://www.mindspore.cn/tutorial/training/en/master/index.html)
  28. - [MindSpore Python API](https://www.mindspore.cn/doc/api_python/en/master/index.html)
  29. ## Quick Start
  30. After installing MindSpore via the official website, you can start running as follows:
  31. ```shell
  32. python main.py --i /path/NVT_290_10ns.in --amber_parm /path/ala.parm7 --c /path/ala_350_cool_290.rst7 \
  33. --o /path/ala_NVT_290_10ns.out
  34. ```
  35. `path` is the path which stores input files.
  36. ## Script Description
  37. ### Script and Sample Code
  38. ```shell
  39. ├── sponge
  40. ├── README.md
  41. ├── main.py # launch Simulation for SPONGE
  42. ├── src
  43. ├── bond.py # bond module in SPONGE
  44. ├── angle.py # angle module in SPONGE
  45. ├── dihedral.py # dihedral module in SPONGE
  46. ├── nb14.py # nb14 module in SPONGE
  47. ├── Langevin_Liujian_md.py # Langevin_Liujian_md module in SPONGE
  48. ├── lennard_jones.py # lennard_jones module in SPONGE
  49. ├── md_information.py # save md information module in SPONGE
  50. ├── neighbor_list.py # neighbor_list module in SPONGE
  51. ├── particle_mesh_ewald.py # particle_mesh_ewald module in SPONGE
  52. ├── simulation_initial.py # SPONGE simulation
  53. ```
  54. ### Training Process
  55. ```shell
  56. python main.py --i ./NVT_290_10ns.in --amber_parm ala.parm7 --c ala_350_cool_290.rst7 --o ala_NVT_290_10ns.out
  57. ```
  58. Training result will be stored in the specified file, which ends with ".out".
  59. ## Result
  60. After training,the results in `ala_NVT_290_10ns.out` are:
  61. ```text
  62. _steps_ _TEMP_ _TOT_POT_ENE_ _BOND_ENE_ _ANGLE_ENE_ _DIHEDRAL_ENE_ _14LJ_ENE_ _14CF_ENE_ _LJ_ENE_ _CF_PME_ENE_
  63. 1 293.105 -6117.709 1204.406 7.096 4.491 3.456 44.018 1372.488 -8753.664
  64. ...
  65. ```
  66. There are sorts of energy in the output, steps (_steps_), temperature (_TEMP_), total energy (_TOT_POT_E_), bond energy (_BOND_ENE_), angle energy (_ANGLE_ENE_), dihedral energy (_DIHEDRAL_ENE_), non bond enrgy, includes Coulomb force (_14CF_ENE_) and Leonard-Jones energy (_14LJ_ENE_), Van der Waals energy (_LJ_ENE_) and Coulomb force in PME (_CF_PME_ENE_).
  67. ## Model Description
  68. ### Evaluation Performance
  69. | Parameters | GPU |
  70. | -------------------------- |---------------------------------- |
  71. | Resource | GPU(Tesla V100 SXM2), Memory 16G
  72. | uploaded Date |
  73. | MindSpore Version | 1.2
  74. | Training Parameters | step=1
  75. | Outputs | numpy file
  76. | Speed | 0.47 s/step
  77. | Total time | 4.57 s
  78. | Scripts | [Link](https://gitee.com/mindspore/mindspore/tree/master/model_zoo/research/hpc/sponge)
  79. ## ModelZoo HomePage
  80. Please check the official [homepage](https://gitee.com/mindspore/mindspore/tree/master/model_zoo).