next up previous contents index
Next: Linear restraints Up: Biasing and analysis methods Previous: Computing the work of   Contents   Index

Harmonic wall restraints

The harmonicWalls {...} bias is closely related to the harmonic bias (see [*]), with the following two differences: (i) instead of a center a lower wall and/or an upper wall are defined, outside of which the bias implements a half-harmonic potential;

$\displaystyle V(\xi) = \left\{ \begin{array}{l l} \frac{1}{2} k \left(\frac{\xi...
..._{\xi}}\right)^2 & \mathrm{if }\ \xi < \xi_{\mathrm{lower}} \end{array} \right.$ (13.36)

where $ \xi_{\mathrm{lower}}$ and $ \xi_{\mathrm{upper}}$ are the lower and upper wall thresholds, respectively; (ii) because an interval between two walls is defined, only scalar variables can be used (but any number of variables can be defined, and the wall bias is intrinsically multi-dimensional).

Note: this bias replaces the keywords lowerWall, lowerWallConstant, upperWall and upperWallConstant defined in the colvar context. Those keywords are deprecated.

The harmonicWalls bias implements the following options:

Example 1: harmonic walls for one variable with two different force constants.
harmonicWalls {
  name mywalls
  colvars dist
  lowerWalls 22.0
  upperWalls 38.0
  lowerWallConstant 2.0
  upperWallConstant 10.0
}

Example 2: harmonic walls for two variables with a single force constant.
harmonicWalls {
  name mywalls
  colvars phi psi
  lowerWalls -180.0 0.0
  upperWalls 0.0 180.0
  forceConstant 5.0
}


next up previous contents index
Next: Linear restraints Up: Biasing and analysis methods Previous: Computing the work of   Contents   Index
vmd@ks.uiuc.edu