Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.18 KB

README.md

File metadata and controls

55 lines (39 loc) · 1.18 KB

Molecular Dynamics Simulation of Simple Particles

This package performs molecular dynamics simulation using truncated and shifted Lennard-Jones potential along with velocity Verlet algorithm.

This was for a university project in 2011.

Usage

Installation

# in <root>/
git clone https://github.com/mm318/molecular-dynamics-simulation.git

Build

# from <root>/
mkdir build
cd build
cmake ../molecular-dynamics-simulation
make

Run

Usage:

mdsim_2d <dt> <num steps> <run name> [output png prefix]
mdsim_3d <dt> <num steps> <run name> [output png prefix]

Example:

mdsim_2d 0.001 100 example_run example_run_2d
mdsim_3d 0.001 100 example_run example_run_3d

2D run visualization:
Example 2D Simulation

3D run visualization:
Example 3D Simulation

Requirements

Tested on Ubuntu 20.04.

Dependencies