Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Exercise for a small C/C++ module at ESPCI Paris.

License

Notifications You must be signed in to change notification settings

sdiebolt/molecular-dynamics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Molecular dynamics

An exercise for a C/C++ module at ESPCI Paris. The goal is to simulate a system of N particles using event-driven programming. The simulation is done in two dimensions. We consider N disks in a box. These particles are "hard": the collisions between them and with the walls are elastic.

Getting started

These instructions will get you a copy of the project up and running on your local machine.

Prerequisites

SFML 2.4 is needed to build the project.

  • Linux:
sudo apt-get install libsfml-dev
  • macOS (if you're using Homebrew):
brew install sfml

Installing

Clone the project, then

cd molecular-dynamics/
mkdir bin
make

Running a simulation

The program takes three arguments: the particles' radius, the empty space between the particles and the friction.

Run the simulation with:

./bin/mdsim radius spacing friction

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments