This tutorial covers the concept of python programming in three types:
-
Flat Python script
-
Python program with functions
-
Object-oriented Python project with classes
We will implement a molecular dynamics (MD) program using each of the above three type and discuss the best practices.
-
Create a molecular system.
-
Setup force field.
-
Run simulation by integrating the equation of motion.
-
Analyze trajectory.
- Python 3.6
- Numpy
- pytest
- setuptools
Three top folders corresponds to the three types of python programs.
In each top folder, there will be a README.md for some notes.
The rest of the files and folders in each top folder shows an example structure of the type.
-
version control (git)
-
conda env