Giter Club home page Giter Club logo

simulating-langevin-dynamics's Introduction

README

This is a demonstration of simulation of Langevin dynamics based on Verlet algorithm. It was designed for Tiwary's research group at University of Maryland since 2017, in order to study the dynamics and exploration of stochastic movement in configuration space.

The algorithm is based on the verlet algorithm proposed in the paper "Accurate sampling using Langevin dynamics", Giovanni Bussi and Michele Parrinello, Phys. Rev. E 75, 056707 (2007).

To add one more dimension in z-direction:

(1) Add f[2] in force.cpp.

(2) All f_x, f_y, and f_z in force.cpp need to have three arguments: qq1->x[0], qq1->x[1], qq1->x[2]

(3) Add new definitions of fx, fy, and fz (with three double-type inputs) in field.hpp

(4) Modify f_x and f_y settings in field.cpp. Add settings for f_z in field.cpp

(5) In insript.txt, dimension=3. Add one more number for gamma along z-dimension.

(6) Specify initial z positions and z velocities in configuration file.

(6) Specify initial z positions and z velocities in configuration file.

How to use

(1) sh compile.sh produce executable file mdt.out

(2) ./mdt.out to perform simulation.

(tested on mac os)

simulating-langevin-dynamics's People

Contributors

lina492375qw1188 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.