Giter Club home page Giter Club logo

position_diffusion's Introduction

position_diffusion

Position dependent diffusivity of a molecule under an external harmonic potential. The method is based on the derivation given in the reference below.

Hummer, Gerhard. "Position-dependent diffusion coefficients and free energies from Bayesian analysis of equilibrium and replica molecular dynamics simulations." New Journal of Physics 7.1 (2005): 34.

Compilation:

gfortran -o diffusion diffusion.f90

The code takes in four command line arguments:

1. Autocorrelation cutoff time (in ps)
2. Time step between frames (in ps)
3. Trajectory file name (two column ASCII)
4. Output name for ACF results

The trajectory should be formatted as a two column file with the time/frame number in the first and the position in the second. The positions should be in units of Angstroms. Running the program with

./diffusion 2.0 0.001 wind01.traj acf01.txt

should give an output file acf01.txt. The output file contains the some information in the header followed by the autocorrelation function.

# Frame time (ps)          :  0.00100
# Correlation time (ps)    :  2.00000
# Characteristic time (ps) :  0.24332
# Diffusion (x10^-9 m^2/s) :  1.25022
   0.00100   1.18259
   0.00200   1.18151
   0.00300   1.18012
   0.00400   1.17821
   0.00500   1.17590
   0.00600   1.17310
   0.00700   1.16977
   0.00800   1.16591
   ...

position_diffusion's People

Contributors

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