All Projects → Colvars → Colvars

Colvars / Colvars

Licence: lgpl-3.0
Collective variables module for molecular simulation and analysis programs

Projects that are alternatives of or similar to Colvars

Tensormol
Tensorflow + Molecules = TensorMol
Stars: ✭ 226 (+128.28%)
Mutual labels:  simulation, molecular-dynamics
Pyiron
pyiron - an integrated development environment (IDE) for computational materials science.
Stars: ✭ 153 (+54.55%)
Mutual labels:  simulation, molecular-dynamics
Molecular Design Toolkit
Notebook-integrated tools for molecular simulation and visualization
Stars: ✭ 123 (+24.24%)
Mutual labels:  simulation, molecular-dynamics
Openmm
OpenMM is a toolkit for molecular simulation using high performance GPU code.
Stars: ✭ 791 (+698.99%)
Mutual labels:  simulation, molecular-dynamics
hoomd-examples
HOOMD-blue example scripts.
Stars: ✭ 15 (-84.85%)
Mutual labels:  simulation, molecular-dynamics
perses
Experiments with expanded ensembles to explore chemical space
Stars: ✭ 99 (+0%)
Mutual labels:  simulation, molecular-dynamics
Hoomd Blue
Molecular dynamics and Monte Carlo soft matter simulation on GPUs.
Stars: ✭ 143 (+44.44%)
Mutual labels:  simulation, molecular-dynamics
ls1-mardyn
ls1-MarDyn is a massively parallel Molecular Dynamics (MD) code for large systems. Its main target is the simulation of thermodynamics and nanofluidics. ls1-MarDyn is designed with a focus on performance and easy extensibility.
Stars: ✭ 17 (-82.83%)
Mutual labels:  simulation, molecular-dynamics
Awesome Python Chemistry
A curated list of Python packages related to chemistry
Stars: ✭ 410 (+314.14%)
Mutual labels:  simulation, molecular-dynamics
Lammps
Public development project of the LAMMPS MD software package
Stars: ✭ 1,019 (+929.29%)
Mutual labels:  simulation, molecular-dynamics
Flipviscosity3d
A basic free-surface liquid FLIP fluid simulator with viscosity
Stars: ✭ 88 (-11.11%)
Mutual labels:  simulation
Omnetpp primer
OMNeT++的仿真手册
Stars: ✭ 89 (-10.1%)
Mutual labels:  simulation
Black Hole
WebGL simulation of a Schwarzschild black hole
Stars: ✭ 94 (-5.05%)
Mutual labels:  simulation
Covid19 scenarios
Models of COVID-19 outbreak trajectories and hospital demand
Stars: ✭ 1,355 (+1268.69%)
Mutual labels:  simulation
Hand dapg
Repository to accompany RSS 2018 paper on dexterous hand manipulation
Stars: ✭ 88 (-11.11%)
Mutual labels:  simulation
Webots
Webots Robot Simulator
Stars: ✭ 1,324 (+1237.37%)
Mutual labels:  simulation
Morphogenesis Resources
Comprehensive list of resources on the topic of digital morphogenesis (the creation of form through code). Includes links to major articles, code repos, creative projects, books, software, and more.
Stars: ✭ 1,278 (+1190.91%)
Mutual labels:  simulation
Autonomous Drone
This repository intends to enable autonomous drone delivery with the Intel Aero RTF drone and PX4 autopilot. The code can be executed both on the real drone or simulated on a PC using Gazebo. Its core is a robot operating system (ROS) node, which communicates with the PX4 autopilot through mavros. It uses SVO 2.0 for visual odometry, WhyCon for visual marker localization and Ewok for trajectoy planning with collision avoidance.
Stars: ✭ 87 (-12.12%)
Mutual labels:  simulation
Maze
Maze Applied Reinforcement Learning Framework
Stars: ✭ 85 (-14.14%)
Mutual labels:  simulation
Molly.jl
Molecular simulation in Julia
Stars: ✭ 99 (+0%)
Mutual labels:  molecular-dynamics

Collective variables module (Colvars)

A software module for molecular simulation and analysis that provides a high-performance implementation of sampling algorithms defined on a reduced space of continuously differentiable functions (aka collective variables).

First released in 2008 as part of the standard distribution of NAMD version 2.7b1, Colvars has also been integrated in LAMMPS and VMD. Pre-patched GROMACS releases are also available (see below).

The module itself implements a variety of functions and algorithms, including free-energy estimators based on thermodynamic forces, non-equilibrium work and probability distributions.

Obtaining and using

The easiest way to obtain pre-compiled versions of Colvars is via one of following:

  • the molecular simulation program LAMMPS;
  • the molecular simulation program NAMD;
  • the molecular visualization program VMD.

Please check here to see which version of Colvars is included with the round-number or "stable" versions of each code.

For the molecular simulation program GROMACS, code may be compiled via our Colvars-patched releases.

Documentation

The Colvars webpage includes user documentation for the four codes, as well as a Doxygen-based developer documentation.

The reference article is: G. Fiorin, M. L. Klein, and J. Hénin, Molecular Physics 111, 3345 (2013). https://dx.doi.org/10.1080/00268976.2013.813594 [BibTex file] [Endnote file]

Example input

Colvars requires a configuration file, or alternatively configuration arguments given through scripting commands by the linked program.

  • In NAMD:
colvars on
cv configfile <Colvars configuration file>
  • In VMD (Tip: try also the new "Colvars Dashboard" plugin):
cv molid top
cv configfile <Colvars configuration file>
  • In LAMMPS:
fix Colvars all colvars configfile <Colvars configuration file>
  • In GROMACS:
gmx mdrun -s topol.tpr -deffnm topol -colvars <Colvars configuration file>

The contents of the configuration file are typically the same across all programs, for example:

colvar { # Define a new variable
  name d # Must give a name to this variable
  width 0.2 # Estimated fluctuation amplitude and/or grid resolution, "w_d"
  distance { # This variable is a distance between centers of mass (COMs)
    group1 { atomNumbers 1 2 3 } # List the atoms of the 1st group
    group2 { atomNumbers 4 5 6 } # List the atoms of the 2nd group
  }
}

harmonic { # Define a harmonic potential, 1/2*K*(d-d0)^2/w_d^2
  colvars d # Apply it to the variable "d"
  centers 5.0 # The center of the potential, "d0"
  forceConstant 10.0 # Force constant, "K"
}

Complete input decks for some of the most commonly used features are available in the examples repository: https://github.com/Colvars/examples

See also the examples folder of this repository for other examples of configurations. Configuration options (particularly, the selections of atoms) require minimal changes to reflect the specifics of each simulation.

The tests folder also contains functional segments of Colvars configuration, used to build numerical tests of code accuracy and stability. Feel free to use these segments in your production runs.

Updating to the latest version

To recompile each program with the most recent version of the module, download the master branch of this repository, or clone it via git:

git clone https://github.com/Colvars/colvars.git

and run the provided update-colvars-code.sh script against the unpacked source tree of any of the supported programs:

./update-colvars-code.sh /path/to/lammps           ; # updates LAMMPS
./update-colvars-code.sh /path/to/NAMD_X.YY_Source ; # updates NAMD
./update-colvars-code.sh /path/to/vmd-X.Y.Z        ; # updates VMD
./update-colvars-code.sh /path/to/vmd-plugins      ; # updates VMD plugins
./update-colvars-code.sh /path/to/gromacs-XXX.X    ; # update GROMACS

and recompile them.

The update-colvars-code.sh script support patching the latest development version of each program:

Note: For GROMACS, support for specific release series is currently maintained; pre-patched versions of specific releases are provided below.

Gromacs-Colvars releases

The following links allow to download several versions of Gromacs already patched to include the latest available version of Colvars:

  • Gromacs version 2020.5-colvars in Tar.gz and Zip formats

  • Gromacs version 2018.8-colvars in Tar.gz and Zip formats

Gromacs-Colvars versions not listed above are not supported, but the same patching procedure is generally portable across the same Gromacs release series (i.e. labeled with the same year).

When using the Gromacs forum to discuss usage of any Colvars-patched versions, please specify "GROMACS modification: Yes".

Which version of Colvars is recommended?

The Git master branch is to be considered the "stable" release at any given time; any bugfixes are released through master first. The input syntax is near-completely backward-compatible and output files are forward-compatible. Feel free to download Colvars and update NAMD, VMD, LAMMPS or GROMACS as needed.

Other branches are dedicated to the development of specific features: please use them at your own discretion.

Which version of Colvars is included in package XX version YY?

The specific version of Colvars is identified both in the code and in the documentation by the date of the most recent code revision (e.g. 2021-01-19). This date is printed to the standard output or log file as soon as Colvars is activated.

If you are using a stable release of any of the codes mentioned above, feel free to use the version number of that code when asking questions.

Feedback

Please use the "Issues" tab of this page to submit new bug reports or to suggest new features.

License

This software is distributed under the GNU Lesser General Public License, version 3. See COPYING.LESSER for complete licensing terms.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].