anyuzx / Lammps_brownian

custom LAMMPS fix used for Brownian Dynamics Simulation (Overdamped Langevin)
18 stars 9 forks source link
brownian-dynamics lammps

:green_circle: Latest version of LAMMPS now contains official fix command for overdamped BD. See here.


This is the custom LAMMPS fix for overdamped Langevin dynamics(Brownian dynamics). LAMMPS has fix langevin for Langevin dynamics simulation. However, the algorithm LAMMPS use to integrate Langevin dynamics equation is Velocity-Verlet. This is not suitable for high friction(overdamped) simulation. Here are several files I modified from original fix_langevin.cpp and some other files to give LAMMPS a fix for overdamped Langevin dynamics simulation. This fix is only suitable for high friction case since velocity is overdamped. For more information and derivation of equation of motions, you can read this blog post as well https://www.guangshi.io/posts/simulating-brownian/

How to use

Build LAMMPS

  1. Put fix_bd.cpp/fix_bd_baoab.cpp and their header files into src folder of LAMMPS.
  2. Build LAMMPS.

Use it in input file

fix ID group-ID bd temperature damp seed

Examples

fix 1 all bd 1.00 0.01 324231

Remarks

Other Options

Reference