GithubHelp home page GithubHelp logo

lennardjones's Introduction

Lennard Jones Molecular Dynamics in C++

Box of Lennard-Jonesium

About

Simulates Lennard Jonesium using Molecular Dynamics.

The program is written in C++ and requires Boost libraries and development headers for reading the .ini file, and xdrfile for writing the trajectory to .xtc. Some of the classes I use are based on my libgmxcpp library.

Current features:

  • Andersen thermostat
  • Velocity Verlet integrator
  • Calculate RDF
  • Calculate velocity distribution
  • Neighbor lists
  • Block error analysis

Reduced units are used.

Compiling

To compile simply do:

mkdir build
cd build
cmake ..
make
make install

Running

To run do:

ljmd md.ini

If no file configuration file is specified, then the program attempts to open 'md.ini.' If the file you specify is not found, the defaults options are used for the program (printed to the screen).

When running the program an initial configuration of atoms is generated by randomly inserting them into the box according to the specified density, ensuring that the atoms are not too close to each other. Then then simulation begins.

License

Copyright (C) 2015 James W. Barnett [email protected]

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

The full license is located in a text file titled "LICENSE" in the root directory of the source.

Resources

See Frenkel and Smit's Understanding Molecular Simulation as well as Allen and Tildesley's Computer Simulations of Liquids.

lennardjones's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.