MCPcopy Create free account
hub / github.com/Colvars/colvars

github.com/Colvars/colvars @namd-2.14

Chat with this repo
repository ↗ · DeepWiki ↗ · release namd-2.14 ↗ · + Follow
1,577 symbols 3,961 edges 85 files 392 documented · 25% updated 7d ago★ 23944 open issues

Browse by type

Functions 1,368 Types & classes 209
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

CHANGES IN THE DEFINITION OF SYSTEM FORCES (NOW TOTAL FORCES)

Starting from the version 2016-08-10 of the Colvars module, the role of system forces has been replaced by total forces.

These include all forces acting on a collective variable, whether they come from the force field potential or from external terms (e.g. restraints), including forces applied by Colvars itself.

In NAMD, forces applied by Colvars, IMD, SMD, TMD, symmetry restraints and tclForces are now all counted in the total force.

In LAMMPS, forces applied by Colvars itself are now counted in the total force (all forces from other fixes were being counted already).

WHEN IS THIS CHANGE RELEVANT

This change affects results only when (1) outputSystemForce is requested or (2) the ABF bias is used. All other usage cases are unaffected (colvar restraints, metadynamics, etc).

When system forces are reported (flag: outputSystemForce), their values in the output may change, but the physical trajectory is never affected. The physical results of ABF calculations may be affected in some cases.

CHANGES TO ABF CALCULATIONS

Compared to previous Colvars versions, the ABF method will now attempt to cancel external forces (for example, boundary walls) and it may be not possible to resume through a state file a simulation that was performed with a previous version.

There are three possible scenarios:

  1. No external forces are applied to the atoms used by ABF: results are unchanged.

  2. Some of the atoms used by ABF experience external forces, but these forces are not applied directly to the variables used by ABF (e.g. another colvar that uses the same atoms, tclForces, etc): in this case, we recommend beginning a new simulation.

  3. External forces are applied to one or more of the colvars used by ABF, but no other forces are applied to their atoms: you may use the subtractAppliedForce keyword inside the corresponding colvars to continue the previous simulation.

Core symbols most depended-on inside this repo

Shape

Method 1,188
Class 191
Function 180
Enum 18

Languages

C++88%
C9%
Python2%

Modules by API surface

src/colvartypes.h123 symbols
src/colvarcomp.h87 symbols
src/colvarmodule.cpp78 symbols
src/colvarproxy.cpp68 symbols
src/colvargrid.h67 symbols
src/colvar.cpp56 symbols
src/colvar.h54 symbols
src/colvaratoms.cpp45 symbols
namd/src/colvarproxy_namd.C43 symbols
src/colvarproxy.h41 symbols
namd/src/ScriptTcl.C39 symbols
src/colvarmodule.h38 symbols

For agents

$ claude mcp add colvars \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page