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.1 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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 NVT_290_10ns.in --amber_parm ala.parm7 --c ala_350_cool_290.rst7 --o ala_NVT_290_10ns.out
  33. ```
  34. ## Script Description
  35. ### Script and Sample Code
  36. ```shell
  37. ├── sponge
  38. ├── README.md
  39. ├── main.py # launch Simulation for SPONGE
  40. ├── src
  41. ├── bond.py # bond module in SPONGE
  42. ├── angle.py # angle module in SPONGE
  43. ├── dihedral.py # dihedral module in SPONGE
  44. ├── nb14.py # nb14 module in SPONGE
  45. ├── Langevin_Liujian_md.py # Langevin_Liujian_md module in SPONGE
  46. ├── lennard_jones.py # lennard_jones module in SPONGE
  47. ├── md_information.py # save md information module in SPONGE
  48. ├── neighbor_list.py # neighbor_list module in SPONGE
  49. ├── particle_mesh_ewald.py # particle_mesh_ewald module in SPONGE
  50. ├── simulation_initial.py # SPONGE simulation
  51. ```
  52. ### Training Process
  53. ```shell
  54. python main.py --i NVT_290_10ns.in --amber_parm ala.parm7 --c ala_350_cool_290.rst7 --o ala_NVT_290_10ns.out
  55. ```
  56. Training result will be stored in the specified file, which ends with ".out".
  57. ## Result
  58. After training,the results in `ala_NVT_290_10ns.out` are:
  59. ```text
  60. _steps_ _TEMP_ _TOT_POT_ENE_ _BOND_ENE_ _ANGLE_ENE_ _DIHEDRAL_ENE_ _14LJ_ENE_ _14CF_ENE_ _LJ_ENE_ _CF_PME_ENE_
  61. 1 293.105 -6117.709 1204.406 7.096 4.491 3.456 44.018 1372.488 -8753.664
  62. ...
  63. ```
  64. 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_).
  65. ## Model Description
  66. ### Evaluation Performance
  67. | Parameters | GPU |
  68. | -------------------------- |---------------------------------- |
  69. | Resource | GPU(Tesla V100 SXM2), Memory 16G
  70. | uploaded Date |
  71. | MindSpore Version | 1.2
  72. | Training Parameters | step=1
  73. | Outputs | numpy file
  74. | Speed | 0.47 s/step
  75. | Total time | 4.57 s
  76. | Scripts | [Link](https://gitee.com/mindspore/mindspore/tree/master/model_zoo/research/hpc/sponge)
  77. ## ModelZoo HomePage
  78. Please check the official [homepage](https://gitee.com/mindspore/mindspore/tree/master/model_zoo).