MDSim is a simple molecular dynamics simulator written in C++11.
- Lennard-Jones potential
- Velocity Verlet algorithm
- Temperature control by velocity scaling
- Rectangular cell (periodic or free boundary condition)
- CSV output
- Python plot script
- g++ 4.8.4
- Eigen 3.3.4
- Python 2.7.6
- matplotlib 2.0.2
- Setup library (Eigen)
cd MDSim/
./setup.sh
- Build
cd src/
make
mkdir your_csv_dir/
./mdsim dt total_time temp_cont_time phase bc_mode csv_dir
dt
: Time per step.total_time
: Time to simulate particles' motion (includestemp_cont_time
).temp_cont_time
: Time to control temperature.phase
: Phase to simulate (solid
,liquid
orgas
).bc_mode
: Boundary condition mode (periodic
orfree
).csv_dir
: Directory to save results in.
cd MDSim/plot_tools/
./plot_results.py path/to/your_csv_dir/
- Organize codes into classes
- Flexible parameter settings by command-line arguments
- Add GUI